Your IP : 216.73.216.43


Current Path : /proc/thread-self/cwd/static/frontend/Magento/luma/it_IT/Mageplaza_Blog/js/
Upload File :
Current File : //proc/thread-self/cwd/static/frontend/Magento/luma/it_IT/Mageplaza_Blog/js/ckeditor.js

!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace image URL*":"*Replace image URL*","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","%0 of %1":"%0 of %1",Accept:"Accept","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Added by":"Added by","AI Assistant":"AI Assistant","AI Commands":"AI Commands","AI is writing...":"AI is writing...",AI_ERROR_CONTEXT_LENGTH:"Selected content is too long",AI_ERROR_FAILED:"Failed to communicate with the AI service",AI_ERROR_MODERATION:"Requested query does not pass moderation rules",AI_INSERT_CONTENT:"Insert",AI_REPLACE_CONTENT:"Replace","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 center":"Align center","Align left":"Align left","Align right":"Align right","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","An error occurred while generating the PDF.":"An error occurred while generating the PDF.","An error occurred while generating the Word file.":"An error occurred while generating the Word file.",Angle:"Angle",Anonymous:"Anonymous","Approximately equal to":"Approximately equal to",Aquamarine:"Aquamarine",Arabic:"Arabic","Are you sure?":"Are you sure?",Arrows:"Arrows","Ask AI and your prompts will be listed here for you to use later.":"Ask AI and your prompts will be listed here for you to use later.","Ask AI to edit or generate":"Ask AI to edit or generate","Ask AI to improve generated text":"Ask AI to improve generated text","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","Back to editing":"Back to editing","back with leftwards arrow above":"back with leftwards arrow above",Background:"Background",Big:"Big","Bitcoin sign":"Bitcoin sign",Black:"Black","Block quote":"Block quote","Block styles":"Block styles",Blue:"Blue","Blue marker":"Blue marker",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Business:"Business",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image",Casual:"Casual","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","Change style":"Change style","Change tone":"Change tone","Character categories":"Character categories","Characters: %0":"Characters: %0","Choose heading":"Choose heading","Choose language":"Choose language",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code","Colon sign":"Colon sign",Color:"Color","Color picker":"Color picker",Column:"Column",Comment:"Comment","Comment editor":"Comment editor","Comment was made on an element":"Comment was made on an element",COMMENTS_ARCHIVE:"Comments archive","Compare against selected":"Compare against selected",Confident:"Confident",CONNECTED_USERS:["1 connected user (me)","%0 connected users"],"Contains as member":"Contains as member",Continue:"Continue","Continuous painting":"Continuous painting",Copy:"Copy","Copyright sign":"Copyright sign","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Create a block quote":"Create a block quote","Create a bulleted list":"Create a bulleted list","Create a code block":"Create a code block","Create a heading level 1":"Create a heading level 1","Create a heading level 2":"Create a heading level 2","Create a heading level 3":"Create a heading level 3","Create a heading level 4":"Create a heading level 4","Create a heading level 5":"Create a heading level 5","Create a heading level 6":"Create a heading level 6","Create a numbered list":"Create a numbered list","Create a table":"Create a table","Create a to-do list":"Create a to-do list","Cruzeiro sign":"Cruzeiro sign",Currency:"Currency","Currency sign":"Currency sign",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease the indentation":"Decrease the indentation",Default:"Default","Degree sign":"Degree sign","Delete column":"Delete column","Delete comment thread?":"Delete comment thread?","Delete comment?":"Delete comment?","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Direct:"Direct","Disable editing":"Disable editing",Disc:"Disc","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion","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 toolbar":"Dropdown toolbar",Edit:"Edit","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Edit or review":"Edit or review","Edit source":"Edit source",EDIT_X_OF_Y_REVISIONS:"Edit","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor headings will appear here as you type.":"Editor headings will appear here as you type.","Editor toolbar":"Editor toolbar","Element of":"Element of",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list","Em dash":"Em dash","Empty document":"Empty document","Empty heading":"Empty heading","Empty history":"Empty history","Empty set":"Empty set","Empty snippet content":"Empty snippet content",EMPTY_COMMENTS_ARCHIVE:"There are no archived comment threads.","En dash":"En dash","Enable editing":"Enable editing","end with leftwards arrow above":"end with leftwards arrow above",English:"English","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption",ENTER_COMMENT_ANNOUNCEMENT:"Entering a comment.",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.","Euro sign":"Euro sign","Euro-currency sign":"Euro-currency sign","Exclamation question mark":"Exclamation question mark","Export to PDF":"Export to PDF","Export to Word":"Export to Word",EXTERNAL_AVATAR:"Displayed author name comes from external source (added by %0)",EXTERNAL_COMMENT:"This comment comes from an external source.",EXTERNAL_IMPORT_WORD_AVATAR:"Displayed author name comes from a Word document imported by %0",EXTERNAL_IMPORT_WORD_COMMENT:"This comment comes from an imported Word file.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.","Failed to determine category of edited image.":"Failed to determine category of edited image.",Find:"Find","Find and replace":"Find and replace","Find in text…":"Find in text…","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size","For all":"For all",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_IMAGE_SIZE:"image size",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline","Formatting copied.":"Formatting copied.","Fraction slash":"Fraction slash",French:"French","French franc sign":"French franc sign",Friendly:"Friendly","Full size image":"Full size image","Generate from selection":"Generate from selection",German:"German","German penny sign":"German penny sign","Greater-than or equal to":"Greater-than or equal to","Greater-than sign":"Greater-than sign",Green:"Green","Green marker":"Green marker","Green pen":"Green pen",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",HEX:"HEX",Highlight:"Highlight",Hindi:"Hindi",History:"History","Horizontal ellipsis":"Horizontal ellipsis","Horizontal line":"Horizontal line","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Hryvnia sign":"Hryvnia sign","HTML object":"HTML object","HTML snippet":"HTML snippet",Huge:"Huge","Identical to":"Identical to","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","Improve writing":"Improve writing","In line":"In line","Increase indent":"Increase indent","Increase the indentation":"Increase the indentation","Indian rupee sign":"Indian rupee sign",Infinity:"Infinity","Initial revision":"Initial revision",Insert:"Insert","Insert a horizontal line":"Insert a horizontal line","Insert a paragraph":"Insert a paragraph","Insert an HTML snippet":"Insert an HTML snippet","Insert below":"Insert below","Insert code block":"Insert code block","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert HTML":"Insert HTML","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert Mermaid diagram":"Insert Mermaid diagram","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 table of contents":"Insert table of contents","Insert template":"Insert template","Insert the Mermaid diagram":"Insert the Mermaid diagram","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset",Integral:"Integral",Intersection:"Intersection","Inverted exclamation mark":"Inverted exclamation mark","Inverted question mark":"Inverted question mark",Italic:"Italic",Journalism:"Journalism",Justify:"Justify","Justify cell text":"Justify cell text","Keeps the painter on after setting the formatting.":"Keeps the painter on after setting the formatting.","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",LEAVE_COMMENT_ANNOUNCEMENT:"Leaving a comment.",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.","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",Legal:"Legal","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","Lira sign":"Lira sign","List properties":"List properties","Livre tournois sign":"Livre tournois sign","Loading...":"Loading...","Logical and":"Logical and","Logical or":"Logical or","Lower-latin":"Lower-latin","Lower–roman":"Lower–roman",Macron:"Macron","Make longer":"Make longer","Make shorter":"Make shorter","Manat sign":"Manat sign","Marked as resolved":"Marked as resolved","Match case":"Match case",Mathematical:"Mathematical","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","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","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","Name of the revision (optional)":"Name of the revision (optional)","Name this revision":"Name this revision","Navigate editable regions":"Navigate editable regions","New sheqel sign":"New sheqel sign",Next:"Next","Next editable region":"Next editable region","Next result":"Next result",No:"No","No changes":"No changes","No commands available":"No commands available","No commands found":"No commands found","No headings were found in the document.":"No headings were found in the document.","No preview available":"No preview available","No results found":"No results found","No searchable items":"No searchable items","No templates available.":"No templates available.",'No templates were found matching "%0".':'No templates were found matching "%0".',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",NUMBER_OF_CHANGES:["%0 change","%0 changes"],NUMBER_OF_COMMENTS:["%0 Comment","%0 Comments"],"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 file browser to insert an image or a file":"Open file browser to insert an image or a file","Open file manager":"Open file manager","Open file manager to insert an image or a file":"Open file manager to insert an image or a file","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab","Open revision history":"Open revision history","Open the AI Assistant to generate content":"Open the AI Assistant to generate content",Orange:"Orange",Original:"Original",Outset:"Outset",Overline:"Overline",Padding:"Padding","Page break":"Page break","Paint formatting":"Paint formatting",Paragraph:"Paragraph","Paragraph sign":"Paragraph sign","Partial differential":"Partial differential","Paste raw HTML here...":"Paste raw HTML here...","Paste the media URL in the input.":"Paste the media URL in the input.","Pasted formatting.":"Pasted formatting.",PENDING_ACTION_COMMENT_THREAD:"Unsaved change in comment thread.",PENDING_ACTION_REVISION_HISTORY:"Unsaved change in revision history.",PENDING_ACTION_SENDING_DATA:"Sending data to the server.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.","Per mille sign":"Per mille sign","Per ten thousand sign":"Per ten thousand sign","Peseta sign":"Peseta sign","Peso sign":"Peso sign","Pink marker":"Pink marker","Plain text":"Plain text","Please try a different phrase or check the spelling.":"Please try a different phrase or check the spelling.","Plus-minus sign":"Plus-minus sign",Poetic:"Poetic",Portuguese:"Portuguese","Pound sign":"Pound sign","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 editable region":"Previous editable region","Previous result":"Previous result","Processing the edited image.":"Processing the edited image.",Professional:"Professional","Prompt history":"Prompt history","Proportional to":"Proportional to",Purple:"Purple","Question exclamation mark":"Question exclamation mark",Red:"Red","Red pen":"Red pen",Redo:"Redo","Registered sign":"Registered sign",Remove:"Remove","Remove color":"Remove color","Remove Format":"Remove Format","Remove highlight":"Remove highlight","Remove language":"Remove language","Removed by":"Removed by",Reopen:"Reopen",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 image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Replace with…":"Replace with…",REPLACE_TEXT:"*Replace:* %0 *with* %1",Reply:"Reply","Reply to reopen discussion...":"Reply to reopen discussion...","Reply...":"Reply...","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size",Resolve:"Resolve","Restore default":"Restore default","Restore this revision":"Restore this revision",Restored:"Restored","Reversed order":"Reversed order","Reversed paragraph sign":"Reversed paragraph sign","Revision author":"Revision author","Revision creator":"Revision creator","Revision history":"Revision history","Revision name":"Revision name","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","Save changes":"Save changes","Save current revision":"Save current revision","Search AI command":"Search AI command","Search template":"Search template","Section sign":"Section sign","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show blocks":"Show blocks","Show more items":"Show more items","Show next change":"Show next change","Show next page":"Show next page","Show options":"Show options","Show previous change":"Show previous change","Show previous page":"Show previous page","Side image":"Side image","Simplified Chinese":"Simplified Chinese","Simplify language":"Simplify language","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",Source:"Source",Spanish:"Spanish","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.",Stop:"Stop",Strikethrough:"Strikethrough",Style:"Style",Styles:"Styles",Submit:"Submit",Subscript:"Subscript","Suggested by":"Suggested by",Summarize:"Summarize",Superscript:"Superscript","Synchronization issue":"Synchronization issue","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table of contents":"Table of contents","Table properties":"Table properties","Table toolbar":"Table toolbar","Tenge sign":"Tenge sign",Text:"Text","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar","Text alternative":"Text alternative","Text highlight toolbar":"Text highlight toolbar","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 document cannot be connected back to the server. To not lose your content save it locally and refresh the editor.":"The document cannot be connected back to the server. To not lose your content save it locally and refresh the editor.","The document details could not be taken during the reconnection. To not lose your content save it locally and refresh the editor.":"The document details could not be taken during the reconnection. To not lose your content save it locally and refresh the editor.","The last saved version of the document does not match the local version. To not lose your content save it locally and refresh the editor.":"The last saved version of the document does not match the local version. To not lose your content save it locally and refresh the editor.","The local document and server document differ and merging them can cause unexpected behavior. To not lose your content save it locally and refresh the editor.":"The local document and server document differ and merging them can cause unexpected behavior. To not lose your content save it locally and refresh the editor.","The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"There exists":"There exists","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","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.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","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 lower–latin list style":"Toggle the lower–latin list style","Toggle the lower–roman list style":"Toggle the lower–roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper–latin list style":"Toggle the upper–latin list style","Toggle the upper–roman list style":"Toggle the upper–roman list style",TOO_LONG_COMMENT_ALERT:"Comment content is too long. Your comment has %0 characters but the limit is %1 characters.","top with upwards arrow above":"top with upwards arrow above",Total:"Total","Track changes":"Track changes","Trade mark sign":"Trade mark sign",Translate:"Translate","Translate to %0":"Translate to %0","Try again":"Try again","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",Undo:"Undo",Union:"Union",Unlink:"Unlink","up down arrow with base":"up down arrow with base",Update:"Update","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","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","Vertical text alignment toolbar":"Vertical text alignment toolbar","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","Words: %0":"Words: %0","Wrap text":"Wrap text","Write a comment...":"Write a comment...",X_OF_Y_CHANGES:"%0 of %1",Yellow:"Yellow","Yellow marker":"Yellow marker","Yen sign":"Yen sign",Yes:"Yes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
    /*!
     * @license Copyright (c) 2003-2023, 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 __webpack_modules__={1446:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AwsCrc32=void 0;var i=n(2717),o=n(7658),r=n(4079),s=function(){function t(){this.crc32=new r.Crc32}return t.prototype.update=function(t){(0,o.isEmptyData)(t)||this.crc32.update((0,o.convertToBuffer)(t))},t.prototype.digest=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return[2,(0,o.numToUint8)(this.crc32.digest())]}))}))},t.prototype.reset=function(){this.crc32=new r.Crc32},t}();e.AwsCrc32=s},4079:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AwsCrc32=e.Crc32=e.crc32=void 0;var i=n(2717),o=n(7658);e.crc32=function(t){return(new r).update(t).digest()};var r=function(){function t(){this.checksum=4294967295}return t.prototype.update=function(t){var e,n;try{for(var o=i.__values(t),r=o.next();!r.done;r=o.next()){var a=r.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return this},t.prototype.digest=function(){return(4294967295^this.checksum)>>>0},t}();e.Crc32=r;var s=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=n(1446);Object.defineProperty(e,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},2717:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__assign:()=>r,__asyncDelegator:()=>w,__asyncGenerator:()=>k,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>d,__classPrivateFieldGet:()=>y,__classPrivateFieldSet:()=>E,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>m,__extends:()=>o,__generator:()=>u,__importDefault:()=>C,__importStar:()=>v,__makeTemplateObject:()=>_,__metadata:()=>l,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>f,__spreadArrays:()=>x,__values:()=>g});
            /*! *****************************************************************************
             Copyright (c) Microsoft Corporation.

             Permission to use, copy, modify, and/or distribute this software for any
             purpose with or without fee is hereby granted.

             THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
             REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
             AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
             INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
             LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
             OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
             PERFORMANCE OF THIS SOFTWARE.
             ***************************************************************************** */
            var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function a(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function m(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function x(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function k(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof b?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(t){d(r[0][3],t)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function d(t,e){t(e),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function v(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},8260:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},6665:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5470:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},969:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5287:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMsWindow=void 0;var n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];e.isMsWindow=function(t){if(function(t){return"MSInputMethodContext"in t&&"msCrypto"in t}(t)&&void 0!==t.msCrypto.subtle){var e=t.msCrypto,i=e.getRandomValues,o=e.subtle;return n.map((function(t){return o[t]})).concat(i).every((function(t){return"function"==typeof t}))}return!1}},87:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1980);i.__exportStar(n(8260),e),i.__exportStar(n(6665),e),i.__exportStar(n(5470),e),i.__exportStar(n(969),e),i.__exportStar(n(5287),e)},1980:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__assign:()=>r,__asyncDelegator:()=>w,__asyncGenerator:()=>k,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>d,__classPrivateFieldGet:()=>y,__classPrivateFieldSet:()=>E,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>m,__extends:()=>o,__generator:()=>u,__importDefault:()=>C,__importStar:()=>v,__makeTemplateObject:()=>_,__metadata:()=>l,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>f,__spreadArrays:()=>x,__values:()=>g});
            /*! *****************************************************************************
             Copyright (c) Microsoft Corporation.

             Permission to use, copy, modify, and/or distribute this software for any
             purpose with or without fee is hereby granted.

             THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
             REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
             AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
             INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
             LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
             OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
             PERFORMANCE OF THIS SOFTWARE.
             ***************************************************************************** */
            var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function a(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function m(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function x(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function k(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof b?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(t){d(r[0][3],t)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function d(t,e){t(e),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function v(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},7333:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_DATA_SHA_256=e.SHA_256_HMAC_ALGO=e.SHA_256_HASH=void 0,e.SHA_256_HASH={name:"SHA-256"},e.SHA_256_HMAC_ALGO={name:"HMAC",hash:e.SHA_256_HASH},e.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},2769:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var i=n(3479),o=n(8889),r=n(1938),s=n(21),a=n(87),c=n(6495),l=n(7658),d=function(){function t(t){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new o.Sha256(t):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new i.Sha256(t):this.hash=new r.Sha256(t)}return t.prototype.update=function(t,e){this.hash.update((0,l.convertToBuffer)(t))},t.prototype.digest=function(){return this.hash.digest()},t.prototype.reset=function(){this.hash.reset()},t}();e.Sha256=d},3479:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var i=n(8036),o=n(7333),r=n(2084),s=n(6495),a=function(){function t(t){this.secret=t,this.reset()}return t.prototype.update=function(t){var e=this;(0,i.isEmptyData)(t)||(this.operation=this.operation.then((function(n){return n.onerror=function(){e.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(c(t)),n})),this.operation.catch((function(){})))},t.prototype.digest=function(){return this.operation.then((function(t){return new Promise((function(e,n){t.onerror=function(){n(new Error("Error encountered finalizing hash"))},t.oncomplete=function(){t.result&&e(new Uint8Array(t.result)),n(new Error("Error encountered finalizing hash"))},t.finish()}))}))},t.prototype.reset=function(){var t;this.secret?(this.operation=(t=this.secret,new Promise((function(e,n){var i=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(t),o.SHA_256_HMAC_ALGO,!1,["sign"]);i.oncomplete=function(){i.result&&e(i.result),n(new Error("ImportKey completed without importing key."))},i.onerror=function(){n(new Error("ImportKey failed to import key."))}}))).then((function(t){return(0,s.locateWindow)().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,t)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,s.locateWindow)().msCrypto.subtle.digest("SHA-256"))},t}();function c(t){return"string"==typeof t?(0,r.fromUtf8)(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}e.Sha256=a},7643:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebCryptoSha256=e.Ie11Sha256=void 0,n(5789).__exportStar(n(2769),e);var i=n(3479);Object.defineProperty(e,"Ie11Sha256",{enumerable:!0,get:function(){return i.Sha256}});var o=n(8889);Object.defineProperty(e,"WebCryptoSha256",{enumerable:!0,get:function(){return o.Sha256}})},8036:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0,e.isEmptyData=function(t){return"string"==typeof t?0===t.length:0===t.byteLength}},8889:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var i=n(7658),o=n(7333),r=n(6495),s=function(){function t(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return t.prototype.update=function(t){if(!(0,i.isEmptyData)(t)){var e=(0,i.convertToBuffer)(t),n=new Uint8Array(this.toHash.byteLength+e.byteLength);n.set(this.toHash,0),n.set(e,this.toHash.byteLength),this.toHash=n}},t.prototype.digest=function(){var t=this;return this.key?this.key.then((function(e){return(0,r.locateWindow)().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,e,t.toHash).then((function(t){return new Uint8Array(t)}))})):(0,i.isEmptyData)(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,r.locateWindow)().crypto.subtle.digest(o.SHA_256_HASH,t.toHash)})).then((function(t){return Promise.resolve(new Uint8Array(t))}))},t.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(e,n){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,i.convertToBuffer)(t.secret),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(e,n)})),this.key.catch((function(){})))},t}();e.Sha256=s},5789:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__assign:()=>r,__asyncDelegator:()=>w,__asyncGenerator:()=>k,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>d,__classPrivateFieldGet:()=>y,__classPrivateFieldSet:()=>E,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>m,__extends:()=>o,__generator:()=>u,__importDefault:()=>C,__importStar:()=>v,__makeTemplateObject:()=>_,__metadata:()=>l,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>f,__spreadArrays:()=>x,__values:()=>g});
            /*! *****************************************************************************
             Copyright (c) Microsoft Corporation.

             Permission to use, copy, modify, and/or distribute this software for any
             purpose with or without fee is hereby granted.

             THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
             REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
             AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
             INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
             LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
             OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
             PERFORMANCE OF THIS SOFTWARE.
             ***************************************************************************** */
            var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function a(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function m(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function x(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function k(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof b?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(t){d(r[0][3],t)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function d(t,e){t(e),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function v(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},914:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RawSha256=void 0;var i=n(9945),o=function(){function t(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var e=0,n=t.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=t[e++],n--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,e=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(e.setUint8(this.bufferLength++,128),n%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var o=this.bufferLength;o<i.BLOCK_SIZE;o++)e.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<i.BLOCK_SIZE-8;o++)e.setUint8(o,0);e.setUint32(i.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),e.setUint32(i.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}var r=new Uint8Array(i.DIGEST_LENGTH);for(o=0;o<8;o++)r[4*o]=this.state[o]>>>24&255,r[4*o+1]=this.state[o]>>>16&255,r[4*o+2]=this.state[o]>>>8&255,r[4*o+3]=this.state[o]>>>0&255;return r},t.prototype.hashBuffer=function(){for(var t=this.buffer,e=this.state,n=e[0],o=e[1],r=e[2],s=e[3],a=e[4],c=e[5],l=e[6],d=e[7],u=0;u<i.BLOCK_SIZE;u++){if(u<16)this.temp[u]=(255&t[4*u])<<24|(255&t[4*u+1])<<16|(255&t[4*u+2])<<8|255&t[4*u+3];else{var h=this.temp[u-2],m=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,g=((h=this.temp[u-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[u]=(m+this.temp[u-7]|0)+(g+this.temp[u-16]|0)}var p=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&l)|0)+(d+(i.KEY[u]+this.temp[u]|0)|0)|0,f=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&r^o&r)|0;d=l,l=c,c=a,a=s+p|0,s=r,r=o,o=n,n=p+f|0}e[0]+=n,e[1]+=o,e[2]+=r,e[3]+=s,e[4]+=a,e[5]+=c,e[6]+=l,e[7]+=d},t}();e.RawSha256=o},9945:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_HASHABLE_LENGTH=e.INIT=e.KEY=e.DIGEST_LENGTH=e.BLOCK_SIZE=void 0,e.BLOCK_SIZE=64,e.DIGEST_LENGTH=32,e.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),e.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],e.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},1938:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(3541).__exportStar(n(5430),e)},5430:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var i=n(3541),o=n(9945),r=n(914),s=n(7658),a=function(){function t(t){this.secret=t,this.hash=new r.RawSha256,this.reset()}return t.prototype.update=function(t){if(!(0,s.isEmptyData)(t)&&!this.error)try{this.hash.update((0,s.convertToBuffer)(t))}catch(t){this.error=t}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return[2,this.digestSync()]}))}))},t.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var t=function(t){var e=(0,s.convertToBuffer)(t);if(e.byteLength>o.BLOCK_SIZE){var n=new r.RawSha256;n.update(e),e=n.digest()}var i=new Uint8Array(o.BLOCK_SIZE);return i.set(e),i}(this.secret),e=new Uint8Array(o.BLOCK_SIZE);e.set(t);for(var n=0;n<o.BLOCK_SIZE;n++)t[n]^=54,e[n]^=92;this.hash.update(t),this.outer.update(e);for(n=0;n<t.byteLength;n++)t[n]=0}},t}();e.Sha256=a},3541:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__assign:()=>r,__asyncDelegator:()=>w,__asyncGenerator:()=>k,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>d,__classPrivateFieldGet:()=>y,__classPrivateFieldSet:()=>E,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>m,__extends:()=>o,__generator:()=>u,__importDefault:()=>C,__importStar:()=>v,__makeTemplateObject:()=>_,__metadata:()=>l,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>f,__spreadArrays:()=>x,__values:()=>g});
            /*! *****************************************************************************
             Copyright (c) Microsoft Corporation.

             Permission to use, copy, modify, and/or distribute this software for any
             purpose with or without fee is hereby granted.

             THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
             REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
             AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
             INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
             LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
             OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
             PERFORMANCE OF THIS SOFTWARE.
             ***************************************************************************** */
            var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function a(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function m(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function x(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function k(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof b?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(t){d(r[0][3],t)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function d(t,e){t(e),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function v(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},21:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(7840).__exportStar(n(7787),e)},7787:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supportsZeroByteGCM=e.supportsSubtleCrypto=e.supportsSecureRandom=e.supportsWebCrypto=void 0;var i=n(7840),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(t){return"object"==typeof t&&"object"==typeof t.crypto&&"function"==typeof t.crypto.getRandomValues}function s(t){return t&&o.every((function(e){return"function"==typeof t[e]}))}e.supportsWebCrypto=function(t){return!(!r(t)||"object"!=typeof t.crypto.subtle)&&s(t.crypto.subtle)},e.supportsSecureRandom=r,e.supportsSubtleCrypto=s,e.supportsZeroByteGCM=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:if(!s(t))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,t.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return e=n.sent(),[4,t.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},e,new Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),[2,!1];case 5:return[2]}}))}))}},7840:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__assign:()=>r,__asyncDelegator:()=>w,__asyncGenerator:()=>k,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>d,__classPrivateFieldGet:()=>y,__classPrivateFieldSet:()=>E,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>m,__extends:()=>o,__generator:()=>u,__importDefault:()=>C,__importStar:()=>v,__makeTemplateObject:()=>_,__metadata:()=>l,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>f,__spreadArrays:()=>x,__values:()=>g});
            /*! *****************************************************************************
             Copyright (c) Microsoft Corporation.

             Permission to use, copy, modify, and/or distribute this software for any
             purpose with or without fee is hereby granted.

             THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
             REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
             AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
             INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
             LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
             OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
             PERFORMANCE OF THIS SOFTWARE.
             ***************************************************************************** */
            var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function a(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function u(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function m(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function x(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function k(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof b?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(t){d(r[0][3],t)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function d(t,e){t(e),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function v(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},1106:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertToBuffer=void 0;var i=n(2084),o="undefined"!=typeof Buffer&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:i.fromUtf8;e.convertToBuffer=function(t){return t instanceof Uint8Array?t:"string"==typeof t?o(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}},7658:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var i=n(1106);Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return i.convertToBuffer}});var o=n(4304);Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var r=n(2174);Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var s=n(1558);Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},4304:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0,e.isEmptyData=function(t){return"string"==typeof t?0===t.length:0===t.byteLength}},2174:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numToUint8=void 0,e.numToUint8=function(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},1558:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=void 0,e.uint32ArrayFrom=function(t){if(!Uint32Array.from){for(var e=new Uint32Array(t.length),n=0;n<t.length;)e[n]=t[n],n+=1;return e}return Uint32Array.from(t)}},6495:(t,e,n)=>{"use strict";n.r(e),n.d(e,{locateWindow:()=>o});const i={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}},2084:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fromUtf8:()=>i,toUtf8:()=>o});const i=t=>"function"==typeof TextEncoder?function(t){return(new TextEncoder).encode(t)}(t):(t=>{const e=[];for(let n=0,i=t.length;n<i;n++){const i=t.charCodeAt(n);if(i<128)e.push(i);else if(i<2048)e.push(i>>6|192,63&i|128);else if(n+1<t.length&&55296==(64512&i)&&56320==(64512&t.charCodeAt(n+1))){const o=65536+((1023&i)<<10)+(1023&t.charCodeAt(++n));e.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else e.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(e)})(t),o=t=>"function"==typeof TextDecoder?function(t){return new TextDecoder("utf-8").decode(t)}(t):(t=>{let e="";for(let n=0,i=t.length;n<i;n++){const i=t[n];if(i<128)e+=String.fromCharCode(i);else if(192<=i&&i<224){const o=t[++n];e+=String.fromCharCode((31&i)<<6|63&o)}else if(240<=i&&i<365){const o="%"+[i,t[++n],t[++n],t[++n]].map((t=>t.toString(16))).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((15&i)<<12|(63&t[++n])<<6|63&t[++n])}return e})(t)},9817:(t,e,n)=>{"use strict";t.exports=n(2358)},2358:(t,e,n)=>{"use strict";var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(3663),i.BufferWriter=n(2269),i.Reader=n(1137),i.BufferReader=n(7585),i.util=n(5526),i.rpc=n(7356),i.roots=n(16),i.configure=o,o()},1137:(t,e,n)=>{"use strict";t.exports=c;var i,o=n(5526),r=o.LongBits,s=o.utf8;function a(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function c(t){this.buf=t,this.pos=0,this.len=t.length}var l,d="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new c(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new c(t);throw Error("illegal buffer")},u=function(){return o.Buffer?function(t){return(c.create=function(t){return o.Buffer.isBuffer(t)?new i(t):d(t)})(t)}:d};function h(){var t=new r(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw a(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw a(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function m(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function g(){if(this.pos+8>this.len)throw a(this,8);return new r(m(this.buf,this.pos+=4),m(this.buf,this.pos+=4))}c.create=u(),c.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,c.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return l}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return m(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|m(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},c.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw a(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},c.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},c.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw a(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},c._configure=function(t){i=t,c.create=u(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(c.prototype,{int64:function(){return h.call(this)[e](!1)},uint64:function(){return h.call(this)[e](!0)},sint64:function(){return h.call(this).zzDecode()[e](!1)},fixed64:function(){return g.call(this)[e](!0)},sfixed64:function(){return g.call(this)[e](!1)}})}},7585:(t,e,n)=>{"use strict";t.exports=r;var i=n(1137);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(5526);function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},16:t=>{"use strict";t.exports={}},7356:(t,e,n)=>{"use strict";e.Service=n(8577)},8577:(t,e,n)=>{"use strict";t.exports=o;var i=n(5526);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var a=this;if(!s)return i.asPromise(t,a,e,n,o,r);if(a.rpcImpl)try{return a.rpcImpl(e,n[a.requestDelimited?"encodeDelimited":"encode"](r).finish(),(function(t,n){if(t)return a.emit("error",t,e),s(t);if(null!==n){if(!(n instanceof o))try{n=o[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return a.emit("error",t,e),s(t)}return a.emit("data",n,e),s(null,n)}a.end(!0)}))}catch(t){return a.emit("error",t,e),void setTimeout((function(){s(t)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2278:(t,e,n)=>{"use strict";t.exports=o;var i=n(5526);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/4294967296>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>4294967295&&(n=0,++i>4294967295&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t)){if(!i.Long)return o.fromNumber(parseInt(t,10));t=i.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var a=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},5526:function(t,e,n){"use strict";var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;++o)void 0!==t[i[o]]&&n||(t[i[o]]=e[i[o]]);return t}function r(t){function e(t,n){if(!(this instanceof e))return new e(t,n);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&o(this,n)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}i.asPromise=n(4537),i.base64=n(7419),i.EventEmitter=n(9211),i.float=n(945),i.inquire=n(7199),i.utf8=n(4997),i.pool=n(6662),i.LongBits=n(2278),i.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),i.global=i.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.isset=i.isSet=function(t,e){var n=t[e];return!(null==n||!t.hasOwnProperty(e))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var t=Object.keys(this),n=t.length-1;n>-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var t=i.Buffer;t?(i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,n){return new t(e,n)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},3663:(t,e,n)=>{"use strict";t.exports=u;var i,o=n(5526),r=o.LongBits,s=o.base64,a=o.utf8;function c(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function l(){}function d(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function u(){this.len=0,this.head=new c(l,0,0),this.tail=this.head,this.states=null}var h=function(){return o.Buffer?function(){return(u.create=function(){return new i})()}:function(){return new u}};function m(t,e,n){e[n]=255&t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function p(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function f(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}u.create=h(),u.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(u.alloc=o.pool(u.alloc,o.Array.prototype.subarray)),u.prototype._push=function(t,e,n){return this.tail=this.tail.next=new c(t,e,n),this.len+=e,this},g.prototype=Object.create(c.prototype),g.prototype.fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},u.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},u.prototype.int32=function(t){return t<0?this._push(p,10,r.fromNumber(t)):this.uint32(t)},u.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},u.prototype.uint64=function(t){var e=r.from(t);return this._push(p,e.length(),e)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(p,e.length(),e)},u.prototype.bool=function(t){return this._push(m,1,t?1:0)},u.prototype.fixed32=function(t){return this._push(f,4,t>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(t){var e=r.from(t);return this._push(f,4,e.lo)._push(f,4,e.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},u.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var x=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i<t.length;++i)e[n+i]=t[i]};u.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(m,1,0);if(o.isString(t)){var n=u.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(x,e,t)},u.prototype.string=function(t){var e=a.length(t);return e?this.uint32(e)._push(a.write,e,t):this._push(m,1,0)},u.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(l,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(l,0,0),this.len=0),this},u.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},u.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},u._configure=function(t){i=t,u.create=h(),i._configure()}},2269:(t,e,n)=>{"use strict";t.exports=r;var i=n(3663);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(5526);function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i<t.length;)e[n++]=t[i++]}},r.prototype.bytes=function(t){o.isString(t)&&(t=o._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()},6732:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t,e,n=null,i={}){super("cloud-services-internal-error: "+t),this.context=e,this.code=n,this.data=i,this.name="CKEditorError"}static fromPublicError(t){return new n(function(t){let e="cloud-services-error: "+t.message;return t.data&&(e+="\nError data: "+JSON.stringify(t.data)),t.explanation&&(e+="\nExplanation: "+t.explanation),t.action&&(e+="\nAction: "+t.action),t.traceId&&(e+="\nTraceId: "+t.traceId),t.code&&(e+="\nCode: "+t.code),e}(t),t)}}e.default=n},9073:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t,e){super(),this.name="CKEditorCloudServicesServerError",this.stack=void 0,this.message=t,this.code=e.code,this.traceId=e.traceId,this.data=e.data}static fromPublicError(t){return new n(function(t){let e="cloud-services-server-error: "+t.message;return t.explanation&&(e+="\nExplanation: "+t.explanation),t.action&&(e+="\nAction: "+t.action),t.traceId&&(e+="\nTraceId: "+t.traceId),t.code&&(e+="\nCode: "+t.code),e}(t),t)}}e.default=n},247:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const o=n(8410),r=n(6553),s=i(n(822)),a=i(n(3825)),c=i(n(5834)),l=i(n(4721)),d=i(n(4053)),u=i(n(5184)),h=i(n(3297)),m=i(n(3136)),g=i(n(6732)),p=i(n(6315)),f=i(n(2663)),x=i(n(3510));e._SERVICE=1;class b extends((0,r.EmitterMixin)()){constructor(t,e){if(super(),!t)throw new TypeError('Param "bundleVersion" must be provided.');this._id=null!=e?e:(0,o.v4)(),this._isConnected=!1,this._bundleVersion=t}getId(){return this._id}isConnected(){return this._isConnected}connect(t,e={buffers:[],types:[]},n){const i=new c.default(this.getId(),e.buffers,e.types,this._bundleVersion,n);return this._connect(t,i)}reconnect(t,e){if(this.isConnected())throw new g.default("Cannot reconnect to already connected service.",t);return this._connect(t,new d.default(this.getId(),e,this._bundleVersion))}disconnect(){this._isConnected&&(this._isConnected=!1,this._wsGateway&&(this.stopListening(this._wsGateway),this._wsGateway=void 0),this._channel&&(this.stopListening(this._channel),this._channel=void 0),this._connectedSessions&&(this._connectedSessions.disconnect(),this._connectedSessions=void 0),this.fire("disconnected"),this.stopListening())}async getDocumentDetails(){const t=new x.default(this.getId());if(!this._wsGateway)throw new p.default("Collaborative Editing",this);const n=await this._wsGateway._sendRequest(e._SERVICE,x.default.TYPE,s.default.encode(t));return s.default.decode(n,f.default)}async sendOperations(t,n,i){if(!t||!t.types||!t.types.length)throw new g.default("Cannot send empty update.",this._wsGateway);const o="number"==typeof n?n:parseInt(n);if(!Number.isInteger(o)||o<0)throw new g.default("Base version not provided.",this._wsGateway);const r=new l.default(this.getId(),t.buffers,t.types,o,[],i);if(!this._wsGateway||!this._isConnected)throw new p.default("Collaborative Editing",this);const a=await this._wsGateway._sendRequest(e._SERVICE,l.default.TYPE,s.default.encode(r));return s.default.decode(a,u.default)}async getConnectedSessions(){if(!this._isConnected)throw new p.default("Collaborative Editing",this);return this._connectedSessions||(this._connectedSessions=await a.default.getConnectedSessions(this._wsGateway,this._id,e._SERVICE)),this._connectedSessions}static getConnectedSessions(t,n){return a.default.getConnectedSessions(t,n,e._SERVICE)}async _connect(t,n){if(this.isConnected())return;if(t.state!==m.default.STATE_CONNECTED)throw new g.default("WebSocket Gateway is not connected.",t);this._wsGateway=t,this.stopListening(t,"change:state");const i=await t._sendRequest(e._SERVICE,n.constructor.TYPE,s.default.encode(n)),o=s.default.decode(i,h.default);return this.listenTo(t,"change:state",((t,e,n)=>this._onWsGatewayStateChange(n)),{priority:m.default._CHANGE_STATE_EVENT_PRIORITY}),this._connectToChannel(t,o.channel),this._isConnected=!0,this.fire("connected"),o}_connectToChannel(t,n){this._channel=t._getChannel(e._SERVICE,n),this.listenTo(this._channel,this._channel.getEventName(l.default.TYPE),((t,e)=>{const n=s.default.decode(e,l.default);this.fire("operationsReceived",n.baseVersion,n.data,n.metadata)}))}_onWsGatewayStateChange(t){t===m.default.STATE_DISCONNECTED&&this.disconnect()}}b._SERVICE=e._SERVICE,e.default=b},260:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229));class r extends o.default{static toJSON({createdAt:t,...e}){const n={...e};return(null==t?void 0:t.toISOString)&&(n.createdAt=t.toISOString()),n}static fromJSON({createdAt:t,...e}){const n={...e};return t&&(n.createdAt=new Date(t)),n}}e.default=r,r.DESCRIPTOR_NAME="OperationMetadataDescriptor",r.DESCRIPTOR={fields:{userId:{type:"string",id:1},type:{type:"string",id:2},createdAt:{type:"string",id:3}}}},2421:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{static prepareMetadataForOperations(t,e){if(!(t&&t.length&&e&&e.length))return[];const n=[];let i=0;for(const o of t)if(0!==o){if(!e[i])throw new Error("Missing metadata for a operation");n.push(e[i]),i++}else n.push(n[n.length-1]);return n}static removeUnnecessaryMetadata(t,e){if(!(t&&t.length&&e&&e.length))return[];const n=[];for(let i=0;i<t.length;i++)if(0!==t[i]){if(!e[i])throw new Error("Missing metadata for a operation");n.push(e[i])}return n}}},5834:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i,o=""){super(),this.id=t,this.buffers=e,this.types=n,this.bundleVersion=i,this.lastOperationId=o}toJSON(){return{id:this.id,buffers:this.buffers,types:this.types,bundleVersion:this.bundleVersion,lastOperationId:this.lastOperationId}}static fromJSON(t){return new r(t.id,t.buffers,t.types,t.bundleVersion,t.lastOperationId)}}e.default=r,r.TYPE="11",r.READABLE_TYPE_NAME="connectToDocument",r.DESCRIPTOR_NAME="CollaborativeEditingConnectMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},bundleVersion:{type:"string",id:2},buffers:{rule:"repeated",type:"bytes",id:3},types:{rule:"repeated",type:"uint32",id:4},lastOperationId:{type:"string",id:5}}}},4053:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n){super(),this.id=t,this.lastKnowVersion=e,this.bundleVersion=n}toJSON(){return{id:this.id,bundleVersion:this.bundleVersion,lastKnowVersion:this.lastKnowVersion}}static fromJSON(t){return new r(t.id,t.lastKnowVersion,t.bundleVersion)}}e.default=r,r.TYPE="12",r.READABLE_TYPE_NAME="reconnectToDocument",r.DESCRIPTOR_NAME="CollaborativeEditingReconnectMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},bundleVersion:{type:"string",id:2},lastKnowVersion:{type:"uint32",id:3}}}},4721:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(2421)),s=i(n(260));class a extends o.default{constructor(t,e,n,i,o=[],r=""){super(),this.id=t,this.buffers=e,this.types=n,this.baseVersion=i,this.metadata=o,this.lastOperationId=r}get data(){return{buffers:this.buffers,types:this.types,baseVersion:this.baseVersion,lastOperationId:this.lastOperationId}}toJSON(){return{id:this.id,buffers:this.buffers,types:this.types,baseVersion:this.baseVersion,metadata:r.default.removeUnnecessaryMetadata(this.types,this.metadata).map(s.default.toJSON),lastOperationId:this.lastOperationId}}static fromJSON(t){return new a(t.id,t.buffers,t.types,t.baseVersion,r.default.prepareMetadataForOperations(t.types,t.metadata).map(s.default.fromJSON),t.lastOperationId)}}e.default=a,a.TYPE="13",a.READABLE_TYPE_NAME="updateDocument",a.DESCRIPTOR_NAME="CollaborativeEditingUpdateMessage",a.DESCRIPTOR={fields:{id:{type:"string",id:1},baseVersion:{type:"uint32",id:2},buffers:{rule:"repeated",type:"bytes",id:3},types:{rule:"repeated",type:"uint32",id:4},metadata:{rule:"repeated",type:"OperationMetadataDescriptor",id:6},lastOperationId:{type:"string",id:7}}}},3510:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.documentId=t}get data(){return{documentId:this.documentId}}toJSON(){return{documentId:this.documentId}}static fromJSON(t){return new r(t.documentId)}}e.default=r,r.TYPE="14",r.READABLE_TYPE_NAME="getDocumentDetails",r.DESCRIPTOR_NAME="GetDocumentDetailsMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1},environmentId:{type:"string",id:2}}}},3297:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(2421)),s=i(n(260));class a extends o.default{constructor(t,e,n=[],i=[],o=0,r=[],s=null,a="",c="",l=null){super(),this.channel=t,this.version=e,this.buffers=n,this.types=i,this.offset=o,this.metadata=r,this.initData=s,this.sessionId=a,this.lastOperationId=c,this.sessionCreatedAt=l}get data(){return{buffers:this.buffers,types:this.types,baseVersion:this.version-this.types.length,lastOperationId:this.lastOperationId,sessionCreatedAt:this.sessionCreatedAt}}get wereChangesApplied(){var t;return!(null===(t=this.types)||void 0===t?void 0:t.length)&&null===this.initData}toJSON(){var t;return{channel:this.channel,version:this.version,sessionId:this.sessionId,buffers:this.buffers,types:this.types,offset:this.offset,metadata:r.default.removeUnnecessaryMetadata(this.types,this.metadata).map(s.default.toJSON),initData:null!==(t=this.initData)&&void 0!==t?t:"",isInitialized:"string"==typeof this.initData,lastOperationId:this.lastOperationId,sessionCreatedAt:this.sessionCreatedAt?this.sessionCreatedAt.toISOString():null}}static create(t){return new a(t.channel,t.version,t.buffers,t.types,t.offset,t.metadata,t.initData,t.sessionId,t.lastOperationId,t.sessionCreatedAt)}static fromJSON(t){var e;let n=null;return!0===t.isInitialized?n=null!==(e=t.initData)&&void 0!==e?e:"":"boolean"!=typeof t.isInitialized&&t.initData&&(n=t.initData),a.create({channel:t.channel,version:t.version,buffers:t.buffers,types:t.types,offset:t.offset,metadata:r.default.prepareMetadataForOperations(t.types,t.metadata).map(s.default.fromJSON),initData:n,sessionId:t.sessionId,lastOperationId:t.lastOperationId,sessionCreatedAt:t.sessionCreatedAt?new Date(t.sessionCreatedAt):null})}}e.default=a,a.DESCRIPTOR_NAME="CollaborativeEditingConnectResponse",a.DESCRIPTOR={fields:{channel:{type:"string",id:1},offset:{type:"uint32",id:2},version:{type:"uint32",id:3},buffers:{rule:"repeated",type:"bytes",id:4},types:{rule:"repeated",type:"uint32",id:5},metadata:{rule:"repeated",type:s.default.DESCRIPTOR_NAME,id:7},initData:{type:"string",id:8},isInitialized:{type:"bool",id:9},sessionId:{type:"string",id:10},lastOperationId:{type:"string",id:11},sessionCreatedAt:{type:"string",id:12}}}},5184:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(2421)),s=i(n(260));class a extends o.default{constructor(t,e=[],n=[],i=[],o="",r=null){super(),this.version=t,this.buffers=e,this.types=n,this.metadata=i,this.lastOperationId=o,this.lastOperationAcceptedAt=r}get data(){return{buffers:this.buffers,types:this.types,baseVersion:this.version-this.types.length,lastOperationId:this.lastOperationId,lastOperationAcceptedAt:this.lastOperationAcceptedAt}}get wereChangesApplied(){var t;return!(null===(t=this.types)||void 0===t?void 0:t.length)}toJSON(){return{version:this.version,buffers:this.buffers,types:this.types,metadata:r.default.removeUnnecessaryMetadata(this.types,this.metadata).map(s.default.toJSON),lastOperationId:this.lastOperationId,lastOperationAcceptedAt:this.lastOperationAcceptedAt instanceof Date?this.lastOperationAcceptedAt.toISOString():this.lastOperationAcceptedAt}}static fromJSON(t){return new a(t.version,t.buffers,t.types,r.default.prepareMetadataForOperations(t.types,t.metadata).map(s.default.fromJSON),t.lastOperationId,t.lastOperationAcceptedAt?new Date(t.lastOperationAcceptedAt):null)}static create(t){return new a(t.version,t.buffers,t.types,t.metadata,t.lastOperationId,t.lastOperationAcceptedAt?new Date(t.lastOperationAcceptedAt):null)}}e.default=a,a.DESCRIPTOR_NAME="CollaborativeEditingResponse",a.DESCRIPTOR={fields:{version:{type:"uint32",id:1},buffers:{rule:"repeated",type:"bytes",id:2},types:{rule:"repeated",type:"uint32",id:3},metadata:{rule:"repeated",type:"OperationMetadataDescriptor",id:5},lastOperationId:{type:"string",id:6},lastOperationAcceptedAt:{type:"string",id:7}}}},2663:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.lastDocumentSession=t,this.currentDocumentSession=e}get data(){var t,e,n,i,o;return{lastDocumentSessionId:null===(t=this.lastDocumentSession)||void 0===t?void 0:t.id,lastDocumentSessionOperationId:null===(e=this.lastDocumentSession)||void 0===e?void 0:e.lastOperationId,currentDocumentSessionId:null===(n=this.currentDocumentSession)||void 0===n?void 0:n.id,currentDocumentSessionVersion:null===(i=this.currentDocumentSession)||void 0===i?void 0:i.version,currentDocumentSessionOperationId:null===(o=this.currentDocumentSession)||void 0===o?void 0:o.lastOperationId}}toJSON(){var t,e,n,i,o;return{lastDocumentSessionId:null===(t=this.lastDocumentSession)||void 0===t?void 0:t.id,lastDocumentSessionOperationId:null===(e=this.lastDocumentSession)||void 0===e?void 0:e.lastOperationId,currentDocumentSessionId:null===(n=this.currentDocumentSession)||void 0===n?void 0:n.id,currentDocumentSessionVersion:null===(i=this.currentDocumentSession)||void 0===i?void 0:i.version,currentDocumentSessionOperationId:null===(o=this.currentDocumentSession)||void 0===o?void 0:o.lastOperationId}}static fromJSON(t){const e=t.lastDocumentSessionId?{id:t.lastDocumentSessionId,lastOperationId:t.lastDocumentSessionOperationId}:void 0,n=t.currentDocumentSessionId?{lastOperationId:t.currentDocumentSessionOperationId,version:t.currentDocumentSessionVersion,id:t.currentDocumentSessionId}:void 0;return new r(e,n)}}e.default=r,r.DESCRIPTOR_NAME="GetDocumentDetailsResponse",r.DESCRIPTOR={fields:{lastDocumentSessionId:{type:"string",id:1},lastDocumentSessionOperationId:{type:"string",id:2},currentDocumentSessionId:{type:"string",id:3},currentDocumentSessionVersion:{type:"uint32",id:4},currentDocumentSessionOperationId:{type:"string",id:5}}}},1740:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const a=n(6553),c=s(n(822)),l=s(n(8262)),d=s(n(6689)),u=s(n(7566)),h=s(n(1376)),m=s(n(7848)),g=s(n(5785)),p=s(n(5456)),f=s(n(673)),x=s(n(9725)),b=s(n(5254)),k=s(n(5049)),w=r(n(3136)),A=s(n(6732)),_=s(n(3825)),v=s(n(6315)),C=s(n(9073)),y=s(n(8576)),E=s(n(7228)),I=s(n(3822)),S=s(n(5516)),T=s(n(1663)),D=s(n(773));e._SERVICE=9;class M extends((0,a.EmitterMixin)()){constructor(t){super(),this._documentId=t,this._isConnected=!1}get isConnected(){return this._isConnected}async connect(t){if(this._isConnected)return;if(t.state!==w.WEB_SOCKET_GATEWAY_STATES.CONNECTED)throw new A.default("WebSocket Gateway is not connected.",t);const n=new u.default(this._documentId);this._wsGateway=t,this.stopListening(t,"change:state");const i=await t._sendRequest(e._SERVICE,u.default.TYPE,c.default.encode(n)),{channel:o,threads:r}=c.default.decode(i,h.default);return this.listenTo(t,"change:state",((t,e,n)=>this._onWsGatewayStateChange(n)),{priority:w.default._CHANGE_STATE_EVENT_PRIORITY}),this._connectToChannel(t,o),this._isConnected=!0,this.fire("connected"),r}disconnect(){this._isConnected&&(this._isConnected=!1,this._wsGateway&&(this.stopListening(this._wsGateway),this._wsGateway=void 0),this._channel&&(this.stopListening(this._channel),this._channel=void 0),this._connectedSessions&&(this._connectedSessions.disconnect(),this._connectedSessions=void 0),this.fire("disconnected"),this.stopListening())}async addComment(t,e,n,i){const o=new l.default(this._documentId,t,n,e,void 0,void 0,i),r=await this._sendRequest(l.default.TYPE,o);return c.default.decode(r,d.default)}async updateComment(t,e,n,i){const o=void 0!==i,r=new p.default(this._documentId,t,e,n,i,o);await this._sendRequest(p.default.TYPE,r)}async removeComment(t,e){const n=new m.default(this._documentId,t,e);await this._sendRequest(m.default.TYPE,n)}async removeCommentThread(t){const e=new g.default(this._documentId,t);await this._sendRequest(g.default.TYPE,e)}async addCommentThread(t){var e;const n=new E.default(this._documentId,t.commentThreadId,null===(e=t.comments)||void 0===e?void 0:e.map((e=>({...e,documentId:this._documentId,commentThreadId:t.commentThreadId}))),t.context,t.resolvedBy,t.createdAt,t.resolvedAt,t.deletedAt,t.attributes),i=await this._sendRequest(E.default.TYPE,n);return c.default.decode(i,y.default)}async resolveCommentThread(t){const e=new I.default(t,this._documentId),n=await this._sendRequest(I.default.TYPE,e);return c.default.decode(n,D.default)}async reopenCommentThread(t){const e=new S.default(t,this._documentId);await this._sendRequest(S.default.TYPE,e)}async updateCommentThread(t){const e=new T.default(t.commentThreadId,this._documentId,t.context,t.attributes,t.unlinkedAt);await this._sendRequest(T.default.TYPE,e)}async getCommentThread(t,e=1){const n=new f.default(t,this._documentId);try{const t=await this._sendRequest(f.default.TYPE,n),e=c.default.decode(t,x.default);return{commentThreadId:e.commentThreadId,comments:e.comments,attributes:e.attributes,context:e.context,resolvedAt:e.resolvedAt,resolvedBy:e.resolvedBy,deletedAt:e.deletedAt,unlinkedAt:e.unlinkedAt}}catch(n){if("CKEditorCloudServicesServerError"===n.name&&"404"===n.code&&e<5)return await(i=100*e,new Promise((t=>{setTimeout(t,i)}))),this.getCommentThread(t,e+1);if("CKEditorCloudServicesServerError"===n.name)throw n;throw C.default.fromPublicError(n)}var i}async getDocumentThreads(){const t=new b.default(this._documentId),e=await this._sendRequest(b.default.TYPE,t),{threads:n}=c.default.decode(e,k.default);return{threads:n}}async getConnectedSessions(){if(!this._isConnected)throw new v.default("Comments",this);return this._connectedSessions||(this._connectedSessions=await _.default.getConnectedSessions(this._wsGateway,this._documentId,e._SERVICE)),this._connectedSessions}_connectToChannel(t,e){this._channel=t._getChannel(M._SERVICE,e),this._channel&&(this.listenTo(this._channel,this._channel.getEventName(l.default.TYPE),((t,e)=>{const n=c.default.decode(e,l.default);this.fire("commentAdded",n)})),this.listenTo(this._channel,this._channel.getEventName(m.default.TYPE),((t,e)=>{const n=c.default.decode(e,m.default);this.fire("commentRemoved",n)})),this.listenTo(this._channel,this._channel.getEventName(p.default.TYPE),((t,e)=>{const n=c.default.decode(e,p.default);this.fire("commentUpdated",n)})),this.listenTo(this._channel,this._channel.getEventName(g.default.TYPE),((t,e)=>{const n=c.default.decode(e,g.default);this.fire("commentThreadRemoved",n)})),this.listenTo(this._channel,this._channel.getEventName(E.default.TYPE),((t,e)=>{const n=c.default.decode(e,E.default);this.fire("commentThreadAdded",n)})),this.listenTo(this._channel,this._channel.getEventName(T.default.TYPE),((t,e)=>{const n=c.default.decode(e,T.default);this.fire("commentThreadUpdated",n)})),this.listenTo(this._channel,this._channel.getEventName(I.default.TYPE),((t,e)=>{const n=c.default.decode(e,I.default);this.fire("commentThreadResolved",n)})),this.listenTo(this._channel,this._channel.getEventName(S.default.TYPE),((t,e)=>{const n=c.default.decode(e,S.default);this.fire("commentThreadReopened",n)})))}_onWsGatewayStateChange(t){t===w.WEB_SOCKET_GATEWAY_STATES.DISCONNECTED&&this.disconnect()}_sendRequest(t,n){if(!this._wsGateway||!this._isConnected)throw new v.default("Comments",this);return this._wsGateway._sendRequest(e._SERVICE,t,c.default.encode(n))}}M._SERVICE=e._SERVICE,e.default=M},3650:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229));class r extends o.default{static toJSON(t){var e;return{...t,createdAt:null===(e=t.createdAt)||void 0===e?void 0:e.toISOString(),attributes:t.attributes?JSON.stringify(t.attributes):null}}static fromJSON(t){return{...t,createdAt:new Date(t.createdAt),attributes:t.attributes?JSON.parse(t.attributes):null}}}e.default=r,r.DESCRIPTOR_NAME="CommentDescriptor",r.DESCRIPTOR={fields:{commentId:{id:1,type:"string"},commentThreadId:{id:2,type:"string"},userId:{id:3,type:"string"},content:{id:4,type:"string"},documentId:{id:5,type:"string"},createdAt:{id:6,type:"string"},attributes:{id:7,type:"string"}}}},6627:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229)),r=i(n(3650));class s extends o.default{static toJSON(t){var e,n,i,o,s;return{...t,createdAt:null===(e=t.createdAt)||void 0===e?void 0:e.toISOString(),deletedAt:null===(n=t.deletedAt)||void 0===n?void 0:n.toISOString(),resolvedAt:null===(i=t.resolvedAt)||void 0===i?void 0:i.toISOString(),attributes:t.attributes?JSON.stringify(t.attributes):null,context:t.context?JSON.stringify(t.context):t.context,comments:null===(o=t.comments)||void 0===o?void 0:o.map(r.default.toJSON),unlinkedAt:null===(s=t.unlinkedAt)||void 0===s?void 0:s.toISOString()}}static fromJSON(t){var e;return{...t,createdAt:t.createdAt?new Date(t.createdAt):void 0,deletedAt:t.deletedAt?new Date(t.deletedAt):void 0,resolvedAt:t.resolvedAt?new Date(t.resolvedAt):void 0,attributes:t.attributes?JSON.parse(t.attributes):null,context:t.context?JSON.parse(t.context):void 0,comments:null===(e=t.comments)||void 0===e?void 0:e.map(r.default.fromJSON),unlinkedAt:t.unlinkedAt?new Date(t.unlinkedAt):void 0}}}e.default=s,s.DESCRIPTOR_NAME="CommentsThreadDescriptor",s.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},comments:{type:"CommentDescriptor",rule:"repeated",id:2},resolvedAt:{type:"string",id:3},resolvedBy:{type:"string",id:4},context:{type:"string",id:5},createdAt:{type:"string",id:6},deletedAt:{type:"string",id:7},attributes:{type:"string",id:8},unlinkedAt:{type:"string",id:9}}}},8481:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229));class r extends o.default{static toJSON(t){var e;return{commentId:t.commentId,createdAt:null===(e=t.createdAt)||void 0===e?void 0:e.toISOString()}}static fromJSON(t){return{commentId:t.commentId,createdAt:new Date(t.createdAt)}}}e.default=r,r.DESCRIPTOR_NAME="CommentThreadAddedCommentDescriptor",r.DESCRIPTOR={fields:{commentId:{id:1,type:"string"},createdAt:{id:2,type:"string"}}}},8262:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(6627));class s extends o.default{constructor(t,e,n,i="",o,r="",s=null,a){super(),this.documentId=t,this.commentThreadId=e,this.content=n,this.commentId=i,this.userId=r,this.attributes=s,this.commentThread=a,this.createdAt=o?new Date(o):""}toJSON(){return{commentThreadId:this.commentThreadId,content:this.content,documentId:this.documentId,commentId:this.commentId,createdAt:this.createdAt instanceof Date?this.createdAt.toISOString():this.createdAt,userId:this.userId,attributes:JSON.stringify(this.attributes),commentThread:this.commentThread?r.default.toJSON(this.commentThread):void 0}}static fromJSON(t){return new s(t.documentId,t.commentThreadId,t.content,t.commentId?t.commentId:void 0,t.createdAt?new Date(t.createdAt):void 0,t.userId?t.userId:void 0,t.attributes?JSON.parse(t.attributes):{},t.commentThread?r.default.fromJSON(t.commentThread):void 0)}}e.default=s,s.TYPE="91",s.READABLE_TYPE_NAME="addComment",s.DESCRIPTOR_NAME="CommentsV2AddCommentMessage",s.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},content:{type:"string",id:2},documentId:{type:"string",id:3},commentId:{type:"string",id:4},createdAt:{type:"string",id:5},userId:{type:"string",id:6},attributes:{type:"string",id:7},commentThread:{type:"CommentsThreadDescriptor",id:8}}}},7228:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(3650));class s extends o.default{constructor(t,e,n=[],i,o=null,r=null,s=null,a=null,c=null){super(),this.documentId=t,this.commentThreadId=e,this.comments=n,this.context=i,this.resolvedBy=o,this.attributes=c,this.createdAt=r?new Date(r):"",this.resolvedAt=s?new Date(s):"",this.deletedAt=a?new Date(a):""}toJSON(){var t;return{commentThreadId:this.commentThreadId,context:this.context?JSON.stringify(this.context):this.context,documentId:this.documentId,resolvedBy:this.resolvedBy,resolvedAt:this.resolvedAt instanceof Date?this.resolvedAt.toISOString():this.resolvedAt,deletedAt:this.deletedAt instanceof Date?this.deletedAt.toISOString():this.deletedAt,createdAt:this.createdAt instanceof Date?this.createdAt.toISOString():this.createdAt,attributes:this.attributes?JSON.stringify(this.attributes):this.attributes,comments:null===(t=this.comments)||void 0===t?void 0:t.map((t=>r.default.toJSON(t)))}}static fromJSON(t){var e;return new s(t.documentId,t.commentThreadId,null===(e=t.comments)||void 0===e?void 0:e.map((e=>r.default.fromJSON({...e,documentId:t.documentId,commentThreadId:t.commentThreadId}))),t.context?JSON.parse(t.context):t.context,t.resolvedBy,t.createdAt?new Date(t.createdAt):void 0,t.resolvedAt?new Date(t.resolvedAt):void 0,t.deletedAt?new Date(t.deletedAt):void 0,t.attributes?JSON.parse(t.attributes):t.attributes)}}e.default=s,s.TYPE="140",s.READABLE_TYPE_NAME="addCommentThread",s.DESCRIPTOR_NAME="CommentsV2AddCommentThreadMessage",s.DESCRIPTOR={fields:{documentId:{type:"string",id:1},commentThreadId:{type:"string",id:2},context:{type:"string",id:3},createdAt:{type:"string",id:4},resolvedAt:{type:"string",id:5},resolvedBy:{type:"string",id:6},attributes:{type:"string",id:7},deletedAt:{type:"string",id:8},comments:{type:"CommentDescriptor",rule:"repeated",id:9}}}},5516:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.commentThreadId=t,this.documentId=e}toJSON(){return{documentId:this.documentId,commentThreadId:this.commentThreadId}}static fromJSON(t){return new r(t.commentThreadId,t.documentId)}}e.default=r,r.TYPE="141",r.READABLE_TYPE_NAME="reopenCommentThread",r.DESCRIPTOR_NAME="CommentsV2ReopenCommentThreadMessage",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},documentId:{type:"string",id:2}}}},3822:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i){super(),this.commentThreadId=t,this.documentId=e,this.resolvedBy=n,this.resolvedAt=i?new Date(i):void 0}toJSON(){var t;return{documentId:this.documentId,commentThreadId:this.commentThreadId,resolvedBy:this.resolvedBy,resolvedAt:null===(t=this.resolvedAt)||void 0===t?void 0:t.toISOString()}}static fromJSON(t){return new r(t.commentThreadId,t.documentId,t.resolvedBy,t.resolvedAt)}}e.default=r,r.TYPE="142",r.READABLE_TYPE_NAME="resolveCommentThread",r.DESCRIPTOR_NAME="CommentsV2ResolveCommentThreadMessage",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},documentId:{type:"string",id:2},resolvedBy:{type:"string",id:3},resolvedAt:{type:"string",id:4}}}},1663:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i=null,o=null){super(),this.commentThreadId=t,this.documentId=e,this.context=n,this.attributes=i,this.unlinkedAt=o?new Date(o):""}toJSON(){return{documentId:this.documentId,commentThreadId:this.commentThreadId,context:this.context?JSON.stringify(this.context):this.context,attributes:this.attributes?JSON.stringify(this.attributes):null,unlinkedAt:this.unlinkedAt instanceof Date?this.unlinkedAt.toISOString():this.unlinkedAt}}static fromJSON(t){return new r(t.commentThreadId,t.documentId,t.context?JSON.parse(t.context):t.context,t.attributes?JSON.parse(t.attributes):null,t.unlinkedAt?new Date(t.unlinkedAt):null)}}e.default=r,r.TYPE="143",r.READABLE_TYPE_NAME="updateCommentThread",r.DESCRIPTOR_NAME="CommentsV2UpdateCommentThreadMessage",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},documentId:{type:"string",id:2},context:{type:"string",id:3},attributes:{type:"string",id:4},unlinkedAt:{type:"string",id:5}}}},7566:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.documentId=t}toJSON(){return{documentId:this.documentId}}static fromJSON(t){return new r(t.documentId)}}e.default=r,r.TYPE="92",r.READABLE_TYPE_NAME="connectToComment",r.DESCRIPTOR_NAME="CommentsV2ConnectMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1}}}},673:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.commentThreadId=t,this.documentId=e}toJSON(){return{commentThreadId:this.commentThreadId,documentId:this.documentId}}static fromJSON(t){return new r(t.commentThreadId,t.documentId)}}e.default=r,r.TYPE="93",r.READABLE_TYPE_NAME="getComment",r.DESCRIPTOR_NAME="CommentsV2GetCommentThreadMessage",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},documentId:{type:"string",id:2}}}},5254:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.documentId=t}toJSON(){return{documentId:this.documentId}}static fromJSON(t){return new r(t.documentId)}}e.default=r,r.TYPE="94",r.READABLE_TYPE_NAME="getDocumentThreads",r.DESCRIPTOR_NAME="CommentsV2GetDocumentThreadsMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1}}}},7848:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n){super(),this.documentId=t,this.commentThreadId=e,this.commentId=n}toJSON(){return{documentId:this.documentId,commentThreadId:this.commentThreadId,commentId:this.commentId}}static fromJSON(t){return new r(t.documentId,t.commentThreadId,t.commentId)}}e.default=r,r.TYPE="95",r.READABLE_TYPE_NAME="removeComment",r.DESCRIPTOR_NAME="CommentsV2RemoveCommentMessage",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},commentId:{type:"string",id:2},documentId:{type:"string",id:3}}}},5785:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.documentId=t,this.commentThreadId=e}toJSON(){return{documentId:this.documentId,commentThreadId:this.commentThreadId}}static fromJSON(t){return new r(t.documentId,t.commentThreadId)}}e.default=r,r.TYPE="97",r.READABLE_TYPE_NAME="removeCommentThread",r.DESCRIPTOR_NAME="CommentsV2RemoveCommentThreadMessage",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},documentId:{type:"string",id:2}}}},5456:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(6627));class s extends o.default{constructor(t,e,n,i,o=null,r=!1,s){super(),this.documentId=t,this.commentThreadId=e,this.commentId=n,this.content=i,this.attributes=o,this.isAttributesUpdated=r,this.commentThread=s}toJSON(){return{documentId:this.documentId,commentThreadId:this.commentThreadId,commentId:this.commentId,content:this.content,attributes:this.attributes?JSON.stringify(this.attributes):null,isAttributesUpdated:this.isAttributesUpdated,commentThread:this.commentThread?r.default.toJSON(this.commentThread):void 0}}static fromJSON(t){return new s(t.documentId,t.commentThreadId,t.commentId,t.content,t.attributes?JSON.parse(t.attributes):null,t.isAttributesUpdated,t.commentThread?r.default.fromJSON(t.commentThread):void 0)}}e.default=s,s.TYPE="96",s.READABLE_TYPE_NAME="updateComment",s.DESCRIPTOR_NAME="CommentsV2UpdateCommentMessage",s.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},commentId:{type:"string",id:2},content:{type:"string",id:3},documentId:{type:"string",id:4},attributes:{type:"string",id:5},isAttributesUpdated:{type:"bool",id:6},commentThread:{type:"CommentsThreadDescriptor",id:7}}}},6689:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n){super(),this.commentThreadId=t,this.commentId=e,this.createdAt=new Date(n)}toJSON(){return{commentThreadId:this.commentThreadId,commentId:this.commentId,createdAt:this.createdAt.toISOString()}}static fromJSON(t){return new r(t.commentThreadId,t.commentId,t.createdAt)}}e.default=r,r.DESCRIPTOR_NAME="CommentsV2AddCommentResponse",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},commentId:{type:"string",id:2},createdAt:{type:"string",id:3}}}},8576:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(8481));class s extends o.default{constructor(t,e,n=[]){super(),this.commentThreadId=t,this.comments=n,this.createdAt=new Date(e)}toJSON(){return{commentThreadId:this.commentThreadId,createdAt:this.createdAt.toISOString(),comments:this.comments.map((t=>r.default.toJSON(t)))}}static fromJSON(t){return new s(t.commentThreadId,t.createdAt,t.comments.map((t=>r.default.fromJSON(t))))}}e.default=s,s.DESCRIPTOR_NAME="CommentsV2AddCommentThreadResponse",s.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},createdAt:{type:"string",id:2},comments:{type:"CommentThreadAddedCommentDescriptor",rule:"repeated",id:3}}}},773:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i){super(),this.commentThreadId=t,this.documentId=e,this.resolvedBy=n,this.resolvedAt=new Date(i)}toJSON(){return{commentThreadId:this.commentThreadId,documentId:this.documentId,resolvedBy:this.resolvedBy,resolvedAt:this.resolvedAt.toISOString()}}static fromJSON(t){return new r(t.commentThreadId,t.documentId,t.resolvedBy,t.resolvedAt)}}e.default=r,r.DESCRIPTOR_NAME="CommentsV2ResolveCommentThreadResponse",r.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},documentId:{type:"string",id:2},resolvedAt:{type:"string",id:3},resolvedBy:{type:"string",id:4}}}},1376:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(6627));class s extends o.default{constructor(t,e,n){super(),this.channel=t,this._threads=e,this._threadsV2=n,this.threads=(null==n?void 0:n.length)?n:e}toJSON(){var t,e;return{channel:this.channel,threads:null===(t=this._threads)||void 0===t?void 0:t.map((t=>JSON.stringify(t))),threadsV2:null===(e=this._threadsV2)||void 0===e?void 0:e.map(r.default.toJSON)}}static fromJSON(t){var e,n;return new s(t.channel,null===(e=t.threads)||void 0===e?void 0:e.map((t=>JSON.parse(t))),null===(n=t.threadsV2)||void 0===n?void 0:n.map(r.default.fromJSON))}}e.default=s,s.DESCRIPTOR_NAME="CommentsV2ConnectResponse",s.DESCRIPTOR={fields:{channel:{type:"string",id:1},threads:{type:"string",rule:"repeated",id:2},threadsV2:{type:"CommentsThreadDescriptor",rule:"repeated",id:3}}}},9725:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(3650));class s extends o.default{constructor(t,e,n,i,o,r,s,a,c,l){super(),this.commentThreadId=t,this._comments=e,this._commentsV2=n,this.resolvedBy=o,this.comments=(null==n?void 0:n.length)?n:e,this.createdAt=s?new Date(s):void 0,this.deletedAt="string"==typeof a?new Date(a):a,this.resolvedAt="string"==typeof c?new Date(c):c,this.unlinkedAt="string"==typeof l?new Date(l):l,this.attributes="string"==typeof i?JSON.parse(i):i,this.context="string"==typeof r?JSON.parse(r):r}toJSON(){var t,e,n,i,o,s;return{commentThreadId:this.commentThreadId,comments:null===(t=this._comments)||void 0===t?void 0:t.map((t=>JSON.stringify(t))),commentsV2:null===(e=this._commentsV2)||void 0===e?void 0:e.map(r.default.toJSON),attributes:this.attributes?JSON.stringify(this.attributes):this.attributes,context:this.context?JSON.stringify(this.context):this.context,resolvedBy:this.resolvedBy,createdAt:null===(n=this.createdAt)||void 0===n?void 0:n.toISOString(),deletedAt:null===(i=this.deletedAt)||void 0===i?void 0:i.toISOString(),resolvedAt:null===(o=this.resolvedAt)||void 0===o?void 0:o.toISOString(),unlinkedAt:null===(s=this.unlinkedAt)||void 0===s?void 0:s.toISOString()}}static fromJSON(t){var e,n;return new s(t.commentThreadId,null===(e=t.comments)||void 0===e?void 0:e.map((t=>function(t){const e=JSON.parse(t);return{...e,createdAt:new Date(e.createdAt)}}(t))),null===(n=t.commentsV2)||void 0===n?void 0:n.map(r.default.fromJSON),t.attributes?JSON.parse(t.attributes):t.attributes,t.resolvedBy,t.context?JSON.parse(t.context):t.context,t.createdAt,t.deletedAt,t.resolvedAt,t.unlinkedAt)}}e.default=s,s.DESCRIPTOR_NAME="CommentsV2GetCommentThreadResponse",s.DESCRIPTOR={fields:{commentThreadId:{type:"string",id:1},comments:{type:"string",rule:"repeated",id:2},commentsV2:{type:"CommentDescriptor",rule:"repeated",id:3},resolvedAt:{type:"string",id:4},resolvedBy:{type:"string",id:5},context:{type:"string",id:6},createdAt:{type:"string",id:7},deletedAt:{type:"string",id:8},attributes:{type:"string",id:9},unlinkedAt:{type:"string",id:10}}}},5049:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(6627));class s extends o.default{constructor(t,e){super(),this._threads=t,this._threadsV2=e,this.threads=(null==e?void 0:e.length)?e:t}toJSON(){var t,e;return{threads:null===(t=this._threads)||void 0===t?void 0:t.map((t=>JSON.stringify(t))),threadsV2:null===(e=this._threadsV2)||void 0===e?void 0:e.map(r.default.toJSON)}}static fromJSON(t){var e,n;return new s(null===(e=t.threads)||void 0===e?void 0:e.map((t=>function(t){var e;const n=JSON.parse(t),i={...n};return n.comments&&(i.comments=null===(e=n.comments)||void 0===e?void 0:e.map((t=>({...t,createdAt:new Date(t.createdAt)})))),i}(t))),null===(n=t.threadsV2)||void 0===n?void 0:n.map(r.default.fromJSON))}}e.default=s,s.DESCRIPTOR_NAME="CommentsV2GetDocumentThreadsResponse",s.DESCRIPTOR={fields:{threads:{type:"string",rule:"repeated",id:1},threadsV2:{type:"CommentsThreadDescriptor",rule:"repeated",id:2}}}},6981:(t,e,n)=>{var i,o,r,s;s=function(t){"use strict";var e=t.Reader,n=t.Writer,i=t.util,o=t.roots.default||(t.roots.default={});return o.OperationMetadataDescriptor=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.userId="",r.prototype.type="",r.prototype.createdAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.userId&&Object.hasOwnProperty.call(t,"userId")&&e.uint32(10).string(t.userId),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(18).string(t.type),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(26).string(t.createdAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.OperationMetadataDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.userId=t.string();break;case 2:r.type=t.string();break;case 3:r.createdAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.userId&&t.hasOwnProperty("userId")&&!i.isString(t.userId)?"userId: string expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isString(t.type)?"type: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null},r.fromObject=function(t){if(t instanceof o.OperationMetadataDescriptor)return t;var e=new o.OperationMetadataDescriptor;return null!=t.userId&&(e.userId=String(t.userId)),null!=t.type&&(e.type=String(t.type)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.userId="",n.type="",n.createdAt=""),null!=t.userId&&t.hasOwnProperty("userId")&&(n.userId=t.userId),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/OperationMetadataDescriptor"},r}(),o.CollaborativeEditingConnectMessage=function(){function r(t){if(this.buffers=[],this.types=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.bundleVersion="",r.prototype.buffers=i.emptyArray,r.prototype.types=i.emptyArray,r.prototype.lastOperationId="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.bundleVersion&&Object.hasOwnProperty.call(t,"bundleVersion")&&e.uint32(18).string(t.bundleVersion),null!=t.buffers&&t.buffers.length)for(var i=0;i<t.buffers.length;++i)e.uint32(26).bytes(t.buffers[i]);if(null!=t.types&&t.types.length){for(e.uint32(34).fork(),i=0;i<t.types.length;++i)e.uint32(t.types[i]);e.ldelim()}return null!=t.lastOperationId&&Object.hasOwnProperty.call(t,"lastOperationId")&&e.uint32(42).string(t.lastOperationId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CollaborativeEditingConnectMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.bundleVersion=t.string();break;case 3:r.buffers&&r.buffers.length||(r.buffers=[]),r.buffers.push(t.bytes());break;case 4:if(r.types&&r.types.length||(r.types=[]),2==(7&s))for(var a=t.uint32()+t.pos;t.pos<a;)r.types.push(t.uint32());else r.types.push(t.uint32());break;case 5:r.lastOperationId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id))return"id: string expected";if(null!=t.bundleVersion&&t.hasOwnProperty("bundleVersion")&&!i.isString(t.bundleVersion))return"bundleVersion: string expected";if(null!=t.buffers&&t.hasOwnProperty("buffers")){if(!Array.isArray(t.buffers))return"buffers: array expected";for(var e=0;e<t.buffers.length;++e)if(!(t.buffers[e]&&"number"==typeof t.buffers[e].length||i.isString(t.buffers[e])))return"buffers: buffer[] expected"}if(null!=t.types&&t.hasOwnProperty("types")){if(!Array.isArray(t.types))return"types: array expected";for(e=0;e<t.types.length;++e)if(!i.isInteger(t.types[e]))return"types: integer[] expected"}return null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&!i.isString(t.lastOperationId)?"lastOperationId: string expected":null},r.fromObject=function(t){if(t instanceof o.CollaborativeEditingConnectMessage)return t;var e=new o.CollaborativeEditingConnectMessage;if(null!=t.id&&(e.id=String(t.id)),null!=t.bundleVersion&&(e.bundleVersion=String(t.bundleVersion)),t.buffers){if(!Array.isArray(t.buffers))throw TypeError(".CollaborativeEditingConnectMessage.buffers: array expected");e.buffers=[];for(var n=0;n<t.buffers.length;++n)"string"==typeof t.buffers[n]?i.base64.decode(t.buffers[n],e.buffers[n]=i.newBuffer(i.base64.length(t.buffers[n])),0):t.buffers[n].length>=0&&(e.buffers[n]=t.buffers[n])}if(t.types){if(!Array.isArray(t.types))throw TypeError(".CollaborativeEditingConnectMessage.types: array expected");for(e.types=[],n=0;n<t.types.length;++n)e.types[n]=t.types[n]>>>0}return null!=t.lastOperationId&&(e.lastOperationId=String(t.lastOperationId)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.buffers=[],n.types=[]),e.defaults&&(n.id="",n.bundleVersion="",n.lastOperationId=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.bundleVersion&&t.hasOwnProperty("bundleVersion")&&(n.bundleVersion=t.bundleVersion),t.buffers&&t.buffers.length){n.buffers=[];for(var o=0;o<t.buffers.length;++o)n.buffers[o]=e.bytes===String?i.base64.encode(t.buffers[o],0,t.buffers[o].length):e.bytes===Array?Array.prototype.slice.call(t.buffers[o]):t.buffers[o]}if(t.types&&t.types.length)for(n.types=[],o=0;o<t.types.length;++o)n.types[o]=t.types[o];return null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&(n.lastOperationId=t.lastOperationId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CollaborativeEditingConnectMessage"},r}(),o.CollaborativeEditingReconnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.bundleVersion="",r.prototype.lastKnowVersion=0,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.bundleVersion&&Object.hasOwnProperty.call(t,"bundleVersion")&&e.uint32(18).string(t.bundleVersion),null!=t.lastKnowVersion&&Object.hasOwnProperty.call(t,"lastKnowVersion")&&e.uint32(24).uint32(t.lastKnowVersion),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CollaborativeEditingReconnectMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.bundleVersion=t.string();break;case 3:r.lastKnowVersion=t.uint32();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.bundleVersion&&t.hasOwnProperty("bundleVersion")&&!i.isString(t.bundleVersion)?"bundleVersion: string expected":null!=t.lastKnowVersion&&t.hasOwnProperty("lastKnowVersion")&&!i.isInteger(t.lastKnowVersion)?"lastKnowVersion: integer expected":null},r.fromObject=function(t){if(t instanceof o.CollaborativeEditingReconnectMessage)return t;var e=new o.CollaborativeEditingReconnectMessage;return null!=t.id&&(e.id=String(t.id)),null!=t.bundleVersion&&(e.bundleVersion=String(t.bundleVersion)),null!=t.lastKnowVersion&&(e.lastKnowVersion=t.lastKnowVersion>>>0),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.bundleVersion="",n.lastKnowVersion=0),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.bundleVersion&&t.hasOwnProperty("bundleVersion")&&(n.bundleVersion=t.bundleVersion),null!=t.lastKnowVersion&&t.hasOwnProperty("lastKnowVersion")&&(n.lastKnowVersion=t.lastKnowVersion),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CollaborativeEditingReconnectMessage"},r}(),o.CollaborativeEditingUpdateMessage=function(){function r(t){if(this.buffers=[],this.types=[],this.metadata=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.baseVersion=0,r.prototype.buffers=i.emptyArray,r.prototype.types=i.emptyArray,r.prototype.metadata=i.emptyArray,r.prototype.lastOperationId="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.baseVersion&&Object.hasOwnProperty.call(t,"baseVersion")&&e.uint32(16).uint32(t.baseVersion),null!=t.buffers&&t.buffers.length)for(var i=0;i<t.buffers.length;++i)e.uint32(26).bytes(t.buffers[i]);if(null!=t.types&&t.types.length){for(e.uint32(34).fork(),i=0;i<t.types.length;++i)e.uint32(t.types[i]);e.ldelim()}if(null!=t.metadata&&t.metadata.length)for(i=0;i<t.metadata.length;++i)o.OperationMetadataDescriptor.encode(t.metadata[i],e.uint32(50).fork()).ldelim();return null!=t.lastOperationId&&Object.hasOwnProperty.call(t,"lastOperationId")&&e.uint32(58).string(t.lastOperationId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CollaborativeEditingUpdateMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.baseVersion=t.uint32();break;case 3:r.buffers&&r.buffers.length||(r.buffers=[]),r.buffers.push(t.bytes());break;case 4:if(r.types&&r.types.length||(r.types=[]),2==(7&s))for(var a=t.uint32()+t.pos;t.pos<a;)r.types.push(t.uint32());else r.types.push(t.uint32());break;case 6:r.metadata&&r.metadata.length||(r.metadata=[]),r.metadata.push(o.OperationMetadataDescriptor.decode(t,t.uint32()));break;case 7:r.lastOperationId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id))return"id: string expected";if(null!=t.baseVersion&&t.hasOwnProperty("baseVersion")&&!i.isInteger(t.baseVersion))return"baseVersion: integer expected";if(null!=t.buffers&&t.hasOwnProperty("buffers")){if(!Array.isArray(t.buffers))return"buffers: array expected";for(var e=0;e<t.buffers.length;++e)if(!(t.buffers[e]&&"number"==typeof t.buffers[e].length||i.isString(t.buffers[e])))return"buffers: buffer[] expected"}if(null!=t.types&&t.hasOwnProperty("types")){if(!Array.isArray(t.types))return"types: array expected";for(e=0;e<t.types.length;++e)if(!i.isInteger(t.types[e]))return"types: integer[] expected"}if(null!=t.metadata&&t.hasOwnProperty("metadata")){if(!Array.isArray(t.metadata))return"metadata: array expected";for(e=0;e<t.metadata.length;++e){var n=o.OperationMetadataDescriptor.verify(t.metadata[e]);if(n)return"metadata."+n}}return null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&!i.isString(t.lastOperationId)?"lastOperationId: string expected":null},r.fromObject=function(t){if(t instanceof o.CollaborativeEditingUpdateMessage)return t;var e=new o.CollaborativeEditingUpdateMessage;if(null!=t.id&&(e.id=String(t.id)),null!=t.baseVersion&&(e.baseVersion=t.baseVersion>>>0),t.buffers){if(!Array.isArray(t.buffers))throw TypeError(".CollaborativeEditingUpdateMessage.buffers: array expected");e.buffers=[];for(var n=0;n<t.buffers.length;++n)"string"==typeof t.buffers[n]?i.base64.decode(t.buffers[n],e.buffers[n]=i.newBuffer(i.base64.length(t.buffers[n])),0):t.buffers[n].length>=0&&(e.buffers[n]=t.buffers[n])}if(t.types){if(!Array.isArray(t.types))throw TypeError(".CollaborativeEditingUpdateMessage.types: array expected");for(e.types=[],n=0;n<t.types.length;++n)e.types[n]=t.types[n]>>>0}if(t.metadata){if(!Array.isArray(t.metadata))throw TypeError(".CollaborativeEditingUpdateMessage.metadata: array expected");for(e.metadata=[],n=0;n<t.metadata.length;++n){if("object"!=typeof t.metadata[n])throw TypeError(".CollaborativeEditingUpdateMessage.metadata: object expected");e.metadata[n]=o.OperationMetadataDescriptor.fromObject(t.metadata[n])}}return null!=t.lastOperationId&&(e.lastOperationId=String(t.lastOperationId)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.buffers=[],n.types=[],n.metadata=[]),e.defaults&&(n.id="",n.baseVersion=0,n.lastOperationId=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.baseVersion&&t.hasOwnProperty("baseVersion")&&(n.baseVersion=t.baseVersion),t.buffers&&t.buffers.length){n.buffers=[];for(var r=0;r<t.buffers.length;++r)n.buffers[r]=e.bytes===String?i.base64.encode(t.buffers[r],0,t.buffers[r].length):e.bytes===Array?Array.prototype.slice.call(t.buffers[r]):t.buffers[r]}if(t.types&&t.types.length)for(n.types=[],r=0;r<t.types.length;++r)n.types[r]=t.types[r];if(t.metadata&&t.metadata.length)for(n.metadata=[],r=0;r<t.metadata.length;++r)n.metadata[r]=o.OperationMetadataDescriptor.toObject(t.metadata[r],e);return null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&(n.lastOperationId=t.lastOperationId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CollaborativeEditingUpdateMessage"},r}(),o.GetDocumentDetailsMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.prototype.environmentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),null!=t.environmentId&&Object.hasOwnProperty.call(t,"environmentId")&&e.uint32(18).string(t.environmentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.GetDocumentDetailsMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.documentId=t.string();break;case 2:r.environmentId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.environmentId&&t.hasOwnProperty("environmentId")&&!i.isString(t.environmentId)?"environmentId: string expected":null},r.fromObject=function(t){if(t instanceof o.GetDocumentDetailsMessage)return t;var e=new o.GetDocumentDetailsMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.environmentId&&(e.environmentId=String(t.environmentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId="",n.environmentId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.environmentId&&t.hasOwnProperty("environmentId")&&(n.environmentId=t.environmentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/GetDocumentDetailsMessage"},r}(),o.CollaborativeEditingConnectResponse=function(){function r(t){if(this.buffers=[],this.types=[],this.metadata=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.channel="",r.prototype.offset=0,r.prototype.version=0,r.prototype.buffers=i.emptyArray,r.prototype.types=i.emptyArray,r.prototype.metadata=i.emptyArray,r.prototype.initData="",r.prototype.isInitialized=!1,r.prototype.sessionId="",r.prototype.lastOperationId="",r.prototype.sessionCreatedAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.channel&&Object.hasOwnProperty.call(t,"channel")&&e.uint32(10).string(t.channel),null!=t.offset&&Object.hasOwnProperty.call(t,"offset")&&e.uint32(16).uint32(t.offset),null!=t.version&&Object.hasOwnProperty.call(t,"version")&&e.uint32(24).uint32(t.version),null!=t.buffers&&t.buffers.length)for(var i=0;i<t.buffers.length;++i)e.uint32(34).bytes(t.buffers[i]);if(null!=t.types&&t.types.length){for(e.uint32(42).fork(),i=0;i<t.types.length;++i)e.uint32(t.types[i]);e.ldelim()}if(null!=t.metadata&&t.metadata.length)for(i=0;i<t.metadata.length;++i)o.OperationMetadataDescriptor.encode(t.metadata[i],e.uint32(58).fork()).ldelim();return null!=t.initData&&Object.hasOwnProperty.call(t,"initData")&&e.uint32(66).string(t.initData),null!=t.isInitialized&&Object.hasOwnProperty.call(t,"isInitialized")&&e.uint32(72).bool(t.isInitialized),null!=t.sessionId&&Object.hasOwnProperty.call(t,"sessionId")&&e.uint32(82).string(t.sessionId),null!=t.lastOperationId&&Object.hasOwnProperty.call(t,"lastOperationId")&&e.uint32(90).string(t.lastOperationId),null!=t.sessionCreatedAt&&Object.hasOwnProperty.call(t,"sessionCreatedAt")&&e.uint32(98).string(t.sessionCreatedAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CollaborativeEditingConnectResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.channel=t.string();break;case 2:r.offset=t.uint32();break;case 3:r.version=t.uint32();break;case 4:r.buffers&&r.buffers.length||(r.buffers=[]),r.buffers.push(t.bytes());break;case 5:if(r.types&&r.types.length||(r.types=[]),2==(7&s))for(var a=t.uint32()+t.pos;t.pos<a;)r.types.push(t.uint32());else r.types.push(t.uint32());break;case 7:r.metadata&&r.metadata.length||(r.metadata=[]),r.metadata.push(o.OperationMetadataDescriptor.decode(t,t.uint32()));break;case 8:r.initData=t.string();break;case 9:r.isInitialized=t.bool();break;case 10:r.sessionId=t.string();break;case 11:r.lastOperationId=t.string();break;case 12:r.sessionCreatedAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.channel&&t.hasOwnProperty("channel")&&!i.isString(t.channel))return"channel: string expected";if(null!=t.offset&&t.hasOwnProperty("offset")&&!i.isInteger(t.offset))return"offset: integer expected";if(null!=t.version&&t.hasOwnProperty("version")&&!i.isInteger(t.version))return"version: integer expected";if(null!=t.buffers&&t.hasOwnProperty("buffers")){if(!Array.isArray(t.buffers))return"buffers: array expected";for(var e=0;e<t.buffers.length;++e)if(!(t.buffers[e]&&"number"==typeof t.buffers[e].length||i.isString(t.buffers[e])))return"buffers: buffer[] expected"}if(null!=t.types&&t.hasOwnProperty("types")){if(!Array.isArray(t.types))return"types: array expected";for(e=0;e<t.types.length;++e)if(!i.isInteger(t.types[e]))return"types: integer[] expected"}if(null!=t.metadata&&t.hasOwnProperty("metadata")){if(!Array.isArray(t.metadata))return"metadata: array expected";for(e=0;e<t.metadata.length;++e){var n=o.OperationMetadataDescriptor.verify(t.metadata[e]);if(n)return"metadata."+n}}return null!=t.initData&&t.hasOwnProperty("initData")&&!i.isString(t.initData)?"initData: string expected":null!=t.isInitialized&&t.hasOwnProperty("isInitialized")&&"boolean"!=typeof t.isInitialized?"isInitialized: boolean expected":null!=t.sessionId&&t.hasOwnProperty("sessionId")&&!i.isString(t.sessionId)?"sessionId: string expected":null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&!i.isString(t.lastOperationId)?"lastOperationId: string expected":null!=t.sessionCreatedAt&&t.hasOwnProperty("sessionCreatedAt")&&!i.isString(t.sessionCreatedAt)?"sessionCreatedAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CollaborativeEditingConnectResponse)return t;var e=new o.CollaborativeEditingConnectResponse;if(null!=t.channel&&(e.channel=String(t.channel)),null!=t.offset&&(e.offset=t.offset>>>0),null!=t.version&&(e.version=t.version>>>0),t.buffers){if(!Array.isArray(t.buffers))throw TypeError(".CollaborativeEditingConnectResponse.buffers: array expected");e.buffers=[];for(var n=0;n<t.buffers.length;++n)"string"==typeof t.buffers[n]?i.base64.decode(t.buffers[n],e.buffers[n]=i.newBuffer(i.base64.length(t.buffers[n])),0):t.buffers[n].length>=0&&(e.buffers[n]=t.buffers[n])}if(t.types){if(!Array.isArray(t.types))throw TypeError(".CollaborativeEditingConnectResponse.types: array expected");for(e.types=[],n=0;n<t.types.length;++n)e.types[n]=t.types[n]>>>0}if(t.metadata){if(!Array.isArray(t.metadata))throw TypeError(".CollaborativeEditingConnectResponse.metadata: array expected");for(e.metadata=[],n=0;n<t.metadata.length;++n){if("object"!=typeof t.metadata[n])throw TypeError(".CollaborativeEditingConnectResponse.metadata: object expected");e.metadata[n]=o.OperationMetadataDescriptor.fromObject(t.metadata[n])}}return null!=t.initData&&(e.initData=String(t.initData)),null!=t.isInitialized&&(e.isInitialized=Boolean(t.isInitialized)),null!=t.sessionId&&(e.sessionId=String(t.sessionId)),null!=t.lastOperationId&&(e.lastOperationId=String(t.lastOperationId)),null!=t.sessionCreatedAt&&(e.sessionCreatedAt=String(t.sessionCreatedAt)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.buffers=[],n.types=[],n.metadata=[]),e.defaults&&(n.channel="",n.offset=0,n.version=0,n.initData="",n.isInitialized=!1,n.sessionId="",n.lastOperationId="",n.sessionCreatedAt=""),null!=t.channel&&t.hasOwnProperty("channel")&&(n.channel=t.channel),null!=t.offset&&t.hasOwnProperty("offset")&&(n.offset=t.offset),null!=t.version&&t.hasOwnProperty("version")&&(n.version=t.version),t.buffers&&t.buffers.length){n.buffers=[];for(var r=0;r<t.buffers.length;++r)n.buffers[r]=e.bytes===String?i.base64.encode(t.buffers[r],0,t.buffers[r].length):e.bytes===Array?Array.prototype.slice.call(t.buffers[r]):t.buffers[r]}if(t.types&&t.types.length)for(n.types=[],r=0;r<t.types.length;++r)n.types[r]=t.types[r];if(t.metadata&&t.metadata.length)for(n.metadata=[],r=0;r<t.metadata.length;++r)n.metadata[r]=o.OperationMetadataDescriptor.toObject(t.metadata[r],e);return null!=t.initData&&t.hasOwnProperty("initData")&&(n.initData=t.initData),null!=t.isInitialized&&t.hasOwnProperty("isInitialized")&&(n.isInitialized=t.isInitialized),null!=t.sessionId&&t.hasOwnProperty("sessionId")&&(n.sessionId=t.sessionId),null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&(n.lastOperationId=t.lastOperationId),null!=t.sessionCreatedAt&&t.hasOwnProperty("sessionCreatedAt")&&(n.sessionCreatedAt=t.sessionCreatedAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CollaborativeEditingConnectResponse"},r}(),o.CollaborativeEditingResponse=function(){function r(t){if(this.buffers=[],this.types=[],this.metadata=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.version=0,r.prototype.buffers=i.emptyArray,r.prototype.types=i.emptyArray,r.prototype.metadata=i.emptyArray,r.prototype.lastOperationId="",r.prototype.lastOperationAcceptedAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.version&&Object.hasOwnProperty.call(t,"version")&&e.uint32(8).uint32(t.version),null!=t.buffers&&t.buffers.length)for(var i=0;i<t.buffers.length;++i)e.uint32(18).bytes(t.buffers[i]);if(null!=t.types&&t.types.length){for(e.uint32(26).fork(),i=0;i<t.types.length;++i)e.uint32(t.types[i]);e.ldelim()}if(null!=t.metadata&&t.metadata.length)for(i=0;i<t.metadata.length;++i)o.OperationMetadataDescriptor.encode(t.metadata[i],e.uint32(42).fork()).ldelim();return null!=t.lastOperationId&&Object.hasOwnProperty.call(t,"lastOperationId")&&e.uint32(50).string(t.lastOperationId),null!=t.lastOperationAcceptedAt&&Object.hasOwnProperty.call(t,"lastOperationAcceptedAt")&&e.uint32(58).string(t.lastOperationAcceptedAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CollaborativeEditingResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.version=t.uint32();break;case 2:r.buffers&&r.buffers.length||(r.buffers=[]),r.buffers.push(t.bytes());break;case 3:if(r.types&&r.types.length||(r.types=[]),2==(7&s))for(var a=t.uint32()+t.pos;t.pos<a;)r.types.push(t.uint32());else r.types.push(t.uint32());break;case 5:r.metadata&&r.metadata.length||(r.metadata=[]),r.metadata.push(o.OperationMetadataDescriptor.decode(t,t.uint32()));break;case 6:r.lastOperationId=t.string();break;case 7:r.lastOperationAcceptedAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.version&&t.hasOwnProperty("version")&&!i.isInteger(t.version))return"version: integer expected";if(null!=t.buffers&&t.hasOwnProperty("buffers")){if(!Array.isArray(t.buffers))return"buffers: array expected";for(var e=0;e<t.buffers.length;++e)if(!(t.buffers[e]&&"number"==typeof t.buffers[e].length||i.isString(t.buffers[e])))return"buffers: buffer[] expected"}if(null!=t.types&&t.hasOwnProperty("types")){if(!Array.isArray(t.types))return"types: array expected";for(e=0;e<t.types.length;++e)if(!i.isInteger(t.types[e]))return"types: integer[] expected"}if(null!=t.metadata&&t.hasOwnProperty("metadata")){if(!Array.isArray(t.metadata))return"metadata: array expected";for(e=0;e<t.metadata.length;++e){var n=o.OperationMetadataDescriptor.verify(t.metadata[e]);if(n)return"metadata."+n}}return null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&!i.isString(t.lastOperationId)?"lastOperationId: string expected":null!=t.lastOperationAcceptedAt&&t.hasOwnProperty("lastOperationAcceptedAt")&&!i.isString(t.lastOperationAcceptedAt)?"lastOperationAcceptedAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CollaborativeEditingResponse)return t;var e=new o.CollaborativeEditingResponse;if(null!=t.version&&(e.version=t.version>>>0),t.buffers){if(!Array.isArray(t.buffers))throw TypeError(".CollaborativeEditingResponse.buffers: array expected");e.buffers=[];for(var n=0;n<t.buffers.length;++n)"string"==typeof t.buffers[n]?i.base64.decode(t.buffers[n],e.buffers[n]=i.newBuffer(i.base64.length(t.buffers[n])),0):t.buffers[n].length>=0&&(e.buffers[n]=t.buffers[n])}if(t.types){if(!Array.isArray(t.types))throw TypeError(".CollaborativeEditingResponse.types: array expected");for(e.types=[],n=0;n<t.types.length;++n)e.types[n]=t.types[n]>>>0}if(t.metadata){if(!Array.isArray(t.metadata))throw TypeError(".CollaborativeEditingResponse.metadata: array expected");for(e.metadata=[],n=0;n<t.metadata.length;++n){if("object"!=typeof t.metadata[n])throw TypeError(".CollaborativeEditingResponse.metadata: object expected");e.metadata[n]=o.OperationMetadataDescriptor.fromObject(t.metadata[n])}}return null!=t.lastOperationId&&(e.lastOperationId=String(t.lastOperationId)),null!=t.lastOperationAcceptedAt&&(e.lastOperationAcceptedAt=String(t.lastOperationAcceptedAt)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.buffers=[],n.types=[],n.metadata=[]),e.defaults&&(n.version=0,n.lastOperationId="",n.lastOperationAcceptedAt=""),null!=t.version&&t.hasOwnProperty("version")&&(n.version=t.version),t.buffers&&t.buffers.length){n.buffers=[];for(var r=0;r<t.buffers.length;++r)n.buffers[r]=e.bytes===String?i.base64.encode(t.buffers[r],0,t.buffers[r].length):e.bytes===Array?Array.prototype.slice.call(t.buffers[r]):t.buffers[r]}if(t.types&&t.types.length)for(n.types=[],r=0;r<t.types.length;++r)n.types[r]=t.types[r];if(t.metadata&&t.metadata.length)for(n.metadata=[],r=0;r<t.metadata.length;++r)n.metadata[r]=o.OperationMetadataDescriptor.toObject(t.metadata[r],e);return null!=t.lastOperationId&&t.hasOwnProperty("lastOperationId")&&(n.lastOperationId=t.lastOperationId),null!=t.lastOperationAcceptedAt&&t.hasOwnProperty("lastOperationAcceptedAt")&&(n.lastOperationAcceptedAt=t.lastOperationAcceptedAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CollaborativeEditingResponse"},r}(),o.GetDocumentDetailsResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.lastDocumentSessionId="",r.prototype.lastDocumentSessionOperationId="",r.prototype.currentDocumentSessionId="",r.prototype.currentDocumentSessionVersion=0,r.prototype.currentDocumentSessionOperationId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.lastDocumentSessionId&&Object.hasOwnProperty.call(t,"lastDocumentSessionId")&&e.uint32(10).string(t.lastDocumentSessionId),null!=t.lastDocumentSessionOperationId&&Object.hasOwnProperty.call(t,"lastDocumentSessionOperationId")&&e.uint32(18).string(t.lastDocumentSessionOperationId),null!=t.currentDocumentSessionId&&Object.hasOwnProperty.call(t,"currentDocumentSessionId")&&e.uint32(26).string(t.currentDocumentSessionId),null!=t.currentDocumentSessionVersion&&Object.hasOwnProperty.call(t,"currentDocumentSessionVersion")&&e.uint32(32).uint32(t.currentDocumentSessionVersion),null!=t.currentDocumentSessionOperationId&&Object.hasOwnProperty.call(t,"currentDocumentSessionOperationId")&&e.uint32(42).string(t.currentDocumentSessionOperationId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.GetDocumentDetailsResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.lastDocumentSessionId=t.string();break;case 2:r.lastDocumentSessionOperationId=t.string();break;case 3:r.currentDocumentSessionId=t.string();break;case 4:r.currentDocumentSessionVersion=t.uint32();break;case 5:r.currentDocumentSessionOperationId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.lastDocumentSessionId&&t.hasOwnProperty("lastDocumentSessionId")&&!i.isString(t.lastDocumentSessionId)?"lastDocumentSessionId: string expected":null!=t.lastDocumentSessionOperationId&&t.hasOwnProperty("lastDocumentSessionOperationId")&&!i.isString(t.lastDocumentSessionOperationId)?"lastDocumentSessionOperationId: string expected":null!=t.currentDocumentSessionId&&t.hasOwnProperty("currentDocumentSessionId")&&!i.isString(t.currentDocumentSessionId)?"currentDocumentSessionId: string expected":null!=t.currentDocumentSessionVersion&&t.hasOwnProperty("currentDocumentSessionVersion")&&!i.isInteger(t.currentDocumentSessionVersion)?"currentDocumentSessionVersion: integer expected":null!=t.currentDocumentSessionOperationId&&t.hasOwnProperty("currentDocumentSessionOperationId")&&!i.isString(t.currentDocumentSessionOperationId)?"currentDocumentSessionOperationId: string expected":null},r.fromObject=function(t){if(t instanceof o.GetDocumentDetailsResponse)return t;var e=new o.GetDocumentDetailsResponse;return null!=t.lastDocumentSessionId&&(e.lastDocumentSessionId=String(t.lastDocumentSessionId)),null!=t.lastDocumentSessionOperationId&&(e.lastDocumentSessionOperationId=String(t.lastDocumentSessionOperationId)),null!=t.currentDocumentSessionId&&(e.currentDocumentSessionId=String(t.currentDocumentSessionId)),null!=t.currentDocumentSessionVersion&&(e.currentDocumentSessionVersion=t.currentDocumentSessionVersion>>>0),null!=t.currentDocumentSessionOperationId&&(e.currentDocumentSessionOperationId=String(t.currentDocumentSessionOperationId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.lastDocumentSessionId="",n.lastDocumentSessionOperationId="",n.currentDocumentSessionId="",n.currentDocumentSessionVersion=0,n.currentDocumentSessionOperationId=""),null!=t.lastDocumentSessionId&&t.hasOwnProperty("lastDocumentSessionId")&&(n.lastDocumentSessionId=t.lastDocumentSessionId),null!=t.lastDocumentSessionOperationId&&t.hasOwnProperty("lastDocumentSessionOperationId")&&(n.lastDocumentSessionOperationId=t.lastDocumentSessionOperationId),null!=t.currentDocumentSessionId&&t.hasOwnProperty("currentDocumentSessionId")&&(n.currentDocumentSessionId=t.currentDocumentSessionId),null!=t.currentDocumentSessionVersion&&t.hasOwnProperty("currentDocumentSessionVersion")&&(n.currentDocumentSessionVersion=t.currentDocumentSessionVersion),null!=t.currentDocumentSessionOperationId&&t.hasOwnProperty("currentDocumentSessionOperationId")&&(n.currentDocumentSessionOperationId=t.currentDocumentSessionOperationId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/GetDocumentDetailsResponse"},r}(),o.CommentDescriptor=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentId="",r.prototype.commentThreadId="",r.prototype.userId="",r.prototype.content="",r.prototype.documentId="",r.prototype.createdAt="",r.prototype.attributes="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentId&&Object.hasOwnProperty.call(t,"commentId")&&e.uint32(10).string(t.commentId),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(18).string(t.commentThreadId),null!=t.userId&&Object.hasOwnProperty.call(t,"userId")&&e.uint32(26).string(t.userId),null!=t.content&&Object.hasOwnProperty.call(t,"content")&&e.uint32(34).string(t.content),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(42).string(t.documentId),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(50).string(t.createdAt),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(58).string(t.attributes),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentId=t.string();break;case 2:r.commentThreadId=t.string();break;case 3:r.userId=t.string();break;case 4:r.content=t.string();break;case 5:r.documentId=t.string();break;case 6:r.createdAt=t.string();break;case 7:r.attributes=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentId&&t.hasOwnProperty("commentId")&&!i.isString(t.commentId)?"commentId: string expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.userId&&t.hasOwnProperty("userId")&&!i.isString(t.userId)?"userId: string expected":null!=t.content&&t.hasOwnProperty("content")&&!i.isString(t.content)?"content: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentDescriptor)return t;var e=new o.CommentDescriptor;return null!=t.commentId&&(e.commentId=String(t.commentId)),null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.userId&&(e.userId=String(t.userId)),null!=t.content&&(e.content=String(t.content)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.attributes&&(e.attributes=String(t.attributes)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentId="",n.commentThreadId="",n.userId="",n.content="",n.documentId="",n.createdAt="",n.attributes=""),null!=t.commentId&&t.hasOwnProperty("commentId")&&(n.commentId=t.commentId),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.userId&&t.hasOwnProperty("userId")&&(n.userId=t.userId),null!=t.content&&t.hasOwnProperty("content")&&(n.content=t.content),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentDescriptor"},r}(),o.CommentsThreadDescriptor=function(){function r(t){if(this.comments=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.comments=i.emptyArray,r.prototype.resolvedAt="",r.prototype.resolvedBy="",r.prototype.context="",r.prototype.createdAt="",r.prototype.deletedAt="",r.prototype.attributes="",r.prototype.unlinkedAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.comments&&t.comments.length)for(var i=0;i<t.comments.length;++i)o.CommentDescriptor.encode(t.comments[i],e.uint32(18).fork()).ldelim();return null!=t.resolvedAt&&Object.hasOwnProperty.call(t,"resolvedAt")&&e.uint32(26).string(t.resolvedAt),null!=t.resolvedBy&&Object.hasOwnProperty.call(t,"resolvedBy")&&e.uint32(34).string(t.resolvedBy),null!=t.context&&Object.hasOwnProperty.call(t,"context")&&e.uint32(42).string(t.context),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(50).string(t.createdAt),null!=t.deletedAt&&Object.hasOwnProperty.call(t,"deletedAt")&&e.uint32(58).string(t.deletedAt),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(66).string(t.attributes),null!=t.unlinkedAt&&Object.hasOwnProperty.call(t,"unlinkedAt")&&e.uint32(74).string(t.unlinkedAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsThreadDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.comments&&r.comments.length||(r.comments=[]),r.comments.push(o.CommentDescriptor.decode(t,t.uint32()));break;case 3:r.resolvedAt=t.string();break;case 4:r.resolvedBy=t.string();break;case 5:r.context=t.string();break;case 6:r.createdAt=t.string();break;case 7:r.deletedAt=t.string();break;case 8:r.attributes=t.string();break;case 9:r.unlinkedAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId))return"commentThreadId: string expected";if(null!=t.comments&&t.hasOwnProperty("comments")){if(!Array.isArray(t.comments))return"comments: array expected";for(var e=0;e<t.comments.length;++e){var n=o.CommentDescriptor.verify(t.comments[e]);if(n)return"comments."+n}}return null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&!i.isString(t.resolvedAt)?"resolvedAt: string expected":null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&!i.isString(t.resolvedBy)?"resolvedBy: string expected":null!=t.context&&t.hasOwnProperty("context")&&!i.isString(t.context)?"context: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.deletedAt&&t.hasOwnProperty("deletedAt")&&!i.isString(t.deletedAt)?"deletedAt: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null!=t.unlinkedAt&&t.hasOwnProperty("unlinkedAt")&&!i.isString(t.unlinkedAt)?"unlinkedAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsThreadDescriptor)return t;var e=new o.CommentsThreadDescriptor;if(null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),t.comments){if(!Array.isArray(t.comments))throw TypeError(".CommentsThreadDescriptor.comments: array expected");e.comments=[];for(var n=0;n<t.comments.length;++n){if("object"!=typeof t.comments[n])throw TypeError(".CommentsThreadDescriptor.comments: object expected");e.comments[n]=o.CommentDescriptor.fromObject(t.comments[n])}}return null!=t.resolvedAt&&(e.resolvedAt=String(t.resolvedAt)),null!=t.resolvedBy&&(e.resolvedBy=String(t.resolvedBy)),null!=t.context&&(e.context=String(t.context)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.deletedAt&&(e.deletedAt=String(t.deletedAt)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.unlinkedAt&&(e.unlinkedAt=String(t.unlinkedAt)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.comments=[]),e.defaults&&(n.commentThreadId="",n.resolvedAt="",n.resolvedBy="",n.context="",n.createdAt="",n.deletedAt="",n.attributes="",n.unlinkedAt=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),t.comments&&t.comments.length){n.comments=[];for(var i=0;i<t.comments.length;++i)n.comments[i]=o.CommentDescriptor.toObject(t.comments[i],e)}return null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&(n.resolvedAt=t.resolvedAt),null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&(n.resolvedBy=t.resolvedBy),null!=t.context&&t.hasOwnProperty("context")&&(n.context=t.context),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.deletedAt&&t.hasOwnProperty("deletedAt")&&(n.deletedAt=t.deletedAt),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.unlinkedAt&&t.hasOwnProperty("unlinkedAt")&&(n.unlinkedAt=t.unlinkedAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsThreadDescriptor"},r}(),o.CommentThreadAddedCommentDescriptor=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentId="",r.prototype.createdAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentId&&Object.hasOwnProperty.call(t,"commentId")&&e.uint32(10).string(t.commentId),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(18).string(t.createdAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentThreadAddedCommentDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentId=t.string();break;case 2:r.createdAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentId&&t.hasOwnProperty("commentId")&&!i.isString(t.commentId)?"commentId: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentThreadAddedCommentDescriptor)return t;var e=new o.CommentThreadAddedCommentDescriptor;return null!=t.commentId&&(e.commentId=String(t.commentId)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentId="",n.createdAt=""),null!=t.commentId&&t.hasOwnProperty("commentId")&&(n.commentId=t.commentId),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentThreadAddedCommentDescriptor"},r}(),o.CommentsV2AddCommentMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.content="",r.prototype.documentId="",r.prototype.commentId="",r.prototype.createdAt="",r.prototype.userId="",r.prototype.attributes="",r.prototype.commentThread=null,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.content&&Object.hasOwnProperty.call(t,"content")&&e.uint32(18).string(t.content),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(26).string(t.documentId),null!=t.commentId&&Object.hasOwnProperty.call(t,"commentId")&&e.uint32(34).string(t.commentId),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(42).string(t.createdAt),null!=t.userId&&Object.hasOwnProperty.call(t,"userId")&&e.uint32(50).string(t.userId),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(58).string(t.attributes),null!=t.commentThread&&Object.hasOwnProperty.call(t,"commentThread")&&o.CommentsThreadDescriptor.encode(t.commentThread,e.uint32(66).fork()).ldelim(),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2AddCommentMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.content=t.string();break;case 3:r.documentId=t.string();break;case 4:r.commentId=t.string();break;case 5:r.createdAt=t.string();break;case 6:r.userId=t.string();break;case 7:r.attributes=t.string();break;case 8:r.commentThread=o.CommentsThreadDescriptor.decode(t,t.uint32());break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId))return"commentThreadId: string expected";if(null!=t.content&&t.hasOwnProperty("content")&&!i.isString(t.content))return"content: string expected";if(null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId))return"documentId: string expected";if(null!=t.commentId&&t.hasOwnProperty("commentId")&&!i.isString(t.commentId))return"commentId: string expected";if(null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt))return"createdAt: string expected";if(null!=t.userId&&t.hasOwnProperty("userId")&&!i.isString(t.userId))return"userId: string expected";if(null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes))return"attributes: string expected";if(null!=t.commentThread&&t.hasOwnProperty("commentThread")){var e=o.CommentsThreadDescriptor.verify(t.commentThread);if(e)return"commentThread."+e}return null},r.fromObject=function(t){if(t instanceof o.CommentsV2AddCommentMessage)return t;var e=new o.CommentsV2AddCommentMessage;if(null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.content&&(e.content=String(t.content)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.commentId&&(e.commentId=String(t.commentId)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.userId&&(e.userId=String(t.userId)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.commentThread){if("object"!=typeof t.commentThread)throw TypeError(".CommentsV2AddCommentMessage.commentThread: object expected");e.commentThread=o.CommentsThreadDescriptor.fromObject(t.commentThread)}return e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.content="",n.documentId="",n.commentId="",n.createdAt="",n.userId="",n.attributes="",n.commentThread=null),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.content&&t.hasOwnProperty("content")&&(n.content=t.content),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.commentId&&t.hasOwnProperty("commentId")&&(n.commentId=t.commentId),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.userId&&t.hasOwnProperty("userId")&&(n.userId=t.userId),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.commentThread&&t.hasOwnProperty("commentThread")&&(n.commentThread=o.CommentsThreadDescriptor.toObject(t.commentThread,e)),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2AddCommentMessage"},r}(),o.CommentsV2AddCommentThreadMessage=function(){function r(t){if(this.comments=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.prototype.commentThreadId="",r.prototype.context="",r.prototype.createdAt="",r.prototype.resolvedAt="",r.prototype.resolvedBy="",r.prototype.attributes="",r.prototype.deletedAt="",r.prototype.comments=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(18).string(t.commentThreadId),null!=t.context&&Object.hasOwnProperty.call(t,"context")&&e.uint32(26).string(t.context),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(34).string(t.createdAt),null!=t.resolvedAt&&Object.hasOwnProperty.call(t,"resolvedAt")&&e.uint32(42).string(t.resolvedAt),null!=t.resolvedBy&&Object.hasOwnProperty.call(t,"resolvedBy")&&e.uint32(50).string(t.resolvedBy),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(58).string(t.attributes),null!=t.deletedAt&&Object.hasOwnProperty.call(t,"deletedAt")&&e.uint32(66).string(t.deletedAt),null!=t.comments&&t.comments.length)for(var i=0;i<t.comments.length;++i)o.CommentDescriptor.encode(t.comments[i],e.uint32(74).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2AddCommentThreadMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.documentId=t.string();break;case 2:r.commentThreadId=t.string();break;case 3:r.context=t.string();break;case 4:r.createdAt=t.string();break;case 5:r.resolvedAt=t.string();break;case 6:r.resolvedBy=t.string();break;case 7:r.attributes=t.string();break;case 8:r.deletedAt=t.string();break;case 9:r.comments&&r.comments.length||(r.comments=[]),r.comments.push(o.CommentDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId))return"documentId: string expected";if(null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId))return"commentThreadId: string expected";if(null!=t.context&&t.hasOwnProperty("context")&&!i.isString(t.context))return"context: string expected";if(null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt))return"createdAt: string expected";if(null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&!i.isString(t.resolvedAt))return"resolvedAt: string expected";if(null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&!i.isString(t.resolvedBy))return"resolvedBy: string expected";if(null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes))return"attributes: string expected";if(null!=t.deletedAt&&t.hasOwnProperty("deletedAt")&&!i.isString(t.deletedAt))return"deletedAt: string expected";if(null!=t.comments&&t.hasOwnProperty("comments")){if(!Array.isArray(t.comments))return"comments: array expected";for(var e=0;e<t.comments.length;++e){var n=o.CommentDescriptor.verify(t.comments[e]);if(n)return"comments."+n}}return null},r.fromObject=function(t){if(t instanceof o.CommentsV2AddCommentThreadMessage)return t;var e=new o.CommentsV2AddCommentThreadMessage;if(null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.context&&(e.context=String(t.context)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.resolvedAt&&(e.resolvedAt=String(t.resolvedAt)),null!=t.resolvedBy&&(e.resolvedBy=String(t.resolvedBy)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.deletedAt&&(e.deletedAt=String(t.deletedAt)),t.comments){if(!Array.isArray(t.comments))throw TypeError(".CommentsV2AddCommentThreadMessage.comments: array expected");e.comments=[];for(var n=0;n<t.comments.length;++n){if("object"!=typeof t.comments[n])throw TypeError(".CommentsV2AddCommentThreadMessage.comments: object expected");e.comments[n]=o.CommentDescriptor.fromObject(t.comments[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.comments=[]),e.defaults&&(n.documentId="",n.commentThreadId="",n.context="",n.createdAt="",n.resolvedAt="",n.resolvedBy="",n.attributes="",n.deletedAt=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.context&&t.hasOwnProperty("context")&&(n.context=t.context),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&(n.resolvedAt=t.resolvedAt),null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&(n.resolvedBy=t.resolvedBy),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.deletedAt&&t.hasOwnProperty("deletedAt")&&(n.deletedAt=t.deletedAt),t.comments&&t.comments.length){n.comments=[];for(var i=0;i<t.comments.length;++i)n.comments[i]=o.CommentDescriptor.toObject(t.comments[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2AddCommentThreadMessage"},r}(),o.CommentsV2ReopenCommentThreadMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2ReopenCommentThreadMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.documentId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2ReopenCommentThreadMessage)return t;var e=new o.CommentsV2ReopenCommentThreadMessage;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.documentId=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2ReopenCommentThreadMessage"},r}(),o.CommentsV2ResolveCommentThreadMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.documentId="",r.prototype.resolvedBy="",r.prototype.resolvedAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),null!=t.resolvedBy&&Object.hasOwnProperty.call(t,"resolvedBy")&&e.uint32(26).string(t.resolvedBy),null!=t.resolvedAt&&Object.hasOwnProperty.call(t,"resolvedAt")&&e.uint32(34).string(t.resolvedAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2ResolveCommentThreadMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.documentId=t.string();break;case 3:r.resolvedBy=t.string();break;case 4:r.resolvedAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&!i.isString(t.resolvedBy)?"resolvedBy: string expected":null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&!i.isString(t.resolvedAt)?"resolvedAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2ResolveCommentThreadMessage)return t;var e=new o.CommentsV2ResolveCommentThreadMessage;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.resolvedBy&&(e.resolvedBy=String(t.resolvedBy)),null!=t.resolvedAt&&(e.resolvedAt=String(t.resolvedAt)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.documentId="",n.resolvedBy="",n.resolvedAt=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&(n.resolvedBy=t.resolvedBy),null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&(n.resolvedAt=t.resolvedAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2ResolveCommentThreadMessage"},r}(),o.CommentsV2UpdateCommentThreadMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.documentId="",r.prototype.context="",r.prototype.attributes="",r.prototype.unlinkedAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),null!=t.context&&Object.hasOwnProperty.call(t,"context")&&e.uint32(26).string(t.context),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(34).string(t.attributes),null!=t.unlinkedAt&&Object.hasOwnProperty.call(t,"unlinkedAt")&&e.uint32(42).string(t.unlinkedAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2UpdateCommentThreadMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.documentId=t.string();break;case 3:r.context=t.string();break;case 4:r.attributes=t.string();break;case 5:r.unlinkedAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.context&&t.hasOwnProperty("context")&&!i.isString(t.context)?"context: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null!=t.unlinkedAt&&t.hasOwnProperty("unlinkedAt")&&!i.isString(t.unlinkedAt)?"unlinkedAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2UpdateCommentThreadMessage)return t;var e=new o.CommentsV2UpdateCommentThreadMessage;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.context&&(e.context=String(t.context)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.unlinkedAt&&(e.unlinkedAt=String(t.unlinkedAt)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.documentId="",n.context="",n.attributes="",n.unlinkedAt=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.context&&t.hasOwnProperty("context")&&(n.context=t.context),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.unlinkedAt&&t.hasOwnProperty("unlinkedAt")&&(n.unlinkedAt=t.unlinkedAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2UpdateCommentThreadMessage"},r}(),o.CommentsV2ConnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2ConnectMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.documentId=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2ConnectMessage)return t;var e=new o.CommentsV2ConnectMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2ConnectMessage"},r}(),o.CommentsV2GetCommentThreadMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2GetCommentThreadMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.documentId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2GetCommentThreadMessage)return t;var e=new o.CommentsV2GetCommentThreadMessage;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.documentId=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2GetCommentThreadMessage"},r}(),o.CommentsV2GetDocumentThreadsMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2GetDocumentThreadsMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.documentId=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2GetDocumentThreadsMessage)return t;var e=new o.CommentsV2GetDocumentThreadsMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2GetDocumentThreadsMessage"},r}(),o.CommentsV2RemoveCommentMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.commentId="",r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.commentId&&Object.hasOwnProperty.call(t,"commentId")&&e.uint32(18).string(t.commentId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(26).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2RemoveCommentMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.commentId=t.string();break;case 3:r.documentId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.commentId&&t.hasOwnProperty("commentId")&&!i.isString(t.commentId)?"commentId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2RemoveCommentMessage)return t;var e=new o.CommentsV2RemoveCommentMessage;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.commentId&&(e.commentId=String(t.commentId)),null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.commentId="",n.documentId=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.commentId&&t.hasOwnProperty("commentId")&&(n.commentId=t.commentId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2RemoveCommentMessage"},r}(),o.CommentsV2RemoveCommentThreadMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2RemoveCommentThreadMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.documentId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2RemoveCommentThreadMessage)return t;var e=new o.CommentsV2RemoveCommentThreadMessage;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.documentId=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2RemoveCommentThreadMessage"},r}(),o.CommentsV2UpdateCommentMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.commentId="",r.prototype.content="",r.prototype.documentId="",r.prototype.attributes="",r.prototype.isAttributesUpdated=!1,r.prototype.commentThread=null,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.commentId&&Object.hasOwnProperty.call(t,"commentId")&&e.uint32(18).string(t.commentId),null!=t.content&&Object.hasOwnProperty.call(t,"content")&&e.uint32(26).string(t.content),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(34).string(t.documentId),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(42).string(t.attributes),null!=t.isAttributesUpdated&&Object.hasOwnProperty.call(t,"isAttributesUpdated")&&e.uint32(48).bool(t.isAttributesUpdated),null!=t.commentThread&&Object.hasOwnProperty.call(t,"commentThread")&&o.CommentsThreadDescriptor.encode(t.commentThread,e.uint32(58).fork()).ldelim(),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2UpdateCommentMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.commentId=t.string();break;case 3:r.content=t.string();break;case 4:r.documentId=t.string();break;case 5:r.attributes=t.string();break;case 6:r.isAttributesUpdated=t.bool();break;case 7:r.commentThread=o.CommentsThreadDescriptor.decode(t,t.uint32());break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId))return"commentThreadId: string expected";if(null!=t.commentId&&t.hasOwnProperty("commentId")&&!i.isString(t.commentId))return"commentId: string expected";if(null!=t.content&&t.hasOwnProperty("content")&&!i.isString(t.content))return"content: string expected";if(null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId))return"documentId: string expected";if(null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes))return"attributes: string expected";if(null!=t.isAttributesUpdated&&t.hasOwnProperty("isAttributesUpdated")&&"boolean"!=typeof t.isAttributesUpdated)return"isAttributesUpdated: boolean expected";if(null!=t.commentThread&&t.hasOwnProperty("commentThread")){var e=o.CommentsThreadDescriptor.verify(t.commentThread);if(e)return"commentThread."+e}return null},r.fromObject=function(t){if(t instanceof o.CommentsV2UpdateCommentMessage)return t;var e=new o.CommentsV2UpdateCommentMessage;if(null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.commentId&&(e.commentId=String(t.commentId)),null!=t.content&&(e.content=String(t.content)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.isAttributesUpdated&&(e.isAttributesUpdated=Boolean(t.isAttributesUpdated)),null!=t.commentThread){if("object"!=typeof t.commentThread)throw TypeError(".CommentsV2UpdateCommentMessage.commentThread: object expected");e.commentThread=o.CommentsThreadDescriptor.fromObject(t.commentThread)}return e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.commentId="",n.content="",n.documentId="",n.attributes="",n.isAttributesUpdated=!1,n.commentThread=null),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.commentId&&t.hasOwnProperty("commentId")&&(n.commentId=t.commentId),null!=t.content&&t.hasOwnProperty("content")&&(n.content=t.content),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.isAttributesUpdated&&t.hasOwnProperty("isAttributesUpdated")&&(n.isAttributesUpdated=t.isAttributesUpdated),null!=t.commentThread&&t.hasOwnProperty("commentThread")&&(n.commentThread=o.CommentsThreadDescriptor.toObject(t.commentThread,e)),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2UpdateCommentMessage"},r}(),o.CommentsV2AddCommentResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.commentId="",r.prototype.createdAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.commentId&&Object.hasOwnProperty.call(t,"commentId")&&e.uint32(18).string(t.commentId),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(26).string(t.createdAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2AddCommentResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.commentId=t.string();break;case 3:r.createdAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.commentId&&t.hasOwnProperty("commentId")&&!i.isString(t.commentId)?"commentId: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2AddCommentResponse)return t;var e=new o.CommentsV2AddCommentResponse;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.commentId&&(e.commentId=String(t.commentId)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.commentId="",n.createdAt=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.commentId&&t.hasOwnProperty("commentId")&&(n.commentId=t.commentId),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2AddCommentResponse"},r}(),o.CommentsV2AddCommentThreadResponse=function(){function r(t){if(this.comments=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.createdAt="",r.prototype.comments=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(18).string(t.createdAt),null!=t.comments&&t.comments.length)for(var i=0;i<t.comments.length;++i)o.CommentThreadAddedCommentDescriptor.encode(t.comments[i],e.uint32(26).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2AddCommentThreadResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.createdAt=t.string();break;case 3:r.comments&&r.comments.length||(r.comments=[]),r.comments.push(o.CommentThreadAddedCommentDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId))return"commentThreadId: string expected";if(null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt))return"createdAt: string expected";if(null!=t.comments&&t.hasOwnProperty("comments")){if(!Array.isArray(t.comments))return"comments: array expected";for(var e=0;e<t.comments.length;++e){var n=o.CommentThreadAddedCommentDescriptor.verify(t.comments[e]);if(n)return"comments."+n}}return null},r.fromObject=function(t){if(t instanceof o.CommentsV2AddCommentThreadResponse)return t;var e=new o.CommentsV2AddCommentThreadResponse;if(null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),t.comments){if(!Array.isArray(t.comments))throw TypeError(".CommentsV2AddCommentThreadResponse.comments: array expected");e.comments=[];for(var n=0;n<t.comments.length;++n){if("object"!=typeof t.comments[n])throw TypeError(".CommentsV2AddCommentThreadResponse.comments: object expected");e.comments[n]=o.CommentThreadAddedCommentDescriptor.fromObject(t.comments[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.comments=[]),e.defaults&&(n.commentThreadId="",n.createdAt=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),t.comments&&t.comments.length){n.comments=[];for(var i=0;i<t.comments.length;++i)n.comments[i]=o.CommentThreadAddedCommentDescriptor.toObject(t.comments[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2AddCommentThreadResponse"},r}(),o.CommentsV2ResolveCommentThreadResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.documentId="",r.prototype.resolvedAt="",r.prototype.resolvedBy="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),null!=t.resolvedAt&&Object.hasOwnProperty.call(t,"resolvedAt")&&e.uint32(26).string(t.resolvedAt),null!=t.resolvedBy&&Object.hasOwnProperty.call(t,"resolvedBy")&&e.uint32(34).string(t.resolvedBy),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2ResolveCommentThreadResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.documentId=t.string();break;case 3:r.resolvedAt=t.string();break;case 4:r.resolvedBy=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId)?"commentThreadId: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&!i.isString(t.resolvedAt)?"resolvedAt: string expected":null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&!i.isString(t.resolvedBy)?"resolvedBy: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2ResolveCommentThreadResponse)return t;var e=new o.CommentsV2ResolveCommentThreadResponse;return null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.resolvedAt&&(e.resolvedAt=String(t.resolvedAt)),null!=t.resolvedBy&&(e.resolvedBy=String(t.resolvedBy)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.commentThreadId="",n.documentId="",n.resolvedAt="",n.resolvedBy=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&(n.resolvedAt=t.resolvedAt),null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&(n.resolvedBy=t.resolvedBy),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2ResolveCommentThreadResponse"},r}(),o.CommentsV2ConnectResponse=function(){function r(t){if(this.threads=[],this.threadsV2=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.channel="",r.prototype.threads=i.emptyArray,r.prototype.threadsV2=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.channel&&Object.hasOwnProperty.call(t,"channel")&&e.uint32(10).string(t.channel),null!=t.threads&&t.threads.length)for(var i=0;i<t.threads.length;++i)e.uint32(18).string(t.threads[i]);if(null!=t.threadsV2&&t.threadsV2.length)for(i=0;i<t.threadsV2.length;++i)o.CommentsThreadDescriptor.encode(t.threadsV2[i],e.uint32(26).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2ConnectResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.channel=t.string();break;case 2:r.threads&&r.threads.length||(r.threads=[]),r.threads.push(t.string());break;case 3:r.threadsV2&&r.threadsV2.length||(r.threadsV2=[]),r.threadsV2.push(o.CommentsThreadDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.channel&&t.hasOwnProperty("channel")&&!i.isString(t.channel))return"channel: string expected";if(null!=t.threads&&t.hasOwnProperty("threads")){if(!Array.isArray(t.threads))return"threads: array expected";for(var e=0;e<t.threads.length;++e)if(!i.isString(t.threads[e]))return"threads: string[] expected"}if(null!=t.threadsV2&&t.hasOwnProperty("threadsV2")){if(!Array.isArray(t.threadsV2))return"threadsV2: array expected";for(e=0;e<t.threadsV2.length;++e){var n=o.CommentsThreadDescriptor.verify(t.threadsV2[e]);if(n)return"threadsV2."+n}}return null},r.fromObject=function(t){if(t instanceof o.CommentsV2ConnectResponse)return t;var e=new o.CommentsV2ConnectResponse;if(null!=t.channel&&(e.channel=String(t.channel)),t.threads){if(!Array.isArray(t.threads))throw TypeError(".CommentsV2ConnectResponse.threads: array expected");e.threads=[];for(var n=0;n<t.threads.length;++n)e.threads[n]=String(t.threads[n])}if(t.threadsV2){if(!Array.isArray(t.threadsV2))throw TypeError(".CommentsV2ConnectResponse.threadsV2: array expected");for(e.threadsV2=[],n=0;n<t.threadsV2.length;++n){if("object"!=typeof t.threadsV2[n])throw TypeError(".CommentsV2ConnectResponse.threadsV2: object expected");e.threadsV2[n]=o.CommentsThreadDescriptor.fromObject(t.threadsV2[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.threads=[],n.threadsV2=[]),e.defaults&&(n.channel=""),null!=t.channel&&t.hasOwnProperty("channel")&&(n.channel=t.channel),t.threads&&t.threads.length){n.threads=[];for(var i=0;i<t.threads.length;++i)n.threads[i]=t.threads[i]}if(t.threadsV2&&t.threadsV2.length)for(n.threadsV2=[],i=0;i<t.threadsV2.length;++i)n.threadsV2[i]=o.CommentsThreadDescriptor.toObject(t.threadsV2[i],e);return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2ConnectResponse"},r}(),o.CommentsV2GetCommentThreadResponse=function(){function r(t){if(this.comments=[],this.commentsV2=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.commentThreadId="",r.prototype.comments=i.emptyArray,r.prototype.commentsV2=i.emptyArray,r.prototype.resolvedAt="",r.prototype.resolvedBy="",r.prototype.context="",r.prototype.createdAt="",r.prototype.deletedAt="",r.prototype.attributes="",r.prototype.unlinkedAt="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.commentThreadId&&Object.hasOwnProperty.call(t,"commentThreadId")&&e.uint32(10).string(t.commentThreadId),null!=t.comments&&t.comments.length)for(var i=0;i<t.comments.length;++i)e.uint32(18).string(t.comments[i]);if(null!=t.commentsV2&&t.commentsV2.length)for(i=0;i<t.commentsV2.length;++i)o.CommentDescriptor.encode(t.commentsV2[i],e.uint32(26).fork()).ldelim();return null!=t.resolvedAt&&Object.hasOwnProperty.call(t,"resolvedAt")&&e.uint32(34).string(t.resolvedAt),null!=t.resolvedBy&&Object.hasOwnProperty.call(t,"resolvedBy")&&e.uint32(42).string(t.resolvedBy),null!=t.context&&Object.hasOwnProperty.call(t,"context")&&e.uint32(50).string(t.context),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(58).string(t.createdAt),null!=t.deletedAt&&Object.hasOwnProperty.call(t,"deletedAt")&&e.uint32(66).string(t.deletedAt),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(74).string(t.attributes),null!=t.unlinkedAt&&Object.hasOwnProperty.call(t,"unlinkedAt")&&e.uint32(82).string(t.unlinkedAt),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2GetCommentThreadResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.commentThreadId=t.string();break;case 2:r.comments&&r.comments.length||(r.comments=[]),r.comments.push(t.string());break;case 3:r.commentsV2&&r.commentsV2.length||(r.commentsV2=[]),r.commentsV2.push(o.CommentDescriptor.decode(t,t.uint32()));break;case 4:r.resolvedAt=t.string();break;case 5:r.resolvedBy=t.string();break;case 6:r.context=t.string();break;case 7:r.createdAt=t.string();break;case 8:r.deletedAt=t.string();break;case 9:r.attributes=t.string();break;case 10:r.unlinkedAt=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&!i.isString(t.commentThreadId))return"commentThreadId: string expected";if(null!=t.comments&&t.hasOwnProperty("comments")){if(!Array.isArray(t.comments))return"comments: array expected";for(var e=0;e<t.comments.length;++e)if(!i.isString(t.comments[e]))return"comments: string[] expected"}if(null!=t.commentsV2&&t.hasOwnProperty("commentsV2")){if(!Array.isArray(t.commentsV2))return"commentsV2: array expected";for(e=0;e<t.commentsV2.length;++e){var n=o.CommentDescriptor.verify(t.commentsV2[e]);if(n)return"commentsV2."+n}}return null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&!i.isString(t.resolvedAt)?"resolvedAt: string expected":null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&!i.isString(t.resolvedBy)?"resolvedBy: string expected":null!=t.context&&t.hasOwnProperty("context")&&!i.isString(t.context)?"context: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.deletedAt&&t.hasOwnProperty("deletedAt")&&!i.isString(t.deletedAt)?"deletedAt: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null!=t.unlinkedAt&&t.hasOwnProperty("unlinkedAt")&&!i.isString(t.unlinkedAt)?"unlinkedAt: string expected":null},r.fromObject=function(t){if(t instanceof o.CommentsV2GetCommentThreadResponse)return t;var e=new o.CommentsV2GetCommentThreadResponse;if(null!=t.commentThreadId&&(e.commentThreadId=String(t.commentThreadId)),t.comments){if(!Array.isArray(t.comments))throw TypeError(".CommentsV2GetCommentThreadResponse.comments: array expected");e.comments=[];for(var n=0;n<t.comments.length;++n)e.comments[n]=String(t.comments[n])}if(t.commentsV2){if(!Array.isArray(t.commentsV2))throw TypeError(".CommentsV2GetCommentThreadResponse.commentsV2: array expected");for(e.commentsV2=[],n=0;n<t.commentsV2.length;++n){if("object"!=typeof t.commentsV2[n])throw TypeError(".CommentsV2GetCommentThreadResponse.commentsV2: object expected");e.commentsV2[n]=o.CommentDescriptor.fromObject(t.commentsV2[n])}}return null!=t.resolvedAt&&(e.resolvedAt=String(t.resolvedAt)),null!=t.resolvedBy&&(e.resolvedBy=String(t.resolvedBy)),null!=t.context&&(e.context=String(t.context)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.deletedAt&&(e.deletedAt=String(t.deletedAt)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.unlinkedAt&&(e.unlinkedAt=String(t.unlinkedAt)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.comments=[],n.commentsV2=[]),e.defaults&&(n.commentThreadId="",n.resolvedAt="",n.resolvedBy="",n.context="",n.createdAt="",n.deletedAt="",n.attributes="",n.unlinkedAt=""),null!=t.commentThreadId&&t.hasOwnProperty("commentThreadId")&&(n.commentThreadId=t.commentThreadId),t.comments&&t.comments.length){n.comments=[];for(var i=0;i<t.comments.length;++i)n.comments[i]=t.comments[i]}if(t.commentsV2&&t.commentsV2.length)for(n.commentsV2=[],i=0;i<t.commentsV2.length;++i)n.commentsV2[i]=o.CommentDescriptor.toObject(t.commentsV2[i],e);return null!=t.resolvedAt&&t.hasOwnProperty("resolvedAt")&&(n.resolvedAt=t.resolvedAt),null!=t.resolvedBy&&t.hasOwnProperty("resolvedBy")&&(n.resolvedBy=t.resolvedBy),null!=t.context&&t.hasOwnProperty("context")&&(n.context=t.context),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.deletedAt&&t.hasOwnProperty("deletedAt")&&(n.deletedAt=t.deletedAt),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.unlinkedAt&&t.hasOwnProperty("unlinkedAt")&&(n.unlinkedAt=t.unlinkedAt),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2GetCommentThreadResponse"},r}(),o.CommentsV2GetDocumentThreadsResponse=function(){function r(t){if(this.threads=[],this.threadsV2=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.threads=i.emptyArray,r.prototype.threadsV2=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.threads&&t.threads.length)for(var i=0;i<t.threads.length;++i)e.uint32(10).string(t.threads[i]);if(null!=t.threadsV2&&t.threadsV2.length)for(i=0;i<t.threadsV2.length;++i)o.CommentsThreadDescriptor.encode(t.threadsV2[i],e.uint32(18).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.CommentsV2GetDocumentThreadsResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.threads&&r.threads.length||(r.threads=[]),r.threads.push(t.string());break;case 2:r.threadsV2&&r.threadsV2.length||(r.threadsV2=[]),r.threadsV2.push(o.CommentsThreadDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.threads&&t.hasOwnProperty("threads")){if(!Array.isArray(t.threads))return"threads: array expected";for(var e=0;e<t.threads.length;++e)if(!i.isString(t.threads[e]))return"threads: string[] expected"}if(null!=t.threadsV2&&t.hasOwnProperty("threadsV2")){if(!Array.isArray(t.threadsV2))return"threadsV2: array expected";for(e=0;e<t.threadsV2.length;++e){var n=o.CommentsThreadDescriptor.verify(t.threadsV2[e]);if(n)return"threadsV2."+n}}return null},r.fromObject=function(t){if(t instanceof o.CommentsV2GetDocumentThreadsResponse)return t;var e=new o.CommentsV2GetDocumentThreadsResponse;if(t.threads){if(!Array.isArray(t.threads))throw TypeError(".CommentsV2GetDocumentThreadsResponse.threads: array expected");e.threads=[];for(var n=0;n<t.threads.length;++n)e.threads[n]=String(t.threads[n])}if(t.threadsV2){if(!Array.isArray(t.threadsV2))throw TypeError(".CommentsV2GetDocumentThreadsResponse.threadsV2: array expected");for(e.threadsV2=[],n=0;n<t.threadsV2.length;++n){if("object"!=typeof t.threadsV2[n])throw TypeError(".CommentsV2GetDocumentThreadsResponse.threadsV2: object expected");e.threadsV2[n]=o.CommentsThreadDescriptor.fromObject(t.threadsV2[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.threads=[],n.threadsV2=[]),t.threads&&t.threads.length){n.threads=[];for(var i=0;i<t.threads.length;++i)n.threads[i]=t.threads[i]}if(t.threadsV2&&t.threadsV2.length)for(n.threadsV2=[],i=0;i<t.threadsV2.length;++i)n.threadsV2[i]=o.CommentsThreadDescriptor.toObject(t.threadsV2[i],e);return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/CommentsV2GetDocumentThreadsResponse"},r}(),o.KeyValueDescriptor=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.key="",r.prototype.value="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.key&&Object.hasOwnProperty.call(t,"key")&&e.uint32(10).string(t.key),null!=t.value&&Object.hasOwnProperty.call(t,"value")&&e.uint32(18).string(t.value),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.KeyValueDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.key=t.string();break;case 2:r.value=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.key&&t.hasOwnProperty("key")&&!i.isString(t.key)?"key: string expected":null!=t.value&&t.hasOwnProperty("value")&&!i.isString(t.value)?"value: string expected":null},r.fromObject=function(t){if(t instanceof o.KeyValueDescriptor)return t;var e=new o.KeyValueDescriptor;return null!=t.key&&(e.key=String(t.key)),null!=t.value&&(e.value=String(t.value)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.key="",n.value=""),null!=t.key&&t.hasOwnProperty("key")&&(n.key=t.key),null!=t.value&&t.hasOwnProperty("value")&&(n.value=t.value),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/KeyValueDescriptor"},r}(),o.IsEditorBundleUploadedMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.bundleVersion="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.bundleVersion&&Object.hasOwnProperty.call(t,"bundleVersion")&&e.uint32(10).string(t.bundleVersion),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.IsEditorBundleUploadedMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.bundleVersion=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.bundleVersion&&t.hasOwnProperty("bundleVersion")&&!i.isString(t.bundleVersion)?"bundleVersion: string expected":null},r.fromObject=function(t){if(t instanceof o.IsEditorBundleUploadedMessage)return t;var e=new o.IsEditorBundleUploadedMessage;return null!=t.bundleVersion&&(e.bundleVersion=String(t.bundleVersion)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.bundleVersion=""),null!=t.bundleVersion&&t.hasOwnProperty("bundleVersion")&&(n.bundleVersion=t.bundleVersion),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/IsEditorBundleUploadedMessage"},r}(),o.IsEditorBundleUploadedResponse=function(){function i(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return i.prototype.isUploaded=!1,i.create=function(t){return new i(t)},i.encode=function(t,e){return e||(e=n.create()),null!=t.isUploaded&&Object.hasOwnProperty.call(t,"isUploaded")&&e.uint32(8).bool(t.isUploaded),e},i.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},i.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.IsEditorBundleUploadedResponse;t.pos<i;){var s=t.uint32();s>>>3==1?r.isUploaded=t.bool():t.skipType(7&s)}return r},i.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},i.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.isUploaded&&t.hasOwnProperty("isUploaded")&&"boolean"!=typeof t.isUploaded?"isUploaded: boolean expected":null},i.fromObject=function(t){if(t instanceof o.IsEditorBundleUploadedResponse)return t;var e=new o.IsEditorBundleUploadedResponse;return null!=t.isUploaded&&(e.isUploaded=Boolean(t.isUploaded)),e},i.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.isUploaded=!1),null!=t.isUploaded&&t.hasOwnProperty("isUploaded")&&(n.isUploaded=t.isUploaded),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},i.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/IsEditorBundleUploadedResponse"},i}(),o.RevisionDescriptor=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.revisionId="",r.prototype.name="",r.prototype.creatorId="",r.prototype.authorsIds="",r.prototype.diffData="",r.prototype.createdAt="",r.prototype.attributes="",r.prototype.toVersion=0,r.prototype.fromVersion=0,r.prototype.isEmptyCurrent=!1,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.revisionId&&Object.hasOwnProperty.call(t,"revisionId")&&e.uint32(10).string(t.revisionId),null!=t.name&&Object.hasOwnProperty.call(t,"name")&&e.uint32(18).string(t.name),null!=t.creatorId&&Object.hasOwnProperty.call(t,"creatorId")&&e.uint32(26).string(t.creatorId),null!=t.authorsIds&&Object.hasOwnProperty.call(t,"authorsIds")&&e.uint32(34).string(t.authorsIds),null!=t.diffData&&Object.hasOwnProperty.call(t,"diffData")&&e.uint32(42).string(t.diffData),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(50).string(t.createdAt),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(58).string(t.attributes),null!=t.toVersion&&Object.hasOwnProperty.call(t,"toVersion")&&e.uint32(64).uint32(t.toVersion),null!=t.fromVersion&&Object.hasOwnProperty.call(t,"fromVersion")&&e.uint32(72).uint32(t.fromVersion),null!=t.isEmptyCurrent&&Object.hasOwnProperty.call(t,"isEmptyCurrent")&&e.uint32(80).bool(t.isEmptyCurrent),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.revisionId=t.string();break;case 2:r.name=t.string();break;case 3:r.creatorId=t.string();break;case 4:r.authorsIds=t.string();break;case 5:r.diffData=t.string();break;case 6:r.createdAt=t.string();break;case 7:r.attributes=t.string();break;case 8:r.toVersion=t.uint32();break;case 9:r.fromVersion=t.uint32();break;case 10:r.isEmptyCurrent=t.bool();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.revisionId&&t.hasOwnProperty("revisionId")&&!i.isString(t.revisionId)?"revisionId: string expected":null!=t.name&&t.hasOwnProperty("name")&&!i.isString(t.name)?"name: string expected":null!=t.creatorId&&t.hasOwnProperty("creatorId")&&!i.isString(t.creatorId)?"creatorId: string expected":null!=t.authorsIds&&t.hasOwnProperty("authorsIds")&&!i.isString(t.authorsIds)?"authorsIds: string expected":null!=t.diffData&&t.hasOwnProperty("diffData")&&!i.isString(t.diffData)?"diffData: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null!=t.toVersion&&t.hasOwnProperty("toVersion")&&!i.isInteger(t.toVersion)?"toVersion: integer expected":null!=t.fromVersion&&t.hasOwnProperty("fromVersion")&&!i.isInteger(t.fromVersion)?"fromVersion: integer expected":null!=t.isEmptyCurrent&&t.hasOwnProperty("isEmptyCurrent")&&"boolean"!=typeof t.isEmptyCurrent?"isEmptyCurrent: boolean expected":null},r.fromObject=function(t){if(t instanceof o.RevisionDescriptor)return t;var e=new o.RevisionDescriptor;return null!=t.revisionId&&(e.revisionId=String(t.revisionId)),null!=t.name&&(e.name=String(t.name)),null!=t.creatorId&&(e.creatorId=String(t.creatorId)),null!=t.authorsIds&&(e.authorsIds=String(t.authorsIds)),null!=t.diffData&&(e.diffData=String(t.diffData)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.toVersion&&(e.toVersion=t.toVersion>>>0),null!=t.fromVersion&&(e.fromVersion=t.fromVersion>>>0),null!=t.isEmptyCurrent&&(e.isEmptyCurrent=Boolean(t.isEmptyCurrent)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.revisionId="",n.name="",n.creatorId="",n.authorsIds="",n.diffData="",n.createdAt="",n.attributes="",n.toVersion=0,n.fromVersion=0,n.isEmptyCurrent=!1),null!=t.revisionId&&t.hasOwnProperty("revisionId")&&(n.revisionId=t.revisionId),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.creatorId&&t.hasOwnProperty("creatorId")&&(n.creatorId=t.creatorId),null!=t.authorsIds&&t.hasOwnProperty("authorsIds")&&(n.authorsIds=t.authorsIds),null!=t.diffData&&t.hasOwnProperty("diffData")&&(n.diffData=t.diffData),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.toVersion&&t.hasOwnProperty("toVersion")&&(n.toVersion=t.toVersion),null!=t.fromVersion&&t.hasOwnProperty("fromVersion")&&(n.fromVersion=t.fromVersion),null!=t.isEmptyCurrent&&t.hasOwnProperty("isEmptyCurrent")&&(n.isEmptyCurrent=t.isEmptyCurrent),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionDescriptor"},r}(),o.RevisionHistoryConnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryConnectMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.documentId=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryConnectMessage)return t;var e=new o.RevisionHistoryConnectMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryConnectMessage"},r}(),o.RevisionHistoryGetRevisionMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.prototype.revisionId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),null!=t.revisionId&&Object.hasOwnProperty.call(t,"revisionId")&&e.uint32(18).string(t.revisionId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryGetRevisionMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.documentId=t.string();break;case 2:r.revisionId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.revisionId&&t.hasOwnProperty("revisionId")&&!i.isString(t.revisionId)?"revisionId: string expected":null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryGetRevisionMessage)return t;var e=new o.RevisionHistoryGetRevisionMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.revisionId&&(e.revisionId=String(t.revisionId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId="",n.revisionId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.revisionId&&t.hasOwnProperty("revisionId")&&(n.revisionId=t.revisionId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryGetRevisionMessage"},r}(),o.RevisionHistoryReconnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.prototype.requestId=0,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),null!=t.requestId&&Object.hasOwnProperty.call(t,"requestId")&&e.uint32(16).uint32(t.requestId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryReconnectMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.documentId=t.string();break;case 2:r.requestId=t.uint32();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.requestId&&t.hasOwnProperty("requestId")&&!i.isInteger(t.requestId)?"requestId: integer expected":null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryReconnectMessage)return t;var e=new o.RevisionHistoryReconnectMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.requestId&&(e.requestId=t.requestId>>>0),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId="",n.requestId=0),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.requestId&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryReconnectMessage"},r}(),o.RevisionHistoryUpdateRevisionsMessage=function(){function r(t){if(this.revisions=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.prototype.requestId=0,r.prototype.revisions=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),null!=t.requestId&&Object.hasOwnProperty.call(t,"requestId")&&e.uint32(16).uint32(t.requestId),null!=t.revisions&&t.revisions.length)for(var i=0;i<t.revisions.length;++i)o.RevisionDescriptor.encode(t.revisions[i],e.uint32(26).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryUpdateRevisionsMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.documentId=t.string();break;case 2:r.requestId=t.uint32();break;case 3:r.revisions&&r.revisions.length||(r.revisions=[]),r.revisions.push(o.RevisionDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId))return"documentId: string expected";if(null!=t.requestId&&t.hasOwnProperty("requestId")&&!i.isInteger(t.requestId))return"requestId: integer expected";if(null!=t.revisions&&t.hasOwnProperty("revisions")){if(!Array.isArray(t.revisions))return"revisions: array expected";for(var e=0;e<t.revisions.length;++e){var n=o.RevisionDescriptor.verify(t.revisions[e]);if(n)return"revisions."+n}}return null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryUpdateRevisionsMessage)return t;var e=new o.RevisionHistoryUpdateRevisionsMessage;if(null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.requestId&&(e.requestId=t.requestId>>>0),t.revisions){if(!Array.isArray(t.revisions))throw TypeError(".RevisionHistoryUpdateRevisionsMessage.revisions: array expected");e.revisions=[];for(var n=0;n<t.revisions.length;++n){if("object"!=typeof t.revisions[n])throw TypeError(".RevisionHistoryUpdateRevisionsMessage.revisions: object expected");e.revisions[n]=o.RevisionDescriptor.fromObject(t.revisions[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.revisions=[]),e.defaults&&(n.documentId="",n.requestId=0),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.requestId&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),t.revisions&&t.revisions.length){n.revisions=[];for(var i=0;i<t.revisions.length;++i)n.revisions[i]=o.RevisionDescriptor.toObject(t.revisions[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryUpdateRevisionsMessage"},r}(),o.RevisionHistoryConnectResponse=function(){function r(t){if(this.revisions=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.channel="",r.prototype.requestId=0,r.prototype.revisions=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.channel&&Object.hasOwnProperty.call(t,"channel")&&e.uint32(10).string(t.channel),null!=t.requestId&&Object.hasOwnProperty.call(t,"requestId")&&e.uint32(16).uint32(t.requestId),null!=t.revisions&&t.revisions.length)for(var i=0;i<t.revisions.length;++i)o.RevisionDescriptor.encode(t.revisions[i],e.uint32(26).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryConnectResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.channel=t.string();break;case 2:r.requestId=t.uint32();break;case 3:r.revisions&&r.revisions.length||(r.revisions=[]),r.revisions.push(o.RevisionDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.channel&&t.hasOwnProperty("channel")&&!i.isString(t.channel))return"channel: string expected";if(null!=t.requestId&&t.hasOwnProperty("requestId")&&!i.isInteger(t.requestId))return"requestId: integer expected";if(null!=t.revisions&&t.hasOwnProperty("revisions")){if(!Array.isArray(t.revisions))return"revisions: array expected";for(var e=0;e<t.revisions.length;++e){var n=o.RevisionDescriptor.verify(t.revisions[e]);if(n)return"revisions."+n}}return null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryConnectResponse)return t;var e=new o.RevisionHistoryConnectResponse;if(null!=t.channel&&(e.channel=String(t.channel)),null!=t.requestId&&(e.requestId=t.requestId>>>0),t.revisions){if(!Array.isArray(t.revisions))throw TypeError(".RevisionHistoryConnectResponse.revisions: array expected");e.revisions=[];for(var n=0;n<t.revisions.length;++n){if("object"!=typeof t.revisions[n])throw TypeError(".RevisionHistoryConnectResponse.revisions: object expected");e.revisions[n]=o.RevisionDescriptor.fromObject(t.revisions[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.revisions=[]),e.defaults&&(n.channel="",n.requestId=0),null!=t.channel&&t.hasOwnProperty("channel")&&(n.channel=t.channel),null!=t.requestId&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),t.revisions&&t.revisions.length){n.revisions=[];for(var i=0;i<t.revisions.length;++i)n.revisions[i]=o.RevisionDescriptor.toObject(t.revisions[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryConnectResponse"},r}(),o.RevisionHistoryGetRevisionResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.revisionId="",r.prototype.name="",r.prototype.creatorId="",r.prototype.authorsIds="",r.prototype.diffData="",r.prototype.createdAt="",r.prototype.attributes="",r.prototype.toVersion=0,r.prototype.fromVersion=0,r.prototype.isEmptyCurrent=!1,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.revisionId&&Object.hasOwnProperty.call(t,"revisionId")&&e.uint32(10).string(t.revisionId),null!=t.name&&Object.hasOwnProperty.call(t,"name")&&e.uint32(18).string(t.name),null!=t.creatorId&&Object.hasOwnProperty.call(t,"creatorId")&&e.uint32(26).string(t.creatorId),null!=t.authorsIds&&Object.hasOwnProperty.call(t,"authorsIds")&&e.uint32(34).string(t.authorsIds),null!=t.diffData&&Object.hasOwnProperty.call(t,"diffData")&&e.uint32(42).string(t.diffData),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(50).string(t.createdAt),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(58).string(t.attributes),null!=t.toVersion&&Object.hasOwnProperty.call(t,"toVersion")&&e.uint32(64).uint32(t.toVersion),null!=t.fromVersion&&Object.hasOwnProperty.call(t,"fromVersion")&&e.uint32(72).uint32(t.fromVersion),null!=t.isEmptyCurrent&&Object.hasOwnProperty.call(t,"isEmptyCurrent")&&e.uint32(80).bool(t.isEmptyCurrent),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryGetRevisionResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.revisionId=t.string();break;case 2:r.name=t.string();break;case 3:r.creatorId=t.string();break;case 4:r.authorsIds=t.string();break;case 5:r.diffData=t.string();break;case 6:r.createdAt=t.string();break;case 7:r.attributes=t.string();break;case 8:r.toVersion=t.uint32();break;case 9:r.fromVersion=t.uint32();break;case 10:r.isEmptyCurrent=t.bool();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.revisionId&&t.hasOwnProperty("revisionId")&&!i.isString(t.revisionId)?"revisionId: string expected":null!=t.name&&t.hasOwnProperty("name")&&!i.isString(t.name)?"name: string expected":null!=t.creatorId&&t.hasOwnProperty("creatorId")&&!i.isString(t.creatorId)?"creatorId: string expected":null!=t.authorsIds&&t.hasOwnProperty("authorsIds")&&!i.isString(t.authorsIds)?"authorsIds: string expected":null!=t.diffData&&t.hasOwnProperty("diffData")&&!i.isString(t.diffData)?"diffData: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null!=t.toVersion&&t.hasOwnProperty("toVersion")&&!i.isInteger(t.toVersion)?"toVersion: integer expected":null!=t.fromVersion&&t.hasOwnProperty("fromVersion")&&!i.isInteger(t.fromVersion)?"fromVersion: integer expected":null!=t.isEmptyCurrent&&t.hasOwnProperty("isEmptyCurrent")&&"boolean"!=typeof t.isEmptyCurrent?"isEmptyCurrent: boolean expected":null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryGetRevisionResponse)return t;var e=new o.RevisionHistoryGetRevisionResponse;return null!=t.revisionId&&(e.revisionId=String(t.revisionId)),null!=t.name&&(e.name=String(t.name)),null!=t.creatorId&&(e.creatorId=String(t.creatorId)),null!=t.authorsIds&&(e.authorsIds=String(t.authorsIds)),null!=t.diffData&&(e.diffData=String(t.diffData)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.attributes&&(e.attributes=String(t.attributes)),null!=t.toVersion&&(e.toVersion=t.toVersion>>>0),null!=t.fromVersion&&(e.fromVersion=t.fromVersion>>>0),null!=t.isEmptyCurrent&&(e.isEmptyCurrent=Boolean(t.isEmptyCurrent)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.revisionId="",n.name="",n.creatorId="",n.authorsIds="",n.diffData="",n.createdAt="",n.attributes="",n.toVersion=0,n.fromVersion=0,n.isEmptyCurrent=!1),null!=t.revisionId&&t.hasOwnProperty("revisionId")&&(n.revisionId=t.revisionId),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.creatorId&&t.hasOwnProperty("creatorId")&&(n.creatorId=t.creatorId),null!=t.authorsIds&&t.hasOwnProperty("authorsIds")&&(n.authorsIds=t.authorsIds),null!=t.diffData&&t.hasOwnProperty("diffData")&&(n.diffData=t.diffData),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),null!=t.toVersion&&t.hasOwnProperty("toVersion")&&(n.toVersion=t.toVersion),null!=t.fromVersion&&t.hasOwnProperty("fromVersion")&&(n.fromVersion=t.fromVersion),null!=t.isEmptyCurrent&&t.hasOwnProperty("isEmptyCurrent")&&(n.isEmptyCurrent=t.isEmptyCurrent),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryGetRevisionResponse"},r}(),o.RevisionHistoryUpdateRevisionsResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.requestId=0,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.requestId&&Object.hasOwnProperty.call(t,"requestId")&&e.uint32(8).uint32(t.requestId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.RevisionHistoryUpdateRevisionsResponse;t.pos<i;){var s=t.uint32();s>>>3==1?r.requestId=t.uint32():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.requestId&&t.hasOwnProperty("requestId")&&!i.isInteger(t.requestId)?"requestId: integer expected":null},r.fromObject=function(t){if(t instanceof o.RevisionHistoryUpdateRevisionsResponse)return t;var e=new o.RevisionHistoryUpdateRevisionsResponse;return null!=t.requestId&&(e.requestId=t.requestId>>>0),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.requestId=0),null!=t.requestId&&t.hasOwnProperty("requestId")&&(n.requestId=t.requestId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/RevisionHistoryUpdateRevisionsResponse"},r}(),o.SessionsSocketDescriptor=function(){function r(t){if(this.permissions=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.session="",r.prototype.user="",r.prototype.role="",r.prototype.permissions=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.session&&Object.hasOwnProperty.call(t,"session")&&e.uint32(10).string(t.session),null!=t.user&&Object.hasOwnProperty.call(t,"user")&&e.uint32(18).string(t.user),null!=t.role&&Object.hasOwnProperty.call(t,"role")&&e.uint32(26).string(t.role),null!=t.permissions&&t.permissions.length)for(var i=0;i<t.permissions.length;++i)e.uint32(34).string(t.permissions[i]);return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.SessionsSocketDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.session=t.string();break;case 2:r.user=t.string();break;case 3:r.role=t.string();break;case 4:r.permissions&&r.permissions.length||(r.permissions=[]),r.permissions.push(t.string());break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.session&&t.hasOwnProperty("session")&&!i.isString(t.session))return"session: string expected";if(null!=t.user&&t.hasOwnProperty("user")&&!i.isString(t.user))return"user: string expected";if(null!=t.role&&t.hasOwnProperty("role")&&!i.isString(t.role))return"role: string expected";if(null!=t.permissions&&t.hasOwnProperty("permissions")){if(!Array.isArray(t.permissions))return"permissions: array expected";for(var e=0;e<t.permissions.length;++e)if(!i.isString(t.permissions[e]))return"permissions: string[] expected"}return null},r.fromObject=function(t){if(t instanceof o.SessionsSocketDescriptor)return t;var e=new o.SessionsSocketDescriptor;if(null!=t.session&&(e.session=String(t.session)),null!=t.user&&(e.user=String(t.user)),null!=t.role&&(e.role=String(t.role)),t.permissions){if(!Array.isArray(t.permissions))throw TypeError(".SessionsSocketDescriptor.permissions: array expected");e.permissions=[];for(var n=0;n<t.permissions.length;++n)e.permissions[n]=String(t.permissions[n])}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.permissions=[]),e.defaults&&(n.session="",n.user="",n.role=""),null!=t.session&&t.hasOwnProperty("session")&&(n.session=t.session),null!=t.user&&t.hasOwnProperty("user")&&(n.user=t.user),null!=t.role&&t.hasOwnProperty("role")&&(n.role=t.role),t.permissions&&t.permissions.length){n.permissions=[];for(var i=0;i<t.permissions.length;++i)n.permissions[i]=t.permissions[i]}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SessionsSocketDescriptor"},r}(),o.SessionsConnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.sessionType=0,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.sessionType&&Object.hasOwnProperty.call(t,"sessionType")&&e.uint32(16).uint32(t.sessionType),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.SessionsConnectMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.sessionType=t.uint32();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.sessionType&&t.hasOwnProperty("sessionType")&&!i.isInteger(t.sessionType)?"sessionType: integer expected":null},r.fromObject=function(t){if(t instanceof o.SessionsConnectMessage)return t;var e=new o.SessionsConnectMessage;return null!=t.id&&(e.id=String(t.id)),null!=t.sessionType&&(e.sessionType=t.sessionType>>>0),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.sessionType=0),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.sessionType&&t.hasOwnProperty("sessionType")&&(n.sessionType=t.sessionType),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SessionsConnectMessage"},r}(),o.SocketConnectMessage=function(){function r(t){if(this.permissions=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.userId="",r.prototype.role="",r.prototype.permissions=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.userId&&Object.hasOwnProperty.call(t,"userId")&&e.uint32(18).string(t.userId),null!=t.role&&Object.hasOwnProperty.call(t,"role")&&e.uint32(26).string(t.role),null!=t.permissions&&t.permissions.length)for(var i=0;i<t.permissions.length;++i)e.uint32(34).string(t.permissions[i]);return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.SocketConnectMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.userId=t.string();break;case 3:r.role=t.string();break;case 4:r.permissions&&r.permissions.length||(r.permissions=[]),r.permissions.push(t.string());break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id))return"id: string expected";if(null!=t.userId&&t.hasOwnProperty("userId")&&!i.isString(t.userId))return"userId: string expected";if(null!=t.role&&t.hasOwnProperty("role")&&!i.isString(t.role))return"role: string expected";if(null!=t.permissions&&t.hasOwnProperty("permissions")){if(!Array.isArray(t.permissions))return"permissions: array expected";for(var e=0;e<t.permissions.length;++e)if(!i.isString(t.permissions[e]))return"permissions: string[] expected"}return null},r.fromObject=function(t){if(t instanceof o.SocketConnectMessage)return t;var e=new o.SocketConnectMessage;if(null!=t.id&&(e.id=String(t.id)),null!=t.userId&&(e.userId=String(t.userId)),null!=t.role&&(e.role=String(t.role)),t.permissions){if(!Array.isArray(t.permissions))throw TypeError(".SocketConnectMessage.permissions: array expected");e.permissions=[];for(var n=0;n<t.permissions.length;++n)e.permissions[n]=String(t.permissions[n])}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.permissions=[]),e.defaults&&(n.id="",n.userId="",n.role=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.userId&&t.hasOwnProperty("userId")&&(n.userId=t.userId),null!=t.role&&t.hasOwnProperty("role")&&(n.role=t.role),t.permissions&&t.permissions.length){n.permissions=[];for(var i=0;i<t.permissions.length;++i)n.permissions[i]=t.permissions[i]}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SocketConnectMessage"},r}(),o.SocketDisconnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.SocketDisconnectMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.id=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null},r.fromObject=function(t){if(t instanceof o.SocketDisconnectMessage)return t;var e=new o.SocketDisconnectMessage;return null!=t.id&&(e.id=String(t.id)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SocketDisconnectMessage"},r}(),o.SessionsConnectResponse=function(){function r(t){if(this.sockets=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.channel="",r.prototype.sockets=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.channel&&Object.hasOwnProperty.call(t,"channel")&&e.uint32(10).string(t.channel),null!=t.sockets&&t.sockets.length)for(var i=0;i<t.sockets.length;++i)o.SessionsSocketDescriptor.encode(t.sockets[i],e.uint32(18).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.SessionsConnectResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.channel=t.string();break;case 2:r.sockets&&r.sockets.length||(r.sockets=[]),r.sockets.push(o.SessionsSocketDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.channel&&t.hasOwnProperty("channel")&&!i.isString(t.channel))return"channel: string expected";if(null!=t.sockets&&t.hasOwnProperty("sockets")){if(!Array.isArray(t.sockets))return"sockets: array expected";for(var e=0;e<t.sockets.length;++e){var n=o.SessionsSocketDescriptor.verify(t.sockets[e]);if(n)return"sockets."+n}}return null},r.fromObject=function(t){if(t instanceof o.SessionsConnectResponse)return t;var e=new o.SessionsConnectResponse;if(null!=t.channel&&(e.channel=String(t.channel)),t.sockets){if(!Array.isArray(t.sockets))throw TypeError(".SessionsConnectResponse.sockets: array expected");e.sockets=[];for(var n=0;n<t.sockets.length;++n){if("object"!=typeof t.sockets[n])throw TypeError(".SessionsConnectResponse.sockets: object expected");e.sockets[n]=o.SessionsSocketDescriptor.fromObject(t.sockets[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.sockets=[]),e.defaults&&(n.channel=""),null!=t.channel&&t.hasOwnProperty("channel")&&(n.channel=t.channel),t.sockets&&t.sockets.length){n.sockets=[];for(var i=0;i<t.sockets.length;++i)n.sockets[i]=o.SessionsSocketDescriptor.toObject(t.sockets[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SessionsConnectResponse"},r}(),o.SuggestionDescriptor=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.authorId="",r.prototype.type="",r.prototype.createdAt="",r.prototype.data="",r.prototype.hasComments=!1,r.prototype.state="",r.prototype.attributes="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.authorId&&Object.hasOwnProperty.call(t,"authorId")&&e.uint32(18).string(t.authorId),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(26).string(t.type),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(34).string(t.createdAt),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(42).string(t.data),null!=t.hasComments&&Object.hasOwnProperty.call(t,"hasComments")&&e.uint32(48).bool(t.hasComments),null!=t.state&&Object.hasOwnProperty.call(t,"state")&&e.uint32(58).string(t.state),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(66).string(t.attributes),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.SuggestionDescriptor;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.authorId=t.string();break;case 3:r.type=t.string();break;case 4:r.createdAt=t.string();break;case 5:r.data=t.string();break;case 6:r.hasComments=t.bool();break;case 7:r.state=t.string();break;case 8:r.attributes=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.authorId&&t.hasOwnProperty("authorId")&&!i.isString(t.authorId)?"authorId: string expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isString(t.type)?"type: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.hasComments&&t.hasOwnProperty("hasComments")&&"boolean"!=typeof t.hasComments?"hasComments: boolean expected":null!=t.state&&t.hasOwnProperty("state")&&!i.isString(t.state)?"state: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null},r.fromObject=function(t){if(t instanceof o.SuggestionDescriptor)return t;var e=new o.SuggestionDescriptor;return null!=t.id&&(e.id=String(t.id)),null!=t.authorId&&(e.authorId=String(t.authorId)),null!=t.type&&(e.type=String(t.type)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.data&&(e.data=String(t.data)),null!=t.hasComments&&(e.hasComments=Boolean(t.hasComments)),null!=t.state&&(e.state=String(t.state)),null!=t.attributes&&(e.attributes=String(t.attributes)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.authorId="",n.type="",n.createdAt="",n.data="",n.hasComments=!1,n.state="",n.attributes=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.authorId&&t.hasOwnProperty("authorId")&&(n.authorId=t.authorId),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.hasComments&&t.hasOwnProperty("hasComments")&&(n.hasComments=t.hasComments),null!=t.state&&t.hasOwnProperty("state")&&(n.state=t.state),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SuggestionDescriptor"},r}(),o.TrackChangesAddSuggestionMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.documentId="",r.prototype.type="",r.prototype.data="",r.prototype.originalSuggestionId="",r.prototype.attributes="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(26).string(t.type),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(34).string(t.data),null!=t.originalSuggestionId&&Object.hasOwnProperty.call(t,"originalSuggestionId")&&e.uint32(42).string(t.originalSuggestionId),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(50).string(t.attributes),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesAddSuggestionMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.documentId=t.string();break;case 3:r.type=t.string();break;case 4:r.data=t.string();break;case 5:r.originalSuggestionId=t.string();break;case 6:r.attributes=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isString(t.type)?"type: string expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.originalSuggestionId&&t.hasOwnProperty("originalSuggestionId")&&!i.isString(t.originalSuggestionId)?"originalSuggestionId: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesAddSuggestionMessage)return t;var e=new o.TrackChangesAddSuggestionMessage;return null!=t.id&&(e.id=String(t.id)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.type&&(e.type=String(t.type)),null!=t.data&&(e.data=String(t.data)),null!=t.originalSuggestionId&&(e.originalSuggestionId=String(t.originalSuggestionId)),null!=t.attributes&&(e.attributes=String(t.attributes)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.documentId="",n.type="",n.data="",n.originalSuggestionId="",n.attributes=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.originalSuggestionId&&t.hasOwnProperty("originalSuggestionId")&&(n.originalSuggestionId=t.originalSuggestionId),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesAddSuggestionMessage"},r}(),o.TrackChangesBatchUpdateSuggestionsStateMessage=function(){function r(t){if(this.ids=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.ids=i.emptyArray,r.prototype.documentId="",r.prototype.state="",r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.ids&&t.ids.length)for(var i=0;i<t.ids.length;++i)e.uint32(10).string(t.ids[i]);return null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),null!=t.state&&Object.hasOwnProperty.call(t,"state")&&e.uint32(26).string(t.state),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesBatchUpdateSuggestionsStateMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.ids&&r.ids.length||(r.ids=[]),r.ids.push(t.string());break;case 2:r.documentId=t.string();break;case 3:r.state=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.ids&&t.hasOwnProperty("ids")){if(!Array.isArray(t.ids))return"ids: array expected";for(var e=0;e<t.ids.length;++e)if(!i.isString(t.ids[e]))return"ids: string[] expected"}return null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.state&&t.hasOwnProperty("state")&&!i.isString(t.state)?"state: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesBatchUpdateSuggestionsStateMessage)return t;var e=new o.TrackChangesBatchUpdateSuggestionsStateMessage;if(t.ids){if(!Array.isArray(t.ids))throw TypeError(".TrackChangesBatchUpdateSuggestionsStateMessage.ids: array expected");e.ids=[];for(var n=0;n<t.ids.length;++n)e.ids[n]=String(t.ids[n])}return null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.state&&(e.state=String(t.state)),e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.ids=[]),e.defaults&&(n.documentId="",n.state=""),t.ids&&t.ids.length){n.ids=[];for(var i=0;i<t.ids.length;++i)n.ids[i]=t.ids[i]}return null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.state&&t.hasOwnProperty("state")&&(n.state=t.state),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesBatchUpdateSuggestionsStateMessage"},r}(),o.TrackChangesConnectMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesConnectMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.documentId=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesConnectMessage)return t;var e=new o.TrackChangesConnectMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesConnectMessage"},r}(),o.TrackChangesGetAllSuggestionMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(10).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesGetAllSuggestionMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.documentId=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesGetAllSuggestionMessage)return t;var e=new o.TrackChangesGetAllSuggestionMessage;return null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.documentId=""),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesGetAllSuggestionMessage"},r}(),o.TrackChangesGetSuggestionMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.documentId="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesGetSuggestionMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.documentId=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesGetSuggestionMessage)return t;var e=new o.TrackChangesGetSuggestionMessage;return null!=t.id&&(e.id=String(t.id)),null!=t.documentId&&(e.documentId=String(t.documentId)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.documentId=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesGetSuggestionMessage"},r}(),o.TrackChangesUpdateSuggestionMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.documentId="",r.prototype.hasComments=!1,r.prototype.isHasCommentsModified=!1,r.prototype.state="",r.prototype.attributes="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.documentId&&Object.hasOwnProperty.call(t,"documentId")&&e.uint32(18).string(t.documentId),null!=t.hasComments&&Object.hasOwnProperty.call(t,"hasComments")&&e.uint32(24).bool(t.hasComments),null!=t.isHasCommentsModified&&Object.hasOwnProperty.call(t,"isHasCommentsModified")&&e.uint32(32).bool(t.isHasCommentsModified),null!=t.state&&Object.hasOwnProperty.call(t,"state")&&e.uint32(42).string(t.state),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(50).string(t.attributes),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesUpdateSuggestionMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.documentId=t.string();break;case 3:r.hasComments=t.bool();break;case 4:r.isHasCommentsModified=t.bool();break;case 5:r.state=t.string();break;case 6:r.attributes=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.documentId&&t.hasOwnProperty("documentId")&&!i.isString(t.documentId)?"documentId: string expected":null!=t.hasComments&&t.hasOwnProperty("hasComments")&&"boolean"!=typeof t.hasComments?"hasComments: boolean expected":null!=t.isHasCommentsModified&&t.hasOwnProperty("isHasCommentsModified")&&"boolean"!=typeof t.isHasCommentsModified?"isHasCommentsModified: boolean expected":null!=t.state&&t.hasOwnProperty("state")&&!i.isString(t.state)?"state: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesUpdateSuggestionMessage)return t;var e=new o.TrackChangesUpdateSuggestionMessage;return null!=t.id&&(e.id=String(t.id)),null!=t.documentId&&(e.documentId=String(t.documentId)),null!=t.hasComments&&(e.hasComments=Boolean(t.hasComments)),null!=t.isHasCommentsModified&&(e.isHasCommentsModified=Boolean(t.isHasCommentsModified)),null!=t.state&&(e.state=String(t.state)),null!=t.attributes&&(e.attributes=String(t.attributes)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.documentId="",n.hasComments=!1,n.isHasCommentsModified=!1,n.state="",n.attributes=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.documentId&&t.hasOwnProperty("documentId")&&(n.documentId=t.documentId),null!=t.hasComments&&t.hasOwnProperty("hasComments")&&(n.hasComments=t.hasComments),null!=t.isHasCommentsModified&&t.hasOwnProperty("isHasCommentsModified")&&(n.isHasCommentsModified=t.isHasCommentsModified),null!=t.state&&t.hasOwnProperty("state")&&(n.state=t.state),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesUpdateSuggestionMessage"},r}(),o.TrackChangesAddSuggestionResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.authorId="",r.prototype.type="",r.prototype.createdAt="",r.prototype.data="",r.prototype.hasComments=!1,r.prototype.state="",r.prototype.attributes="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.authorId&&Object.hasOwnProperty.call(t,"authorId")&&e.uint32(18).string(t.authorId),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(26).string(t.type),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(34).string(t.createdAt),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(42).string(t.data),null!=t.hasComments&&Object.hasOwnProperty.call(t,"hasComments")&&e.uint32(48).bool(t.hasComments),null!=t.state&&Object.hasOwnProperty.call(t,"state")&&e.uint32(58).string(t.state),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(66).string(t.attributes),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesAddSuggestionResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.authorId=t.string();break;case 3:r.type=t.string();break;case 4:r.createdAt=t.string();break;case 5:r.data=t.string();break;case 6:r.hasComments=t.bool();break;case 7:r.state=t.string();break;case 8:r.attributes=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.authorId&&t.hasOwnProperty("authorId")&&!i.isString(t.authorId)?"authorId: string expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isString(t.type)?"type: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.hasComments&&t.hasOwnProperty("hasComments")&&"boolean"!=typeof t.hasComments?"hasComments: boolean expected":null!=t.state&&t.hasOwnProperty("state")&&!i.isString(t.state)?"state: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesAddSuggestionResponse)return t;var e=new o.TrackChangesAddSuggestionResponse;return null!=t.id&&(e.id=String(t.id)),null!=t.authorId&&(e.authorId=String(t.authorId)),null!=t.type&&(e.type=String(t.type)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.data&&(e.data=String(t.data)),null!=t.hasComments&&(e.hasComments=Boolean(t.hasComments)),null!=t.state&&(e.state=String(t.state)),null!=t.attributes&&(e.attributes=String(t.attributes)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.authorId="",n.type="",n.createdAt="",n.data="",n.hasComments=!1,n.state="",n.attributes=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.authorId&&t.hasOwnProperty("authorId")&&(n.authorId=t.authorId),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.hasComments&&t.hasOwnProperty("hasComments")&&(n.hasComments=t.hasComments),null!=t.state&&t.hasOwnProperty("state")&&(n.state=t.state),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesAddSuggestionResponse"},r}(),o.TrackChangesConnectResponse=function(){function r(t){if(this.suggestions=[],this.suggestionsV2=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.channel="",r.prototype.suggestions=i.emptyArray,r.prototype.suggestionsV2=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.channel&&Object.hasOwnProperty.call(t,"channel")&&e.uint32(10).string(t.channel),null!=t.suggestions&&t.suggestions.length)for(var i=0;i<t.suggestions.length;++i)e.uint32(18).string(t.suggestions[i]);if(null!=t.suggestionsV2&&t.suggestionsV2.length)for(i=0;i<t.suggestionsV2.length;++i)o.SuggestionDescriptor.encode(t.suggestionsV2[i],e.uint32(26).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesConnectResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.channel=t.string();break;case 2:r.suggestions&&r.suggestions.length||(r.suggestions=[]),r.suggestions.push(t.string());break;case 3:r.suggestionsV2&&r.suggestionsV2.length||(r.suggestionsV2=[]),r.suggestionsV2.push(o.SuggestionDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.channel&&t.hasOwnProperty("channel")&&!i.isString(t.channel))return"channel: string expected";if(null!=t.suggestions&&t.hasOwnProperty("suggestions")){if(!Array.isArray(t.suggestions))return"suggestions: array expected";for(var e=0;e<t.suggestions.length;++e)if(!i.isString(t.suggestions[e]))return"suggestions: string[] expected"}if(null!=t.suggestionsV2&&t.hasOwnProperty("suggestionsV2")){if(!Array.isArray(t.suggestionsV2))return"suggestionsV2: array expected";for(e=0;e<t.suggestionsV2.length;++e){var n=o.SuggestionDescriptor.verify(t.suggestionsV2[e]);if(n)return"suggestionsV2."+n}}return null},r.fromObject=function(t){if(t instanceof o.TrackChangesConnectResponse)return t;var e=new o.TrackChangesConnectResponse;if(null!=t.channel&&(e.channel=String(t.channel)),t.suggestions){if(!Array.isArray(t.suggestions))throw TypeError(".TrackChangesConnectResponse.suggestions: array expected");e.suggestions=[];for(var n=0;n<t.suggestions.length;++n)e.suggestions[n]=String(t.suggestions[n])}if(t.suggestionsV2){if(!Array.isArray(t.suggestionsV2))throw TypeError(".TrackChangesConnectResponse.suggestionsV2: array expected");for(e.suggestionsV2=[],n=0;n<t.suggestionsV2.length;++n){if("object"!=typeof t.suggestionsV2[n])throw TypeError(".TrackChangesConnectResponse.suggestionsV2: object expected");e.suggestionsV2[n]=o.SuggestionDescriptor.fromObject(t.suggestionsV2[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.suggestions=[],n.suggestionsV2=[]),e.defaults&&(n.channel=""),null!=t.channel&&t.hasOwnProperty("channel")&&(n.channel=t.channel),t.suggestions&&t.suggestions.length){n.suggestions=[];for(var i=0;i<t.suggestions.length;++i)n.suggestions[i]=t.suggestions[i]}if(t.suggestionsV2&&t.suggestionsV2.length)for(n.suggestionsV2=[],i=0;i<t.suggestionsV2.length;++i)n.suggestionsV2[i]=o.SuggestionDescriptor.toObject(t.suggestionsV2[i],e);return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesConnectResponse"},r}(),o.TrackChangesGetAllSuggestionsResponse=function(){function r(t){if(this.suggestions=[],this.suggestionsV2=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.suggestions=i.emptyArray,r.prototype.suggestionsV2=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.suggestions&&t.suggestions.length)for(var i=0;i<t.suggestions.length;++i)e.uint32(10).string(t.suggestions[i]);if(null!=t.suggestionsV2&&t.suggestionsV2.length)for(i=0;i<t.suggestionsV2.length;++i)o.SuggestionDescriptor.encode(t.suggestionsV2[i],e.uint32(18).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesGetAllSuggestionsResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.suggestions&&r.suggestions.length||(r.suggestions=[]),r.suggestions.push(t.string());break;case 2:r.suggestionsV2&&r.suggestionsV2.length||(r.suggestionsV2=[]),r.suggestionsV2.push(o.SuggestionDescriptor.decode(t,t.uint32()));break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.suggestions&&t.hasOwnProperty("suggestions")){if(!Array.isArray(t.suggestions))return"suggestions: array expected";for(var e=0;e<t.suggestions.length;++e)if(!i.isString(t.suggestions[e]))return"suggestions: string[] expected"}if(null!=t.suggestionsV2&&t.hasOwnProperty("suggestionsV2")){if(!Array.isArray(t.suggestionsV2))return"suggestionsV2: array expected";for(e=0;e<t.suggestionsV2.length;++e){var n=o.SuggestionDescriptor.verify(t.suggestionsV2[e]);if(n)return"suggestionsV2."+n}}return null},r.fromObject=function(t){if(t instanceof o.TrackChangesGetAllSuggestionsResponse)return t;var e=new o.TrackChangesGetAllSuggestionsResponse;if(t.suggestions){if(!Array.isArray(t.suggestions))throw TypeError(".TrackChangesGetAllSuggestionsResponse.suggestions: array expected");e.suggestions=[];for(var n=0;n<t.suggestions.length;++n)e.suggestions[n]=String(t.suggestions[n])}if(t.suggestionsV2){if(!Array.isArray(t.suggestionsV2))throw TypeError(".TrackChangesGetAllSuggestionsResponse.suggestionsV2: array expected");for(e.suggestionsV2=[],n=0;n<t.suggestionsV2.length;++n){if("object"!=typeof t.suggestionsV2[n])throw TypeError(".TrackChangesGetAllSuggestionsResponse.suggestionsV2: object expected");e.suggestionsV2[n]=o.SuggestionDescriptor.fromObject(t.suggestionsV2[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.suggestions=[],n.suggestionsV2=[]),t.suggestions&&t.suggestions.length){n.suggestions=[];for(var i=0;i<t.suggestions.length;++i)n.suggestions[i]=t.suggestions[i]}if(t.suggestionsV2&&t.suggestionsV2.length)for(n.suggestionsV2=[],i=0;i<t.suggestionsV2.length;++i)n.suggestionsV2[i]=o.SuggestionDescriptor.toObject(t.suggestionsV2[i],e);return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesGetAllSuggestionsResponse"},r}(),o.TrackChangesGetSuggestionResponse=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.prototype.authorId="",r.prototype.type="",r.prototype.createdAt="",r.prototype.data="",r.prototype.hasComments=!1,r.prototype.state="",r.prototype.attributes="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),null!=t.authorId&&Object.hasOwnProperty.call(t,"authorId")&&e.uint32(18).string(t.authorId),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(26).string(t.type),null!=t.createdAt&&Object.hasOwnProperty.call(t,"createdAt")&&e.uint32(34).string(t.createdAt),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(42).string(t.data),null!=t.hasComments&&Object.hasOwnProperty.call(t,"hasComments")&&e.uint32(48).bool(t.hasComments),null!=t.state&&Object.hasOwnProperty.call(t,"state")&&e.uint32(58).string(t.state),null!=t.attributes&&Object.hasOwnProperty.call(t,"attributes")&&e.uint32(66).string(t.attributes),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.TrackChangesGetSuggestionResponse;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.id=t.string();break;case 2:r.authorId=t.string();break;case 3:r.type=t.string();break;case 4:r.createdAt=t.string();break;case 5:r.data=t.string();break;case 6:r.hasComments=t.bool();break;case 7:r.state=t.string();break;case 8:r.attributes=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null!=t.authorId&&t.hasOwnProperty("authorId")&&!i.isString(t.authorId)?"authorId: string expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isString(t.type)?"type: string expected":null!=t.createdAt&&t.hasOwnProperty("createdAt")&&!i.isString(t.createdAt)?"createdAt: string expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.hasComments&&t.hasOwnProperty("hasComments")&&"boolean"!=typeof t.hasComments?"hasComments: boolean expected":null!=t.state&&t.hasOwnProperty("state")&&!i.isString(t.state)?"state: string expected":null!=t.attributes&&t.hasOwnProperty("attributes")&&!i.isString(t.attributes)?"attributes: string expected":null},r.fromObject=function(t){if(t instanceof o.TrackChangesGetSuggestionResponse)return t;var e=new o.TrackChangesGetSuggestionResponse;return null!=t.id&&(e.id=String(t.id)),null!=t.authorId&&(e.authorId=String(t.authorId)),null!=t.type&&(e.type=String(t.type)),null!=t.createdAt&&(e.createdAt=String(t.createdAt)),null!=t.data&&(e.data=String(t.data)),null!=t.hasComments&&(e.hasComments=Boolean(t.hasComments)),null!=t.state&&(e.state=String(t.state)),null!=t.attributes&&(e.attributes=String(t.attributes)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id="",n.authorId="",n.type="",n.createdAt="",n.data="",n.hasComments=!1,n.state="",n.attributes=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.authorId&&t.hasOwnProperty("authorId")&&(n.authorId=t.authorId),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.createdAt&&t.hasOwnProperty("createdAt")&&(n.createdAt=t.createdAt),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.hasComments&&t.hasOwnProperty("hasComments")&&(n.hasComments=t.hasComments),null!=t.state&&t.hasOwnProperty("state")&&(n.state=t.state),null!=t.attributes&&t.hasOwnProperty("attributes")&&(n.attributes=t.attributes),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/TrackChangesGetSuggestionResponse"},r}(),o.UserDescriptor=function(){function r(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.attributes=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.attributes&&t.attributes.length)for(var i=0;i<t.attributes.length;++i)o.KeyValueDescriptor.encode(t.attributes[i],e.uint32(10).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.UserDescriptor;t.pos<i;){var s=t.uint32();s>>>3==1?(r.attributes&&r.attributes.length||(r.attributes=[]),r.attributes.push(o.KeyValueDescriptor.decode(t,t.uint32()))):t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.attributes&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=o.KeyValueDescriptor.verify(t.attributes[e]);if(n)return"attributes."+n}}return null},r.fromObject=function(t){if(t instanceof o.UserDescriptor)return t;var e=new o.UserDescriptor;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".UserDescriptor.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if("object"!=typeof t.attributes[n])throw TypeError(".UserDescriptor.attributes: object expected");e.attributes[n]=o.KeyValueDescriptor.fromObject(t.attributes[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),t.attributes&&t.attributes.length){n.attributes=[];for(var i=0;i<t.attributes.length;++i)n.attributes[i]=o.KeyValueDescriptor.toObject(t.attributes[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/UserDescriptor"},r}(),o.GetManyUsersMessage=function(){function r(t){if(this.ids=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.ids=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.ids&&t.ids.length)for(var i=0;i<t.ids.length;++i)e.uint32(10).string(t.ids[i]);return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.GetManyUsersMessage;t.pos<i;){var s=t.uint32();s>>>3==1?(r.ids&&r.ids.length||(r.ids=[]),r.ids.push(t.string())):t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.ids&&t.hasOwnProperty("ids")){if(!Array.isArray(t.ids))return"ids: array expected";for(var e=0;e<t.ids.length;++e)if(!i.isString(t.ids[e]))return"ids: string[] expected"}return null},r.fromObject=function(t){if(t instanceof o.GetManyUsersMessage)return t;var e=new o.GetManyUsersMessage;if(t.ids){if(!Array.isArray(t.ids))throw TypeError(".GetManyUsersMessage.ids: array expected");e.ids=[];for(var n=0;n<t.ids.length;++n)e.ids[n]=String(t.ids[n])}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.ids=[]),t.ids&&t.ids.length){n.ids=[];for(var i=0;i<t.ids.length;++i)n.ids[i]=t.ids[i]}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/GetManyUsersMessage"},r}(),o.GetUserMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.id="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.GetUserMessage;t.pos<i;){var s=t.uint32();s>>>3==1?r.id=t.string():t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isString(t.id)?"id: string expected":null},r.fromObject=function(t){if(t instanceof o.GetUserMessage)return t;var e=new o.GetUserMessage;return null!=t.id&&(e.id=String(t.id)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.id=""),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/GetUserMessage"},r}(),o.GetManyUsersResponse=function(){function r(t){if(this.users=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.users=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.users&&t.users.length)for(var i=0;i<t.users.length;++i)o.UserDescriptor.encode(t.users[i],e.uint32(10).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.GetManyUsersResponse;t.pos<i;){var s=t.uint32();s>>>3==1?(r.users&&r.users.length||(r.users=[]),r.users.push(o.UserDescriptor.decode(t,t.uint32()))):t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.users&&t.hasOwnProperty("users")){if(!Array.isArray(t.users))return"users: array expected";for(var e=0;e<t.users.length;++e){var n=o.UserDescriptor.verify(t.users[e]);if(n)return"users."+n}}return null},r.fromObject=function(t){if(t instanceof o.GetManyUsersResponse)return t;var e=new o.GetManyUsersResponse;if(t.users){if(!Array.isArray(t.users))throw TypeError(".GetManyUsersResponse.users: array expected");e.users=[];for(var n=0;n<t.users.length;++n){if("object"!=typeof t.users[n])throw TypeError(".GetManyUsersResponse.users: object expected");e.users[n]=o.UserDescriptor.fromObject(t.users[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.users=[]),t.users&&t.users.length){n.users=[];for(var i=0;i<t.users.length;++i)n.users[i]=o.UserDescriptor.toObject(t.users[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/GetManyUsersResponse"},r}(),o.GetUserResponse=function(){function r(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.attributes=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.attributes&&t.attributes.length)for(var i=0;i<t.attributes.length;++i)o.KeyValueDescriptor.encode(t.attributes[i],e.uint32(10).fork()).ldelim();return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.GetUserResponse;t.pos<i;){var s=t.uint32();s>>>3==1?(r.attributes&&r.attributes.length||(r.attributes=[]),r.attributes.push(o.KeyValueDescriptor.decode(t,t.uint32()))):t.skipType(7&s)}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.attributes&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=o.KeyValueDescriptor.verify(t.attributes[e]);if(n)return"attributes."+n}}return null},r.fromObject=function(t){if(t instanceof o.GetUserResponse)return t;var e=new o.GetUserResponse;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".GetUserResponse.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if("object"!=typeof t.attributes[n])throw TypeError(".GetUserResponse.attributes: object expected");e.attributes[n]=o.KeyValueDescriptor.fromObject(t.attributes[n])}}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),t.attributes&&t.attributes.length){n.attributes=[];for(var i=0;i<t.attributes.length;++i)n.attributes[i]=o.KeyValueDescriptor.toObject(t.attributes[i],e)}return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/GetUserResponse"},r}(),o.ChannelMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.type=0,r.prototype.socketId="",r.prototype.data=i.newBuffer([]),r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(8).uint32(t.type),null!=t.socketId&&Object.hasOwnProperty.call(t,"socketId")&&e.uint32(18).string(t.socketId),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(26).bytes(t.data),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.ChannelMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.type=t.uint32();break;case 2:r.socketId=t.string();break;case 3:r.data=t.bytes();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isInteger(t.type)?"type: integer expected":null!=t.socketId&&t.hasOwnProperty("socketId")&&!i.isString(t.socketId)?"socketId: string expected":null!=t.data&&t.hasOwnProperty("data")&&!(t.data&&"number"==typeof t.data.length||i.isString(t.data))?"data: buffer expected":null},r.fromObject=function(t){if(t instanceof o.ChannelMessage)return t;var e=new o.ChannelMessage;return null!=t.type&&(e.type=t.type>>>0),null!=t.socketId&&(e.socketId=String(t.socketId)),null!=t.data&&("string"==typeof t.data?i.base64.decode(t.data,e.data=i.newBuffer(i.base64.length(t.data)),0):t.data.length>=0&&(e.data=t.data)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.type=0,n.socketId="",e.bytes===String?n.data="":(n.data=[],e.bytes!==Array&&(n.data=i.newBuffer(n.data)))),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.socketId&&t.hasOwnProperty("socketId")&&(n.socketId=t.socketId),null!=t.data&&t.hasOwnProperty("data")&&(n.data=e.bytes===String?i.base64.encode(t.data,0,t.data.length):e.bytes===Array?Array.prototype.slice.call(t.data):t.data),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/ChannelMessage"},r}(),o.BytesBytesPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data=i.newBuffer([]),r.prototype.data1=i.newBuffer([]),r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).bytes(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).bytes(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.BytesBytesPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.bytes();break;case 2:r.data1=t.bytes();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!(t.data&&"number"==typeof t.data.length||i.isString(t.data))?"data: buffer expected":null!=t.data1&&t.hasOwnProperty("data1")&&!(t.data1&&"number"==typeof t.data1.length||i.isString(t.data1))?"data1: buffer expected":null},r.fromObject=function(t){if(t instanceof o.BytesBytesPacketDataMessage)return t;var e=new o.BytesBytesPacketDataMessage;return null!=t.data&&("string"==typeof t.data?i.base64.decode(t.data,e.data=i.newBuffer(i.base64.length(t.data)),0):t.data.length>=0&&(e.data=t.data)),null!=t.data1&&("string"==typeof t.data1?i.base64.decode(t.data1,e.data1=i.newBuffer(i.base64.length(t.data1)),0):t.data1.length>=0&&(e.data1=t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(e.bytes===String?n.data="":(n.data=[],e.bytes!==Array&&(n.data=i.newBuffer(n.data))),e.bytes===String?n.data1="":(n.data1=[],e.bytes!==Array&&(n.data1=i.newBuffer(n.data1)))),null!=t.data&&t.hasOwnProperty("data")&&(n.data=e.bytes===String?i.base64.encode(t.data,0,t.data.length):e.bytes===Array?Array.prototype.slice.call(t.data):t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=e.bytes===String?i.base64.encode(t.data1,0,t.data1.length):e.bytes===Array?Array.prototype.slice.call(t.data1):t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/BytesBytesPacketDataMessage"},r}(),o.NumberBytesPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data=0,r.prototype.data1=i.newBuffer([]),r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(8).uint32(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).bytes(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.NumberBytesPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.uint32();break;case 2:r.data1=t.bytes();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isInteger(t.data)?"data: integer expected":null!=t.data1&&t.hasOwnProperty("data1")&&!(t.data1&&"number"==typeof t.data1.length||i.isString(t.data1))?"data1: buffer expected":null},r.fromObject=function(t){if(t instanceof o.NumberBytesPacketDataMessage)return t;var e=new o.NumberBytesPacketDataMessage;return null!=t.data&&(e.data=t.data>>>0),null!=t.data1&&("string"==typeof t.data1?i.base64.decode(t.data1,e.data1=i.newBuffer(i.base64.length(t.data1)),0):t.data1.length>=0&&(e.data1=t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data=0,e.bytes===String?n.data1="":(n.data1=[],e.bytes!==Array&&(n.data1=i.newBuffer(n.data1)))),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=e.bytes===String?i.base64.encode(t.data1,0,t.data1.length):e.bytes===Array?Array.prototype.slice.call(t.data1):t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/NumberBytesPacketDataMessage"},r}(),o.NumberNumberPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data=0,r.prototype.data1=0,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(8).uint32(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(16).uint32(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.NumberNumberPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.uint32();break;case 2:r.data1=t.uint32();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isInteger(t.data)?"data: integer expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isInteger(t.data1)?"data1: integer expected":null},r.fromObject=function(t){if(t instanceof o.NumberNumberPacketDataMessage)return t;var e=new o.NumberNumberPacketDataMessage;return null!=t.data&&(e.data=t.data>>>0),null!=t.data1&&(e.data1=t.data1>>>0),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data=0,n.data1=0),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/NumberNumberPacketDataMessage"},r}(),o.NumberObjectPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data=0,r.prototype.data1="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(8).uint32(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).string(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.NumberObjectPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.uint32();break;case 2:r.data1=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isInteger(t.data)?"data: integer expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isString(t.data1)?"data1: string expected":null},r.fromObject=function(t){if(t instanceof o.NumberObjectPacketDataMessage)return t;var e=new o.NumberObjectPacketDataMessage;return null!=t.data&&(e.data=t.data>>>0),null!=t.data1&&(e.data1=String(t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data=0,n.data1=""),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/NumberObjectPacketDataMessage"},r}(),o.NumberStringPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data=0,r.prototype.data1="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(8).uint32(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).string(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.NumberStringPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.uint32();break;case 2:r.data1=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isInteger(t.data)?"data: integer expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isString(t.data1)?"data1: string expected":null},r.fromObject=function(t){if(t instanceof o.NumberStringPacketDataMessage)return t;var e=new o.NumberStringPacketDataMessage;return null!=t.data&&(e.data=t.data>>>0),null!=t.data1&&(e.data1=String(t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data=0,n.data1=""),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/NumberStringPacketDataMessage"},r}(),o.ObjectBufferPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data="",r.prototype.data1=i.newBuffer([]),r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).string(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).bytes(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.ObjectBufferPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.data1=t.bytes();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.data1&&t.hasOwnProperty("data1")&&!(t.data1&&"number"==typeof t.data1.length||i.isString(t.data1))?"data1: buffer expected":null},r.fromObject=function(t){if(t instanceof o.ObjectBufferPacketDataMessage)return t;var e=new o.ObjectBufferPacketDataMessage;return null!=t.data&&(e.data=String(t.data)),null!=t.data1&&("string"==typeof t.data1?i.base64.decode(t.data1,e.data1=i.newBuffer(i.base64.length(t.data1)),0):t.data1.length>=0&&(e.data1=t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data="",e.bytes===String?n.data1="":(n.data1=[],e.bytes!==Array&&(n.data1=i.newBuffer(n.data1)))),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=e.bytes===String?i.base64.encode(t.data1,0,t.data1.length):e.bytes===Array?Array.prototype.slice.call(t.data1):t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/ObjectBufferPacketDataMessage"},r}(),o.ObjectObjectPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data="",r.prototype.data1="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).string(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).string(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.ObjectObjectPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.data1=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isString(t.data1)?"data1: string expected":null},r.fromObject=function(t){if(t instanceof o.ObjectObjectPacketDataMessage)return t;var e=new o.ObjectObjectPacketDataMessage;return null!=t.data&&(e.data=String(t.data)),null!=t.data1&&(e.data1=String(t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data="",n.data1=""),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/ObjectObjectPacketDataMessage"},r}(),o.PacketMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.type=0,r.prototype.id=0,r.prototype.nsp="",r.prototype.data=i.newBuffer([]),r.prototype.options=i.newBuffer([]),r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.type&&Object.hasOwnProperty.call(t,"type")&&e.uint32(8).uint32(t.type),null!=t.id&&Object.hasOwnProperty.call(t,"id")&&e.uint32(16).uint32(t.id),null!=t.nsp&&Object.hasOwnProperty.call(t,"nsp")&&e.uint32(26).string(t.nsp),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(34).bytes(t.data),null!=t.options&&Object.hasOwnProperty.call(t,"options")&&e.uint32(42).bytes(t.options),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.PacketMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.type=t.uint32();break;case 2:r.id=t.uint32();break;case 3:r.nsp=t.string();break;case 4:r.data=t.bytes();break;case 5:r.options=t.bytes();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.type&&t.hasOwnProperty("type")&&!i.isInteger(t.type)?"type: integer expected":null!=t.id&&t.hasOwnProperty("id")&&!i.isInteger(t.id)?"id: integer expected":null!=t.nsp&&t.hasOwnProperty("nsp")&&!i.isString(t.nsp)?"nsp: string expected":null!=t.data&&t.hasOwnProperty("data")&&!(t.data&&"number"==typeof t.data.length||i.isString(t.data))?"data: buffer expected":null!=t.options&&t.hasOwnProperty("options")&&!(t.options&&"number"==typeof t.options.length||i.isString(t.options))?"options: buffer expected":null},r.fromObject=function(t){if(t instanceof o.PacketMessage)return t;var e=new o.PacketMessage;return null!=t.type&&(e.type=t.type>>>0),null!=t.id&&(e.id=t.id>>>0),null!=t.nsp&&(e.nsp=String(t.nsp)),null!=t.data&&("string"==typeof t.data?i.base64.decode(t.data,e.data=i.newBuffer(i.base64.length(t.data)),0):t.data.length>=0&&(e.data=t.data)),null!=t.options&&("string"==typeof t.options?i.base64.decode(t.options,e.options=i.newBuffer(i.base64.length(t.options)),0):t.options.length>=0&&(e.options=t.options)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.type=0,n.id=0,n.nsp="",e.bytes===String?n.data="":(n.data=[],e.bytes!==Array&&(n.data=i.newBuffer(n.data))),e.bytes===String?n.options="":(n.options=[],e.bytes!==Array&&(n.options=i.newBuffer(n.options)))),null!=t.type&&t.hasOwnProperty("type")&&(n.type=t.type),null!=t.id&&t.hasOwnProperty("id")&&(n.id=t.id),null!=t.nsp&&t.hasOwnProperty("nsp")&&(n.nsp=t.nsp),null!=t.data&&t.hasOwnProperty("data")&&(n.data=e.bytes===String?i.base64.encode(t.data,0,t.data.length):e.bytes===Array?Array.prototype.slice.call(t.data):t.data),null!=t.options&&t.hasOwnProperty("options")&&(n.options=e.bytes===String?i.base64.encode(t.options,0,t.options.length):e.bytes===Array?Array.prototype.slice.call(t.options):t.options),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/PacketMessage"},r}(),o.PacketOptionsMessage=function(){function r(t){if(this.rooms=[],this.except=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.flags="",r.prototype.rooms=i.emptyArray,r.prototype.except=i.emptyArray,r.create=function(t){return new r(t)},r.encode=function(t,e){if(e||(e=n.create()),null!=t.flags&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(10).string(t.flags),null!=t.rooms&&t.rooms.length)for(var i=0;i<t.rooms.length;++i)e.uint32(18).string(t.rooms[i]);if(null!=t.except&&t.except.length)for(i=0;i<t.except.length;++i)e.uint32(26).string(t.except[i]);return e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.PacketOptionsMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.flags=t.string();break;case 2:r.rooms&&r.rooms.length||(r.rooms=[]),r.rooms.push(t.string());break;case 3:r.except&&r.except.length||(r.except=[]),r.except.push(t.string());break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.flags&&t.hasOwnProperty("flags")&&!i.isString(t.flags))return"flags: string expected";if(null!=t.rooms&&t.hasOwnProperty("rooms")){if(!Array.isArray(t.rooms))return"rooms: array expected";for(var e=0;e<t.rooms.length;++e)if(!i.isString(t.rooms[e]))return"rooms: string[] expected"}if(null!=t.except&&t.hasOwnProperty("except")){if(!Array.isArray(t.except))return"except: array expected";for(e=0;e<t.except.length;++e)if(!i.isString(t.except[e]))return"except: string[] expected"}return null},r.fromObject=function(t){if(t instanceof o.PacketOptionsMessage)return t;var e=new o.PacketOptionsMessage;if(null!=t.flags&&(e.flags=String(t.flags)),t.rooms){if(!Array.isArray(t.rooms))throw TypeError(".PacketOptionsMessage.rooms: array expected");e.rooms=[];for(var n=0;n<t.rooms.length;++n)e.rooms[n]=String(t.rooms[n])}if(t.except){if(!Array.isArray(t.except))throw TypeError(".PacketOptionsMessage.except: array expected");for(e.except=[],n=0;n<t.except.length;++n)e.except[n]=String(t.except[n])}return e},r.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.rooms=[],n.except=[]),e.defaults&&(n.flags=""),null!=t.flags&&t.hasOwnProperty("flags")&&(n.flags=t.flags),t.rooms&&t.rooms.length){n.rooms=[];for(var i=0;i<t.rooms.length;++i)n.rooms[i]=t.rooms[i]}if(t.except&&t.except.length)for(n.except=[],i=0;i<t.except.length;++i)n.except[i]=t.except[i];return n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/PacketOptionsMessage"},r}(),o.StringBytesPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data="",r.prototype.data1=i.newBuffer([]),r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).string(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).bytes(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.StringBytesPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.data1=t.bytes();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.data1&&t.hasOwnProperty("data1")&&!(t.data1&&"number"==typeof t.data1.length||i.isString(t.data1))?"data1: buffer expected":null},r.fromObject=function(t){if(t instanceof o.StringBytesPacketDataMessage)return t;var e=new o.StringBytesPacketDataMessage;return null!=t.data&&(e.data=String(t.data)),null!=t.data1&&("string"==typeof t.data1?i.base64.decode(t.data1,e.data1=i.newBuffer(i.base64.length(t.data1)),0):t.data1.length>=0&&(e.data1=t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data="",e.bytes===String?n.data1="":(n.data1=[],e.bytes!==Array&&(n.data1=i.newBuffer(n.data1)))),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=e.bytes===String?i.base64.encode(t.data1,0,t.data1.length):e.bytes===Array?Array.prototype.slice.call(t.data1):t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/StringBytesPacketDataMessage"},r}(),o.StringNumberPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data="",r.prototype.data1=0,r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).string(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(16).uint32(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.StringNumberPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.data1=t.uint32();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isInteger(t.data1)?"data1: integer expected":null},r.fromObject=function(t){if(t instanceof o.StringNumberPacketDataMessage)return t;var e=new o.StringNumberPacketDataMessage;return null!=t.data&&(e.data=String(t.data)),null!=t.data1&&(e.data1=t.data1>>>0),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data="",n.data1=0),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/StringNumberPacketDataMessage"},r}(),o.StringObjectPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data="",r.prototype.data1="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).string(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).string(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.StringObjectPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.data1=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isString(t.data1)?"data1: string expected":null},r.fromObject=function(t){if(t instanceof o.StringObjectPacketDataMessage)return t;var e=new o.StringObjectPacketDataMessage;return null!=t.data&&(e.data=String(t.data)),null!=t.data1&&(e.data1=String(t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data="",n.data1=""),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/StringObjectPacketDataMessage"},r}(),o.StringStringPacketDataMessage=function(){function r(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return r.prototype.data="",r.prototype.data1="",r.create=function(t){return new r(t)},r.encode=function(t,e){return e||(e=n.create()),null!=t.data&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).string(t.data),null!=t.data1&&Object.hasOwnProperty.call(t,"data1")&&e.uint32(18).string(t.data1),e},r.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},r.decode=function(t,n){t instanceof e||(t=e.create(t));for(var i=void 0===n?t.len:t.pos+n,r=new o.StringStringPacketDataMessage;t.pos<i;){var s=t.uint32();switch(s>>>3){case 1:r.data=t.string();break;case 2:r.data1=t.string();break;default:t.skipType(7&s)}}return r},r.decodeDelimited=function(t){return t instanceof e||(t=new e(t)),this.decode(t,t.uint32())},r.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.data&&t.hasOwnProperty("data")&&!i.isString(t.data)?"data: string expected":null!=t.data1&&t.hasOwnProperty("data1")&&!i.isString(t.data1)?"data1: string expected":null},r.fromObject=function(t){if(t instanceof o.StringStringPacketDataMessage)return t;var e=new o.StringStringPacketDataMessage;return null!=t.data&&(e.data=String(t.data)),null!=t.data1&&(e.data1=String(t.data1)),e},r.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.data="",n.data1=""),null!=t.data&&t.hasOwnProperty("data")&&(n.data=t.data),null!=t.data1&&t.hasOwnProperty("data1")&&(n.data1=t.data1),n},r.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},r.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/StringStringPacketDataMessage"},r}(),o},o=[n(9817)],void 0===(r="function"==typeof(i=s)?i.apply(e,o):i)||(t.exports=r)},4229:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(...t){}}},5132:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const o=n(6553),r=i(n(822)),s=n(3136),a=i(n(4701)),c=i(n(4858)),l=i(n(6732));e._SERVICE=13;class d extends((0,o.EmitterMixin)()){static async isBundleUploaded(t,e){const n=new a.default(e);if(t.state!==s.WEB_SOCKET_GATEWAY_STATES.CONNECTED)throw new l.default("WebSocket Gateway is not connected.",t);const i=await t._sendRequest(d._SERVICE,a.default.TYPE,r.default.encode(n));return r.default.decode(i,c.default).isUploaded}}d._SERVICE=e._SERVICE,e.default=d},4701:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.bundleVersion=t}toJSON(){return{bundleVersion:this.bundleVersion}}static fromJSON(t){return new r(t.bundleVersion)}}e.default=r,r.TYPE="131",r.READABLE_TYPE_NAME="isEditorBundleUploaded",r.DESCRIPTOR_NAME="IsEditorBundleUploadedMessage",r.DESCRIPTOR={fields:{bundleVersion:{type:"string",id:1}}}},4858:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.isUploaded=t}toJSON(){return{isUploaded:this.isUploaded}}static fromJSON(t){return new r(t.isUploaded)}}e.default=r,r.DESCRIPTOR_NAME="IsEditorBundleUploadedResponse",r.DESCRIPTOR={fields:{isUploaded:{type:"bool",id:1}}}},6315:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(6732));class r extends o.default{constructor(t,e){super(t+" Service is not connected.",e)}}e.default=r},4916:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AddCommentThreadMessage=e.IsEditorBundleUploadedResponse=e.IsEditorBundleUploadedMessage=e.GetDocumentDetailsResponse=e.GetDocumentDetailsMessage=e.ChannelMessage=e.RevisionHistoryUpdateRevisionsResponse=e.RevisionHistoryGetRevisionResponse=e.RevisionHistoryConnectResponse=e.RevisionHistoryUpdateRevisionsMessage=e.RevisionHistoryGetRevisionMessage=e.RevisionHistoryReconnectMessage=e.RevisionHistoryConnectMessage=e.User=e.GetManyUsersResponse=e.GetUserResponse=e.GetManyUsersMessage=e.GetUserMessage=e.BatchUpdateSuggestionsStateMessage=e.UpdateSuggestionMessage=e.GetSuggestionMessage=e.GetAllSuggestionsMessage=e.ConnectTrackChangesMessage=e.GetSuggestionResponse=e.GetAllSuggestionsResponse=e.ConnectTrackChangesResponse=e.AddSuggestionResponse=e.AddSuggestionMessage=e.SocketDisconnectMessage=e.SocketConnectMessage=e.SessionsConnectResponse=e.SessionsConnectMessage=e.GetCommentThreadResponse=e.ConnectCommentsResponse=e.AddCommentResponse=e.UpdateCommentMessage=e.RemoveCommentThreadMessage=e.GetDocumentThreadsResponse=e.RemoveCommentMessage=e.GetDocumentThreadsMessage=e.GetCommentThreadMessage=e.ConnectCommentsMessage=e.AddCommentMessage=e.CollaborativeEditingResponse=e.CollaborativeEditingConnectResponse=e.CollaborativeEditingUpdateMessage=e.CollaborativeEditingReconnectMessage=e.CollaborativeEditingConnectMessage=e.MessagesMapper=e.MessagesCompressor=void 0,e.Parser=e.PacketParser=e.Decoder=e.Encoder=e.ResolveCommentThreadResponse=e.AddCommentThreadResponse=e.UpdateCommentThreadMessage=e.ResolveCommentThreadMessage=e.ReopenCommentThreadMessage=void 0;const a=s(n(822));e.MessagesCompressor=a.default;const c=s(n(5668));e.MessagesMapper=c.default;const l=s(n(5834));e.CollaborativeEditingConnectMessage=l.default;const d=s(n(4053));e.CollaborativeEditingReconnectMessage=d.default;const u=s(n(4721));e.CollaborativeEditingUpdateMessage=u.default;const h=s(n(3297));e.CollaborativeEditingConnectResponse=h.default;const m=s(n(5184));e.CollaborativeEditingResponse=m.default;const g=s(n(3510));e.GetDocumentDetailsMessage=g.default;const p=s(n(2663));e.GetDocumentDetailsResponse=p.default;const f=s(n(4076));e.GetManyUsersMessage=f.default;const x=s(n(6461));e.GetManyUsersResponse=x.default;const b=s(n(3184));e.GetUserMessage=b.default;const k=s(n(1783));e.GetUserResponse=k.default;const w=s(n(2203));e.User=w.default;const A=s(n(8262));e.AddCommentMessage=A.default;const _=s(n(6689));e.AddCommentResponse=_.default;const v=s(n(7566));e.ConnectCommentsMessage=v.default;const C=s(n(673));e.GetCommentThreadMessage=C.default;const y=s(n(5254));e.GetDocumentThreadsMessage=y.default;const E=s(n(5049));e.GetDocumentThreadsResponse=E.default;const I=s(n(7848));e.RemoveCommentMessage=I.default;const S=s(n(5785));e.RemoveCommentThreadMessage=S.default;const T=s(n(5456));e.UpdateCommentMessage=T.default;const D=s(n(1376));e.ConnectCommentsResponse=D.default;const M=s(n(9725));e.GetCommentThreadResponse=M.default;const B=s(n(1663));e.UpdateCommentThreadMessage=B.default;const O=s(n(3822));e.ResolveCommentThreadMessage=O.default;const N=s(n(5516));e.ReopenCommentThreadMessage=N.default;const P=s(n(7228));e.AddCommentThreadMessage=P.default;const R=s(n(8576));e.AddCommentThreadResponse=R.default;const L=s(n(773));e.ResolveCommentThreadResponse=L.default;const j=s(n(7182));e.SessionsConnectMessage=j.default;const z=s(n(6118));e.SessionsConnectResponse=z.default;const V=s(n(733));e.SocketConnectMessage=V.default;const F=s(n(8902));e.SocketDisconnectMessage=F.default;const U=s(n(5596));e.AddSuggestionMessage=U.default;const H=s(n(772));e.AddSuggestionResponse=H.default;const G=s(n(2414));e.GetAllSuggestionsResponse=G.default;const q=s(n(9849));e.GetSuggestionResponse=q.default;const W=s(n(3031));e.GetSuggestionMessage=W.default;const K=s(n(4060));e.GetAllSuggestionsMessage=K.default;const Z=s(n(2821));e.UpdateSuggestionMessage=Z.default;const Y=s(n(7323));e.ConnectTrackChangesMessage=Y.default;const J=s(n(9940));e.ConnectTrackChangesResponse=J.default;const $=s(n(8622));e.BatchUpdateSuggestionsStateMessage=$.default;const Q=s(n(5330));e.RevisionHistoryConnectMessage=Q.default;const X=s(n(3728));e.RevisionHistoryReconnectMessage=X.default;const tt=s(n(8776));e.RevisionHistoryGetRevisionMessage=tt.default;const et=s(n(446));e.RevisionHistoryUpdateRevisionsMessage=et.default;const nt=s(n(5847));e.RevisionHistoryConnectResponse=nt.default;const it=s(n(9055));e.RevisionHistoryGetRevisionResponse=it.default;const ot=s(n(8386));e.RevisionHistoryUpdateRevisionsResponse=ot.default;const rt=s(n(4858));e.IsEditorBundleUploadedResponse=rt.default;const st=s(n(4701));e.IsEditorBundleUploadedMessage=st.default;const at=r(n(9549));e.Parser=at;const ct=s(n(6311));e.PacketParser=ct.default;const lt=s(n(2021));e.ChannelMessage=lt.default;const{Encoder:dt,Decoder:ut}=at;e.Encoder=dt,e.Decoder=ut},3210:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229));class r extends o.default{constructor(...t){super()}static fromJSON(t){throw new TypeError("Must be implemented in a child class!")}}e.default=r,r.TYPE="1000"},822:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(6981));function r(t){return o.default[t.DESCRIPTOR_NAME]}e.default=class{static decode(t,e){const n=r(e).decode("undefined"==typeof window?t:new Uint8Array(t));return e.fromJSON({...n})}static encode(t){const e=r(t.constructor),n=t.toJSON(),i=e.verify(n);if(i)throw Error(i);return e.encode(e.create(n)).finish()}}},5668:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(5834)),r=i(n(4053)),s=i(n(4721)),a=i(n(3510)),c=i(n(8262)),l=i(n(7566)),d=i(n(673)),u=i(n(5254)),h=i(n(7848)),m=i(n(5785)),g=i(n(5456)),p=i(n(7182)),f=i(n(733)),x=i(n(8902)),b=i(n(5596)),k=i(n(4060)),w=i(n(3031)),A=i(n(2821)),_=i(n(7323)),v=i(n(8622)),C=i(n(3184)),y=i(n(4076)),E=i(n(5330)),I=i(n(3728)),S=i(n(8776)),T=i(n(446)),D=i(n(4701)),M=i(n(3822)),B=i(n(5516)),O=i(n(1663)),N=i(n(7228)),P=new Map([[o.default.TYPE,o.default.READABLE_TYPE_NAME],[r.default.TYPE,r.default.READABLE_TYPE_NAME],[s.default.TYPE,s.default.READABLE_TYPE_NAME],[a.default.TYPE,a.default.READABLE_TYPE_NAME],[c.default.TYPE,c.default.READABLE_TYPE_NAME],[l.default.TYPE,l.default.READABLE_TYPE_NAME],[d.default.TYPE,d.default.READABLE_TYPE_NAME],[u.default.TYPE,u.default.READABLE_TYPE_NAME],[h.default.TYPE,h.default.READABLE_TYPE_NAME],[m.default.TYPE,m.default.READABLE_TYPE_NAME],[g.default.TYPE,g.default.READABLE_TYPE_NAME],[p.default.TYPE,p.default.READABLE_TYPE_NAME],[f.default.TYPE,f.default.READABLE_TYPE_NAME],[x.default.TYPE,x.default.READABLE_TYPE_NAME],[b.default.TYPE,b.default.READABLE_TYPE_NAME],[w.default.TYPE,w.default.READABLE_TYPE_NAME],[A.default.TYPE,A.default.READABLE_TYPE_NAME],[k.default.TYPE,k.default.READABLE_TYPE_NAME],[_.default.TYPE,_.default.READABLE_TYPE_NAME],[v.default.TYPE,v.default.READABLE_TYPE_NAME],[C.default.TYPE,C.default.READABLE_TYPE_NAME],[y.default.TYPE,y.default.READABLE_TYPE_NAME],[E.default.TYPE,E.default.READABLE_TYPE_NAME],[I.default.TYPE,I.default.READABLE_TYPE_NAME],[S.default.TYPE,S.default.READABLE_TYPE_NAME],[T.default.TYPE,T.default.READABLE_TYPE_NAME],[D.default.TYPE,D.default.READABLE_TYPE_NAME],[M.default.TYPE,M.default.READABLE_TYPE_NAME],[B.default.TYPE,B.default.READABLE_TYPE_NAME],[O.default.TYPE,O.default.READABLE_TYPE_NAME],[N.default.TYPE,N.default.READABLE_TYPE_NAME]]);e.default=class{static typeToStringName(t){var e;return null!==(e=P.get(String(t)))&&void 0!==e?e:t}}},3131:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229));class r extends o.default{static create(t){return{revisionId:t.id,name:t.name,creatorId:t.creatorId,createdAt:t.createdAt,fromVersion:t.fromVersion,toVersion:t.toVersion,isEmptyCurrent:t.isEmptyCurrent,diffData:t.diffData?JSON.stringify(t.diffData):void 0,attributes:t.attributes,authorsIds:t.authorsIds}}static toJSON(t){var e;return{revisionId:t.revisionId,name:t.name,creatorId:t.creatorId,authorsIds:t.authorsIds?JSON.stringify(t.authorsIds):void 0,diffData:t.diffData,createdAt:null===(e=t.createdAt)||void 0===e?void 0:e.toISOString(),attributes:t.attributes?JSON.stringify(t.attributes):void 0,toVersion:t.toVersion,fromVersion:t.fromVersion,isEmptyCurrent:t.isEmptyCurrent}}static fromJSON(t){return{revisionId:(t={...t}).revisionId,name:t.name,creatorId:t.creatorId,authorsIds:t.authorsIds?JSON.parse(t.authorsIds):void 0,diffData:t.diffData,createdAt:t.createdAt?new Date(t.createdAt):void 0,attributes:t.attributes?JSON.parse(t.attributes):void 0,toVersion:t.toVersion,fromVersion:t.fromVersion,isEmptyCurrent:t.isEmptyCurrent}}static toObject(t){return function(t){for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}({id:t.revisionId,name:t.name,creatorId:t.creatorId,createdAt:t.createdAt,fromVersion:t.fromVersion,toVersion:t.toVersion,isEmptyCurrent:t.isEmptyCurrent,diffData:t.diffData?JSON.parse(t.diffData):void 0,attributes:t.attributes,authorsIds:t.authorsIds})}}e.default=r,r.DESCRIPTOR_NAME="RevisionDescriptor",r.DESCRIPTOR={fields:{revisionId:{type:"string",id:1},name:{type:"string",id:2},creatorId:{type:"string",id:3},authorsIds:{type:"string",id:4},diffData:{type:"string",id:5},createdAt:{type:"string",id:6},attributes:{type:"string",id:7},toVersion:{type:"uint32",id:8},fromVersion:{type:"uint32",id:9},isEmptyCurrent:{type:"bool",id:10}}}},5330:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.documentId=t}toJSON(){return{documentId:this.documentId}}static fromJSON(t){return new r(t.documentId)}}e.default=r,r.TYPE="121",r.READABLE_TYPE_NAME="connectToRevisionHistory",r.DESCRIPTOR_NAME="RevisionHistoryConnectMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1}}}},8776:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.documentId=t,this.revisionId=e}toJSON(){return{documentId:this.documentId,revisionId:this.revisionId}}static fromJSON(t){return new r(t.documentId,t.revisionId)}}e.default=r,r.TYPE="123",r.READABLE_TYPE_NAME="getRevision",r.DESCRIPTOR_NAME="RevisionHistoryGetRevisionMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1},revisionId:{type:"string",id:2}}}},3728:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.documentId=t,this.requestId=e}toJSON(){return{documentId:this.documentId,requestId:this.requestId}}static fromJSON(t){return new r(t.documentId,t.requestId)}}e.default=r,r.TYPE="122",r.READABLE_TYPE_NAME="reconnectToRevisionHistory",r.DESCRIPTOR_NAME="RevisionHistoryReconnectMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1},requestId:{type:"uint32",id:2}}}},446:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(3131));class s extends o.default{constructor(t,e,n){super(),this.documentId=t,this.requestId=e,this.revisions=n}toJSON(){return{documentId:this.documentId,requestId:this.requestId,revisions:this.revisions.map(r.default.toJSON)}}toObject(){return{documentId:this.documentId,requestId:this.requestId,revisions:this.revisions.map(r.default.toObject)}}static create(t){return new s(t.documentId,t.requestId,t.revisions.map(r.default.create))}static fromJSON(t){return new s(t.documentId,t.requestId,t.revisions.map(r.default.fromJSON))}}e.default=s,s.TYPE="124",s.READABLE_TYPE_NAME="updateRevisions",s.DESCRIPTOR_NAME="RevisionHistoryUpdateRevisionsMessage",s.DESCRIPTOR={fields:{documentId:{type:"string",id:1},requestId:{type:"uint32",id:2},revisions:{type:"RevisionDescriptor",id:3,rule:"repeated"}}}},5847:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(3131));class s extends o.default{constructor(t,e,n){super(),this.channel=t,this.requestId=e,this.revisions=n}toJSON(){return{channel:this.channel,requestId:this.requestId,revisions:this.revisions.map(r.default.toJSON)}}toObject(){return{channel:this.channel,requestId:this.requestId,revisions:this.revisions.map(r.default.toObject)}}static fromJSON(t){return new s(t.channel,t.requestId,t.revisions.map(r.default.fromJSON))}}e.default=s,s.DESCRIPTOR_NAME="RevisionHistoryConnectResponse",s.DESCRIPTOR={fields:{channel:{type:"string",id:1},requestId:{type:"uint32",id:2},revisions:{type:"RevisionDescriptor",id:3,rule:"repeated"}}}},9055:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(3131));class s extends o.default{constructor(t,e,n,i,o,r,s,a,c,l){super(),this.revisionId=t,this.name=e,this.creatorId=n,this.authorsIds=i,this.createdAt=o,this.diffData=r,this.attributes=s,this.fromVersion=a,this.toVersion=c,this.isEmptyCurrent=l}toJSON(){return r.default.toJSON(this)}toObject(){return r.default.toObject(this)}static create(t){return new s(t.revisionId,t.name,t.creatorId,t.authorsIds,t.createdAt,t.diffData,t.attributes,t.fromVersion,t.toVersion,t.isEmptyCurrent)}static fromJSON(t){return new s(t.revisionId,t.name,t.creatorId,t.authorsIds?JSON.parse(t.authorsIds):void 0,t.createdAt?new Date(t.createdAt):void 0,t.diffData,t.attributes?JSON.parse(t.attributes):void 0,t.fromVersion,t.toVersion,t.isEmptyCurrent)}}e.default=s,s.DESCRIPTOR_NAME="RevisionHistoryGetRevisionResponse",s.DESCRIPTOR=r.default.DESCRIPTOR},8386:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.requestId=t}toJSON(){return{requestId:this.requestId}}static fromJSON(t){return new r(t.requestId)}}e.default=r,r.DESCRIPTOR_NAME="RevisionHistoryUpdateRevisionsResponse",r.DESCRIPTOR={fields:{requestId:{type:"uint32",id:1}}}},3432:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const a=n(6553),c=s(n(822)),l=s(n(8776)),d=s(n(9055)),u=s(n(446)),h=s(n(8386)),m=s(n(5330)),g=s(n(5847)),p=s(n(3728)),f=s(n(6732)),x=r(n(3136)),b=s(n(6315));e._SERVICE=12;class k extends((0,a.EmitterMixin)()){constructor(t){super(),this._documentId=t,this._isConnected=!1}get isConnected(){return this._isConnected}connect(t){return this._isConnected?Promise.resolve():this._connect(t,new m.default(this._documentId))}disconnect(){this._isConnected&&(this._isConnected=!1,this._wsGateway&&(this.stopListening(this._wsGateway),this._wsGateway=void 0),this._channel&&(this.stopListening(this._channel),this._channel=void 0),this.fire("disconnected"),this.stopListening())}reconnect(t,e){if(this.isConnected)throw new f.default("Cannot reconnect to already connected service.",t);return this._connect(t,new p.default(this._documentId,e))}async updateRevisions(t,e){const n=u.default.create({documentId:this._documentId,requestId:e,revisions:t}),i=await this._sendRequest(u.default.TYPE,n),{requestId:o}=c.default.decode(i,h.default);return o}async getRevision(t){const e=new l.default(this._documentId,t),n=await this._sendRequest(l.default.TYPE,e);return c.default.decode(n,d.default).toObject()}async _connect(t,n){if(t.state!==x.WEB_SOCKET_GATEWAY_STATES.CONNECTED)throw new f.default("WebSocket Gateway is not connected.",t);this._wsGateway=t,this.stopListening(t,"change:state");const i=await t._sendRequest(e._SERVICE,n.constructor.TYPE,c.default.encode(n)),{channel:o,requestId:r,revisions:s}=c.default.decode(i,g.default).toObject();return this.listenTo(t,"change:state",((t,e,n)=>this._onWsGatewayStateChange(n)),{priority:x.default._CHANGE_STATE_EVENT_PRIORITY}),this._connectToChannel(t,o),this._isConnected=!0,this.fire("connected"),{revisions:s,requestId:r}}_connectToChannel(t,e){this._channel=t._getChannel(k._SERVICE,e),this._channel&&this.listenTo(this._channel,this._channel.getEventName(u.default.TYPE),((t,e)=>{const{documentId:n,requestId:i,revisions:o}=c.default.decode(e,u.default).toObject();this.fire("revisionsUpdated",{documentId:n,requestId:i,revisionsData:o})}))}_onWsGatewayStateChange(t){t===x.WEB_SOCKET_GATEWAY_STATES.DISCONNECTED&&this.disconnect()}_sendRequest(t,n){if(!this._wsGateway||!this._isConnected)throw new b.default("Revision History",this);return this._wsGateway._sendRequest(e._SERVICE,t,c.default.encode(n))}}k._SERVICE=e._SERVICE,e.default=k},3521:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WEB_SOCKET_GATEWAY_STATES=e.CommentsService=e.SessionCollection=e.TrackChangesService=e.WebSocketGateway=e.EditorService=e.RevisionHistoryService=e.CollaborativeEditingService=void 0;const a=r(n(3136));e.WebSocketGateway=a.default,Object.defineProperty(e,"WEB_SOCKET_GATEWAY_STATES",{enumerable:!0,get:function(){return a.WEB_SOCKET_GATEWAY_STATES}});const c=s(n(5132));e.EditorService=c.default;const l=s(n(3432));e.RevisionHistoryService=l.default;const d=s(n(716));e.TrackChangesService=d.default;const u=s(n(8333));e.SessionCollection=u.default;const h=s(n(247));e.CollaborativeEditingService=h.default;const m=s(n(1740));e.CommentsService=m.default},7182:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.id=t,this.sessionType=e}toJSON(){return{id:this.id,sessionType:this.sessionType}}static fromJSON(t){return new r(t.id,t.sessionType)}}e.default=r,r.TYPE="31",r.READABLE_TYPE_NAME="getConnectedSockets",r.DESCRIPTOR_NAME="SessionsConnectMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},sessionType:{type:"uint32",id:2}}}},733:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i){super(),this.id=t,this.userId=e,this.role=n,this.permissions=i}toJSON(){var t,e,n;return{id:this.id,userId:null!==(t=this.userId)&&void 0!==t?t:void 0,role:null!==(e=this.role)&&void 0!==e?e:void 0,permissions:null!==(n=this.permissions)&&void 0!==n?n:void 0}}static fromJSON(t){return new r(t.id,t.userId,t.role,t.permissions)}}e.default=r,r.TYPE="32",r.READABLE_TYPE_NAME="connectSocket",r.DESCRIPTOR_NAME="SocketConnectMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},userId:{type:"string",id:2},role:{type:"string",id:3},permissions:{rule:"repeated",type:"string",id:4}}}},8902:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.id=t}toJSON(){return{id:this.id}}static fromJSON(t){return new r(t.id)}}e.default=r,r.TYPE="33",r.READABLE_TYPE_NAME="disconnectSocket",r.DESCRIPTOR_NAME="SocketDisconnectMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1}}}},6118:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e=[]){super(),this.channel=t,this.sockets=e}toJSON(){return{channel:this.channel,sockets:this.sockets.map((t=>({user:t.userId,session:t.id,role:t.role,permissions:t.permissions})))}}static fromJSON(t){return new r(t.channel,t.sockets.map((t=>({id:t.session,userId:t.user,role:t.role,permissions:t.permissions}))))}}e.default=r,r.DESCRIPTOR_NAME="SessionsConnectResponse",r.DESCRIPTOR={fields:{channel:{type:"string",id:1},sockets:{rule:"repeated",type:"SessionsSocketDescriptor",id:2}}}},8333:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(6553),r=n(3825),s=i(n(2203)),a=i(n(3136)),c=i(n(6118)),l=i(n(7182)),d=i(n(733)),u=i(n(8902)),h=i(n(822));class m extends o.Collection{constructor(t,e){super({idProperty:"id"}),this._id=t,this._sessionType=e,this._handlers=new Map,this._eventsQueue=[],this._isRunning=!1}async connect(t){this._wsGateway=t,this.stopListening(t,"change:state");const e=new l.default(this._id,this._sessionType);let n;try{const t=await this._wsGateway._sendRequest(r._SERVICE,l.default.TYPE,h.default.encode(e));n=h.default.decode(t,c.default)}catch(t){n=new c.default(this._id,[])}this._connectToChannel(this._wsGateway,n.channel,this._sessionType);const i=await async function(t,e){const n=e.map((t=>t.userId)),i=n.length?await s.default.getMany(t,n):[];return e.map((t=>{const e={id:t.id,role:t.role,permissions:t.permissions};return e.user=t.userId&&i.find((e=>e.id===t.userId))||new s.default,e}))}(this._wsGateway,n.sockets);for(const t of i)super.add(t);this._connected=!0,this.fire("connected"),this.listenTo(this._wsGateway,"change:state",((t,e,n)=>this._onWsGatewayStateChange(n)),{priority:a.default._CHANGE_STATE_EVENT_PRIORITY}),await this._runQueue()}disconnect(t=!0){if(this._connected){for(this._connected=!1,this._eventsQueue=[];this.length;)super.remove(0);this._channel&&(this.stopListening(this._channel),this._channel=void 0),this._wsGateway&&t&&(this.stopListening(this._wsGateway),this._wsGateway=void 0),this.fire("disconnected"),t&&this.stopListening()}}add(t,e){throw new TypeError("The collection is read-only.")}remove(t){throw new TypeError("The collection is read-only.")}_connectToChannel(t,e,n){this._channel=t._getChannel(n,e),this._channel&&(this._addHandler(this._channel,d.default.TYPE,(async e=>{const n=h.default.decode(e,d.default);if(-1===this.getIndex(n.id)){const e={id:n.id,role:n.role,permissions:n.permissions};n.userId&&(e.user=await s.default.get(t,n.userId)),super.add(e)}})),this._addHandler(this._channel,u.default.TYPE,(t=>{const e=h.default.decode(t,u.default);-1!==this.getIndex(e.id)&&super.remove(e.id)})))}async _onWsGatewayStateChange(t){t===a.default.STATE_DISCONNECTED&&this.disconnect(!1),t===a.default.STATE_CONNECTED&&await this.connect(this._wsGateway)}async _runQueue(){if(this._isRunning||!this._connected)return;let t;for(this._isRunning=!0;t=this._eventsQueue.shift();){const e=this._handlers.get(t.eventName);e&&await e(t.data)}this._isRunning=!1}_addHandler(t,e,n){const i=t.getEventName(e,!0);this.listenTo(t,i,(async(t,e)=>{const n=t.name;this._eventsQueue.push({eventName:n,data:e}),await this._runQueue()})),this._handlers.set(i,n)}}e.default=m},3825:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const o=i(n(8333));e._SERVICE=3,e.default=class{static async getConnectedSessions(t,e,n){const i=new o.default(e,n);return await i.connect(t),i}}},7282:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4229));class r extends o.default{static toJSON(t){var e;return{...t,data:t.data?JSON.stringify(t.data):t.data,attributes:t.attributes?JSON.stringify(t.attributes):t.attributes,createdAt:null===(e=t.createdAt)||void 0===e?void 0:e.toISOString()}}static fromJSON(t){return{...t,data:t.data?JSON.parse(t.data):t.data,attributes:t.attributes?JSON.parse(t.attributes):t.attributes,createdAt:t.createdAt?new Date(t.createdAt):void 0}}}e.default=r,r.DESCRIPTOR_NAME="SuggestionDescriptor",r.DESCRIPTOR={fields:{id:{id:1,type:"string"},authorId:{id:2,type:"string"},type:{id:3,type:"string"},createdAt:{id:4,type:"string"},data:{id:5,type:"string"},hasComments:{id:6,type:"bool"},state:{id:7,type:"string"},attributes:{id:8,type:"string"}}}},5596:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i={},o=null,r=null){super(),this.id=t,this.documentId=e,this.type=n,this.data=i,this.originalSuggestionId=o,this.attributes=r}toJSON(){return{id:this.id,documentId:this.documentId,type:this.type,data:JSON.stringify(this.data),originalSuggestionId:this.originalSuggestionId,attributes:JSON.stringify(this.attributes)}}static fromJSON(t){var e;return new r(t.id,t.documentId,t.type,JSON.parse(t.data),null!==(e=t.originalSuggestionId)&&void 0!==e?e:null,t.attributes?JSON.parse(t.attributes):null)}}e.default=r,r.TYPE="101",r.READABLE_TYPE_NAME="addSuggestion",r.DESCRIPTOR_NAME="TrackChangesAddSuggestionMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},documentId:{type:"string",id:2},type:{type:"string",id:3},data:{type:"string",id:4},originalSuggestionId:{type:"string",id:5},attributes:{type:"string",id:6}}}},8622:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n){super(),this.ids=t,this.documentId=e,this.state=n}toJSON(){return{ids:this.ids,documentId:this.documentId,state:this.state}}static fromJSON(t){return new r(t.ids,t.documentId,t.state)}}e.default=r,r.TYPE="106",r.READABLE_TYPE_NAME="batchUpdateSuggestionsState",r.DESCRIPTOR_NAME="TrackChangesBatchUpdateSuggestionsStateMessage",r.DESCRIPTOR={fields:{ids:{type:"string",rule:"repeated",id:1},documentId:{type:"string",id:2},state:{type:"string",id:3}}}},7323:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.documentId=t}toJSON(){return{documentId:this.documentId}}static fromJSON(t){return new r(t.documentId)}}e.default=r,r.TYPE="105",r.READABLE_TYPE_NAME="connectToSuggestions",r.DESCRIPTOR_NAME="TrackChangesConnectMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1}}}},4060:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.documentId=t}toJSON(){return{documentId:this.documentId}}static fromJSON(t){return new r(t.documentId)}}e.default=r,r.TYPE="102",r.READABLE_TYPE_NAME="getAllSuggestions",r.DESCRIPTOR_NAME="TrackChangesGetAllSuggestionMessage",r.DESCRIPTOR={fields:{documentId:{type:"string",id:1}}}},3031:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e){super(),this.id=t,this.documentId=e}toJSON(){return{id:this.id,documentId:this.documentId}}static fromJSON(t){return new r(t.id,t.documentId)}}e.default=r,r.TYPE="103",r.READABLE_TYPE_NAME="getSuggestion",r.DESCRIPTOR_NAME="TrackChangesGetSuggestionMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},documentId:{type:"string",id:2}}}},2821:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i,o,r=null){super(),this.id=t,this.documentId=e,this.hasComments=n,this.isHasCommentsModified=i,this.state=o,this.attributes=r}toJSON(){return{id:this.id,documentId:this.documentId,hasComments:this.hasComments,isHasCommentsModified:this.isHasCommentsModified,state:this.state,attributes:JSON.stringify(this.attributes)}}static fromJSON(t){return new r(t.id,t.documentId,t.hasComments,t.isHasCommentsModified,t.state,t.attributes?JSON.parse(t.attributes):null)}}e.default=r,r.TYPE="104",r.READABLE_TYPE_NAME="updateSuggestion",r.DESCRIPTOR_NAME="TrackChangesUpdateSuggestionMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1},documentId:{type:"string",id:2},hasComments:{type:"bool",id:3},isHasCommentsModified:{type:"bool",id:4},state:{type:"string",id:5},attributes:{type:"string",id:6}}}},772:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i,o,r,s={},a=null){super(),this.id=t,this.authorId=e,this.type=n,this.hasComments=o,this.state=r,this.data=s,this.attributes=a,this.createdAt=i?new Date(i):void 0}toJSON(){var t;return{id:this.id,authorId:this.authorId,type:this.type,createdAt:null===(t=this.createdAt)||void 0===t?void 0:t.toISOString(),data:JSON.stringify(this.data),hasComments:this.hasComments,state:this.state,attributes:JSON.stringify(this.attributes)}}static fromJSON(t){return new r(t.id,t.authorId,t.type,t.createdAt,t.hasComments,t.state,JSON.parse(t.data),t.attributes?JSON.parse(t.attributes):null)}}e.default=r,r.DESCRIPTOR_NAME="TrackChangesAddSuggestionResponse",r.DESCRIPTOR={fields:{id:{type:"string",id:1},authorId:{type:"string",id:2},type:{type:"string",id:3},createdAt:{type:"string",id:4},data:{type:"string",id:5},hasComments:{type:"bool",id:6},state:{type:"string",id:7},attributes:{type:"string",id:8}}}},9940:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(7282));class s extends o.default{constructor(t,e,n){super(),this.channel=t,this._suggestions=e,this._suggestionsV2=n,this.suggestions=(null==n?void 0:n.length)?n:e}toJSON(){var t,e;return{channel:this.channel,suggestions:null===(t=this._suggestions)||void 0===t?void 0:t.map((t=>JSON.stringify(t))),suggestionsV2:null===(e=this._suggestionsV2)||void 0===e?void 0:e.map(r.default.toJSON)}}static fromJSON(t){var e,n;return new s(t.channel,null===(e=t.suggestions)||void 0===e?void 0:e.map((t=>JSON.parse(t))),null===(n=t.suggestionsV2)||void 0===n?void 0:n.map(r.default.fromJSON))}}e.default=s,s.DESCRIPTOR_NAME="TrackChangesConnectResponse",s.DESCRIPTOR={fields:{channel:{type:"string",id:1},suggestions:{type:"string",rule:"repeated",id:2},suggestionsV2:{type:"SuggestionDescriptor",rule:"repeated",id:3}}}},2414:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210)),r=i(n(7282));class s extends o.default{constructor(t,e){super(),this._suggestions=t,this._suggestionsV2=e,this.suggestions=(null==e?void 0:e.length)?e:t}toJSON(){var t,e;return{suggestions:null===(t=this._suggestions)||void 0===t?void 0:t.map((t=>JSON.stringify(t))),suggestionsV2:null===(e=this._suggestionsV2)||void 0===e?void 0:e.map(r.default.toJSON)}}static fromJSON(t){var e,n;return new s(null===(e=t.suggestions)||void 0===e?void 0:e.map(a),null===(n=t.suggestionsV2)||void 0===n?void 0:n.map(r.default.fromJSON))}}function a(t){const e=JSON.parse(t);return e.createdAt=e.createdAt?new Date(e.createdAt):void 0,e}e.default=s,s.DESCRIPTOR_NAME="TrackChangesGetAllSuggestionsResponse",s.DESCRIPTOR={fields:{suggestions:{type:"string",rule:"repeated",id:1},suggestionsV2:{type:"SuggestionDescriptor",rule:"repeated",id:2}}}},9849:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n,i,o,r,s={},a=null){super(),this.id=t,this.authorId=e,this.type=n,this.hasComments=o,this.state=r,this.data=s,this.attributes=a,this.createdAt=new Date(i)}toJSON(){return{id:this.id,authorId:this.authorId,type:this.type,createdAt:this.createdAt.toISOString(),data:JSON.stringify(this.data),hasComments:this.hasComments,state:this.state,attributes:JSON.stringify(this.attributes)}}static fromJSON(t){return new r(t.id,t.authorId,t.type,t.createdAt,t.hasComments,t.state,JSON.parse(t.data),t.attributes?JSON.parse(t.attributes):null)}}e.default=r,r.DESCRIPTOR_NAME="TrackChangesGetSuggestionResponse",r.DESCRIPTOR={fields:{id:{type:"string",id:1},authorId:{type:"string",id:2},type:{type:"string",id:3},createdAt:{type:"string",id:4},data:{type:"string",id:5},hasComments:{type:"bool",id:6},state:{type:"string",id:7},attributes:{type:"string",id:8}}}},716:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const a=n(6553),c=s(n(822)),l=s(n(5596)),d=s(n(772)),u=s(n(3031)),h=s(n(9849)),m=s(n(4060)),g=s(n(2414)),p=s(n(2821)),f=s(n(7323)),x=s(n(9940)),b=s(n(6732)),k=r(n(3136)),w=s(n(6315)),A=s(n(9073)),_=s(n(8622));e._SERVICE=10;class v extends((0,a.EmitterMixin)()){constructor(t){super(),this._documentId=t,this._isConnected=!1}get isConnected(){return this._isConnected}async connect(t){if(this._isConnected)return;if(t.state!==k.WEB_SOCKET_GATEWAY_STATES.CONNECTED)throw new b.default("WebSocket Gateway is not connected.",t);const n=new f.default(this._documentId);this._wsGateway=t,this.stopListening(t,"change:state");const i=await t._sendRequest(e._SERVICE,f.default.TYPE,c.default.encode(n)),o=c.default.decode(i,x.default);return this.listenTo(t,"change:state",((t,e,n)=>this._onWsGatewayStateChange(n)),{priority:k.default._CHANGE_STATE_EVENT_PRIORITY}),this._connectToChannel(t,o.channel),this._isConnected=!0,this.fire("connected"),o.suggestions}disconnect(){this._isConnected&&(this._isConnected=!1,this._wsGateway&&(this.stopListening(this._wsGateway),this._wsGateway=void 0),this._channel&&(this.stopListening(this._channel),this._channel=void 0),this.fire("disconnected"),this.stopListening())}async add(t,e,n,i=null,o){const r=new l.default(t,this._documentId,e,n,i,o),s=await this._sendRequest(l.default.TYPE,r);return c.default.decode(s,d.default)}async get(t,e=1){const n=new u.default(t,this._documentId);try{const t=await this._sendRequest(u.default.TYPE,n);return c.default.decode(t,h.default)}catch(n){if("CKEditorCloudServicesServerError"===n.name&&"404"===n.code&&e<5)return await(i=100*e,new Promise((t=>{setTimeout(t,i)}))),this.get(t,e+1);if("CKEditorCloudServicesServerError"===n.name)throw n;throw A.default.fromPublicError(n)}var i}async getAll(){const t=new m.default(this._documentId),e=await this._sendRequest(m.default.TYPE,t),{suggestions:n}=c.default.decode(e,g.default);return n}async update(t,e={}){const{hasComments:n,state:i,attributes:o}=e,r=void 0!==n,s=new p.default(t,this._documentId,n,r,i,o);await this._sendRequest(p.default.TYPE,s)}async batchUpdateState(t){const e=new _.default(t.ids,this._documentId,t.state);await this._sendRequest(_.default.TYPE,e)}_connectToChannel(t,e){this._channel=t._getChannel(v._SERVICE,e),this._channel&&this.listenTo(this._channel,this._channel.getEventName(p.default.TYPE),((t,e)=>{const n=c.default.decode(e,p.default);this.fire("suggestionUpdated",n)}))}_onWsGatewayStateChange(t){t===k.WEB_SOCKET_GATEWAY_STATES.DISCONNECTED&&this.disconnect()}_sendRequest(t,n){if(!this._wsGateway||!this._isConnected)throw new w.default("Track Changes",this);return this._wsGateway._sendRequest(e._SERVICE,t,c.default.encode(n))}}v._SERVICE=e._SERVICE,e.default=v},4076:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.ids=t}toJSON(){return{ids:this.ids}}static fromJSON(t){return new r(t.ids)}}e.default=r,r.TYPE="22",r.READABLE_TYPE_NAME="getManyUsers",r.DESCRIPTOR_NAME="GetManyUsersMessage",r.DESCRIPTOR={fields:{ids:{id:1,type:"string",rule:"repeated"}}}},3184:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.id=t}toJSON(){return{id:this.id}}static fromJSON(t){return new r(t.id)}}e.default=r,r.TYPE="21",r.READABLE_TYPE_NAME="getUser",r.DESCRIPTOR_NAME="GetUserMessage",r.DESCRIPTOR={fields:{id:{type:"string",id:1}}}},6461:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.users=t}toJSON(){return{users:this.users.map(s)}}static fromJSON(t){return new r(t.users.map(a))}}function s(t){return{attributes:Object.keys(t).map((e=>({key:e,value:JSON.stringify(t[e])})))}}function a(t){return t.attributes.reduce(((t,e)=>(t[e.key]=e.value?JSON.parse(e.value):null,t)),{})}e.default=r,r.DESCRIPTOR_NAME="GetManyUsersResponse",r.DESCRIPTOR={fields:{users:{rule:"repeated",type:"UserDescriptor",id:1}}}},1783:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t){super(),this.attributes=t}toJSON(){return{attributes:Object.keys(this.attributes).map((t=>({key:t,value:JSON.stringify(this.attributes[t])})))}}static fromJSON(t){const e=t.attributes.reduce(((t,e)=>(t[e.key]=e.value?JSON.parse(e.value):null,t)),{});return new r(e)}}e.default=r,r.DESCRIPTOR_NAME="GetUserResponse",r.DESCRIPTOR={fields:{attributes:{rule:"repeated",type:"KeyValueDescriptor",id:1}}}},2203:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3184)),r=i(n(1783)),s=i(n(822)),a=i(n(4076)),c=i(n(6461));class l{constructor(t={}){this._attributes=new Map;for(const e of Object.keys(t))"id"!==e?(this._attributes.set(e,t[e]),Object.defineProperty(this,e,{enumerable:!0,configurable:!1,get:()=>this._attributes.get(e)})):this.id=t.id}static fromData(t){return new l(t)}static async get(t,e){const n=new o.default(e);try{const e=await t._sendRequest(l._SERVICE,o.default.TYPE,s.default.encode(n)),i=s.default.decode(e,r.default);return new l(i.attributes)}catch(t){return new l({id:e})}}static async getMany(t,e){const n=new a.default(e);try{const e=await t._sendRequest(l._SERVICE,a.default.TYPE,s.default.encode(n));return s.default.decode(e,c.default).users.map((t=>new l(t)))}catch(t){return e.map((t=>new l({id:t})))}}}l._SERVICE=2,e.default=l},989:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="52.0.1"},8290:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(6553),r=i(n(2021)),s=i(n(822));class a extends((0,o.EmitterMixin)()){constructor(t,e,n){super(),this._channelName=t,this._wsGateway=e,this._socket=n,this._subscribeToChannel()}remove(){this._socket.off(this._channelName)}getEventName(t,e=!1){let n="";return e&&(n+="all:"),n+="event",t&&(n+=":"+t),n}_subscribeToChannel(){this._socket.on(this._channelName,(t=>{const e=s.default.decode(t,r.default);this.fire(this.getEventName(e.type,!0),e.data,e.socketId),e.socketId!==this._wsGateway.socketId&&this.fire(this.getEventName(e.type),e.data,e.socketId)}))}}e.default=a},2021:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e,n){super(),this.type=t,this.socketId=e,this.data=n}toJSON(){return{type:this.type,socketId:this.socketId,data:this.data}}static fromJSON(t){return new r(t.type,t.socketId,t.data)}}e.default=r,r.DESCRIPTOR_NAME="ChannelMessage",r.DESCRIPTOR={fields:{type:{type:"uint32",id:1},socketId:{type:"string",id:2},data:{type:"bytes",id:3}}}},6311:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(4645)),r=i(n(822));e.default=class{encode(t,e,n,i="/",s={}){if(e.length>2)throw new Error("PacketParser supports only 2 elements in data");const a={type:t,data:e,id:n,nsp:i};return r.default.encode(o.default.create(a,s))}decode(t){const e=r.default.decode(t,o.default);return{packet:{id:e.id,type:e.type,data:e.packetData,nsp:e.nsp},options:{flags:e.options.flags,rooms:e.options.rooms,except:e.options.except}}}}},4454:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.BUFFER,c.MessageDataTypes.BUFFER),l.DESCRIPTOR_NAME="BytesBytesPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"bytes",id:1},data1:{type:"bytes",id:2}}}},569:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.NUMBER,c.MessageDataTypes.BUFFER),l.DESCRIPTOR_NAME="NumberBytesPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"uint32",id:1},data1:{type:"bytes",id:2}}}},9256:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.NUMBER,c.MessageDataTypes.NUMBER),l.DESCRIPTOR_NAME="NumberNumberPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"uint32",id:1},data1:{type:"uint32",id:2}}}},4194:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1?JSON.stringify(this.data1):void 0}}static fromJSON(t){return new l(t.data,t.data1&&JSON.parse(t.data1))}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.NUMBER,c.MessageDataTypes.OBJECT),l.DESCRIPTOR_NAME="NumberObjectPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"uint32",id:1},data1:{type:"string",id:2}}}},6700:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.NUMBER,c.MessageDataTypes.STRING),l.DESCRIPTOR_NAME="NumberStringPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"uint32",id:1},data1:{type:"string",id:2}}}},3903:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data?JSON.stringify(this.data):void 0,data1:this.data1}}static fromJSON(t){return new l(t.data&&JSON.parse(t.data),t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.OBJECT,c.MessageDataTypes.BUFFER),l.DESCRIPTOR_NAME="ObjectBufferPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"string",id:1},data1:{type:"bytes",id:2}}}},3500:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data?JSON.stringify(this.data):void 0,data1:this.data1?JSON.stringify(this.data1):void 0}}static fromJSON(t){return new l(t.data&&JSON.parse(t.data),t.data1&&JSON.parse(t.data1))}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.OBJECT,c.MessageDataTypes.OBJECT),l.DESCRIPTOR_NAME="ObjectObjectPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"string",id:1},data1:{type:"string",id:2}}}},8372:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{static create(t,e){throw new TypeError("Must be implemented in a child class!")}}e.default=r,t.exports=r},4645:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(822)),r=i(n(3210)),s=i(n(9152)),a=i(n(4568)),c=i(n(569)),l=i(n(5229)),d=i(n(4454)),u=i(n(7926)),h=i(n(4194)),m=i(n(3500)),g=i(n(3903)),p=i(n(1919)),f=i(n(7513)),x=i(n(9256)),b=i(n(6700)),k=[c.default,l.default,d.default,u.default,h.default,m.default,g.default,p.default,f.default,x.default,b.default].reduce(((t,e)=>(t[e.TYPE]=e,t)),{});class w extends r.default{constructor(t,e,n,i="/",o=new s.default){super(),this.type=t,this.data=e,this.id=n,this.nsp=i,this.options=o}get packetData(){return void 0===this.data.data&&void 0===this.data.data1?[]:this.data.data&&void 0===this.data.data1?[this.data.data]:[this.data.data,this.data.data1]}toJSON(){const t=o.default.encode(this.options),e=o.default.encode(this.data);return{type:this.type+10*this.data.constructor.TYPE,id:this.id,nsp:"/"===this.nsp?void 0:this.nsp,data:e,options:t}}static fromJSON(t){const e=Math.floor(t.type/10);return new w(t.type-10*e,o.default.decode(t.data,k[e]),t.id,t.nsp,t.options?o.default.decode(t.options,s.default):new s.default)}static create(t,e={}){var n;const i=a.default.getPacketType(a.default.getType(t.data[0]),a.default.getType(null!==(n=t.data[1])&&void 0!==n?n:t.data[0]));return new w(t.type,k[i].create(t.data[0],t.data[1]),t.id,t.nsp,new s.default(e.flags,e.rooms,e.except))}}e.default=w,w.TYPE=10,w.DESCRIPTOR_NAME="PacketMessage",w.DESCRIPTOR={fields:{type:{type:"uint32",id:1},id:{type:"uint32",id:2},nsp:{type:"string",id:3},data:{type:"bytes",id:4},options:{type:"bytes",id:5}}}},9152:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(3210));class r extends o.default{constructor(t,e=[],n=[]){super(),this.flags=t,this.rooms=e,this.except=n}toJSON(){var t,e;return{flags:this.flags?JSON.stringify(this.flags):void 0,rooms:(null===(t=this.rooms)||void 0===t?void 0:t.length)?this.rooms:void 0,except:(null===(e=this.except)||void 0===e?void 0:e.length)?this.except:void 0}}static fromJSON(t){return new r(t.flags&&JSON.parse(t.flags),t.rooms,t.except)}}e.default=r,r.TYPE=11,r.DESCRIPTOR_NAME="PacketOptionsMessage",r.DESCRIPTOR={fields:{flags:{type:"string",id:1},rooms:{type:"string",id:2,rule:"repeated"},except:{type:"string",id:3,rule:"repeated"}}}},5229:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.STRING,c.MessageDataTypes.BUFFER),l.DESCRIPTOR_NAME="StringBytesPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"string",id:1},data1:{type:"bytes",id:2}}}},7513:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.STRING,c.MessageDataTypes.NUMBER),l.DESCRIPTOR_NAME="StringNumberPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"string",id:1},data1:{type:"uint32",id:2}}}},7926:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1?JSON.stringify(this.data1):void 0}}static fromJSON(t){return new l(t.data,t.data1&&JSON.parse(t.data1))}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.STRING,c.MessageDataTypes.OBJECT),l.DESCRIPTOR_NAME="StringObjectPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"string",id:1},data1:{type:"string",id:2}}}},1919:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=s(n(8372)),c=r(n(4568));class l extends a.default{constructor(t,e){super(),this.data=t,this.data1=e}toJSON(){return{data:this.data,data1:this.data1}}static fromJSON(t){return new l(t.data,t.data1)}static create(t,e){return new l(t,e)}}e.default=l,l.TYPE=c.default.getPacketType(c.MessageDataTypes.STRING,c.MessageDataTypes.STRING),l.DESCRIPTOR_NAME="StringStringPacketDataMessage",l.DESCRIPTOR={fields:{data:{type:"string",id:1},data1:{type:"string",id:2}}}},9549:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.ENCODED_TYPES=void 0;const o=n(4514),r=i(n(6311)),s=i(n(4568));e.ENCODED_TYPES=[o.PacketType.EVENT,o.PacketType.ACK,o.PacketType.BINARY_ACK,o.PacketType.BINARY_EVENT];class a extends o.Encoder{constructor(t=new r.default){super(),this._packetParser=t}encode(t){if(e.ENCODED_TYPES.includes(t.type))try{return[this._packetParser.encode(t.type,t.data,t.id,t.nsp)]}catch(t){console.error("Can not properly serialize or deserialize messages. Check the original error.",{originalError:{message:t.message}})}return super.encode(t)}}e.Encoder=a;class c extends o.Decoder{constructor(t=new r.default){super(),this._packetParser=t}add(t){if(!s.default.isBuffer(t))return super.add(t);let e;try{e=this._packetParser.decode(t).packet}catch(e){return super.add(t)}super.emitReserved("decoded",e)}}e.Decoder=c},4568:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageDataTypes=void 0;const n=!("undefined"==typeof process||!process.versions||!process.versions.node);var i,o;(o=i=e.MessageDataTypes||(e.MessageDataTypes={}))[o.BUFFER=1]="BUFFER",o[o.STRING=2]="STRING",o[o.NUMBER=3]="NUMBER",o[o.OBJECT=4]="OBJECT";class r{static getPacketType(...t){let e=0;for(let n=0;n<t.length;n++)e+=t[n]*Math.pow(10,t.length-n-1);return e}static getType(t){if(r.isBuffer(t))return i.BUFFER;const e=typeof t;return"string"===e?i.STRING:"number"===e?i.NUMBER:i.OBJECT}static isBuffer(t){return n&&Buffer.isBuffer(t)||t instanceof ArrayBuffer||t instanceof Uint8Array||this._isBufferView(t)}static _isBufferView(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}}e.default=r},602:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(6732));class r{constructor(t,e){this._context=t,this._deferredPromise=function(){let t,e;const n=new Promise(((n,i)=>{t=n,e=i}));return{resolve:t,reject:e,promise:n}}(),this.timeout=setTimeout((()=>this.error(new o.default("Request timeout.",this._context))),e)}get promise(){return this._deferredPromise.promise}response(t){this._deferredPromise.resolve(t)}error(t){this._deferredPromise.reject(t)}}e.default=class{constructor(t){this._context=t,this._requests=new Set}async send(t,e=45e3){const n=this._createRequest(e);try{return t(n),await n.promise}finally{this._finishRequest(n)}}errorAll(t){for(const e of this._requests)e.error(t)}waitForAllRequests(t=45e3){return this._waitForRequests(t)}_createRequest(t){const e=new r(this._context,t);return this._requests.add(e),e}_finishRequest(t){this._requests.delete(t),clearTimeout(t.timeout)}async _waitForRequests(t=5e3,e=0){return!this._requests.size||e>=t/500?Promise.resolve():(await new Promise((t=>{setTimeout(t,500)})),this._waitForRequests(t,e++))}}},3136:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WEB_SOCKET_GATEWAY_STATES=void 0;const o=n(7046),r=i(n(4564)),s=n(6553),a=i(n(8290)),c=i(n(2203)),l=i(n(989)),d=i(n(6732)),u=i(n(9073)),h=n(9549),m=i(n(602));var g,p;(p=g=e.WEB_SOCKET_GATEWAY_STATES||(e.WEB_SOCKET_GATEWAY_STATES={})).DISCONNECTED="disconnected",p.CONNECTING="connecting",p.CONNECTED="connected";class f extends((0,s.ObservableMixin)()){constructor(t,e,n={},i=o.io,s=c.default.get){if(super(),this._token=e,this._options=n,this._connectionProvider=i,this._userFactory=s,this._requestsManager=new m.default(this),this._channels=new Map,this._connectionAttempt=0,!t)throw new TypeError("Api address must be provided.");if(!this._token)throw new TypeError("Token must be provided.");this._options.requestTimeout||(this._options.requestTimeout=2e4),this._url=(0,r.default)(t.replace(/^(?!(?:\w+:)?\/\/)/,"https://")),this.set("state",g.DISCONNECTED),this.set("socketId",void 0),this.set("me",void 0),this.on("change:state",(async(t,e,n)=>{var i;if(this._debugEvent("ws-gw:change:state",n),n!==f.STATE_CONNECTED){if(n===f.STATE_DISCONNECTED)return this._requestsManager.errorAll(new d.default("Not connected.",this))}else try{this.me=await this._userFactory.call(c.default,this,null===(i=this._socketAuth)||void 0===i?void 0:i.userId)}catch(t){}}),{priority:f._CHANGE_STATE_EVENT_PRIORITY}),this.on("error",((t,e)=>{this._options.onError?this._options.onError(e):console.error(e)}))}get sessionId(){return this.socketId}waitForAllRequests(t){return this._requestsManager.waitForAllRequests(t)}disconnect(){var t;this.state!==g.DISCONNECTED&&(null===(t=this._socket)||void 0===t||t.disconnect(),this._socket=void 0,this.state=g.DISCONNECTED)}async reconnect(){this._socket||this.state!==g.DISCONNECTED||(await this._token.refreshToken(),await this._connect())}static async connect(t,e="local.cs.dev:443/ws-v2",n={},i=o.io,r=c.default.get){const s=new f(e,t,n,i,r);return await s._connect(),s}_sendRequest(t,e,n){if(!t)throw new d.default("`serviceName` must be provided.",this);if(this.state!==f.STATE_CONNECTED)throw new d.default("Not connected.",this);if(!this._socketAuth||!this._socketAuth.isAuthenticated)throw new d.default("Not authenticated.",this);const i=new ArrayBuffer(n.length+2),o=new Uint8Array(i);return o[0]=t,o[1]=parseInt(e),o.set(n,2),this._emit(1,o)}_getChannel(t,e){const n=""+t+e;return!this._channels.has(n)&&this._socket&&this._channels.set(n,new a.default(n,this,this._socket)),this._channels.get(n)}_connect(){return new Promise(((t,e)=>{const n=this._setupSocket();!this.socketId&&n.io.on("reconnect_error",(()=>{this._debugEvent("reconnect_error"),this._reconnectionAttemptError(e)})),n.once("connect",(async()=>{this._debugEvent("once-connect");try{await this._onConnect(),t()}catch(t){e(t)}})),n.connect()}))}_getPortByProtocol(t){return["http:","ws:"].includes(t)?80:443}_setupSocket(){var t;if(this._socket)return this._socket;const e=this._url.port||this._getPortByProtocol(this._url.protocol),n=(this._url.protocol||"https:")+"//"+this._url.hostname+":"+e,i=this._url.pathname.match(/^\/.*\/ws/)?this._url.pathname.split("/ws")[0]:"",o=this._connectionProvider(n,{parser:{Encoder:h.Encoder,Decoder:h.Decoder},path:i+"/ws-v2/ws",transports:["websocket"],timeout:void 0!==this._options.timeout?this._options.timeout:5e3,reconnection:void 0===this._options.autoReconnect||this._options.autoReconnect,reconnectionDelay:1e3,reconnectionDelayMax:5e3,rejectUnauthorized:void 0===this._options.rejectUnauthorized||this._options.rejectUnauthorized,query:{version:l.default},agent:null!==(t=this._options.agent)&&void 0!==t&&t,closeOnBeforeunload:!1});return this.state=g.CONNECTING,o.on("connect",(()=>{this._debugEvent("connect"),this.socketId=o.id})),o.on("connect_error",(t=>{this._debugEvent("connect_error",t)})),o.on("disconnect",(()=>{this._debugEvent("disconnect"),this._onDisconnect()})),o.io.on("reconnect",(async()=>{this._debugEvent("reconnect"),await this._onReconnect()})),o.io.on("reconnect_attempt",(t=>{this._debugEvent("reconnect_attempt",t),this.state=g.CONNECTING,this._connectionAttempt=t})),o.on("unauthorized",(t=>{this._debugEvent("unauthorized"),this._onUnauthorized(t)})),o.on("authenticationRequest",(async t=>{this._debugEvent("authenticationRequest",t.attempt),await this._onReconnect()})),this._socket=o,o}_emit(t,e){const n=this._socket;return this._requestsManager.send((i=>{n.emit(t,e,((t,e)=>{if(t)return i.error(u.default.fromPublicError(t));i.response(e)}))}),this._options.requestTimeout)}_addAuthData(t,e){this._socketAuth={environmentId:t,userId:e,isAuthenticated:!0}}_removeAuthData(){this._socketAuth=void 0}async _onConnect(){await this._authenticate(this._token.value),this.state=g.CONNECTED;const t=async(t,e,n)=>{this._debugEvent("token:value:change");try{await this._authenticate(n)}catch(t){}};this._token.on("change:value",t),this._socket.io.off("reconnect_error"),this.on("disconnect",(()=>{this._token.off("change:value",t)}))}async _onReconnect(){await this._token.refreshToken(),await this._onConnect()}_onDisconnect(){this.state=g.DISCONNECTED,this._connectionAttempt=0,this.fire("disconnect");for(const t of this._channels.values())t.remove();this._channels.clear(),void 0===this._options.autoReconnect||this._options.autoReconnect||(this._socket=void 0)}_debugEvent(t,e){if(!this._isDebugModeEnabled())return;const n=void 0!==e?", data: "+e:"";console.info((new Date).toLocaleString()+" "+t+n)}_reconnectionAttemptError(t){this._connectionAttempt>=2&&(this.disconnect(),t(d.default.fromPublicError({message:"The number of initial connection attempts exceeded.",explanation:"Three initial connection attempts failed. It can be caused by a slow, unstable, missing or blocked Internet connection.",action:"Please verify the stability of your Internet connection and ensure that no antivirus or firewall software blocks the Web Socket protocol connections."})))}_onUnauthorized({error:t}){this._removeAuthData(),this.fire("error",u.default.fromPublicError(t))}async _authenticate(t){try{this._debugEvent("authenticate:start");const e=await this._emit(2,{token:t});this._debugEvent("authenticate:success","envId: "+e.environmentId+", userId: "+e.userId),this._addAuthData(e.environmentId,e.userId)}catch(t){throw this._debugEvent("authenticate:error",t.message),this._removeAuthData(),t}}_isDebugModeEnabled(){var t;return!!s.global.window.localStorage&&"true"===(null!==(t=s.global.window.localStorage.getItem("csClientDebugMode"))&&void 0!==t?t:"false").toLowerCase()}}f.STATE_DISCONNECTED=g.DISCONNECTED,f.STATE_CONNECTING=g.CONNECTING,f.STATE_CONNECTED=g.CONNECTED,f._CHANGE_STATE_EVENT_PRIORITY=s.priorities.get("highest")+999999,e.default=f},8378:(t,e,n)=>{"use strict";n.d(e,{H:()=>s,KE:()=>r,ZP:()=>o});const i="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class o extends Error{constructor(t,e,n){super(function(t,e){const n=new WeakSet,i=(t,e)=>{if("object"==typeof e&&null!==e){if(n.has(e))return`[object ${e.constructor.name}]`;n.add(e)}return e},o=e?` ${JSON.stringify(e,i)}`:"",r=a(t);return t+o+r}(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 o(t.message,e);throw n.stack=t.stack,n}}function r(t,e){console.warn(...c(t,e))}function s(t,e){console.error(...c(t,e))}function a(t){return`\nRead more: ${i}#error-${t}`}function c(t,e){const n=a(t);return e?[t,e,n]:[t,n]}},4033:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(669),o=n(8378),r=n(369),s=n(5838);class a extends((0,i.ZP)()){constructor(t={},e={}){super();const n=(0,s.Z)(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 o.ZP("collection-add-item-invalid-index",this);let n=0;for(const i of t){const t=this._getItemIdBeforeAdding(i),o=e+n;this._items.splice(o,0,i),this._itemMap.set(t,i),this.fire("add",i,o),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 o.ZP("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 o.ZP("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,i,o)=>{const r=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(i);if(r&&s)this._bindToExternalToInternalMap.set(i,s),this._bindToInternalToExternalMap.set(s,i);else{const n=t(i);if(!n)return void this._skippedIndexesFromExternal.push(o);let r=o;for(const t of this._skippedIndexesFromExternal)o>t&&r--;for(const t of e._skippedIndexesFromExternal)r>=t&&r++;this._bindToExternalToInternalMap.set(i,n),this._bindToInternalToExternalMap.set(n,i),this.add(n,r);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)r<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)n(0,t,e.getIndex(t));this.listenTo(e,"add",n),this.listenTo(e,"remove",((t,e,n)=>{const i=this._bindToExternalToInternalMap.get(e);i&&this.remove(i),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 o.ZP("collection-add-invalid-id",this);if(this.get(n))throw new o.ZP("collection-add-item-already-exists",this)}else t[e]=n=(0,r.Z)();return n}_remove(t){let e,n,i,r=!1;const s=this._idProperty;if("string"==typeof t?(n=t,i=this._itemMap.get(n),r=!i,i&&(e=this._items.indexOf(i))):"number"==typeof t?(e=t,i=this._items[e],r=!i,i&&(n=i[s])):(i=t,n=i[s],e=this._items.indexOf(i),r=-1==e||!this._itemMap.get(n)),r)throw new o.ZP("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,e),[i,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}},669:(t,e,n)=>{"use strict";n.d(e,{Hv:()=>g,Rl:()=>m,ZP:()=>h});var i=n(8483),o=n(369),r=n(4841),s=n(6547),a=(n(9807),n(8378));const c=Symbol("listeningTo"),l=Symbol("emitterId"),d=Symbol("delegations"),u=h(Object);function h(t){if(!t)return u;return class extends t{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let i=!1;this.listenTo(this,t,((t,...n)=>{i||(i=!0,t.off(),e.call(this,t,...n))}),n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,i={}){let o,r;this[c]||(this[c]={});const s=this[c];p(t)||g(t);const a=p(t);(o=s[a])||(o=s[a]={emitter:t,callbacks:{}}),(r=o.callbacks[e])||(r=o.callbacks[e]=[]),r.push(n),function(t,e,n,i,o){e._addEventListener?e._addEventListener(n,i,o):t._addEventListener.call(e,n,i,o)}(this,t,e,n,i)}stopListening(t,e,n){const i=this[c];let o=t&&p(t);const r=i&&o?i[o]:void 0,s=r&&e?r.callbacks[e]:void 0;if(!(!i||t&&!r||e&&!s))if(n){w(this,t,e,n);-1!==s.indexOf(n)&&(1===s.length?delete r.callbacks[e]:w(this,t,e,n))}else if(s){for(;n=s.pop();)w(this,t,e,n);delete r.callbacks[e]}else if(r){for(e in r.callbacks)this.stopListening(t,e);delete i[o]}else{for(o in i)this.stopListening(i[o].emitter);delete this[c]}}fire(t,...e){try{const n=t instanceof i.Z?t:new i.Z(this,t),o=n.name;let r=b(this,o);if(n.path.push(this),r){const t=[n,...e];r=Array.from(r);for(let e=0;e<r.length&&(r[e].callback.apply(this,t),n.off.called&&(delete n.off.called,this._removeEventListener(o,r[e].callback)),!n.stop.called);e++);}const s=this[d];if(s){const t=s.get(o),i=s.get("*");t&&k(t,n,e),i&&k(i,n,e)}return n.return}catch(t){a.ZP.rethrowUnexpectedError(t,this)}}delegate(...t){return{to:(e,n)=>{this[d]||(this[d]=new Map),t.forEach((t=>{const i=this[d].get(t);i?i.set(e,n):this[d].set(t,new Map([[e,n]]))}))}}}stopDelegating(t,e){if(this[d])if(t)if(e){const n=this[d].get(t);n&&n.delete(e)}else this[d].delete(t);else this[d].clear()}_addEventListener(t,e,n){!function(t,e){const n=f(t);if(n[e])return;let i=e,o=null;const r=[];for(;""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},r.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){for(const t of r)t.callbacks=n[i].callbacks.slice();n[i].childEvents.push(o)}}(this,t);const i=x(this,t),o={callback:e,priority:r.Z.get(n.priority)};for(const t of i)(0,s.Z)(t,o)}_removeEventListener(t,e){const n=x(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 m(t,e){const n=t[c];return n&&n[e]?n[e].emitter:null}function g(t,e){t[l]||(t[l]=e||(0,o.Z)())}function p(t){return t[l]}function f(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function x(t,e){const n=f(t)[e];if(!n)return[];let i=[n.callbacks];for(let e=0;e<n.childEvents.length;e++){const o=x(t,n.childEvents[e]);i=i.concat(o)}return i}function b(t,e){let n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?b(t,e.substr(0,e.lastIndexOf(":"))):null}function k(t,e,n){for(let[o,r]of t){r?"function"==typeof r&&(r=r(e.name)):r=e.name;const t=new i.Z(e.source,r);t.path=[...e.path],o.fire(t,...n)}}function w(t,e,n,i){e._removeEventListener?e._removeEventListener(n,i):t._removeEventListener.call(e,n,i)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{h[t]=u.prototype[t]}))},8483:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i=function(){return function t(){t.called=!0}};class o{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=i(),this.off=i()}}},3324:(t,e,n)=>{"use strict";n.d(e,{Bb:()=>p.ZP,FE:()=>Qt.Z,De:()=>U,Xu:()=>Y,a6:()=>T,ln:()=>m.ZP,M3:()=>g.Z,Rh:()=>te,VD:()=>ee,go:()=>$t,Re:()=>v,UL:()=>ct,do:()=>mt,fZ:()=>D,Rt:()=>B,QX:()=>M,az:()=>j,gw:()=>de,Hg:()=>d,Pk:()=>u,OB:()=>r,$J:()=>se,HZ:()=>a,wm:()=>tt,Ps:()=>Xt,dk:()=>et,lo:()=>it,Cq:()=>Ft,yy:()=>nt,XU:()=>Ht,j9:()=>Zt,mA:()=>qt,xZ:()=>_t,global:()=>X,cq:()=>ft,ZQ:()=>xt,VG:()=>ae.Z,dj:()=>Gt,tO:()=>me,C3:()=>bt,Zt:()=>Wt,Cb:()=>ge,pp:()=>xe,YK:()=>ke,to:()=>fe,TW:()=>O.Z,nA:()=>pe,UG:()=>W,bR:()=>rt,Gs:()=>ot,$b:()=>kt,pn:()=>wt,Do:()=>zt,H:()=>p.H,KE:()=>p.KE,CD:()=>h,Zz:()=>Ut,tA:()=>ie.Z,Dm:()=>ue.D,Od:()=>yt,XD:()=>re,F0:()=>It,mR:()=>Et,jS:()=>gt,x:()=>le,qo:()=>Yt,qL:()=>ne,nn:()=>pt,hQ:()=>q.Z,Tx:()=>he,i8:()=>ue.Z,Dc:()=>oe});const i=function(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}(),o={isMac:s(i),isWindows:function(t){return t.indexOf("windows")>-1}(i),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(i),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(i),isiOS:function(t){return!!t.match(/iphone|ipad/i)||s(t)&&navigator.maxTouchPoints>0}(i),isAndroid:function(t){return t.indexOf("android")>-1}(i),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(i),features:{isRegExpUnicodePropertySupported:function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}},r=o;function s(t){return t.indexOf("macintosh")>-1}function a(t,e,n,i){n=n||function(t,e){return t===e};const o=Array.isArray(t)?t:Array.prototype.slice.call(t),r=Array.isArray(e)?e:Array.prototype.slice.call(e),s=function(t,e,n){const i=c(t,e,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=l(t,i),r=l(e,i),s=c(o,r,n),a=t.length-s,d=e.length-s;return{firstIndex:i,lastIndexOld:a,lastIndexNew:d}}(o,r,n),a=i?function(t,e){const{firstIndex:n,lastIndexOld:i,lastIndexNew:o}=t;if(-1===n)return Array(e).fill("equal");let r=[];n>0&&(r=r.concat(Array(n).fill("equal")));o-n>0&&(r=r.concat(Array(o-n).fill("insert")));i-n>0&&(r=r.concat(Array(i-n).fill("delete")));o<e&&(r=r.concat(Array(e-o).fill("equal")));return r}(s,r.length):function(t,e){const n=[],{firstIndex:i,lastIndexOld:o,lastIndexNew:r}=e;r-i>0&&n.push({index:i,type:"insert",values:t.slice(i,r)});o-i>0&&n.push({index:i+(r-i),type:"delete",howMany:o-i});return n}(r,s);return a}function c(t,e,n){for(let i=0;i<Math.max(t.length,e.length);i++)if(void 0===t[i]||void 0===e[i]||!n(t[i],e[i]))return i;return-1}function l(t,e){return t.slice(e).reverse()}function d(t,e,n){n=n||function(t,e){return t===e};const i=t.length,o=e.length;if(i>200||o>200||i+o>300)return d.fastDiff(t,e,n,!0);let r,s;if(o<i){const n=t;t=e,e=n,r="delete",s="insert"}else r="insert",s="delete";const a=t.length,c=e.length,l=c-a,u={},h={};function m(i){const o=(void 0!==h[i-1]?h[i-1]:-1)+1,l=void 0!==h[i+1]?h[i+1]:-1,d=o>l?-1:1;u[i+d]&&(u[i]=u[i+d].slice(0)),u[i]||(u[i]=[]),u[i].push(o>l?r:s);let m=Math.max(o,l),g=m-i;for(;g<a&&m<c&&n(t[g],e[m]);)g++,m++,u[i].push("equal");return m}let g,p=0;do{for(g=-p;g<l;g++)h[g]=m(g);for(g=l+p;g>l;g--)h[g]=m(g);h[l]=m(l),p++}while(h[l]!==c);return u[l].slice(1)}function u(t,e){const n=[];let i=0,o=null;return t.forEach((t=>{"equal"==t?(r(),i++):"insert"==t?(o&&"insert"==o.type?o.values.push(e[i]):(r(),o={type:"insert",index:i,values:[e[i]]}),i++):o&&"delete"==o.type?o.howMany++:(r(),o={type:"delete",index:i,howMany:1})})),r(),n;function r(){o&&(n.push(o),o=null)}}function h(t,...e){e.forEach((e=>{const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols(e);n.concat(i).forEach((n=>{if(n in t.prototype)return;if("function"==typeof e&&("length"==n||"name"==n||"prototype"==n))return;const i=Object.getOwnPropertyDescriptor(e,n);i.enumerable=!1,Object.defineProperty(t.prototype,n,i)}))}))}d.fastDiff=a;var m=n(669),g=n(8483),p=n(8378),f=n(7226);const x=Symbol("observableProperties"),b=Symbol("boundObservables"),k=Symbol("boundProperties"),w=Symbol("decoratedMethods"),A=Symbol("decoratedOriginal"),_=v((0,m.ZP)());function v(t){if(!t)return _;return class extends t{set(t,e){if((0,f.Z)(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);C(this);const n=this[x];if(t in this&&!n.has(t))throw new p.ZP("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const i=n.get(t);let o=this.fire(`set:${t}`,t,e,i);void 0===o&&(o=e),i===o&&n.has(t)||(n.set(t,o),this.fire(`change:${t}`,t,o,i))}}),this[t]=e}bind(...t){if(!t.length||!I(t))throw new p.ZP("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new p.ZP("observable-bind-duplicate-properties",this);C(this);const e=this[k];t.forEach((t=>{if(e.has(t))throw new p.ZP("observable-bind-rebind",this)}));const n=new Map;return t.forEach((t=>{const i={property:t,to:[]};e.set(t,i),n.set(t,i)})),{to:y,toMany:E,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[x])return;const e=this[k],n=this[b];if(t.length){if(!I(t))throw new p.ZP("observable-unbind-wrong-properties",this);t.forEach((t=>{const i=e.get(t);i&&(i.to.forEach((([t,e])=>{const o=n.get(t),r=o[e];r.delete(i),r.size||delete o[e],Object.keys(o).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){C(this);const e=this[t];if(!e)throw new p.ZP("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][A]=e,this[w]||(this[w]=[]),this[w].push(t)}stopListening(t,e,n){if(!t&&this[w]){for(const t of this[w])this[t]=this[t][A];delete this[w]}super.stopListening(t,e,n)}}}function C(t){t[x]||(Object.defineProperty(t,x,{value:new Map}),Object.defineProperty(t,b,{value:new Map}),Object.defineProperty(t,k,{value:new Map}))}function y(...t){const e=function(...t){if(!t.length)throw new p.ZP("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 p.ZP("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}})),e}(...t),n=Array.from(this._bindings.keys()),i=n.length;if(!e.callback&&e.to.length>1)throw new p.ZP("observable-bind-to-no-callback",this);if(i>1&&e.callback)throw new p.ZP("observable-bind-to-extra-callback",this);var o;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==i)throw new p.ZP("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),o=this._observable,this._to.forEach((t=>{const e=o[b];let n;e.get(t.observable)||o.listenTo(t.observable,"change",((i,r)=>{n=e.get(t.observable)[r],n&&n.forEach((t=>{S(o,t.property)}))}))})),function(t){let e;t._bindings.forEach(((n,i)=>{t._to.forEach((o=>{e=o.properties[n.callback?0:t._bindProperties.indexOf(i)],n.to.push([o.observable,e]),function(t,e,n,i){const o=t[b],r=o.get(n),s=r||{};s[i]||(s[i]=new Set);s[i].add(e),r||o.set(n,s)}(t._observable,n,o.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{S(this._observable,t)}))}function E(t,e,n){if(this._bindings.size>1)throw new p.ZP("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 I(t){return t.every((t=>"string"==typeof t))}function S(t,e){const n=t[k].get(e);let i;n.callback?i=n.callback.apply(t,n.to.map((t=>t[0][t[1]]))):(i=n.to[0],i=i[0][i[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=i:t.set(e,i)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{v[t]=_.prototype[t]}));class T{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach((({element:t,newElement:e})=>{t.style.display="",e&&e.remove()})),this._replacedElements=[]}}function D(t){let e=new AbortController;function n(...n){return e.abort(),e=new AbortController,t(e.signal,...n)}return n.abort=()=>e.abort(),n}function M(t){let e=0;for(const n of t)e++;return e}function B(t,e){const n=Math.min(t.length,e.length);for(let i=0;i<n;i++)if(t[i]!=e[i])return i;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}var O=n(5838),N=n(3243),P=n(7771),R=n(8533);const L=function(t){return"string"==typeof t||!(0,P.Z)(t)&&(0,R.Z)(t)&&"[object String]"==(0,N.Z)(t)};function j(t,e,n={},i=[]){const o=n&&n.xmlns,r=o?t.createElementNS(o,e):t.createElement(e);for(const t in n)r.setAttribute(t,n[t]);!L(i)&&(0,O.Z)(i)||(i=[i]);for(let e of i)L(e)&&(e=t.createTextNode(e)),r.appendChild(e);return r}var z=n(7514),V=n(4612),F=n(3251);class U{constructor(t,e){this._config={},e&&this.define(H(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,i=!1){if((0,z.Z)(e))return void this._setObjectToTarget(t,e,i);const o=e.split(".");e=o.pop();for(const e of o)(0,z.Z)(t[e])||(t[e]={}),t=t[e];if((0,z.Z)(n))return(0,z.Z)(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,i);i&&void 0!==t[e]||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const e of n){if(!(0,z.Z)(t[e])){t=null;break}t=t[e]}return t?H(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach((i=>{this._setToTarget(t,i,e[i],n)}))}}function H(t){return(0,V.Z)(t,G)}function G(t){return(0,F.Z)(t)||"function"==typeof t?t:void 0}var q=n(369);function W(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}function K(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}const Z=Y((0,m.ZP)());function Y(t){if(!t)return Z;return class extends t{listenTo(t,e,n,i={}){if(W(t)||K(t)){const o={capture:!!i.useCapture,passive:!!i.usePassive},r=this._getProxyEmitter(t,o)||new J(t,o);this.listenTo(r,e,n,i)}else super.listenTo(t,e,n,i)}stopListening(t,e,n){if(W(t)||K(t)){const i=this._getAllProxyEmitters(t);for(const t of i)this.stopListening(t,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return(0,m.Rl)(this,$(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=>{Y[t]=Z.prototype[t]}));class J extends((0,m.ZP)()){constructor(t,e){super(),(0,m.Hv)(this,$(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),(0,m.ZP)().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){(0,m.ZP)().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 $(t,e){let n=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=(0,q.Z)())}(t);for(const t of Object.keys(e).sort())e[t]&&(n+="-"+t);return n}let Q;try{Q={window,document}}catch(t){Q={window:{},document:{}}}const X=Q;function tt(t){let e=t.parentElement;if(!e)return null;for(;"BODY"!=e.tagName;){const t=e.style.overflowY||X.window.getComputedStyle(e).overflowY;if("auto"===t||"scroll"===t)break;if(e=e.parentElement,!e)return null}return e}function et(t){const e=[];let n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}function nt(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}function it(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 ot(t){return"[object Text]"==Object.prototype.toString.call(t)}function rt(t){return"[object Range]"==Object.prototype.toString.apply(t)}function st(t){return t&&t.parentNode?t.offsetParent===X.document.body?null:t.offsetParent:null}const at=["top","right","bottom","left","width","height"];class ct{constructor(t){const e=rt(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),ut(t)||e)if(e){const e=ct.getDomRangeRects(t);lt(this,ct.getBoundingRect(e))}else lt(this,t.getBoundingClientRect());else if(K(t)){const{innerWidth:e,innerHeight:n}=t;lt(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else lt(this,t)}clone(){return new ct(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 ct(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(dt(t))return e;let n,i=t,o=t.parentNode||t.commonAncestorContainer;for(;o&&!dt(o);){const t="visible"===((r=o)instanceof HTMLElement?r.ownerDocument.defaultView.getComputedStyle(r).overflow:"visible");i instanceof HTMLElement&&"absolute"===ht(i)&&(n=i);const s=ht(o);if(t||n&&("relative"===s&&t||"relative"!==s)){i=o,o=o.parentNode;continue}const a=new ct(o),c=e.getIntersection(a);if(!c)return null;c.getArea()<e.getArea()&&(e=c),i=o,o=o.parentNode}var r;return e}isEqual(t){for(const e of at)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=X.window,n=this.clone().moveBy(t,e);if(ut(n._source)){const t=st(n._source);t&&function(t,e){const n=new ct(e),i=it(e);let o=0,r=0;o-=n.left,r-=n.top,o+=e.scrollLeft,r+=e.scrollTop,o-=i.left,r-=i.top,t.moveBy(o,r)}(n,t)}return n}excludeScrollbarsAndBorders(){const t=this._source;let e,n,i;if(K(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,i=t.getComputedStyle(t.document.documentElement).direction;else{const o=it(t);e=t.offsetWidth-t.clientWidth-o.left-o.right,n=t.offsetHeight-t.clientHeight-o.top-o.bottom,i=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=o.left,this.top+=o.top,this.right-=o.right,this.bottom-=o.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===i?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 ct(t));else{let n=t.startContainer;ot(n)&&(n=n.parentNode);const i=new ct(n.getBoundingClientRect());i.right=i.left,i.width=0,e.push(i)}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 i of t)n++,e.left=Math.min(e.left,i.left),e.top=Math.min(e.top,i.top),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom);return 0==n?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new ct(e))}}function lt(t,e){for(const n of at)t[n]=e[n]}function dt(t){return!!ut(t)&&t===t.ownerDocument.body}function ut(t){return null!==t&&"object"==typeof t&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect}function ht(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}class mt{constructor(t,e){mt._observerInstance||mt._createObserver(),this._element=t,this._callback=e,mt._addElementCallback(t,e),mt._observerInstance.observe(t)}get element(){return this._element}destroy(){mt._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){mt._elementCallbacks||(mt._elementCallbacks=new Map);let n=mt._elementCallbacks.get(t);n||(n=new Set,mt._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=mt._getElementCallbacks(t);n&&(n.delete(e),n.size||(mt._elementCallbacks.delete(t),mt._observerInstance.unobserve(t))),mt._elementCallbacks&&!mt._elementCallbacks.size&&(mt._observerInstance=null,mt._elementCallbacks=null)}static _getElementCallbacks(t){return mt._elementCallbacks?mt._elementCallbacks.get(t):null}static _createObserver(){mt._observerInstance=new X.window.ResizeObserver((t=>{for(const e of t){const t=mt._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}}))}}function gt(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}function pt(t){return e=>e+t}function ft(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function xt(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function bt(t){return t&&t.nodeType===Node.COMMENT_NODE}function kt(t){try{X.document.createAttribute(t)}catch(t){return!1}return!0}function wt(t){return!!(t&&t.getClientRects&&t.getClientRects().length)}mt._observerInstance=null,mt._elementCallbacks=null;var At=n(3234);function _t({element:t,target:e,positions:n,limiter:i,fitInViewport:o,viewportOffsetConfig:r}){(0,At.Z)(e)&&(e=e()),(0,At.Z)(i)&&(i=i());const s=st(t),a=function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new ct(X.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(r),c=new ct(t),l=vt(e,a);let d;if(!l||!a.getIntersection(l))return null;const u={targetRect:l,elementRect:c,positionedElementAncestor:s,viewportRect:a};if(i||o){if(i){const t=vt(i,a);t&&(u.limiterRect=t)}d=function(t,e){const{elementRect:n}=e,i=n.getArea(),o=t.map((t=>new Ct(t,e))).filter((t=>!!t.name));let r=0,s=null;for(const t of o){const{limiterIntersectionArea:e,viewportIntersectionArea:n}=t;if(e===i)return t;const o=n**2+e**2;o>r&&(r=o,s=t)}return s}(n,u)}else d=new Ct(n[0],u);return d}function vt(t,e){const n=new ct(t).getVisible();return n?n.getIntersection(e):null}class Ct{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:i,top:o,name:r,config:s}=n;this.name=r,this.config=s,this._positioningFunctionCoordinates={left:i,top:o},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 yt(t){const e=t.parentNode;e&&e.removeChild(t)}function Et({target:t,viewportOffset:e=0,ancestorOffset:n=0,alignToTop:i,forceScroll:o}){const r=Nt(t);let s=r,a=null;for(e=function(t){if("number"==typeof t)return{top:t,bottom:t,left:t,right:t};return t}(e);s;){let c;c=Pt(s==r?t:a),Tt({parent:c,getRect:()=>Rt(t,s),alignToTop:i,ancestorOffset:n,forceScroll:o});const l=Rt(t,s);if(St({window:s,rect:l,viewportOffset:e,alignToTop:i,forceScroll:o}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return}else s=null}}function It(t,e,n){Tt({parent:Pt(t),getRect:()=>new ct(t),ancestorOffset:e,limiterElement:n})}function St({window:t,rect:e,alignToTop:n,forceScroll:i,viewportOffset:o}){const r=e.clone().moveBy(0,o.bottom),s=e.clone().moveBy(0,-o.top),a=new ct(t).excludeScrollbarsAndBorders(),c=n&&i,l=[s,r].every((t=>a.contains(t)));let{scrollX:d,scrollY:u}=t;const h=d,m=u;c?u-=a.top-e.top+o.top:l||(Mt(s,a)?u-=a.top-e.top+o.top:Dt(r,a)&&(u+=n?e.top-a.top-o.top:e.bottom-a.bottom+o.bottom)),l||(Bt(e,a)?d-=a.left-e.left+o.left:Ot(e,a)&&(d+=e.right-a.right+o.right)),d==h&&u===m||t.scrollTo(d,u)}function Tt({parent:t,getRect:e,alignToTop:n,forceScroll:i,ancestorOffset:o=0,limiterElement:r}){const s=Nt(t),a=n&&i;let c,l,d;const u=r||s.document.body;for(;t!=u;)l=e(),c=new ct(t).excludeScrollbarsAndBorders(),d=c.contains(l),a?t.scrollTop-=c.top-l.top+o:d||(Mt(l,c)?t.scrollTop-=c.top-l.top+o:Dt(l,c)&&(t.scrollTop+=n?l.top-c.top-o:l.bottom-c.bottom+o)),d||(Bt(l,c)?t.scrollLeft-=c.left-l.left+o:Ot(l,c)&&(t.scrollLeft+=l.right-c.right+o)),t=t.parentNode}function Dt(t,e){return t.bottom>e.bottom}function Mt(t,e){return t.top<e.top}function Bt(t,e){return t.left<e.left}function Ot(t,e){return t.right>e.right}function Nt(t){return rt(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function Pt(t){if(rt(t)){let e=t.commonAncestorContainer;return ot(e)&&(e=e.parentNode),e}return t.parentNode}function Rt(t,e){const n=Nt(t),i=new ct(t);if(n===e)return i;{let t=n;for(;t!=e;){const e=t.frameElement,n=new ct(e).excludeScrollbarsAndBorders();i.moveBy(n.left,n.top),t=t.parent}}return i}const Lt={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},jt={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},zt=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;for(const e of"`-=[];',./\\")t[e]=e.charCodeAt(0);return t}(),Vt=Object.fromEntries(Object.entries(zt).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));function Ft(t){let e;if("string"==typeof t){if(e=zt[t.toLowerCase()],!e)throw new p.ZP("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?zt.alt:0)+(t.ctrlKey?zt.ctrl:0)+(t.shiftKey?zt.shift:0)+(t.metaKey?zt.cmd:0);return e}function Ut(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 Ft(t.slice(0,-1));const e=Ft(t);return(r.isMac||r.isiOS)&&e==zt.ctrl?zt.cmd:e}(t):t)).reduce(((t,e)=>e+t),0)}function Ht(t){let e=Ut(t);return Object.entries(r.isMac||r.isiOS?Lt:jt).reduce(((t,[n,i])=>(0!=(e&zt[n])&&(e&=~zt[n],t+=i),t)),"")+(e?Vt[e]:"")}function Gt(t){return t==zt.arrowright||t==zt.arrowleft||t==zt.arrowup||t==zt.arrowdown}function qt(t,e){const n="ltr"===e;switch(t){case zt.arrowleft:return n?"left":"right";case zt.arrowright:return n?"right":"left";case zt.arrowup:return"up";case zt.arrowdown:return"down"}}function Wt(t,e){const n=qt(t,e);return"down"===n||"right"===n}const Kt=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Zt(t){return Kt.includes(t)?"rtl":"ltr"}function Yt(t){return Array.isArray(t)?t:[t]}function Jt(t,e,n=1){if("number"!=typeof n)throw new p.ZP("translation-service-quantity-not-a-number",null,{quantity:n});const i=Object.keys(X.window.CKEDITOR_TRANSLATIONS).length;1===i&&(t=Object.keys(X.window.CKEDITOR_TRANSLATIONS)[0]);const o=e.id||e.string;if(0===i||!function(t,e){return!!X.window.CKEDITOR_TRANSLATIONS[t]&&!!X.window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,o))return 1!==n?e.plural:e.string;const r=X.window.CKEDITOR_TRANSLATIONS[t].dictionary,s=X.window.CKEDITOR_TRANSLATIONS[t].getPluralForm||(t=>1===t?0:1),a=r[o];if("string"==typeof a)return a;return a[Number(s(n))]}X.window.CKEDITOR_TRANSLATIONS||(X.window.CKEDITOR_TRANSLATIONS={});class $t{constructor({uiLanguage:t="en",contentLanguage:e}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=Zt(this.uiLanguage),this.contentLanguageDirection=Zt(this.contentLanguage),this.t=(t,e)=>this._t(t,e)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=Yt(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))}(Jt(this.uiLanguage,t,n),e)}}var Qt=n(4033);function Xt(t){const e=t.next();return e.done?null:e.value}class te extends(Y(v())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new p.ZP("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 ee{constructor(){this._listener=new(Y())}listenTo(t){this._listener.listenTo(t,"keydown",((t,e)=>{this._listener.fire("_keydown:"+Ft(e),e)}))}set(t,e,n={}){const i=Ut(t),o=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,((t,n)=>{e(n,(()=>{n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:o})}press(t){return!!this._listener.fire("_keydown:"+Ft(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function ne(t){return(0,O.Z)(t)?new Map(t):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(t)}var ie=n(4841);function oe(t,e={}){return new Promise(((n,i)=>{const o=e.signal||(new AbortController).signal;o.throwIfAborted();const r=setTimeout((function(){o.removeEventListener("abort",s),n()}),t);function s(){clearTimeout(r),i(o.reason)}o.addEventListener("abort",s,{once:!0})}))}async function re(t,e={}){const{maxAttempts:n=4,retryDelay:i=se(),signal:o=(new AbortController).signal}=e;o.throwIfAborted();for(let e=0;;e++){try{return await t()}catch(t){if(e+1>=n)throw t}await oe(i(e),{signal:o})}}function se(t={}){const{delay:e=1e3,factor:n=2,maxDelay:i=1e4}=t;return t=>Math.min(n**t*e,i)}var ae=n(6547);const ce=1e4;function le(t,e,n,i){if(Math.max(e.length,t.length)>ce)return t.slice(0,n).concat(e).concat(t.slice(n+i,t.length));{const o=Array.from(t);return o.splice(n,i,...e),o}}function de(t,e){let n;function i(...o){i.cancel(),n=setTimeout((()=>t(...o)),e)}return i.cancel=()=>{clearTimeout(n)},i}var ue=n(9807);function he(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 i=n.split("-"),o=i[0],r=i[1];if(!r)return e(t);try{atob(r)}catch(n){try{if(atob(o),!atob(o).length)return e(t)}catch(n){return e(t)}}if(o.length<40||o.length>255)return"INVALID";let s="";try{atob(o),s=atob(r)}catch(t){return"INVALID"}if(8!==s.length)return"INVALID";const a=Number(s.substring(0,4)),c=Number(s.substring(4,6))-1,l=Number(s.substring(6,8)),d=new Date(a,c,l);return d<ue.D||isNaN(Number(d))?"INVALID":"VALID"}function me(t){return!!t&&1==t.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(t)}function ge(t){return!!t&&1==t.length&&/[\ud800-\udbff]/.test(t)}function pe(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}function fe(t,e){return ge(t.charAt(e-1))&&pe(t.charAt(e))}function xe(t,e){return me(t.charAt(e))}const be=function(){const t=/\p{Regional_Indicator}{2}/u.source,e="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map((t=>t.source)).join("|")+")";return new RegExp(`${t}|${e}(?:‍${e})*`,"ug")}();function ke(t,e){const n=String(t).matchAll(be);return Array.from(n).some((t=>t.index<e&&e<t.index+t[0].length))}},6547:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(4841);function o(t,e){const n=i.Z.get(e.priority);for(let o=0;o<t.length;o++)if(i.Z.get(t[o].priority)<n)return void t.splice(o,0,e);t.push(e)}},5838:(t,e,n)=>{"use strict";function i(t){return!(!t||!t[Symbol.iterator])}n.d(e,{Z:()=>i})},4841:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5}},369:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function o(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+i[t>>0&255]+i[t>>8&255]+i[t>>16&255]+i[t>>24&255]+i[e>>0&255]+i[e>>8&255]+i[e>>16&255]+i[e>>24&255]+i[n>>0&255]+i[n>>8&255]+i[n>>16&255]+i[n>>24&255]+i[o>>0&255]+i[o>>8&255]+i[o>>16&255]+i[o>>24&255]}},9807:(t,e,n)=>{"use strict";n.d(e,{D:()=>s,Z:()=>r});var i=n(8378);const o="40.2.0",r=o,s=new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new i.ZP("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=o},4537:t=>{"use strict";t.exports=function(t,e){var n=new Array(arguments.length-1),i=0,o=2,r=!0;for(;o<arguments.length;)n[i++]=arguments[o++];return new Promise((function(o,s){n[i]=function(t){if(r)if(r=!1,t)s(t);else{for(var e=new Array(arguments.length-1),n=0;n<e.length;)e[n++]=arguments[n];o.apply(null,e)}};try{t.apply(e||null,n)}catch(t){r&&(r=!1,s(t))}}))}},7419:(t,e)=>{"use strict";var n=e;n.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=new Array(64),o=new Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,e,n){for(var o,r=null,s=[],a=0,c=0;e<n;){var l=t[e++];switch(c){case 0:s[a++]=i[l>>2],o=(3&l)<<4,c=1;break;case 1:s[a++]=i[o|l>>4],o=(15&l)<<2,c=2;break;case 2:s[a++]=i[o|l>>6],s[a++]=i[63&l],c=0}a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,s)),a=0)}return c&&(s[a++]=i[o],s[a++]=61,1===c&&(s[a++]=61)),r?(a&&r.push(String.fromCharCode.apply(String,s.slice(0,a))),r.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,r=n,a=0,c=0;c<t.length;){var l=t.charCodeAt(c++);if(61===l&&a>1)break;if(void 0===(l=o[l]))throw Error(s);switch(a){case 0:i=l,a=1;break;case 1:e[n++]=i<<2|(48&l)>>4,i=l,a=2;break;case 2:e[n++]=(15&i)<<4|(60&l)>>2,i=l,a=3;break;case 3:e[n++]=(3&i)<<6|l,a=0}}if(1===a)throw Error(s);return n-r},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},9211:t=>{"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i<n.length;)n[i].fn===e?n.splice(i,1):++i;return this},e.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],i=1;i<arguments.length;)n.push(arguments[i++]);for(i=0;i<e.length;)e[i].fn.apply(e[i++].ctx,n)}return this}},945:t=>{"use strict";function e(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),i=128===n[3];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3]}function r(t,i,o){e[0]=t,i[o]=n[3],i[o+1]=n[2],i[o+2]=n[1],i[o+3]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],e[0]}function a(t,i){return n[3]=t[i],n[2]=t[i+1],n[1]=t[i+2],n[0]=t[i+3],e[0]}t.writeFloatLE=i?o:r,t.writeFloatBE=i?r:o,t.readFloatLE=i?s:a,t.readFloatBE=i?a:s}():function(){function e(t,e,n,i){var o=e<0?1:0;if(o&&(e=-e),0===e)t(1/e>0?0:2147483648,n,i);else if(isNaN(e))t(2143289344,n,i);else if(e>34028234663852886e22)t((o<<31|2139095040)>>>0,n,i);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(e)/Math.LN2);t((o<<31|r+127<<23|8388607&Math.round(e*Math.pow(2,-r)*8388608))>>>0,n,i)}}function s(t,e,n){var i=t(e,n),o=2*(i>>31)+1,r=i>>>23&255,s=8388607&i;return 255===r?s?NaN:o*(1/0):0===r?1401298464324817e-60*o*s:o*Math.pow(2,r-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,i),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,r)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(t,i,o){e[0]=t,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function a(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?o:r,t.writeDoubleBE=i?r:o,t.readDoubleLE=i?s:a,t.readDoubleBE=i?a:s}():function(){function e(t,e,n,i,o,r){var s=i<0?1:0;if(s&&(i=-i),0===i)t(0,o,r+e),t(1/i>0?0:2147483648,o,r+n);else if(isNaN(i))t(0,o,r+e),t(2146959360,o,r+n);else if(i>17976931348623157e292)t(0,o,r+e),t((s<<31|2146435072)>>>0,o,r+n);else{var a;if(i<22250738585072014e-324)t((a=i/5e-324)>>>0,o,r+e),t((s<<31|a/4294967296)>>>0,o,r+n);else{var c=Math.floor(Math.log(i)/Math.LN2);1024===c&&(c=1023),t(4503599627370496*(a=i*Math.pow(2,-c))>>>0,o,r+e),t((s<<31|c+1023<<20|1048576*a&1048575)>>>0,o,r+n)}}}function s(t,e,n,i,o){var r=t(i,o+e),s=t(i,o+n),a=2*(s>>31)+1,c=s>>>20&2047,l=4294967296*(1048575&s)+r;return 2047===c?l?NaN:a*(1/0):0===c?5e-324*a*l:a*Math.pow(2,c-1075)*(l+4503599627370496)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,r,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function r(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},7199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},6662:t=>{"use strict";t.exports=function(t,e,n){var i=n||8192,o=i>>>1,r=null,s=i;return function(n){if(n<1||n>o)return t(n);s+n>i&&(r=t(i),s=0);var a=e.call(r,s,s+=n);return 7&s&&(s=1+(7|s)),a}}},4997:(t,e)=>{"use strict";var n=e;n.length=function(t){for(var e=0,n=0,i=0;i<t.length;++i)(n=t.charCodeAt(i))<128?e+=1:n<2048?e+=2:55296==(64512&n)&&56320==(64512&t.charCodeAt(i+1))?(++i,e+=4):e+=3;return e},n.read=function(t,e,n){if(n-e<1)return"";for(var i,o=null,r=[],s=0;e<n;)(i=t[e++])<128?r[s++]=i:i>191&&i<224?r[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r[s++]=55296+(i>>10),r[s++]=56320+(1023&i)):r[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,r.slice(0,s))),o.join("")):String.fromCharCode.apply(String,r.slice(0,s))},n.write=function(t,e,n){for(var i,o,r=n,s=0;s<t.length;++s)(i=t.charCodeAt(s))<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&56320==(64512&(o=t.charCodeAt(s+1)))?(i=65536+((1023&i)<<10)+(1023&o),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128);return n-r}},6209:()=>{"use strict";var md5,__WEBPACK_DEFAULT_EXPORT__=md5;(function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(t){var e=t.getMonth()+1,n=t.getDate(),i=t.getHours(),o=t.getMinutes(),r=t.getSeconds();return t.getFullYear()+"-"+(e<10?"0"+e:""+e)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(o<10?"0"+o:""+o)+":"+(r<10?"0"+r:""+r)},HxOverrides.strDate=function(t){switch(t.length){case 8:var e=t.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(e[0]),n.setUTCMinutes(e[1]),n.setUTCSeconds(e[2]),n;case 10:e=t.split("-");return new Date(e[0],e[1]-1,e[2],0,0,0);case 19:var i=(e=t.split(" "))[0].split("-"),o=e[1].split(":");return new Date(i[0],i[1]-1,i[2],o[0],o[1],o[2]);default:throw"Invalid date format : "+t}},HxOverrides.cca=function(t,e){var n=t.charCodeAt(e);if(n==n)return n},HxOverrides.substr=function(t,e,n){return null!=e&&0!=e&&null!=n&&n<0?"":(null==n&&(n=t.length),e<0?(e=t.length+e)<0&&(e=0):n<0&&(n=t.length+n-e),t.substr(e,n))},HxOverrides.remove=function(t,e){for(var n=0,i=t.length;n<i;){if(t[n]==e)return t.splice(n,1),!0;n++}return!1},HxOverrides.iter=function(t){return{cur:0,arr:t,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var IntIter=function(t,e){this.min=t,this.max=e};IntIter.__name__=!0,IntIter.prototype={next:function(){return this.min++},hasNext:function(){return this.min<this.max},__class__:IntIter};var Std=function(){};Std.__name__=!0,Std.is=function(t,e){return js.Boot.__instanceof(t,e)},Std.string=function(t){return js.Boot.__string_rec(t,"")},Std.int=function(t){return 0|t},Std.parseInt=function(t){var e=parseInt(t,10);return 0!=e||120!=HxOverrides.cca(t,1)&&88!=HxOverrides.cca(t,1)||(e=parseInt(t)),isNaN(e)?null:e},Std.parseFloat=function(t){return parseFloat(t)},Std.random=function(t){return Math.floor(Math.random()*t)};var com=com||{};com.wiris||(com.wiris={}),com.wiris.js||(com.wiris.js={}),com.wiris.js.JsPluginTools=function(){this.tryReady()},com.wiris.js.JsPluginTools.__name__=!0,com.wiris.js.JsPluginTools.main=function(){var t;t=com.wiris.js.JsPluginTools.getInstance(),haxe.Timer.delay($bind(t,t.tryReady),100)},com.wiris.js.JsPluginTools.getInstance=function(){return null==com.wiris.js.JsPluginTools.instance&&(com.wiris.js.JsPluginTools.instance=new com.wiris.js.JsPluginTools),com.wiris.js.JsPluginTools.instance},com.wiris.js.JsPluginTools.bypassEncapsulation=function(){null==window.com&&(window.com={}),null==window.com.wiris&&(window.com.wiris={}),null==window.com.wiris.js&&(window.com.wiris.js={}),null==window.com.wiris.js.JsPluginTools&&(window.com.wiris.js.JsPluginTools=com.wiris.js.JsPluginTools.getInstance())},com.wiris.js.JsPluginTools.prototype={md5encode:function(t){return haxe.Md5.encode(t)},doLoad:function(){this.ready=!0,com.wiris.js.JsPluginTools.instance=this,com.wiris.js.JsPluginTools.bypassEncapsulation()},tryReady:function(){this.ready=!1,js.Lib.document.readyState&&(this.doLoad(),this.ready=!0),this.ready||haxe.Timer.delay($bind(this,this.tryReady),100)},__class__:com.wiris.js.JsPluginTools};var haxe=haxe||{};haxe.Log=function(){},haxe.Log.__name__=!0,haxe.Log.trace=function(t,e){js.Boot.__trace(t,e)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Md5=function(){},haxe.Md5.__name__=!0,haxe.Md5.encode=function(t){return(new haxe.Md5).doEncode(t)},haxe.Md5.prototype={doEncode:function(t){for(var e=this.str2blks(t),n=1732584193,i=-271733879,o=-1732584194,r=271733878,s=0;s<e.length;){var a=n,c=i,l=o,d=r;0,n=this.ff(n,i,o,r,e[s],7,-680876936),r=this.ff(r,n,i,o,e[s+1],12,-389564586),o=this.ff(o,r,n,i,e[s+2],17,606105819),i=this.ff(i,o,r,n,e[s+3],22,-1044525330),n=this.ff(n,i,o,r,e[s+4],7,-176418897),r=this.ff(r,n,i,o,e[s+5],12,1200080426),o=this.ff(o,r,n,i,e[s+6],17,-1473231341),i=this.ff(i,o,r,n,e[s+7],22,-45705983),n=this.ff(n,i,o,r,e[s+8],7,1770035416),r=this.ff(r,n,i,o,e[s+9],12,-1958414417),o=this.ff(o,r,n,i,e[s+10],17,-42063),i=this.ff(i,o,r,n,e[s+11],22,-1990404162),n=this.ff(n,i,o,r,e[s+12],7,1804603682),r=this.ff(r,n,i,o,e[s+13],12,-40341101),o=this.ff(o,r,n,i,e[s+14],17,-1502002290),i=this.ff(i,o,r,n,e[s+15],22,1236535329),n=this.gg(n,i,o,r,e[s+1],5,-165796510),r=this.gg(r,n,i,o,e[s+6],9,-1069501632),o=this.gg(o,r,n,i,e[s+11],14,643717713),i=this.gg(i,o,r,n,e[s],20,-373897302),n=this.gg(n,i,o,r,e[s+5],5,-701558691),r=this.gg(r,n,i,o,e[s+10],9,38016083),o=this.gg(o,r,n,i,e[s+15],14,-660478335),i=this.gg(i,o,r,n,e[s+4],20,-405537848),n=this.gg(n,i,o,r,e[s+9],5,568446438),r=this.gg(r,n,i,o,e[s+14],9,-1019803690),o=this.gg(o,r,n,i,e[s+3],14,-187363961),i=this.gg(i,o,r,n,e[s+8],20,1163531501),n=this.gg(n,i,o,r,e[s+13],5,-1444681467),r=this.gg(r,n,i,o,e[s+2],9,-51403784),o=this.gg(o,r,n,i,e[s+7],14,1735328473),i=this.gg(i,o,r,n,e[s+12],20,-1926607734),n=this.hh(n,i,o,r,e[s+5],4,-378558),r=this.hh(r,n,i,o,e[s+8],11,-2022574463),o=this.hh(o,r,n,i,e[s+11],16,1839030562),i=this.hh(i,o,r,n,e[s+14],23,-35309556),n=this.hh(n,i,o,r,e[s+1],4,-1530992060),r=this.hh(r,n,i,o,e[s+4],11,1272893353),o=this.hh(o,r,n,i,e[s+7],16,-155497632),i=this.hh(i,o,r,n,e[s+10],23,-1094730640),n=this.hh(n,i,o,r,e[s+13],4,681279174),r=this.hh(r,n,i,o,e[s],11,-358537222),o=this.hh(o,r,n,i,e[s+3],16,-722521979),i=this.hh(i,o,r,n,e[s+6],23,76029189),n=this.hh(n,i,o,r,e[s+9],4,-640364487),r=this.hh(r,n,i,o,e[s+12],11,-421815835),o=this.hh(o,r,n,i,e[s+15],16,530742520),i=this.hh(i,o,r,n,e[s+2],23,-995338651),n=this.ii(n,i,o,r,e[s],6,-198630844),r=this.ii(r,n,i,o,e[s+7],10,1126891415),o=this.ii(o,r,n,i,e[s+14],15,-1416354905),i=this.ii(i,o,r,n,e[s+5],21,-57434055),n=this.ii(n,i,o,r,e[s+12],6,1700485571),r=this.ii(r,n,i,o,e[s+3],10,-1894986606),o=this.ii(o,r,n,i,e[s+10],15,-1051523),i=this.ii(i,o,r,n,e[s+1],21,-2054922799),n=this.ii(n,i,o,r,e[s+8],6,1873313359),r=this.ii(r,n,i,o,e[s+15],10,-30611744),o=this.ii(o,r,n,i,e[s+6],15,-1560198380),i=this.ii(i,o,r,n,e[s+13],21,1309151649),n=this.ii(n,i,o,r,e[s+4],6,-145523070),r=this.ii(r,n,i,o,e[s+11],10,-1120210379),o=this.ii(o,r,n,i,e[s+2],15,718787259),i=this.ii(i,o,r,n,e[s+9],21,-343485551),n=this.addme(n,a),i=this.addme(i,c),o=this.addme(o,l),r=this.addme(r,d),s+=16}return this.rhex(n)+this.rhex(i)+this.rhex(o)+this.rhex(r)},ii:function(t,e,n,i,o,r,s){return this.cmn(this.bitXOR(n,this.bitOR(e,~i)),t,e,o,r,s)},hh:function(t,e,n,i,o,r,s){return this.cmn(this.bitXOR(this.bitXOR(e,n),i),t,e,o,r,s)},gg:function(t,e,n,i,o,r,s){return this.cmn(this.bitOR(this.bitAND(e,i),this.bitAND(n,~i)),t,e,o,r,s)},ff:function(t,e,n,i,o,r,s){return this.cmn(this.bitOR(this.bitAND(e,n),this.bitAND(~e,i)),t,e,o,r,s)},cmn:function(t,e,n,i,o,r){return this.addme(this.rol(this.addme(this.addme(e,t),this.addme(i,r)),o),n)},rol:function(t,e){return t<<e|t>>>32-e},str2blks:function(t){for(var e=1+(t.length+8>>6),n=new Array,i=0,o=16*e;i<o;){n[r=i++]=0}for(var r=0;r<t.length;)n[r>>2]|=HxOverrides.cca(t,r)<<(8*t.length+r)%4*8,r++;n[r>>2]|=128<<(8*t.length+r)%4*8;var s=8*t.length,a=16*e-2;return n[a]=255&s,n[a]|=(s>>>8&255)<<8,n[a]|=(s>>>16&255)<<16,n[a]|=(s>>>24&255)<<24,n},rhex:function(t){for(var e="",n="0123456789abcdef",i=0;i<4;){var o=i++;e+=n.charAt(t>>8*o+4&15)+n.charAt(t>>8*o&15)}return e},addme:function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},bitAND:function(t,e){return(t>>>1&e>>>1)<<1|1&t&e},bitXOR:function(t,e){return(t>>>1^e>>>1)<<1|1&t^1&e},bitOR:function(t,e){return(t>>>1|e>>>1)<<1|(1&t|1&e)},__class__:haxe.Md5},haxe.Timer=function(t){var e=this;this.id=window.setInterval((function(){e.run()}),t)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(t,e){var n=new haxe.Timer(e);return n.run=function(){n.stop(),t()},n},haxe.Timer.measure=function(t,e){var n=haxe.Timer.stamp(),i=t();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",e),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(t,e){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=t,n.method=e,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(t,e){var n,i=null!=e?e.fileName+":"+e.lineNumber+": ":"";i+=js.Boot.__string_rec(t,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var t=document.getElementById("haxe:trace");null!=t&&(t.innerHTML="")},js.Boot.isClass=function(t){return t.__name__},js.Boot.isEnum=function(t){return t.__ename__},js.Boot.getClass=function(t){return t.__class__},js.Boot.__string_rec=function(t,e){if(null==t)return"null";if(e.length>=5)return"<...>";var n=typeof t;switch("function"==n&&(t.__name__||t.__ename__)&&(n="object"),n){case"object":if(t instanceof Array){if(t.__enum__){if(2==t.length)return t[0];var i=t[0]+"(";e+="\t";for(var o=2,r=t.length;o<r;){i+=2!=(s=o++)?","+js.Boot.__string_rec(t[s],e):js.Boot.__string_rec(t[s],e)}return i+")"}var s,a=t.length;i="[";e+="\t";for(r=0;r<a;){var c=r++;i+=(c>0?",":"")+js.Boot.__string_rec(t[c],e)}return i+="]"}var l;try{l=t.toString}catch(t){return"???"}if(null!=l&&l!=Object.toString){var d=t.toString();if("[object Object]"!=d)return d}var u=null;i="{\n";e+="\t";var h=null!=t.hasOwnProperty;for(var u in t)h&&!t.hasOwnProperty(u)||"prototype"!=u&&"__class__"!=u&&"__super__"!=u&&"__interfaces__"!=u&&"__properties__"!=u&&(2!=i.length&&(i+=", \n"),i+=e+u+" : "+js.Boot.__string_rec(t[u],e));return i+="\n"+(e=e.substring(1))+"}";case"function":return"<function>";case"string":return t;default:return String(t)}},js.Boot.__interfLoop=function(t,e){if(null==t)return!1;if(t==e)return!0;var n=t.__interfaces__;if(null!=n)for(var i=0,o=n.length;i<o;){var r=n[i++];if(r==e||js.Boot.__interfLoop(r,e))return!0}return js.Boot.__interfLoop(t.__super__,e)},js.Boot.__instanceof=function(t,e){try{if(t instanceof e)return e!=Array||null==t.__enum__;if(js.Boot.__interfLoop(t.__class__,e))return!0}catch(t){if(null==e)return!1}switch(e){case Int:return Math.ceil(t%2147483648)===t;case Float:return"number"==typeof t;case Bool:return!0===t||!1===t;case String:return"string"==typeof t;case Dynamic:return!0;default:return null!=t&&(e==Class&&null!=t.__name__||(e==Enum&&null!=t.__ename__||t.__enum__==e))}},js.Boot.__cast=function(t,e){if(js.Boot.__instanceof(t,e))return t;throw"Cannot cast "+Std.string(t)+" to "+Std.string(e)},js.Lib=function(){},js.Lib.__name__=!0,js.Lib.debug=function(){},js.Lib.alert=function(t){alert(js.Boot.__string_rec(t,""))},js.Lib.eval=function(code){return eval(code)},js.Lib.setErrorHandler=function(t){js.Lib.onerror=t},Array.prototype.indexOf&&(HxOverrides.remove=function(t,e){var n=t.indexOf(e);return-1!=n&&(t.splice(n,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Math.isFinite=function(t){return isFinite(t)},Math.isNaN=function(t){return isNaN(t)},String.prototype.__class__=String,String.__name__=!0,Array.prototype.__class__=Array,Array.__name__=!0,Date.prototype.__class__=Date,Date.__name__=["Date"];var Int={__name__:["Int"]},Dynamic={__name__:["Dynamic"]},Float=Number;Float.__name__=["Float"];var Bool=Boolean;Bool.__ename__=["Bool"];var Class={__name__:["Class"]},Enum={},Void={__ename__:["Void"]};"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window,js.Lib.window.onerror=function(t,e,n){var i=js.Lib.onerror;return null!=i&&i(t,[e+":"+n])}),com.wiris.js.JsPluginTools.main(),delete Array.prototype.__class__})(),function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(t){var e=t.getMonth()+1,n=t.getDate(),i=t.getHours(),o=t.getMinutes(),r=t.getSeconds();return t.getFullYear()+"-"+(e<10?"0"+e:""+e)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(o<10?"0"+o:""+o)+":"+(r<10?"0"+r:""+r)},HxOverrides.strDate=function(t){switch(t.length){case 8:var e=t.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(e[0]),n.setUTCMinutes(e[1]),n.setUTCSeconds(e[2]),n;case 10:e=t.split("-");return new Date(e[0],e[1]-1,e[2],0,0,0);case 19:var i=(e=t.split(" "))[0].split("-"),o=e[1].split(":");return new Date(i[0],i[1]-1,i[2],o[0],o[1],o[2]);default:throw"Invalid date format : "+t}},HxOverrides.cca=function(t,e){var n=t.charCodeAt(e);if(n==n)return n},HxOverrides.substr=function(t,e,n){return null!=e&&0!=e&&null!=n&&n<0?"":(null==n&&(n=t.length),e<0?(e=t.length+e)<0&&(e=0):n<0&&(n=t.length+n-e),t.substr(e,n))},HxOverrides.remove=function(t,e){for(var n=0,i=t.length;n<i;){if(t[n]==e)return t.splice(n,1),!0;n++}return!1},HxOverrides.iter=function(t){return{cur:0,arr:t,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var IntIter=function(t,e){this.min=t,this.max=e};IntIter.__name__=!0,IntIter.prototype={next:function(){return this.min++},hasNext:function(){return this.min<this.max},__class__:IntIter};var Std=function(){};Std.__name__=!0,Std.is=function(t,e){return js.Boot.__instanceof(t,e)},Std.string=function(t){return js.Boot.__string_rec(t,"")},Std.int=function(t){return 0|t},Std.parseInt=function(t){var e=parseInt(t,10);return 0!=e||120!=HxOverrides.cca(t,1)&&88!=HxOverrides.cca(t,1)||(e=parseInt(t)),isNaN(e)?null:e},Std.parseFloat=function(t){return parseFloat(t)},Std.random=function(t){return Math.floor(Math.random()*t)};var com=com||{};com.wiris||(com.wiris={}),com.wiris.js||(com.wiris.js={}),com.wiris.js.JsPluginTools=function(){this.tryReady()},com.wiris.js.JsPluginTools.__name__=!0,com.wiris.js.JsPluginTools.main=function(){var t;t=com.wiris.js.JsPluginTools.getInstance(),haxe.Timer.delay($bind(t,t.tryReady),100)},com.wiris.js.JsPluginTools.getInstance=function(){return null==com.wiris.js.JsPluginTools.instance&&(com.wiris.js.JsPluginTools.instance=new com.wiris.js.JsPluginTools),com.wiris.js.JsPluginTools.instance},com.wiris.js.JsPluginTools.bypassEncapsulation=function(){null==window.com&&(window.com={}),null==window.com.wiris&&(window.com.wiris={}),null==window.com.wiris.js&&(window.com.wiris.js={}),null==window.com.wiris.js.JsPluginTools&&(window.com.wiris.js.JsPluginTools=com.wiris.js.JsPluginTools.getInstance())},com.wiris.js.JsPluginTools.prototype={md5encode:function(t){return haxe.Md5.encode(t)},doLoad:function(){this.ready=!0,com.wiris.js.JsPluginTools.instance=this,com.wiris.js.JsPluginTools.bypassEncapsulation()},tryReady:function(){this.ready=!1,js.Lib.document.readyState&&(this.doLoad(),this.ready=!0),this.ready||haxe.Timer.delay($bind(this,this.tryReady),100)},__class__:com.wiris.js.JsPluginTools};var haxe=haxe||{};haxe.Log=function(){},haxe.Log.__name__=!0,haxe.Log.trace=function(t,e){js.Boot.__trace(t,e)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Md5=function(){},haxe.Md5.__name__=!0,haxe.Md5.encode=function(t){return(new haxe.Md5).doEncode(t)},haxe.Md5.prototype={doEncode:function(t){for(var e=this.str2blks(t),n=1732584193,i=-271733879,o=-1732584194,r=271733878,s=0;s<e.length;){var a=n,c=i,l=o,d=r;0,n=this.ff(n,i,o,r,e[s],7,-680876936),r=this.ff(r,n,i,o,e[s+1],12,-389564586),o=this.ff(o,r,n,i,e[s+2],17,606105819),i=this.ff(i,o,r,n,e[s+3],22,-1044525330),n=this.ff(n,i,o,r,e[s+4],7,-176418897),r=this.ff(r,n,i,o,e[s+5],12,1200080426),o=this.ff(o,r,n,i,e[s+6],17,-1473231341),i=this.ff(i,o,r,n,e[s+7],22,-45705983),n=this.ff(n,i,o,r,e[s+8],7,1770035416),r=this.ff(r,n,i,o,e[s+9],12,-1958414417),o=this.ff(o,r,n,i,e[s+10],17,-42063),i=this.ff(i,o,r,n,e[s+11],22,-1990404162),n=this.ff(n,i,o,r,e[s+12],7,1804603682),r=this.ff(r,n,i,o,e[s+13],12,-40341101),o=this.ff(o,r,n,i,e[s+14],17,-1502002290),i=this.ff(i,o,r,n,e[s+15],22,1236535329),n=this.gg(n,i,o,r,e[s+1],5,-165796510),r=this.gg(r,n,i,o,e[s+6],9,-1069501632),o=this.gg(o,r,n,i,e[s+11],14,643717713),i=this.gg(i,o,r,n,e[s],20,-373897302),n=this.gg(n,i,o,r,e[s+5],5,-701558691),r=this.gg(r,n,i,o,e[s+10],9,38016083),o=this.gg(o,r,n,i,e[s+15],14,-660478335),i=this.gg(i,o,r,n,e[s+4],20,-405537848),n=this.gg(n,i,o,r,e[s+9],5,568446438),r=this.gg(r,n,i,o,e[s+14],9,-1019803690),o=this.gg(o,r,n,i,e[s+3],14,-187363961),i=this.gg(i,o,r,n,e[s+8],20,1163531501),n=this.gg(n,i,o,r,e[s+13],5,-1444681467),r=this.gg(r,n,i,o,e[s+2],9,-51403784),o=this.gg(o,r,n,i,e[s+7],14,1735328473),i=this.gg(i,o,r,n,e[s+12],20,-1926607734),n=this.hh(n,i,o,r,e[s+5],4,-378558),r=this.hh(r,n,i,o,e[s+8],11,-2022574463),o=this.hh(o,r,n,i,e[s+11],16,1839030562),i=this.hh(i,o,r,n,e[s+14],23,-35309556),n=this.hh(n,i,o,r,e[s+1],4,-1530992060),r=this.hh(r,n,i,o,e[s+4],11,1272893353),o=this.hh(o,r,n,i,e[s+7],16,-155497632),i=this.hh(i,o,r,n,e[s+10],23,-1094730640),n=this.hh(n,i,o,r,e[s+13],4,681279174),r=this.hh(r,n,i,o,e[s],11,-358537222),o=this.hh(o,r,n,i,e[s+3],16,-722521979),i=this.hh(i,o,r,n,e[s+6],23,76029189),n=this.hh(n,i,o,r,e[s+9],4,-640364487),r=this.hh(r,n,i,o,e[s+12],11,-421815835),o=this.hh(o,r,n,i,e[s+15],16,530742520),i=this.hh(i,o,r,n,e[s+2],23,-995338651),n=this.ii(n,i,o,r,e[s],6,-198630844),r=this.ii(r,n,i,o,e[s+7],10,1126891415),o=this.ii(o,r,n,i,e[s+14],15,-1416354905),i=this.ii(i,o,r,n,e[s+5],21,-57434055),n=this.ii(n,i,o,r,e[s+12],6,1700485571),r=this.ii(r,n,i,o,e[s+3],10,-1894986606),o=this.ii(o,r,n,i,e[s+10],15,-1051523),i=this.ii(i,o,r,n,e[s+1],21,-2054922799),n=this.ii(n,i,o,r,e[s+8],6,1873313359),r=this.ii(r,n,i,o,e[s+15],10,-30611744),o=this.ii(o,r,n,i,e[s+6],15,-1560198380),i=this.ii(i,o,r,n,e[s+13],21,1309151649),n=this.ii(n,i,o,r,e[s+4],6,-145523070),r=this.ii(r,n,i,o,e[s+11],10,-1120210379),o=this.ii(o,r,n,i,e[s+2],15,718787259),i=this.ii(i,o,r,n,e[s+9],21,-343485551),n=this.addme(n,a),i=this.addme(i,c),o=this.addme(o,l),r=this.addme(r,d),s+=16}return this.rhex(n)+this.rhex(i)+this.rhex(o)+this.rhex(r)},ii:function(t,e,n,i,o,r,s){return this.cmn(this.bitXOR(n,this.bitOR(e,~i)),t,e,o,r,s)},hh:function(t,e,n,i,o,r,s){return this.cmn(this.bitXOR(this.bitXOR(e,n),i),t,e,o,r,s)},gg:function(t,e,n,i,o,r,s){return this.cmn(this.bitOR(this.bitAND(e,i),this.bitAND(n,~i)),t,e,o,r,s)},ff:function(t,e,n,i,o,r,s){return this.cmn(this.bitOR(this.bitAND(e,n),this.bitAND(~e,i)),t,e,o,r,s)},cmn:function(t,e,n,i,o,r){return this.addme(this.rol(this.addme(this.addme(e,t),this.addme(i,r)),o),n)},rol:function(t,e){return t<<e|t>>>32-e},str2blks:function(t){for(var e=1+(t.length+8>>6),n=new Array,i=0,o=16*e;i<o;){n[r=i++]=0}for(var r=0;r<t.length;)n[r>>2]|=HxOverrides.cca(t,r)<<(8*t.length+r)%4*8,r++;n[r>>2]|=128<<(8*t.length+r)%4*8;var s=8*t.length,a=16*e-2;return n[a]=255&s,n[a]|=(s>>>8&255)<<8,n[a]|=(s>>>16&255)<<16,n[a]|=(s>>>24&255)<<24,n},rhex:function(t){for(var e="",n="0123456789abcdef",i=0;i<4;){var o=i++;e+=n.charAt(t>>8*o+4&15)+n.charAt(t>>8*o&15)}return e},addme:function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},bitAND:function(t,e){return(t>>>1&e>>>1)<<1|1&t&e},bitXOR:function(t,e){return(t>>>1^e>>>1)<<1|1&t^1&e},bitOR:function(t,e){return(t>>>1|e>>>1)<<1|(1&t|1&e)},__class__:haxe.Md5},haxe.Timer=function(t){var e=this;this.id=window.setInterval((function(){e.run()}),t)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(t,e){var n=new haxe.Timer(e);return n.run=function(){n.stop(),t()},n},haxe.Timer.measure=function(t,e){var n=haxe.Timer.stamp(),i=t();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",e),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(t,e){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=t,n.method=e,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(t,e){var n,i=null!=e?e.fileName+":"+e.lineNumber+": ":"";i+=js.Boot.__string_rec(t,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var t=document.getElementById("haxe:trace");null!=t&&(t.innerHTML="")},js.Boot.isClass=function(t){return t.__name__},js.Boot.isEnum=function(t){return t.__ename__},js.Boot.getClass=function(t){return t.__class__},js.Boot.__string_rec=function(t,e){if(null==t)return"null";if(e.length>=5)return"<...>";var n=typeof t;switch("function"==n&&(t.__name__||t.__ename__)&&(n="object"),n){case"object":if(t instanceof Array){if(t.__enum__){if(2==t.length)return t[0];var i=t[0]+"(";e+="\t";for(var o=2,r=t.length;o<r;){i+=2!=(s=o++)?","+js.Boot.__string_rec(t[s],e):js.Boot.__string_rec(t[s],e)}return i+")"}var s,a=t.length;i="[";e+="\t";for(r=0;r<a;){var c=r++;i+=(c>0?",":"")+js.Boot.__string_rec(t[c],e)}return i+="]"}var l;try{l=t.toString}catch(t){return"???"}if(null!=l&&l!=Object.toString){var d=t.toString();if("[object Object]"!=d)return d}var u=null;i="{\n";e+="\t";var h=null!=t.hasOwnProperty;for(var u in t)h&&!t.hasOwnProperty(u)||"prototype"!=u&&"__class__"!=u&&"__super__"!=u&&"__interfaces__"!=u&&"__properties__"!=u&&(2!=i.length&&(i+=", \n"),i+=e+u+" : "+js.Boot.__string_rec(t[u],e));return i+="\n"+(e=e.substring(1))+"}";case"function":return"<function>";case"string":return t;default:return String(t)}},js.Boot.__interfLoop=function(t,e){if(null==t)return!1;if(t==e)return!0;var n=t.__interfaces__;if(null!=n)for(var i=0,o=n.length;i<o;){var r=n[i++];if(r==e||js.Boot.__interfLoop(r,e))return!0}return js.Boot.__interfLoop(t.__super__,e)},js.Boot.__instanceof=function(t,e){try{if(t instanceof e)return e!=Array||null==t.__enum__;if(js.Boot.__interfLoop(t.__class__,e))return!0}catch(t){if(null==e)return!1}switch(e){case Int:return Math.ceil(t%2147483648)===t;case Float:return"number"==typeof t;case Bool:return!0===t||!1===t;case String:return"string"==typeof t;case Dynamic:return!0;default:return null!=t&&(e==Class&&null!=t.__name__||(e==Enum&&null!=t.__ename__||t.__enum__==e))}},js.Boot.__cast=function(t,e){if(js.Boot.__instanceof(t,e))return t;throw"Cannot cast "+Std.string(t)+" to "+Std.string(e)},js.Lib=function(){},js.Lib.__name__=!0,js.Lib.debug=function(){},js.Lib.alert=function(t){alert(js.Boot.__string_rec(t,""))},js.Lib.eval=function(code){return eval(code)},js.Lib.setErrorHandler=function(t){js.Lib.onerror=t},Array.prototype.indexOf&&(HxOverrides.remove=function(t,e){var n=t.indexOf(e);return-1!=n&&(t.splice(n,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Math.isFinite=function(t){return isFinite(t)},Math.isNaN=function(t){return isNaN(t)},String.prototype.__class__=String,String.__name__=!0,Array.prototype.__class__=Array,Array.__name__=!0,Date.prototype.__class__=Date,Date.__name__=["Date"];var Int={__name__:["Int"]},Dynamic={__name__:["Dynamic"]},Float=Number;Float.__name__=["Float"];var Bool=Boolean;Bool.__ename__=["Bool"];var Class={__name__:["Class"]},Enum={},Void={__ename__:["Void"]};"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window,js.Lib.window.onerror=function(t,e,n){var i=js.Lib.onerror;return null!=i&&i(t,[e+":"+n])}),com.wiris.js.JsPluginTools.main()}(),delete Array.prototype.__class__},1206:function(t){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=90)}({17:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i=n(18),o=function(){function t(){}return t.getFirstMatch=function(t,e){var n=e.match(t);return n&&n.length>0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,i){void 0===i&&(i=!1);var o=t.getVersionPrecision(e),r=t.getVersionPrecision(n),s=Math.max(o,r),a=0,c=t.map([e,n],(function(e){var n=s-t.getVersionPrecision(e),i=e+new Array(n+1).join(".0");return t.map(i.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(i&&(a=s-Math.min(o,r)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},t.map=function(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n+=1)i.push(e(t[n]));return i},t.find=function(t,e){var n,i;if(Array.prototype.find)return Array.prototype.find.call(t,e);for(n=0,i=t.length;n<i;n+=1){var o=t[n];if(e(o,n))return o}},t.assign=function(t){for(var e,n,i=t,o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[t].concat(r));var a=function(){var t=r[e];"object"==typeof t&&null!==t&&Object.keys(t).forEach((function(e){i[e]=t[e]}))};for(e=0,n=r.length;e<n;e+=1)a();return t},t.getBrowserAlias=function(t){return i.BROWSER_ALIASES_MAP[t]},t.getBrowserTypeByAlias=function(t){return i.BROWSER_MAP[t]||""},t}();e.default=o,t.exports=e.default},18:function(t,e,n){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i,o=(i=n(91))&&i.__esModule?i:{default:i},r=n(18);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=function(){function t(){}var e,n,i;return t.getParser=function(t,e){if(void 0===e&&(e=!1),"string"!=typeof t)throw new Error("UserAgent should be a string");return new o.default(t,e)},t.parse=function(t){return new o.default(t).getResult()},e=t,i=[{key:"BROWSER_MAP",get:function(){return r.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return r.ENGINE_MAP}},{key:"OS_MAP",get:function(){return r.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return r.PLATFORMS_MAP}}],(n=null)&&s(e.prototype,n),i&&s(e,i),t}();e.default=a,t.exports=e.default},91:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i=c(n(92)),o=c(n(93)),r=c(n(94)),s=c(n(95)),a=c(n(17));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(t,e){if(void 0===e&&(e=!1),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==e&&this.parse()}var e=t.prototype;return e.getUA=function(){return this._ua},e.test=function(t){return t.test(this._ua)},e.parseBrowser=function(){var t=this;this.parsedResult.browser={};var e=a.default.find(i.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser},e.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},e.getBrowserName=function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},e.getBrowserVersion=function(){return this.getBrowser().version},e.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},e.parseOS=function(){var t=this;this.parsedResult.os={};var e=a.default.find(o.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os},e.getOSName=function(t){var e=this.getOS().name;return t?String(e).toLowerCase()||"":e||""},e.getOSVersion=function(){return this.getOS().version},e.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},e.getPlatformType=function(t){void 0===t&&(t=!1);var e=this.getPlatform().type;return t?String(e).toLowerCase()||"":e||""},e.parsePlatform=function(){var t=this;this.parsedResult.platform={};var e=a.default.find(r.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform},e.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},e.getEngineName=function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},e.parseEngine=function(){var t=this;this.parsedResult.engine={};var e=a.default.find(s.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine},e.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},e.getResult=function(){return a.default.assign({},this.parsedResult)},e.satisfies=function(t){var e=this,n={},i=0,o={},r=0;if(Object.keys(t).forEach((function(e){var s=t[e];"string"==typeof s?(o[e]=s,r+=1):"object"==typeof s&&(n[e]=s,i+=1)})),i>0){var s=Object.keys(n),c=a.default.find(s,(function(t){return e.isOS(t)}));if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}var d=a.default.find(s,(function(t){return e.isPlatform(t)}));if(d){var u=this.satisfies(n[d]);if(void 0!==u)return u}}if(r>0){var h=Object.keys(o),m=a.default.find(h,(function(t){return e.isBrowser(t,!0)}));if(void 0!==m)return this.compareVersion(o[m])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),i=t.toLowerCase(),o=a.default.getBrowserTypeByAlias(i);return e&&o&&(i=o.toLowerCase()),i===n},e.compareVersion=function(t){var e=[0],n=t,i=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(i=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(i=!0,n=t.substr(1)),e.indexOf(a.default.compareVersions(o,n,i))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=l,t.exports=e.default},92:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=o.default.getFirstMatch(r,t)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=o.default.getFirstMatch(r,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(e,t),version:o.default.getSecondMatch(e,t)}}}];e.default=s,t.exports=e.default},93:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),s=[{test:[/Roku\/DVP/],describe:function(t){var e=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:r.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:r.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=o.default.getWindowsVersionName(e);return{name:r.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:r.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe:function(t){var e=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(e),i={name:r.OS_MAP.MacOS,version:e};return n&&(i.versionName=n),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:r.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=o.default.getAndroidVersionName(e),i={name:r.OS_MAP.Android,version:e};return n&&(i.versionName=n),i}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:r.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||o.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:r.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:r.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:r.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:r.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:r.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:r.OS_MAP.PlayStation4,version:e}}}];e.default=s,t.exports=e.default},94:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=o.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:r.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=o.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:r.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:r.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}}];e.default=s,t.exports=e.default},95:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),s=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:r.ENGINE_MAP.Blink};var e=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:r.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:r.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:r.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:r.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:r.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:r.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=s,t.exports=e.default}})},6553:(t,e,n)=>{"use strict";n.r(e),n.d(e,{CKEditorError:()=>i.Bb,Collection:()=>i.FE,Config:()=>i.De,DomEmitterMixin:()=>i.Xu,ElementReplacer:()=>i.a6,EmitterMixin:()=>i.ln,EventInfo:()=>i.M3,FocusTracker:()=>i.Rh,KeystrokeHandler:()=>i.VD,Locale:()=>i.go,ObservableMixin:()=>i.Re,Rect:()=>i.UL,ResizeObserver:()=>i.do,abortableDebounce:()=>i.fZ,compareArrays:()=>i.Rt,count:()=>i.QX,createElement:()=>i.az,delay:()=>i.gw,diff:()=>i.Hg,diffToChanges:()=>i.Pk,env:()=>i.OB,exponentialDelay:()=>i.$J,fastDiff:()=>i.HZ,findClosestScrollableAncestor:()=>i.wm,first:()=>i.Ps,getAncestors:()=>i.dk,getBorderWidths:()=>i.lo,getCode:()=>i.Cq,getDataFromElement:()=>i.yy,getEnvKeystrokeText:()=>i.XU,getLanguageDirection:()=>i.j9,getLocalizedArrowKeyCodeDirection:()=>i.mA,getOptimalPosition:()=>i.xZ,global:()=>i.global,indexOf:()=>i.cq,insertAt:()=>i.ZQ,insertToPriorityArray:()=>i.VG,isArrowKeyCode:()=>i.dj,isCombiningMark:()=>i.tO,isComment:()=>i.C3,isForwardArrowKeyCode:()=>i.Zt,isHighSurrogateHalf:()=>i.Cb,isInsideCombinedSymbol:()=>i.pp,isInsideEmojiSequence:()=>i.YK,isInsideSurrogatePair:()=>i.to,isIterable:()=>i.TW,isLowSurrogateHalf:()=>i.nA,isNode:()=>i.UG,isRange:()=>i.bR,isText:()=>i.Gs,isValidAttributeName:()=>i.$b,isVisible:()=>i.pn,keyCodes:()=>i.Do,logError:()=>i.H,logWarning:()=>i.KE,mix:()=>i.CD,parseKeystroke:()=>i.Zz,priorities:()=>i.tA,releaseDate:()=>i.Dm,remove:()=>i.Od,retry:()=>i.XD,scrollAncestorsToShowTarget:()=>i.F0,scrollViewportToShowTarget:()=>i.mR,setDataInElement:()=>i.jS,spliceArray:()=>i.x,toArray:()=>i.qo,toMap:()=>i.qL,toUnit:()=>i.nn,uid:()=>i.hQ,verifyLicense:()=>i.Tx,version:()=>i.i8,wait:()=>i.Dc});var i=n(3324)},8168:(t,e,n)=>{const i=n(8874),o={};for(const t of Object.keys(i))o[i[t]]=t;const r={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=r;for(const t of Object.keys(r)){if(!("channels"in r[t]))throw new Error("missing channels property: "+t);if(!("labels"in r[t]))throw new Error("missing channel labels property: "+t);if(r[t].labels.length!==r[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=r[t];delete r[t].channels,delete r[t].labels,Object.defineProperty(r[t],"channels",{value:e}),Object.defineProperty(r[t],"labels",{value:n})}r.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,i=t[2]/255,o=Math.min(e,n,i),r=Math.max(e,n,i),s=r-o;let a,c;r===o?a=0:e===r?a=(n-i)/s:n===r?a=2+(i-e)/s:i===r&&(a=4+(e-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(o+r)/2;return c=r===o?0:l<=.5?s/(r+o):s/(2-r-o),[a,100*c,100*l]},r.rgb.hsv=function(t){let e,n,i,o,r;const s=t[0]/255,a=t[1]/255,c=t[2]/255,l=Math.max(s,a,c),d=l-Math.min(s,a,c),u=function(t){return(l-t)/6/d+.5};return 0===d?(o=0,r=0):(r=d/l,e=u(s),n=u(a),i=u(c),s===l?o=i-n:a===l?o=1/3+e-i:c===l&&(o=2/3+n-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*l]},r.rgb.hwb=function(t){const e=t[0],n=t[1];let i=t[2];const o=r.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[o,100*s,100*i]},r.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,i=t[2]/255,o=Math.min(1-e,1-n,1-i);return[100*((1-e-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-i-o)/(1-o)||0),100*o]},r.rgb.keyword=function(t){const e=o[t];if(e)return e;let n,r=1/0;for(const e of Object.keys(i)){const o=i[e],c=(a=o,((s=t)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);c<r&&(r=c,n=e)}var s,a;return n},r.keyword.rgb=function(t){return i[t]},r.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,i=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,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*e+.3576*n+.1805*i),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},r.rgb.lab=function(t){const e=r.rgb.xyz(t);let n=e[0],i=e[1],o=e[2];n/=95.047,i/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*i-16,500*(n-i),200*(i-o)]},r.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,i=t[2]/100;let o,r,s;if(0===n)return s=255*i,[s,s,s];o=i<.5?i*(1+n):i+n-i*n;const a=2*i-o,c=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,s=6*r<1?a+6*(o-a)*r:2*r<1?o:3*r<2?a+(o-a)*(2/3-r)*6:a,c[t]=255*s;return c},r.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,i=t[2]/100,o=n;const r=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,o*=r<=1?r:2-r;return[e,100*(0===i?2*o/(r+o):2*n/(i+n)),100*((i+n)/2)]},r.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let i=t[2]/100;const o=Math.floor(e)%6,r=e-Math.floor(e),s=255*i*(1-n),a=255*i*(1-n*r),c=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,c,s];case 1:return[a,i,s];case 2:return[s,i,c];case 3:return[s,a,i];case 4:return[c,s,i];case 5:return[i,s,a]}},r.hsv.hsl=function(t){const e=t[0],n=t[1]/100,i=t[2]/100,o=Math.max(i,.01);let r,s;s=(2-n)*i;const a=(2-n)*o;return r=n*o,r/=a<=1?a:2-a,r=r||0,s/=2,[e,100*r,100*s]},r.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,i=t[2]/100;const o=n+i;let r;o>1&&(n/=o,i/=o);const s=Math.floor(6*e),a=1-i;r=6*e-s,0!=(1&s)&&(r=1-r);const c=n+r*(a-n);let l,d,u;switch(s){default:case 6:case 0:l=a,d=c,u=n;break;case 1:l=c,d=a,u=n;break;case 2:l=n,d=a,u=c;break;case 3:l=n,d=c,u=a;break;case 4:l=c,d=n,u=a;break;case 5:l=a,d=n,u=c}return[255*l,255*d,255*u]},r.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,i=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o))]},r.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,i=t[2]/100;let o,r,s;return o=3.2406*e+-1.5372*n+-.4986*i,r=-.9689*e+1.8758*n+.0415*i,s=.0557*e+-.204*n+1.057*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),[255*o,255*r,255*s]},r.xyz.lab=function(t){let e=t[0],n=t[1],i=t[2];e/=95.047,n/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(e-n),200*(n-i)]},r.lab.xyz=function(t){let e,n,i;n=(t[0]+16)/116,e=t[1]/500+n,i=n-t[2]/200;const o=n**3,r=e**3,s=i**3;return n=o>.008856?o:(n-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,e*=95.047,n*=100,i*=108.883,[e,n,i]},r.lab.lch=function(t){const e=t[0],n=t[1],i=t[2];let o;o=360*Math.atan2(i,n)/2/Math.PI,o<0&&(o+=360);return[e,Math.sqrt(n*n+i*i),o]},r.lch.lab=function(t){const e=t[0],n=t[1],i=t[2]/360*2*Math.PI;return[e,n*Math.cos(i),n*Math.sin(i)]},r.rgb.ansi16=function(t,e=null){const[n,i,o]=t;let s=null===e?r.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},r.hsv.ansi16=function(t){return r.rgb.ansi16(r.hsv.rgb(t),t[2])},r.rgb.ansi256=function(t){const e=t[0],n=t[1],i=t[2];if(e===n&&n===i)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(i/255*5)},r.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]},r.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]},r.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},r.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 i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,i=t[2]/255,o=Math.max(Math.max(e,n),i),r=Math.min(Math.min(e,n),i),s=o-r;let a,c;return a=s<1?r/(1-s):0,c=s<=0?0:o===e?(n-i)/s%6:o===n?2+(i-e)/s:4+(e-n)/s,c/=6,c%=1,[360*c,100*s,100*a]},r.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,i=n<.5?2*e*n:2*e*(1-n);let o=0;return i<1&&(o=(n-.5*i)/(1-i)),[t[0],100*i,100*o]},r.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,i=e*n;let o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],100*i,100*o]},r.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];const o=[0,0,0],r=e%1*6,s=r%1,a=1-s;let c=0;switch(Math.floor(r)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-n)*i,[255*(n*o[0]+c),255*(n*o[1]+c),255*(n*o[2]+c)]},r.hcg.hsv=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);let i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},r.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},r.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)]},r.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,i=n-e;let o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],100*i,100*o]},r.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},r.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},r.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},r.gray.hsl=function(t){return[0,0,t[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(t){return[0,100,t[0]]},r.gray.cmyk=function(t){return[0,0,0,t[0]]},r.gray.lab=function(t){return[t[0],0,0]},r.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},r.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},2085:(t,e,n)=>{const i=n(8168),o=n(4111),r={};Object.keys(i).forEach((t=>{r[t]={},Object.defineProperty(r[t],"channels",{value:i[t].channels}),Object.defineProperty(r[t],"labels",{value:i[t].labels});const e=o(t);Object.keys(e).forEach((n=>{const i=e[n];r[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const i=t(e);if("object"==typeof i)for(let t=i.length,e=0;e<t;e++)i[e]=Math.round(i[e]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}(i),r[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}(i)}))})),t.exports=r},4111:(t,e,n)=>{const i=n(8168);function o(t){const e=function(){const t={},e=Object.keys(i);for(let n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),o=Object.keys(i[t]);for(let i=o.length,r=0;r<i;r++){const i=o[r],s=e[i];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(i))}}return e}function r(t,e){return function(n){return e(t(n))}}function s(t,e){const n=[e[t].parent,t];let o=i[e[t].parent][t],s=e[t].parent;for(;e[s].parent;)n.unshift(e[s].parent),o=r(i[e[s].parent][s],o),s=e[s].parent;return o.conversion=n,o}t.exports=function(t){const e=o(t),n={},i=Object.keys(e);for(let t=i.length,o=0;o<t;o++){const t=i[o];null!==e[t].parent&&(n[t]=s(t,e))}return n}},8874: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]}},9626:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ai/theme/ai-dropdown.css"],names:[],mappings:"AAYA,MACC,iCAAkC,CAClC,2CACD,CAEA,0BACC,sCAkBD,CAhBC,iDACC,+BAKD,CAHC,2DACC,eACD,CAGD,8CACC,gDAMD,CAJC,uDACC,qDAAsD,CACtD,aACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n:root {\n\t--ck-ai-dropdown-view-width: 250px;\n\t--ck-ai-dropdown-view-list-max-height: 250px;\n}\n\n.ck.ck-ai-commands-search {\n\twidth: var(--ck-ai-dropdown-view-width);\n\n\t& > .ck-labeled-field-view {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& .ck-input {\n\t\t\tmin-width: unset;\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t& > .ck-list {\n\t\t\tmax-height: var(--ck-ai-dropdown-view-list-max-height);\n\t\t\toverflow: auto;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},2429:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-ai-form-view-width:470px;--ck-ai-form-content-height:126px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:350px}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{font-size:var(--ck-font-size-tiny);position:absolute}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);min-height:unset;min-width:unset;padding:4px;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{grid-column-gap:0;grid-row-gap:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ai/theme/ai-form.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAYA,MACC,6BAA8B,CAC9B,iCAAkC,CAClC,uCAAgD,CAChD,mCAAoC,CAEpC,uDACD,CAGA,gBACC,kCAiOD,CClPC,oCDgBD,gBAIE,6BA8NF,CChPC,CDqBA,oCACC,+BAAgC,CAChC,UA6MD,CA3MC,8CACC,UACD,CAEA,sEAIC,4CAA6C,CAC7C,iBAAkB,CAHlB,2CAA4C,CAC5C,eAAgB,CAFhB,UAWD,CALC,4EAEC,2BAA4B,CAC5B,2CAA6C,CAF7C,YAGD,CAGD,8DAEC,qDAAsD,CADtD,YA+DD,CA5DC,mGACC,mDAAoD,CACpD,0DACD,CAGA,yFAKC,sBAAuB,CADvB,oEAAyE,CADzE,uDAAwD,CADxD,kBAAmB,CADnB,UAkBD,CAnBA,mGAQE,eAWF,CAnBA,mGAYE,cAOF,CAJC,2FAEC,aAAc,CADd,kBAED,CAGD,8FAEE,qCAOF,CATA,8FAME,oCAGF,CAEA,+FACC,YAAa,CACb,6BAA8B,CAC9B,gBACD,CAEA,uFAGC,UAAW,CAEX,gBAAiB,CACjB,eAAgB,CAFhB,WAAY,CAHZ,eAAgB,CAChB,SAaD,CAPC,2FACC,mBACD,CAEA,uHACC,aACD,CAIF,yDACC,WAAY,CAGZ,8CAAmD,CADnD,mCAAoC,CADpC,SAGD,CAEA,wDAEC,kBAAmB,CADnB,YAMD,CAHC,oEACC,qBACD,CAGD,qDACC,YAAa,CACb,6BAoGD,CAlGC,4EACC,WACD,CAEA,sFAEE,oCAaF,CAfA,sFAME,qCASF,CAfA,4EASC,yDAA0D,CAC1D,gDAKD,CAHC,wFACC,kEACD,CAID,wGAEC,kCAAmC,CADnC,iBAgBD,CAjBA,kHAKE,8BAYF,CAjBA,kHASE,6BAQF,CAjBA,wGAYC,8BAA+B,CAG/B,gBAAiB,CACjB,eAAgB,CAFhB,WAAY,CADZ,2BAID,CAEA,4EAGE,kBAMF,CATA,4EAOE,iBAEF,CAGA,kGAIC,iBAAoB,CACpB,cAAiB,CAJjB,YAAa,CACb,8BAA+B,CAC/B,uBAyCD,CApCC,uGACC,iBACD,CAGA,6GAMC,eAAgB,CAFhB,6CAA8C,CAD9C,iBAAwB,CAExB,kBAAmB,CAEnB,mCAAoC,CALpC,eAAgB,CADhB,SAeD,CAPC,+HACC,mBAKD,CAHC,qIACC,yBACD,CAIF,2GACC,iBAWD,CARC,uJAKC,6CAA8C,CAC9C,sCAAuC,CAHvC,cAAe,CADf,eAAgB,CAEhB,sBAAuB,CAHvB,kBAMD,CAMJ,mCAGC,kBAAmB,CAEnB,mDAAoD,CAEpD,iBAAkB,CADlB,+BAAgC,CALhC,YAAa,CACb,sBAAuB,CAMvB,sCAAuC,CAJvC,gCAKD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n:root {\n\t--ck-ai-form-view-width: 470px;\n\t--ck-ai-form-content-height: 126px;\n\t--ck-ai-form-content-background: hsl(0, 0%, 98%);\n\t--ck-ai-form-history-font-size: .9em;\n\n\t--ck-ai-form-error-background: var(--ck-color-light-red);\n}\n\n/* Note: This class name is mentioned in the guide and acts like a public API. */\n.ck .ck-ai-form {\n\twidth: var(--ck-ai-form-view-width);\n\n\t@mixin ck-media-phone {\n\t\t--ck-ai-form-view-width: 350px;\n\t}\n\n\t& .ck-ai-form-content {\n\t\tpadding: var(--ck-spacing-large);\n\t\twidth: 100%;\n\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-ai-form__content-area-wrapper {\n\t\t\twidth: 100%;\n\t\t\tmax-height: var(--ck-ai-form-content-height);\n\t\t\toverflow-y: auto;\n\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\tborder-radius: 2px;\n\n\t\t\t&:focus {\n\t\t\t\toutline: none;\n\t\t\t\tborder: var(--ck-focus-ring);\n\t\t\t\tbox-shadow: var(--ck-focus-outer-shadow), 0 0;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-ai-form__content-area {\n\t\t\tdisplay: flex;\n\t\t\tbackground-color: var(--ck-ai-form-content-background);\n\n\t\t\t&.ck-ai-form__content-area--processing {\n\t\t\t\t--ck-color-text: var(--ck-color-input-disabled-text);\n\t\t\t\tbackground-color: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t/* Note: This class name is mentioned in the guide and acts like a public API */\n\t\t\t& .ck-ai-form__content-field {\n\t\t\t\twidth: 100%;\n\t\t\t\twhite-space: normal;\n\t\t\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n\t\t\t\tmin-height: calc( var(--ck-line-height-base) * var(--ck-font-size-base) );\n\t\t\t\tbox-sizing: content-box;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-right: 0;\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-left: 0;\n\t\t\t\t}\n\n\t\t\t\t& > * {\n\t\t\t\t\twhite-space: normal;\n\t\t\t\t\tcolor: inherit;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-spinner-container {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t& .ck-ai-form__copy-button-wrapper {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\tpadding-left: 2px;\n\t\t\t}\n\n\t\t\t& .ck-ai-form__copy-button {\n\t\t\t\tposition: sticky;\n\t\t\t\tright: 1px;\n\t\t\t\tbottom: 1px;\n\t\t\t\tpadding: 4px;\n\t\t\t\tmin-height: unset;\n\t\t\t\tmin-width: unset;\n\n\t\t\t\t& svg {\n\t\t\t\t\t--ck-icon-size: 16px;\n\t\t\t\t}\n\n\t\t\t\t&.ck-ai-form__copy-button--copied {\n\t\t\t\t\tcolor: inherit;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck-ai-form__toolbar {\n\t\t\tborder: none;\n\t\t\tpadding: 0;\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\tmargin-bottom: calc( 2 * var(--ck-spacing-medium) );\n\t\t}\n\n\t\t& .ck-ai-form__loader {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-spinner {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-autocomplete {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\n\t\t\t& > .ck-labeled-field-view {\n\t\t\t\tflex-grow: 1;\n\t\t\t}\n\n\t\t\t& > .ck.ck-ai-form__submit {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\tborder-color: var(--ck-ai-form-submit-button-border-color);\n\t\t\t\tcolor: var(--ck-ai-form-submit-button-text-color);\n\n\t\t\t\t&.ck-disabled {\n\t\t\t\t\tborder-color: var(--ck-ai-form-submit-button-disabled-border-color);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Toggle history button */\n\t\t\t& > .ck-labeled-field-view .ck-ai-form__toggle-history {\n\t\t\t\tposition: absolute;\n\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\tbottom: var(--ck-spacing-small);\n\t\t\t\ttop: var(--ck-spacing-small);\n\t\t\t\tpadding: 4px;\n\t\t\t\tmin-height: unset;\n\t\t\t\tmin-width: unset;\n\t\t\t}\n\n\t\t\t& .ck-textarea {\n\t\t\t\t/* Give the toggle history button some space */\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-right: 30px;\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-left: 30px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Prompt history group */\n\t\t\t& .ck-search__results .ck-list .ck-list__group {\n\t\t\t\tdisplay: grid;\n\t\t\t\tgrid-template-columns: auto 1fr;\n\t\t\t\tgrid-template-rows: auto;\n\t\t\t\tgrid-column-gap: 0px;\n\t\t\t\tgrid-row-gap: 0px;\n\n\t\t\t\t/* History group label */\n\t\t\t\t& > span {\n\t\t\t\t\tgrid-area: 1 / 1 / 2 / 2;\n\t\t\t\t}\n\n\t\t\t\t/* Clear button in the history */\n\t\t\t\t& > .ck-button {\n\t\t\t\t\tpadding: 0;\n\t\t\t\t\tmin-height: auto;\n\t\t\t\t\tgrid-area: 1 / 2 / 2 / 3;\n\t\t\t\t\tfont-size: var(--ck-ai-form-history-font-size);\n\t\t\t\t\tjustify-self: start;\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tmargin: var(--ck-spacing-medium) 0 0;\n\n\t\t\t\t\t& .ck-button__label {\n\t\t\t\t\t\tline-height: inherit;\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\ttext-decoration: underline;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t& > .ck-list {\n\t\t\t\t\tgrid-area: 2 / 1 / 3 / 3;\n\n\t\t\t\t\t/* Prompts can be very long. We need to display them whole. */\n\t\t\t\t\t& .ck-list__item .ck-button .ck-button__label {\n\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\tfont-size: var(--ck-ai-form-history-font-size);\n\t\t\t\t\t\tline-height: var(--ck-line-height-base);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck-ai-form__error {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: var(--ck-spacing-medium);\n\t\tbackground-color: var(--ck-ai-form-error-background);\n\t\tcolor: var(--ck-color-base-text);\n\t\tborder-radius: 2px;\n\t\tmargin-bottom: var(--ck-spacing-medium);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8172:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#e8dff7;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color)}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ai/theme/ai.css"],names:[],mappings:"AAYA,MACC,0DAAiE,CACjE,mDAAyD,CACzD,4DAAgE,CAChE,uDACD,CAGA,0BACC,kDAAqE,CACrE,mDAAqE,CAErE,uCAA6D,CAC7D,6CAAiE,CACjE,8CAAkE,CAClE,gDAAoE,CACpE,kCAAwD,CAExD,2CAA+D,CAC/D,iDAAsE,CACtE,kDAAsE,CACtE,oDAAwE,CAExE,+CAAmE,CAEnE,uCAAuD,CACvD,qEAA4E,CAC5E,gFAAsF,CACtF,kGAAsG,CACtG,kEACD,CAKA,wEAEC,6CACD,CAQA,8BACC,8CACD,CAGA,oCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD,CASC,4CACC,eACD,CAEA,4CACC,eACD,CAEA,oIACC,eACD,CAEA,+VAGC,iBAAkB,CADlB,qBAAsB,CADtB,uBAGD,CAEA,sDACC,YACD,CAEA,qDACC,eACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * These definitions bring violet accents (tint) across the AI UI.\n */\n:root {\n\t--ck-ai-form-submit-button-text-color: \t\t\t\t\t\tvar(--ck-color-text);\n\t--ck-ai-form-submit-button-border-color: \t\t\t\t\ttransparent;\n\t--ck-ai-form-submit-button-disabled-border-color: \t\t\ttransparent;\n\t--ck-ai-toolbar-button-hover-color: \t\t\t\t\t\tvar(--ck-color-text);\n}\n\n/* Note: This class name is mentioned in the guide and acts like a public API. */\n.ck-ai-assistant-ui_theme {\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(262.1,100%,96.3%);\n\t--ck-color-button-default-active-background:\t\t\t\thsl(262.1,100%,96.3%);\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(262.1,100%,96.3%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(262.5,60%,92.2%);\n\t--ck-color-button-on-active-background:\t\t\t\t\t\thsl(262.1,100%,96.3%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(262.1,100%,96.3%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(263.2,59.2%,52%);\n\n\t--ck-color-button-action-background: \t\t\t\t\t\thsl(263.2,59.2%,52%);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(262.6,58.9%,49.6%);\n\t--ck-color-button-action-active-background:\t\t\t\t\thsl(262.6,58.9%,49.6%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(263.8,59.3%,75.9%);\n\n\t--ck-color-list-button-hover-background: \t\t\t\t\thsl(262.1,100%,96.3%);\n\n\t--ck-ai-form-content-background: \t\t\t\t\t\t\thsl(0,0%,97.6%);\n\t--ck-ai-form-submit-button-text-color: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-ai-form-submit-button-border-color: \t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-ai-form-submit-button-disabled-border-color: \t\t\tvar(--ck-color-button-action-disabled-background);\n\t--ck-ai-toolbar-button-hover-color: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n}\n\n/*\n * Apply the theme colors for specific elements.\n */\n.ck-ai-commands-dropdown > .ck-button:hover,\n.ck-ai-assistant-button:hover {\n\tcolor: var(--ck-ai-toolbar-button-hover-color);\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the AI UI has focus (the browser does not render the native selection in this state).\n *\n * Narrow down to <span> to prevent changing background for widgets and nested editables.\n */\n.ck span.ck-fake-ai-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-ai-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n\n/*\n * Styles of the AI response field. The margins, font sizes and line-heights have been reduced\n * to save space.\n *\n * Note: This class name is mentioned in the guide and acts like a public API.\n */\n.ck.ck-content.ck-ai-form__content-field {\n\t& h2 {\n\t\tfont-size: 1.3em;\n\t}\n\n\t& h3 {\n\t\tfont-size: 1.2em;\n\t}\n\n\t& h4, & h5, & h6 {\n\t\tfont-size: 1.1em;\n\t}\n\n\t& h2, & h3, & h4, & h5, & h6, & p, & ul, & ol {\n\t\tmargin-block-start: .5em;\n\t\tmargin-block-end: .5em;\n\t\tline-height: 1.7em;\n\t}\n\n\t& > :first-child {\n\t\tmargin-top: 0;\n\t}\n\n\t& > :last-child {\n\t\tmargin-bottom: 0;\n\t}\n}\n'],sourceRoot:""}]);const a=s},8180:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected  {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const a=s},636:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const a=s},944:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,':root{--ck-image-processing-highlight-color:#f9fafa;--ck-image-processing-background-color:#e3e5e8}.ck.ck-editor__editable .image.image-processing{position:relative}.ck.ck-editor__editable .image.image-processing:before{animation:ck-image-processing-animation 2s linear infinite;background:linear-gradient(90deg,var(--ck-image-processing-background-color),var(--ck-image-processing-highlight-color),var(--ck-image-processing-background-color));background-size:200% 100%;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ck.ck-editor__editable .image.image-processing img{height:100%}@keyframes ck-image-processing-animation{0%{background-position:200% 0}to{background-position:-200% 0}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ckbox/theme/ckboximageedit.css"],names:[],mappings:"AAKA,MAEC,6CAAyD,CACzD,8CACD,CAIE,gDACC,iBA2BD,CAzBC,uDAmBC,0DAA2D,CAR3D,oKAKC,CACD,yBAA0B,CAhB1B,UAAW,CAOX,WAAY,CAHZ,MAAO,CAFP,iBAAkB,CAClB,KAAM,CAKN,UAAW,CAHX,SAcD,CAEA,oDACC,WACD,CAKH,yCACC,GACC,0BACD,CACA,GACC,2BACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Based on default CKBox theme colors */\n\t--ck-image-processing-highlight-color: hsl(220, 10%, 98%);\n\t--ck-image-processing-background-color: hsl(220, 10%, 90%);\n}\n\n.ck.ck-editor__editable {\n\t& .image {\n\t\t&.image-processing {\n\t\t\tposition: relative;\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 1;\n\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t90deg,\n\t\t\t\t\tvar(--ck-image-processing-background-color),\n\t\t\t\t\tvar(--ck-image-processing-highlight-color),\n\t\t\t\t\tvar(--ck-image-processing-background-color)\n\t\t\t\t);\n\t\t\t\tbackground-size: 200% 100%;\n\n\t\t\t\tanimation: ck-image-processing-animation 2s linear infinite;\n\t\t\t}\n\n\t\t\t& img {\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n\n@keyframes ck-image-processing-animation {\n\t0% {\n\t\tbackground-position: 200% 0;\n\t}\n\t100% {\n\t\tbackground-position: -200% 0;\n\t}\n}\n"],sourceRoot:""}]);const a=s},390:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\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);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\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;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9085:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content pre{background:hsla(0,0%,78%,.3);border:1px solid #c4c4c4;border-radius:2px;color:#353535;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.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://./node_modules/@ckeditor/ckeditor5-code-block/theme/codeblock.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-code-block/codeblock.css"],names:[],mappings:"AAKA,gBAGC,4BAAiC,CACjC,wBAAiC,CACjC,iBAAkB,CAHlB,aAAwB,CAOxB,aAAc,CAMd,iBAAkB,CAGlB,eAAgB,CAjBhB,WAAY,CAUZ,UAAW,CAHX,eAAgB,CAIhB,oBAaD,CALC,qBACC,gBAAiB,CAEjB,eAAgB,CADhB,SAED,CAGD,4BACC,iBAMD,CAJC,iDACC,2BAA4B,CAC5B,iBACD,CCjCD,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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content pre {\n\tpadding: 1em;\n\tcolor: hsl(0, 0%, 20.8%);\n\tbackground: hsla(0, 0%, 78%, 0.3);\n\tborder: 1px solid hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\n\t/* Code block are language direction–agnostic. */\n\ttext-align: left;\n\tdirection: ltr;\n\n\ttab-size: 4;\n\twhite-space: pre-wrap;\n\n\t/* Don't inherit the style, e.g. when in a block quote. */\n\tfont-style: normal;\n\n\t/* Don't let the code be squashed e.g. when in a table cell. */\n\tmin-width: 200px;\n\n\t& code {\n\t\tbackground: unset;\n\t\tpadding: 0;\n\t\tborder-radius: 0;\n\t}\n}\n\n.ck.ck-editor__editable pre {\n\tposition: relative;\n\n\t&[data-language]::after {\n\t\tcontent: attr(data-language);\n\t\tposition: absolute;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-code-block-label-background: hsl(0, 0%, 46%);\n}\n\n.ck.ck-editor__editable pre[data-language]::after {\n\ttop: -1px;\n\tright: 10px;\n\tbackground: var(--ck-color-code-block-label-background);\n\n\tfont-size: 10px;\n\tfont-family: var(--ck-font-face);\n\tline-height: 16px;\n\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n\tcolor: hsl(0, 0%, 100%);\n\twhite-space: nowrap;\n}\n\n.ck.ck-code-block-dropdown .ck-dropdown__panel {\n\t/* There could be dozens of languages available. Use scroll to prevent a 10e6px dropdown. */\n\tmax-height: 250px;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n}\n"],sourceRoot:""}]);const a=s},4807:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/integrations/codeblock.css"],names:[],mappings:"AASA,sDAEC,yFAAoG,CADpG,aAMD,CAHC,mFACC,+FACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content pre > code.ck-suggestion-marker-formatBlock {\n\tdisplay: block;\n\tbox-shadow: -7px 0 0 0 hsl(0deg 0% 93%), -10px 0 0 0 var(--ck-color-suggestion-marker-format-border);\n\n\t&.ck-suggestion-marker--active {\n\t\tbox-shadow: -5px 0 0 0 hsl(0deg 0% 93%), -8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);\n\t}\n}\n"],sourceRoot:""}]);const a=s},8350:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/integrations/horizontalline.css"],names:[],mappings:"AASA,wEACC,sEAKD,CAHC,qGACC,6EACD,CAGD,yEACC,uEAKD,CAHC,sGACC,8EACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line {\n\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t}\n}\n\n.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line {\n\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t}\n}\n"],sourceRoot:""}]);const a=s},8136:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/integrations/image.css"],names:[],mappings:"AAUC,sEACC,sEAAuE,CACvE,WAKD,CAHC,mGACC,6EACD,CAGD,uEACC,uEAAwE,CACxE,WAKD,CAHC,oGACC,8EACD,CAIF,2DACC,sEAiBD,CAfC,+DACC,UACD,CAEA,sEACC,sEACD,CAKC,2LACC,6EACD,CAQD,mIACC,uEACD,CAMC,6LACC,8EACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .ck-widget.image > figcaption {\n\t&.ck-suggestion-marker-deletion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\t\tborder: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t\t}\n\t}\n\n\t&.ck-suggestion-marker-insertion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\t\tborder: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-deletion.ck-widget.image {\n\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\n\t& img {\n\t\topacity: 0.6;\n\t}\n\n\t& figcaption {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\t}\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\n\t\t& figcaption {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-insertion.ck-widget.image {\n\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\n\t/* stylelint-disable no-descending-specificity */\n\t& figcaption {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\t}\n\t/* stylelint-enable no-descending-specificity */\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\n\t\t& figcaption {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9224:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/integrations/mediaembed.css"],names:[],mappings:"AASA,2DACC,sEASD,CAPC,8EACC,UACD,CAEA,wFACC,6EACD,CAGD,4DACC,uEAKD,CAHC,yFACC,8EACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .ck-suggestion-marker-deletion.ck-widget.media {\n\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\n\t& .ck-media__wrapper {\n\t\topacity: 0.6;\n\t}\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t}\n}\n\n.ck-content .ck-suggestion-marker-insertion.ck-widget.media {\n\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t}\n}\n"],sourceRoot:""}]);const a=s},2102:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/integrations/pagebreak.css"],names:[],mappings:"AASA,gEACC,sEAKD,CAHC,6FACC,6EACD,CAGD,iEACC,uEAKD,CAHC,8FACC,8EACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break {\n\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t}\n}\n\n.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break {\n\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t}\n}\n"],sourceRoot:""}]);const a=s},9050:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/integrations/table.css"],names:[],mappings:"AASA,MACC,0EAA8E,CAC9E,+EAAqF,CAErF,yEAA6E,CAC7E,8EACD,CAEA,2DACC,qEAKD,CAHC,wFACC,4EACD,CAIA,sEACC,sEAAuE,CACvE,WAKD,CAHC,mGACC,6EACD,CAGD,uEACC,uEAAwE,CACxE,WAKD,CAHC,oGACC,8EACD,CAIF,kDACC,+DAsBD,CApBC,6DACC,uEACD,CAQC,wIACC,0EAA2E,CAC3E,+DACD,CAEA,oEACC,uEAAwE,CACxE,+DACD,CAIF,+EACC,sEAsBD,CApBC,0FACC,8EACD,CAQC,kMACC,iFAAkF,CAClF,sEACD,CAEA,iGACC,8EAA+E,CAC/E,sEACD,CAIF,2DACC,8DAyBD,CAvBC,sEACC,sEACD,CASC,0JACC,yEAA0E,CAC1E,8DAA+D,CAC/D,oBACD,CAEA,6EACC,sEAAuE,CACvE,8DAA+D,CAC/D,oBACD,CAIF,8EACC,qEAsBD,CApBC,yFACC,6EACD,CAQC,gMACC,gFAAiF,CACjF,qEACD,CAEA,gGACC,6EAA8E,CAC9E,qEACD,CASD,qDACC,0EAKD,CAHC,kFACC,iFACD,CAGD,oDACC,yEAA0E,CAC1E,oBAKD,CAHC,iFACC,gFACD,CAGD,qDACC,uEAKD,CAHC,kFACC,8EACD,CAGD,oDACC,sEAAuE,CACvE,oBAKD,CAHC,iFACC,6EACD,CAGD,8NAIC,oEAAqE,CACrE,eAMD,CAJC,kVACC,2EAA4E,CAC5E,eACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-suggestion-widget-th-insertion-background: hsla(128, 71%, 65%, .12);\n\t--ck-color-suggestion-widget-th-insertion-background-active: hsla(128, 71%, 50%, .14);\n\n\t--ck-color-suggestion-widget-th-deletion-background: hsla(345, 71%, 65%, .14);\n\t--ck-color-suggestion-widget-th-deletion-background-active: hsla(345, 71%, 45%, .16);\n}\n\n.ck-content figure.table .ck-suggestion-marker-formatBlock {\n\tbox-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border);\n\n\t&.ck-suggestion-marker--active {\n\t\tbox-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);\n\t}\n}\n\n.ck-content .ck-widget.table > figcaption {\n\t&.ck-suggestion-marker-deletion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\t\tborder: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t\t}\n\t}\n\n\t&.ck-suggestion-marker-insertion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\t\tborder: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-insertion.table {\n\tborder-color: var(--ck-color-suggestion-marker-insertion-border);\n\n\t& > figcaption {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\t}\n\n\t& > table {\n\t\t& > tbody > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-insertion-background);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border);\n\t\t}\n\n\t\t& > thead > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-insertion-background);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border);\n\t\t}\n\n\t\t& > tbody > tr > td {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table {\n\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\n\t& > figcaption {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t}\n\n\t& > table {\n\t\t& > tbody > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-insertion-background-active);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t\t}\n\n\t\t& > thead > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-insertion-background-active);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t\t}\n\n\t\t& > tbody > tr > td {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-deletion.ck-widget.table  {\n\tborder-color: var(--ck-color-suggestion-marker-deletion-border);\n\n\t& > figcaption {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\t}\n\n\t& > table {\n\t\t& > tbody > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-deletion-background);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border);\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t& > thead > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-deletion-background);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border);\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t& > tbody > tr > td {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border);\n\t\t\ttext-decoration: none;\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table {\n\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\n\t& > figcaption {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t}\n\n\t& > table {\n\t\t& > tbody > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-deletion-background-active);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t\t}\n\n\t\t& > thead > tr > th {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-deletion-background-active);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t\t}\n\n\t\t& > tbody > tr > td {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t\t}\n\t}\n}\n\n/*\n * We need here at least 022 CSS Specificity because of table styles like `.ck-content .table table th { background: ... }\n * See: https://github.com/ckeditor/ckeditor5-table/blob/master/theme/table.css#L29\n */\n.ck-content .table {\n\t& th.ck-suggestion-marker-insertion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-th-insertion-background);\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-insertion-background-active);\n\t\t}\n\t}\n\n\t& th.ck-suggestion-marker-deletion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-th-deletion-background);\n\t\ttext-decoration: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-th-deletion-background-active);\n\t\t}\n\t}\n\n\t& td.ck-suggestion-marker-insertion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background);\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-insertion-background-active);\n\t\t}\n\t}\n\n\t& td.ck-suggestion-marker-deletion {\n\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background);\n\t\ttext-decoration: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-deletion-background-active);\n\t\t}\n\t}\n\n\t& th.ck-suggestion-marker-formatInline,\n\t& td.ck-suggestion-marker-formatInline,\n\t& th.ck-suggestion-marker-formatBlock,\n\t& td.ck-suggestion-marker-formatBlock {\n\t\tbackground-color: var(--ck-color-suggestion-widget-format-background);\n\t\tbox-shadow: none;\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tbackground-color: var(--ck-color-suggestion-widget-format-background-active);\n\t\t\tbox-shadow: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9032:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{outline:0;overflow:hidden}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/suggestion.css"],names:[],mappings:"AASA,MACC,qCAAgD,CAChD,iDAA6D,CAC7D,kDAA8D,CAC9D,+CACD,CAEA,mBACC,8CACD,CAEA,mBACC,iCACD,CAKA,qDACC,eACD,CAIA,sGAIC,wDACD,CAEA,4CACC,iEACD,CAEA,2CACC,gEACD,CAEA,0CACC,iEACD,CAEA,yCACC,8DACD,CAEA,2BACC,SAAU,CACV,eACD,CAEA,wBACC,eACD,CAEA,yBAIC,kBAAmB,CAGnB,4BAAqC,CANrC,oBAAqB,CAErB,WAAY,CAGZ,YAAa,CADb,0BAA2B,CAH3B,UAMD,CAKA,8SAMC,iEACD,CAEA,uJAGC,gEACD,CAEA,iJAGC,8DACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-comment-box-border: hsl(55, 98%, 48%);\n\t--ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);\n\t--ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);\n\t--ck-color-suggestion-box-format-border: hsl(191, 62%, 60%);\n}\n\n.ck .ck-suggestion {\n\tborder-top-left-radius: var(--ck-border-radius);\n}\n\n.ck .ck-annotation {\n\tborder-left: 3px solid transparent;\n}\n\n\n/* See: #3683.\n * Inline Suggestion annotations that can't be commented on contains a scrollbar by default */\n.ck .ck-suggestion--disabled-comments .ck-annotation {\n\tmin-height: 80px;\n}\n\n/* See: #2459.\nWith track-changes feature enabled, we need to distinguish various types of annotations (comments and suggestions). */\n.ck .ck-comment,\n.ck .ck-thread__comment-count,\n.ck .ck-comment__input-container,\n.ck .ck-thread__header {\n\tborder-left: 3px solid var(--ck-color-comment-box-border);\n}\n\n.ck .ck-suggestion-insertion .ck-suggestion {\n\tborder-left-color: var(--ck-color-suggestion-box-insertion-border);\n}\n\n.ck .ck-suggestion-deletion .ck-suggestion {\n\tborder-left-color: var(--ck-color-suggestion-box-deletion-border);\n}\n\n.ck .ck-suggestion-replace .ck-suggestion {\n\tborder-left-color: var(--ck-color-suggestion-box-insertion-border);\n}\n\n.ck .ck-suggestion-format .ck-suggestion {\n\tborder-left-color: var(--ck-color-suggestion-box-format-border);\n}\n\n.ck .ck-suggestion-wrapper {\n\toutline: 0;\n\toverflow: hidden;\n}\n\n.ck .ck-suggestion-type {\n\tfont-weight: bold;\n}\n\n.ck .ck-suggestion-color {\n\tdisplay: inline-block;\n\twidth: 14px;\n\theight: 14px;\n\tborder-radius: 14px;\n\tvertical-align: text-bottom;\n\tmargin: 0 5px;\n\tbox-shadow: 0 0 0 1px hsl(0, 0%, 27%);\n}\n\n/* Comments inside suggestion. */\n\n/* Handle comments inside suggestion keep same border-color. */\n.ck .ck-suggestion-insertion .ck-comment,\n.ck .ck-suggestion-insertion .ck-thread__comment-count,\n.ck .ck-suggestion-insertion .ck-comment__input-container,\n.ck .ck-suggestion-replace .ck-comment,\n.ck .ck-suggestion-replace .ck-thread__comment-count,\n.ck .ck-suggestion-replace .ck-comment__input-container {\n\tborder-left-color: var(--ck-color-suggestion-box-insertion-border);\n}\n\n.ck .ck-suggestion-deletion .ck-comment,\n.ck .ck-suggestion-deletion .ck-thread__comment-count,\n.ck .ck-suggestion-deletion .ck-comment__input-container {\n\tborder-left-color: var(--ck-color-suggestion-box-deletion-border);\n}\n\n.ck .ck-suggestion-format .ck-comment,\n.ck .ck-suggestion-format .ck-thread__comment-count,\n.ck .ck-suggestion-format .ck-comment__input-container {\n\tborder-left-color: var(--ck-color-suggestion-box-format-border);\n}\n"],sourceRoot:""}]);const a=s},6533:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/suggestionmarker.css"],names:[],mappings:"AASA,MACC,iEAAuE,CACvE,uEAA6E,CAC7E,uEAA2E,CAC3E,2EAAiF,CAEjF,gEAAsE,CACtE,sEAA4E,CAC5E,sEAA0E,CAC1E,0EAAgF,CAChF,8DAAqE,CAErE,kDAAkE,CAClE,yDAAyE,CAEzE,uEAA2E,CAC3E,4EAAkF,CAElF,sEAA0E,CAC1E,2EAAiF,CAEjF,mEAAwE,CACxE,0EACD,CAEA,4CAGC,iEAAkE,CADlE,0EAA2E,CAD3E,uEAmBD,CAfC,yEAEC,wEAAyE,CADzE,sEAED,CAGA,sDACC,eAAgB,CAEhB,mEAAoE,CADpE,oBAMD,CAHC,mFACC,sEACD,CAIF,2CASC,gEAAiE,CAPjE,yEAA0E,CAD1E,sEAAuE,CAIvE,4BAA6B,CAC7B,uEAAwE,CACxE,6BAmBD,CAfC,wEAEC,uEAAwE,CADxE,qEAED,CAGA,qDACC,eAAgB,CAEhB,kEAAmE,CADnE,oBAMD,CAHC,kFACC,qEACD,CAKD,8CAQC,gEAAiE,CANjE,yEAA0E,CAD1E,sEAAuE,CAQvE,uDAAwD,CACxD,WAAY,CALZ,4BAA6B,CAC7B,uEAKD,CAEA,2EAEC,uEAAwE,CADxE,qEAED,CAIA,8CAGC,iEAAkE,CADlE,0EAA2E,CAD3E,uEAAwE,CAGxE,wDAAyD,CACzD,WACD,CAEA,2EAEC,wEAAyE,CADzE,sEAED,CAGD,+CAEC,uEAAwE,CADxE,oEAeD,CAZC,4EACC,mEACD,CAEA,yDACC,eAAgB,CAChB,gEAKD,CAHC,sFACC,mEACD,CAWF,8CAEC,eAAgB,CADhB,QAAS,CAET,iHAKD,CAHC,2EACC,uHACD,CAGD,kGAEC,gHAKD,CAHC,4JACC,uHACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-suggestion-marker-insertion-border: hsla(128, 71%, 40%, .35);\n\t--ck-color-suggestion-marker-insertion-border-active: hsla(128, 71%, 25%, .5);\n\t--ck-color-suggestion-marker-insertion-background: hsla(128, 71%, 65%, .35);\n\t--ck-color-suggestion-marker-insertion-background-active: hsla(128, 71%, 50%, .5);\n\n\t--ck-color-suggestion-marker-deletion-border: hsla(345, 71%, 40%, .35);\n\t--ck-color-suggestion-marker-deletion-border-active: hsla(345, 71%, 25%, .5);\n\t--ck-color-suggestion-marker-deletion-background: hsla(345, 71%, 65%, .35);\n\t--ck-color-suggestion-marker-deletion-background-active: hsla(345, 71%, 50%, .5);\n\t--ck-color-suggestion-marker-deletion-stroke: hsla(345, 71%, 20%, .5);\n\n\t--ck-color-suggestion-marker-format-border: hsla(191, 60%, 75%, 1);\n\t--ck-color-suggestion-marker-format-border-active: hsla(191, 60%, 60%, 1);\n\n\t--ck-color-suggestion-widget-insertion-background: hsla(128, 71%, 65%, .05);\n\t--ck-color-suggestion-widget-insertion-background-active: hsla(128, 71%, 50%, .07);\n\n\t--ck-color-suggestion-widget-deletion-background: hsla(345, 71%, 65%, .05);\n\t--ck-color-suggestion-widget-deletion-background-active: hsla(345, 71%, 45%, .07);\n\n\t--ck-color-suggestion-widget-format-background: hsla(191, 90%, 40%, .09);\n\t--ck-color-suggestion-widget-format-background-active: hsla(191, 90%, 40%, .16);\n}\n\n.ck-content .ck-suggestion-marker-insertion {\n\tborder-top: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n\tborder-bottom: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n\tbackground: var(--ck-color-suggestion-marker-insertion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t\tbackground: var(--ck-color-suggestion-marker-insertion-background-active);\n\t}\n\n\t/* Disable background of marker inside widget. */\n\t&.ck-widget {\n\t\tbackground: none;\n\t\ttext-decoration: none;\n\t\tborder: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-deletion {\n\tborder-top: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n\tborder-bottom: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n\n\t/* #2810. Safari doesn't support combined text-decoration values. */\n\ttext-decoration: line-through;\n\ttext-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);\n\ttext-decoration-thickness: 3px;\n\n\tbackground: var(--ck-color-suggestion-marker-deletion-background);\n\n\t&.ck-suggestion-marker--active {\n\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t\tbackground: var(--ck-color-suggestion-marker-deletion-background-active);\n\t}\n\n\t/* Disable background of marker inside widget. */\n\t&.ck-widget {\n\t\tbackground: none;\n\t\ttext-decoration: none;\n\t\tborder: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t\t}\n\t}\n}\n\n.ck-content .ck-suggestion-marker-merge {\n\t&::after {\n\t\tborder-top: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n\t\tborder-bottom: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n\n\t\t/* #2810. Safari doesn't support combined text-decoration values. */\n\t\ttext-decoration: line-through;\n\t\ttext-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);\n\n\t\tbackground: var(--ck-color-suggestion-marker-deletion-background);\n\t\tcolor: var(--ck-color-suggestion-marker-deletion-stroke);\n\t\tcontent: '¶';\n\t}\n\n\t&.ck-suggestion-marker--active::after {\n\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t\tbackground: var(--ck-color-suggestion-marker-deletion-background-active);\n\t}\n}\n\n.ck-content .ck-suggestion-marker-split {\n\t&::after {\n\t\tborder-top: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n\t\tborder-bottom: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n\t\tbackground: var(--ck-color-suggestion-marker-insertion-background);\n\t\tcolor: var(--ck-color-suggestion-marker-insertion-border);\n\t\tcontent: '¶';\n\t}\n\n\t&.ck-suggestion-marker--active::after {\n\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t\tbackground: var(--ck-color-suggestion-marker-insertion-background-active);\n\t}\n}\n\n.ck-content .ck-suggestion-marker-formatInline {\n\tborder-top: 3px solid var(--ck-color-suggestion-marker-format-border);\n\tborder-bottom: 3px solid var(--ck-color-suggestion-marker-format-border);\n\n\t&.ck-suggestion-marker--active {\n\t\tborder-color: var(--ck-color-suggestion-marker-format-border-active);\n\t}\n\n\t&.ck-widget {\n\t\tbackground: none;\n\t\tborder: 3px solid var(--ck-color-suggestion-marker-format-border);\n\n\t\t&.ck-suggestion-marker--active {\n\t\t\tborder-color: var(--ck-color-suggestion-marker-format-border-active);\n\t\t}\n\t}\n}\n\n/* This is a tricky case.\n * We can't use `border-left` because sticky marker to the element looks kinda ugly.\n * We can't use `::before` pseudoelement because it requires `position: relative` of parent, which breaks side-image.\n * We can't use `outline` because it's impossible to display only left side of outline.\n * So... we need to use power of CSS hacks <3 and use doubled box-shadow.\n */\n\n.ck-content .ck-suggestion-marker-formatBlock {\n\tborder: 0;\n\tbackground: none;\n\tbox-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-color-suggestion-marker-format-border);\n\n\t&.ck-suggestion-marker--active {\n\t\tbox-shadow: -5px 0 0 0 var(--ck-color-base-background), -8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);\n\t}\n}\n\n.ck-content ul .ck-suggestion-marker-formatBlock,\n.ck-content ol .ck-suggestion-marker-formatBlock {\n\tbox-shadow: -2px 0 0 0 var(--ck-color-base-background), -5px 0 0 0 var(--ck-color-suggestion-marker-format-border);\n\n\t&.ck-suggestion-marker--active {\n\t\tbox-shadow: -2px 0 0 0 var(--ck-color-base-background), -5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4853:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0:after{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1:after{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2:after{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3:after{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4:after{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5:after{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6:after{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7:after{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/usercolors.css","webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/usercolormixin.css"],names:[],mappings:"AAWA,MACC,2BAA2C,CAC3C,+CAAoD,CAEpD,2BAA4C,CAC5C,6CAAqD,CAErD,2BAAyC,CACzC,6CAAkD,CAElD,2BAA2C,CAC3C,6CAAoD,CAEpD,2BAA0C,CAC1C,6CAAmD,CAEnD,2BAA2C,CAC3C,6CAAoD,CAEpD,2BAAyC,CACzC,6CAAkD,CAElD,2BAA2C,CAC3C,8CAAoD,CAEpD,sBACD,CC3BC,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD,CA1BD,uBACC,8BACD,CAEA,0BACC,yCACD,CAEA,2BACC,+CAMD,CAJC,qCACC,4BAA6B,CAC7B,yCACD,CAIA,mGAGC,yCACD,CAEA,8CACC,yCACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "./usercolormixin.css";\n\n:root {\n\t--ck-user-colors--0: hsla(235, 73%, 67%, 1);\n\t--ck-user-colors--0-alpha: hsla(235, 73%, 67%, 0.15);\n\n\t--ck-user-colors--1: hsla(173, 100%, 24%, 1);\n\t--ck-user-colors--1-alpha: hsla(173, 100%, 24%, 0.15);\n\n\t--ck-user-colors--2: hsla(0, 46%, 50%, 1);\n\t--ck-user-colors--2-alpha: hsla(0, 46%, 50%, 0.15);\n\n\t--ck-user-colors--3: hsla(256, 54%, 45%, 1);\n\t--ck-user-colors--3-alpha: hsla(256, 54%, 45%, 0.15);\n\n\t--ck-user-colors--4: hsla(95, 50%, 36%, 1);\n\t--ck-user-colors--4-alpha: hsla(95, 50%, 36%, 0.15);\n\n\t--ck-user-colors--5: hsla(336, 78%, 43%, 1);\n\t--ck-user-colors--5-alpha: hsla(336, 78%, 43%, 0.15);\n\n\t--ck-user-colors--6: hsla(0, 80%, 59%, 1);\n\t--ck-user-colors--6-alpha: hsla(0, 80%, 59%, 0.15);\n\n\t--ck-user-colors--7: hsla(184, 90%, 43%, 1);\n\t--ck-user-colors--7-alpha: hsla(184, 90%, 43%, 0.15);\n\n\t--ck-user-dot-size: 6px;\n}\n\n/* We are using mixins here because of lack of PostCSS loop plugin. */\n\n@mixin userColor var(--ck-user-colors--0), var(--ck-user-colors--0-alpha), 0;\n@mixin userColor var(--ck-user-colors--1), var(--ck-user-colors--1-alpha), 1;\n@mixin userColor var(--ck-user-colors--2), var(--ck-user-colors--2-alpha), 2;\n@mixin userColor var(--ck-user-colors--3), var(--ck-user-colors--3-alpha), 3;\n@mixin userColor var(--ck-user-colors--4), var(--ck-user-colors--4-alpha), 4;\n@mixin userColor var(--ck-user-colors--5), var(--ck-user-colors--5-alpha), 5;\n@mixin userColor var(--ck-user-colors--6), var(--ck-user-colors--6-alpha), 6;\n@mixin userColor var(--ck-user-colors--7), var(--ck-user-colors--7-alpha), 7;\n',"/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin userColor $color, $colorAlpha, $number  {\n\t.ck .ck-user__color--$(number) {\n\t\tcolor: $color;\n\t}\n\n\t.ck .ck-user__bg-color--$(number) {\n\t\tbackground-color: $color;\n\t}\n\n\t.ck .ck-user__selection--$(number) {\n\t\tbackground-color: $colorAlpha;\n\n\t\t&.ck-widget {\n\t\t\tbackground-color: transparent;\n\t\t\tborder: 3px solid $color;\n\t\t}\n\t}\n\n\t.ck .ck-user__marker--$(number) {\n\t\t&,\n\t\t&:after,\n\t\t& .ck-user__marker-dot {\n\t\t\tbackground-color: $color;\n\t\t}\n\n\t\t& .ck-user__marker-line {\n\t\t\tborder: 1px solid $color;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9097:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;display:flex;height:var(--ck-user-avatar-size);justify-content:center;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:2px solid var(--ck-user-avatar-background);border-radius:50%;display:none;height:inherit;width:inherit}.ck.ck-user__img.ck-user__anonymous{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z'/%3E%3C/svg%3E\");display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-collaboration-core/theme/users.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css"],names:[],mappings:"AAWA,MACC,0BAA2B,CAE3B,mCAA+C,CAC/C,2BACD,CAEA,YAGC,kBAAmB,CAGnB,iDAAkD,CADlD,iBAAkB,CAJlB,YAAa,CAMb,iCAAkC,CALlC,sBAAuB,CAQvB,qCAAsC,CADtC,oCAAqC,CALrC,iBAAkB,CAIlB,gCAGD,CAEA,kBACC,iCAAkC,CAClC,cAAe,CCxBf,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD2BD,CAHC,wCACC,YACD,CAGD,iBAOC,iDAAkD,CAHlD,uBAAkC,CAClC,2BAA4B,CAC5B,qBAAsB,CAGtB,iDAAkD,CADlD,iBAAkB,CAPlB,YAAa,CAEb,cAAe,CADf,aA6BD,CApBC,oCAEC,oSAAmZ,CADnZ,aAOD,CAHC,mDACC,YACD,CAGD,iCAIC,qBAAkC,CAHlC,aAID,CAEA,sCACC,YACD,CAGD,0BAKC,kBAAmB,CACnB,0CAA2C,CAC3C,gDAAiD,CACjD,iBAAkB,CAClB,sBAAuB,CARvB,YAAa,CAEb,WAAY,CACZ,sBAAuB,CAUvB,eAAgB,CAHhB,iBAAkB,CAElB,UAAW,CADX,QAAS,CAGT,uBAAwB,CAbxB,UAyBD,CAVC,yCAEC,0CAA2C,CAD3C,qCAAsC,CAGtC,WAAY,CAEZ,eAAgB,CADhB,cAAe,CAGf,eAAgB,CADhB,cAAe,CAJf,UAMD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import '@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css';\n\n:root {\n\t--ck-user-avatar-size: 40px;\n\n\t--ck-user-avatar-background: hsl(210, 52%, 44%);\n\t--ck-user-avatar-color: hsl(0, 0%, 100%);\n}\n\n.ck.ck-user {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tposition: relative;\n\tborder-radius: 50%;\n\tbackground-color: var(--ck-user-avatar-background);\n\theight: var(--ck-user-avatar-size);\n\twidth: var(--ck-user-avatar-size);\n\tmin-width: var(--ck-user-avatar-size);\n\tmin-height: var(--ck-user-avatar-size);\n}\n\n.ck.ck-user__name {\n\tcolor: var(--ck-user-avatar-color);\n\tcursor: default;\n\t@mixin ck-unselectable;\n\n\t&.ck-user__name--hidden {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-user__img {\n\tdisplay: none;\n\twidth: inherit;\n\theight: inherit;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: cover;\n\tbackground-color: var(--ck-user-avatar-background);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-user-avatar-background);\n\n\t&.ck-user__anonymous {\n\t\tdisplay: block;\n\t\tbackground-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%0A%20%20%3Cpath%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M9.8%2020H2c0-5.7%205-5.7%206-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5%200-2.8%202-5.2%204.3-5.2S14%204.4%2014%207.3c0%202.2-1%204-2.6%205l.2.6c1.2%201.3%206%201.4%206%207H9.8z%22%2F%3E%0A%3C%2Fsvg%3E);\n\n\t\t/* Do not display initials when user is anonymous. */\n\t\t& + .ck-user__name {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&.ck-user__avatar {\n\t\tdisplay: block;\n\n\t\t/* In case if avatar is transparent make background white. */\n\t\tbackground-color: hsl(0, 0%, 100%);\n\t}\n\n\t&.ck-user__img--hidden {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-user__notification {\n\tdisplay: flex;\n\twidth: 15px;\n\theight: 15px;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: var(--ck-color-base-background);\n\tborder: 2px solid var(--ck-color-base-background);\n\tborder-radius: 50%;\n\tbox-sizing: content-box;\n\n\tposition: absolute;\n\ttop: -8px;\n\tright: -7px;\n\toverflow: hidden;\n\ttransform: translateZ(0);\n\n\t& .ck-user__icon {\n\t\tcolor: var(--ck-color-annotation-info);\n\t\tbackground: var(--ck-color-base-background);\n\t\twidth: 19px;\n\t\theight: 19px;\n\t\tmax-width: 19px;\n\t\tmax-height: 19px;\n\t\tmin-width: 19px;\n\t\tmin-height: 19px;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n"],sourceRoot:""}]);const a=s},6610:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-inline-annotation-container-width:300px;--ck-inline-annotation-container-max-height:400px}.ck.ck-balloon-panel .ck-annotation-wrapper{max-height:var(--ck-inline-annotation-container-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;position:static;width:var(--ck-inline-annotation-container-width)}.ck.ck-balloon-panel .ck-annotation{animation:none}.ck.ck-balloon-panel .ck-annotation-wrapper *{white-space:normal}.ck.ck-balloon-panel .ck-annotation-wrapper strong{font-weight:700}.ck.ck-balloon-panel .ck-annotation-wrapper i{font-style:italic}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/annotation-inline.css"],names:[],mappings:"AAWA,MACC,4CAA6C,CAC7C,iDACD,CAEA,4CAKC,2DAA4D,CAQ5D,iBAAkB,CANlB,eAAgB,CAGhB,6BAA8B,CAR9B,eAAgB,CAEhB,iDAUD,CAEA,oCAEC,cACD,CAEA,8CAEC,kBACD,CAGA,mDACC,eACD,CAEA,8CACC,iBACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Common styles for inline comment and inline suggestion. */\n\n:root {\n\t--ck-inline-annotation-container-width: 300px;\n\t--ck-inline-annotation-container-max-height: 400px;\n}\n\n.ck.ck-balloon-panel .ck-annotation-wrapper {\n\t/* Override default `position: absolute`. */\n\tposition: static;\n\n\twidth: var(--ck-inline-annotation-container-width);\n\tmax-height: var(--ck-inline-annotation-container-max-height);\n\n\toverflow-y: auto;\n\n\t/* Get rid of scroll chaining. */\n\toverscroll-behavior-y: contain;\n\n\t/* We need to hide overflow in x-axis to prevent container stretching because of buttons tooltip. */\n\toverflow-x: hidden;\n}\n\n.ck.ck-balloon-panel .ck-annotation {\n\t/* We don't need fadeInLeft animation for inline annotations. */\n\tanimation: none;\n}\n\n.ck.ck-balloon-panel .ck-annotation-wrapper * {\n\t/* Default `.ck.ck-reset_all *` has `white-space: nowrap` and display content in one line. */\n\twhite-space: normal;\n}\n\n/* Because `.ck.ck-reset_all *` is overriding default font property. */\n.ck.ck-balloon-panel .ck-annotation-wrapper strong {\n\tfont-weight: bold;\n}\n\n.ck.ck-balloon-panel .ck-annotation-wrapper i {\n\tfont-style: italic;\n}\n"],sourceRoot:""}]);const a=s},5899:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,':root{--ck-color-annotation-icon:grey;--ck-color-annotation-info:#757575;--ck-annotation-button-size:0.85em}.ck .ck-annotation{--ck-user-avatar-size:28px;animation:fadeInLeft .3s;display:flex;font-size:var(--ck-font-size-base);padding:var(--ck-spacing-standard);position:relative;transition:background-color .3s ease;white-space:normal}.ck .ck-annotation .ck-button{background-color:transparent;border-radius:var(--ck-border-radius);color:var(--ck-color-annotation-icon);cursor:pointer;font-size:var(--ck-annotation-button-size);min-height:unset;min-width:unset}.ck .ck-annotation__main{border-radius:var(--ck-border-radius);display:grid;grid-template-areas:"info actions" "content content";grid-template-columns:minmax(0,1fr) auto;padding-left:var(--ck-spacing-standard);transition:all .2s ease;width:calc(100% - var(--ck-user-avatar-size))}.ck .ck-annotation__main p{font-size:var(--ck-font-size-base);line-height:1.5em;margin:0;white-space:normal}.ck .ck-annotation__user{margin-top:var(--ck-spacing-small)}.ck .ck-annotation__info{align-items:center;color:var(--ck-color-annotation-info);display:flex;grid-area:info;min-height:2.4em}.ck .ck-annotation__info-name,.ck .ck-annotation__info-time{color:var(--ck-color-annotation-info);font-size:var(--ck-font-size-small);font-weight:700;overflow:hidden;white-space:nowrap}.ck .ck-annotation__info-name{text-overflow:ellipsis}.ck .ck-annotation__info-time{flex:0 0 auto;margin:0 var(--ck-spacing-large)}.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time{white-space:nowrap}.ck .ck-annotation__actions{grid-area:actions;opacity:.5;transition:opacity .2s ease}.ck .ck-annotation__content-wrapper{grid-area:content;width:100%}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-5%,0,0)}to{opacity:1;transform:translateZ(0)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/annotation.css"],names:[],mappings:"AAUA,MACC,+BAA2C,CAC3C,kCAA2C,CAE3C,kCACD,CAEA,mBAEC,0BAA2B,CAM3B,wBAA2B,CAF3B,YAAa,CAFb,kCAAmC,CAMnC,kCAAmC,CAHnC,iBAAkB,CAElB,oCAAuC,CAEvC,kBAYD,CAVC,8BAEC,4BAA6B,CAK7B,qCAAsC,CADtC,qCAAsC,CADtC,cAAe,CAGf,0CAA2C,CAJ3C,gBAAiB,CADjB,eAMD,CAGD,yBAWC,qCAAsC,CAVtC,YAAa,CACb,oDAEkB,CAClB,wCAA0C,CAO1C,uCAAwC,CAFxC,uBAA0B,CAF1B,6CAKD,CAEA,2BAKC,kCAAmC,CAGnC,iBAAkB,CAPlB,QAAS,CAGT,kBAKD,CAEA,yBACC,kCACD,CAEA,yBAIC,kBAAmB,CACnB,qCAAsC,CAFtC,YAAa,CAFb,cAAe,CAOf,gBACD,CAEA,4DAOC,qCAAsC,CACtC,mCAAoC,CANpC,eAAiB,CAEjB,eAAgB,CADhB,kBAMD,CAEA,8BACC,sBACD,CAEA,8BACC,aAAc,CAEd,gCACD,CAEA,4IAEC,kBACD,CAEA,4BACC,iBAAkB,CAGlB,UAAY,CADZ,2BAED,CAGA,oCACC,iBAAkB,CAElB,UACD,CAEA,sBACC,GAEC,SAAU,CADV,8BAED,CAEA,GAEC,SAAU,CADV,uBAED,CACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Common styles for single comment and single suggestion. */\n:root {\n\t--ck-color-annotation-icon: hsl(0, 0%, 50%);\n\t--ck-color-annotation-info: hsl(0, 0%, 46%);\n\n\t--ck-annotation-button-size: 0.85em;\n}\n\n.ck .ck-annotation {\n\t/* Make avatar size in the comment smaller than in presence list. */\n\t--ck-user-avatar-size: 28px;\n\n\tfont-size: var(--ck-font-size-base);\n\n\tdisplay: flex;\n\tposition: relative;\n\tanimation: fadeInLeft 300ms;\n\ttransition: background-color 300ms ease;\n\tpadding: var(--ck-spacing-standard);\n\twhite-space: normal;\n\n\t& .ck-button {\n\t\t/* Overwrite CK5 button default styles. */\n\t\tbackground-color: transparent;\n\t\tmin-width: unset;\n\t\tmin-height: unset;\n\t\tcursor: pointer;\n\t\tcolor: var(--ck-color-annotation-icon);\n\t\tborder-radius: var(--ck-border-radius);\n\t\tfont-size: var(--ck-annotation-button-size);\n\t}\n}\n\n.ck .ck-annotation__main {\n\tdisplay: grid;\n\tgrid-template-areas:\n\t\t"info actions"\n\t\t"content content";\n\tgrid-template-columns: minmax(0, 1fr) auto;\n\n\t/* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */\n\twidth: calc( 100% - var(--ck-user-avatar-size) );\n\n\ttransition: all 200ms ease;\n\tborder-radius: var(--ck-border-radius);\n\tpadding-left: var(--ck-spacing-standard);\n}\n\n.ck .ck-annotation__main p {\n\tmargin: 0;\n\n\t/* We need it to prevent `.ck.ck-reset` ovverride. */\n\twhite-space: normal;\n\tfont-size: var(--ck-font-size-base);\n\n\t/* TODO: refactor this value later. */\n\tline-height: 1.5em;\n}\n\n.ck .ck-annotation__user {\n\tmargin-top: var(--ck-spacing-small);\n}\n\n.ck .ck-annotation__info {\n\tgrid-area: info;\n\n\tdisplay: flex;\n\talign-items: center;\n\tcolor: var(--ck-color-annotation-info);\n\n\t/* #156. Edit & remove icon are higher than plain text with the same font-size, so we need to take care if icons are hidden. */\n\tmin-height: 2.4em;\n}\n\n.ck .ck-annotation__info-name,\n.ck .ck-annotation__info-time {\n\tfont-weight: bold;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\n\t/* We need it to prevent `.ck.ck-reset` ovverride. */\n\tcolor: var(--ck-color-annotation-info);\n\tfont-size: var(--ck-font-size-small);\n}\n\n.ck .ck-annotation__info-name {\n\ttext-overflow: ellipsis;\n}\n\n.ck .ck-annotation__info-time {\n\tflex: 0 0 auto;\n\n\tmargin: 0 var(--ck-spacing-large);\n}\n\n.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,\n.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time {\n\twhite-space: nowrap;\n}\n\n.ck .ck-annotation__actions {\n\tgrid-area: actions;\n\n\ttransition: opacity 200ms ease;\n\topacity: 0.5;\n}\n\n/* Because of display flex, we need to strech out annotation content to 100%. */\n.ck .ck-annotation__content-wrapper {\n\tgrid-area: content;\n\n\twidth: 100%;\n}\n\n@keyframes fadeInLeft {\n\tfrom {\n\t\ttransform: translate3d( -5%, 0, 0 );\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\ttransform: translate3d( 0, 0, 0 );\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const a=s},1556:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,':root{--ck-color-comment-background:#f3f7fb;--ck-color-comment-separator:#cddeef;--ck-color-comment-remove-background:var(--ck-color-light-red);--ck-color-comment-input-background:var(--ck-color-comment-background)}.ck .ck-comment__wrapper{font-size:var(--ck-font-size-base);outline:0;position:relative;transition:all .3s linear}.ck .ck-comment__wrapper.ck-comment--remove-confirmation{transform:translate3d(-100%,0,0)}.ck .ck-comment__wrapper:first-of-type{border-top-left-radius:var(--ck-border-radius);border-top-right-radius:var(--ck-border-radius)}.ck .ck-comment:after{background-color:var(--ck-color-comment-separator);content:"";display:block;height:100%;left:calc(var(--ck-spacing-standard) + var(--ck-user-avatar-size)/2 - 2px);opacity:1;position:absolute;top:calc(var(--ck-user-avatar-size) + var(--ck-spacing-small));width:4px}.ck .ck-comment--remove{background-color:var(--ck-color-comment-remove-background)}.ck .ck-comment--remove:after{opacity:0}.ck .ck-comment--edit{background-color:var(--ck-color-comment-input-background)}.ck .ck-comment--edit:after{opacity:0}.ck .ck-comment--edit{.ck-comment__input-actions{margin-top:var(--ck-spacing-standard)}}.ck .ck-comment__content{word-break:break-word}.ck .ck-comment--info .ck-comment__content{font-style:italic}.ck .ck-comment p,.ck .ck-comment__input p{margin:0}.ck .ck-comment ol,.ck .ck-comment ul,.ck .ck-comment__input ol,.ck .ck-comment__input ul{margin-left:10px;padding-left:10px}.ck .ck-comment ul,.ck .ck-comment__input ul{list-style:disc;margin-bottom:5px;margin-top:0}.ck .ck-comment ul ul,.ck .ck-comment__input ul ul{list-style:circle}.ck .ck-comment ul ul ul,.ck .ck-comment__input ul ul ul{list-style:square}.ck .ck-comment__main .ck-comment__input-wrapper{display:flex;flex-direction:column;position:relative;transition:all .3s linear}.ck .ck-comment__main .ck-comment__input-wrapper .ck-comment__input{padding:0}.ck .ck-comment__user{z-index:var(--ck-z-default)}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit{background:var(--ck-color-base-action);color:#fff}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit:hover{background:var(--ck-color-button-save)}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel{color:var(--ck-color-text)}.ck .ck-comment__external{color:var(--ck-color-annotation-info);font-size:var(--ck-font-size-tiny);font-style:italic;margin-top:var(--ck-spacing-standard)}.ck .ck-comment .ck-dropdown .ck-dropdown__arrow{display:none}.ck .ck-comment .ck-dropdown .ck-list{margin:0;padding:0}.ck .ck-comment .ck-dropdown .ck-list .ck-list__item{color:var(--ck-color-base-text);font-size:1.2em;min-width:auto}.ck .ck-comment .ck-dropdown .ck-list .ck-list__item .ck-button{color:var(--ck-color-text)}.ck .ck-comment .ck-dropdown .ck-list .ck-list__item .ck-button__label{margin:0 var(--ck-spacing-large)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/comment.css"],names:[],mappings:"AASA,MACC,qCAAiD,CACjD,oCAAgD,CAChD,8DAA+D,CAC/D,sEACD,CAEA,yBACC,kCAAmC,CAEnC,SAAU,CADV,iBAAkB,CAElB,yBAUD,CARC,yDACC,gCACD,CAEA,uCAEC,8CAA+C,CAD/C,+CAED,CAIA,sBAcC,kDAAmD,CAbnD,UAAW,CACX,aAAc,CAWd,WAAY,CAPZ,0EAKC,CAPD,SAAU,CADV,iBAAkB,CAElB,8DAAiE,CAOjE,SAGD,CAGD,wBACC,0DAKD,CAHC,8BACC,SACD,CAGD,sBACC,yDASD,CAPC,4BACC,SACD,CALD,sBAOC,2BACC,qCACD,CACD,CAEA,yBACC,qBACD,CAGC,2CACC,iBACD,CAOA,2CACC,QACD,CAEA,0FAGC,gBAAiB,CADjB,iBAED,CAEA,6CACC,eAAgB,CAChB,iBAAkB,CAClB,YASD,CAPC,mDACC,iBAKD,CAHC,yDACC,iBACD,CAMF,iDACC,YAAa,CACb,qBAAsB,CACtB,iBAAkB,CAClB,yBAKD,CAHC,oEACC,SACD,CAIF,sBAEC,2BACD,CAGA,2EACC,sCAAuC,CACvC,UAKD,CAHC,iFACC,sCACD,CAGD,2EACC,0BACD,CAEA,0BAEC,qCAAsC,CACtC,kCAAmC,CAFnC,iBAAkB,CAGlB,qCACD,CAGC,iDACC,YACD,CAEA,sCACC,QAAS,CACT,SAeD,CAbC,qDAEC,+BAAgC,CADhC,eAAgB,CAEhB,cASD,CAPC,gEACC,0BACD,CAEA,uEACC,gCACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-comment-background: hsl(210, 52%, 97%);\n\t--ck-color-comment-separator: hsl(210, 52%, 87%);\n\t--ck-color-comment-remove-background: var(--ck-color-light-red);\n\t--ck-color-comment-input-background: var(--ck-color-comment-background);\n}\n\n.ck .ck-comment__wrapper {\n\tfont-size: var(--ck-font-size-base);\n\tposition: relative;\n\toutline: 0;\n\ttransition: all 300ms linear;\n\n\t&.ck-comment--remove-confirmation {\n\t\ttransform: translate3d( -100%, 0, 0 );\n\t}\n\n\t&:first-of-type {\n\t\tborder-top-right-radius: var(--ck-border-radius);\n\t\tborder-top-left-radius: var(--ck-border-radius);\n\t}\n}\n\n.ck .ck-comment {\n\t&::after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\topacity: 1;\n\t\ttop: calc( var(--ck-user-avatar-size) + var(--ck-spacing-small) );\n\t\tleft: calc(\n\t\t\tvar(--ck-spacing-standard) + ( var(--ck-user-avatar-size) / 2 )\n\n\t\t\t/* Half width of line. */\n\t\t\t- 2px\n\t\t);\n\t\twidth: 4px;\n\t\theight: 100%;\n\t\tbackground-color: var(--ck-color-comment-separator);\n\t}\n}\n\n.ck .ck-comment--remove {\n\tbackground-color: var(--ck-color-comment-remove-background);\n\n\t&::after {\n\t\topacity: 0;\n\t}\n}\n\n.ck .ck-comment--edit {\n\tbackground-color: var(--ck-color-comment-input-background);\n\n\t&::after {\n\t\topacity: 0;\n\t}\n\n\t.ck-comment__input-actions {\n\t\tmargin-top: var(--ck-spacing-standard);\n\t}\n}\n\n.ck .ck-comment__content {\n\tword-break: break-word;\n}\n\n.ck .ck-comment--info {\n\t& .ck-comment__content {\n\t\tfont-style: italic;\n\t}\n}\n\n/* Common styles for typography inside comment element and editable input.\nWe are styling resetting list-style because of parent <ul> element. */\n.ck .ck-comment,\n.ck .ck-comment__input {\n\t& p {\n\t\tmargin: 0;\n\t}\n\n\t& ul,\n\t& ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t}\n\n\t& ul {\n\t\tlist-style: disc;\n\t\tmargin-bottom: 5px;\n\t\tmargin-top: 0;\n\n\t\t& ul {\n\t\t\tlist-style: circle;\n\n\t\t\t& ul {\n\t\t\t\tlist-style: square;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck .ck-comment__main {\n\t& .ck-comment__input-wrapper {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tposition: relative;\n\t\ttransition: all 300ms linear;\n\n\t\t& .ck-comment__input {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n}\n\n.ck .ck-comment__user {\n\t/* Display user above vertical line. */\n\tz-index: var(--ck-z-default);\n}\n\n/* We need specificity 030 to beat styles in `commentinput.css`. */\n.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {\n\tbackground: var(--ck-color-base-action);\n\tcolor: hsl(0, 0%, 100%);\n\n\t&:hover {\n\t\tbackground: var(--ck-color-button-save);\n\t}\n}\n\n.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {\n\tcolor: var(--ck-color-text);\n}\n\n.ck .ck-comment__external {\n\tfont-style: italic;\n\tcolor: var(--ck-color-annotation-info);\n\tfont-size: var(--ck-font-size-tiny);\n\tmargin-top: var(--ck-spacing-standard);\n}\n\n.ck .ck-comment .ck-dropdown {\n\t& .ck-dropdown__arrow {\n\t\tdisplay: none;\n\t}\n\n\t& .ck-list {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\n\t\t& .ck-list__item {\n\t\t\tfont-size: 1.2em;\n\t\t\tcolor: var(--ck-color-base-text);\n\t\t\tmin-width: auto;\n\n\t\t\t& .ck-button {\n\t\t\t\tcolor: var(--ck-color-text);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmargin: 0 var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4964:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck .ck-comment__input-container{--ck-user-avatar-size:28px;background:var(--ck-color-comment-background);display:none;font-size:var(--ck-font-size-base);padding:var(--ck-spacing-standard)}.ck .ck-comment__input-container--active{display:flex}.ck .ck-comment__input{background-color:transparent;border-width:0;color:var(--ck-color-base-text);padding:var(--ck-spacing-standard);padding-top:var(--ck-spacing-medium);resize:none;transition:color .3s ease-in-out}.ck .ck-comment__input:focus{outline:none}.ck .ck-comment__input .ck-editor__editable_inline{--ck-focus-ring:none;--ck-inner-shadow:none;background-color:transparent;border:0;overflow:visible;padding:0;word-break:break-word}.ck-comment__input-wrapper .ck.ck-editor__editable_inline :first-child{margin-top:0}.ck-comment__input-wrapper .ck.ck-editor__editable_inline :last-child{margin-bottom:0}.ck .ck-comment__input-actions{display:none;text-align:right;width:100%}.ck .ck-comment__input-actions.ck-comment__input-actions--active{display:block}.ck .ck-comment__input-actions .ck.ck-button{align-items:center;cursor:pointer;display:inline-flex;font-size:var(--ck-annotation-button-size);justify-content:center;margin-left:var(--ck-spacing-large);min-height:var(--ck-ui-component-min-height);min-width:60px;padding:0 var(--ck-spacing-medium)}.ck .ck-comment__input-actions .ck-button.ck-disabled{opacity:.3}.ck .ck-comment__input-textarea{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/commentinput.css"],names:[],mappings:"AASA,iCAEC,0BAA2B,CAM3B,6CAA8C,CAF9C,YAAa,CAFb,kCAAmC,CAGnC,kCAED,CAEA,yCACC,YACD,CAEA,uBASC,4BAA6B,CAF7B,cAAe,CADf,+BAAgC,CALhC,kCAAmC,CAGnC,oCAAqC,CAIrC,WAAY,CAEZ,gCAiBD,CAfC,6BACC,YACD,CAEA,mDAEC,oBAAqB,CACrB,sBAAuB,CAKvB,4BAA6B,CAD7B,QAAS,CADT,gBAAiB,CADjB,SAAU,CAIV,qBACD,CAKD,uEACC,YACD,CACA,sEACC,eACD,CAEA,+BAGC,YAAa,CADb,gBAAiB,CADjB,UAwBD,CApBC,iEACC,aACD,CAEA,6CAIC,kBAAmB,CACnB,cAAe,CAHf,mBAAoB,CAMpB,0CAA2C,CAL3C,sBAAuB,CAMvB,mCAAoC,CAHpC,4CAA6C,CAC7C,cAAe,CAGf,kCACD,CAEA,sDACC,UACD,CAGD,gCACC,aACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-comment__input-container {\n\t/* Make avatar size in the comment smaller than in presence list. */\n\t--ck-user-avatar-size: 28px;\n\n\tfont-size: var(--ck-font-size-base);\n\n\tdisplay: none;\n\tpadding: var(--ck-spacing-standard);\n\tbackground: var(--ck-color-comment-background);\n}\n\n.ck .ck-comment__input-container--active {\n\tdisplay: flex;\n}\n\n.ck .ck-comment__input {\n\tpadding: var(--ck-spacing-standard);\n\n\t/* To keep vertical align with avatar. */\n\tpadding-top: var(--ck-spacing-medium);\n\n\tcolor: var(--ck-color-base-text);\n\tborder-width: 0;\n\tresize: none;\n\tbackground-color: transparent;\n\ttransition: color 300ms ease-in-out;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t& .ck-editor__editable_inline {\n\t\t/* Disable default outline and border in editable input. */\n\t\t--ck-focus-ring: none;\n\t\t--ck-inner-shadow: none;\n\n\t\tpadding: 0;\n\t\toverflow: visible;\n\t\tborder: 0;\n\t\tbackground-color: transparent;\n\t\tword-break: break-word;\n\t}\n}\n\n/* Overwrite default CKEditor 5 margin of editable children.\nSee: ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css. */\n.ck-comment__input-wrapper .ck.ck-editor__editable_inline *:first-child {\n\tmargin-top: 0;\n}\n.ck-comment__input-wrapper .ck.ck-editor__editable_inline *:last-child {\n\tmargin-bottom: 0;\n}\n\n.ck .ck-comment__input-actions {\n\twidth: 100%;\n\ttext-align: right;\n\tdisplay: none;\n\n\t&.ck-comment__input-actions--active {\n\t\tdisplay: block;\n\t}\n\n\t& .ck.ck-button {\n\t\t/* Overwrite CK5 button default styles. */\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\t\tmin-height: var(--ck-ui-component-min-height);\n\t\tmin-width: 60px;\n\t\tfont-size: var(--ck-annotation-button-size);\n\t\tmargin-left: var(--ck-spacing-large);\n\t\tpadding: 0 var(--ck-spacing-medium);\n\t}\n\n\t& .ck-button.ck-disabled {\n\t\topacity: .3;\n\t}\n}\n\n.ck .ck-comment__input-textarea {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const a=s},5743:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-comment-marker:#fef7a9;--ck-color-comment-marker-active:#fdf05d}.ck-comment-marker{background:var(--ck-color-comment-marker);border-bottom:3px solid transparent;border-top:3px solid transparent}.ck-comment-marker.ck-widget{background-color:transparent;border:3px solid var(--ck-color-comment-marker)}.ck-comment-marker--active,.ck-comment-marker--active .ck-comment-marker{background:var(--ck-color-comment-marker-active)}.ck-comment-marker--active.ck-widget{border-color:var(--ck-color-comment-marker-active)}.ck-comment-marker--active.ck-widget .ck-comment-marker{background-color:var(--ck-color-comment-marker)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/commentmarker.css"],names:[],mappings:"AASA,MACC,iCAA4C,CAC5C,wCACD,CAEA,mBACC,yCAA0C,CAI1C,mCAAoC,CADpC,gCAQD,CAJC,6BACC,4BAA6B,CAC7B,+CACD,CAOA,yEACC,gDACD,CAEA,qCACC,kDAMD,CAHC,wDACC,+CACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-comment-marker: hsl(55, 98%, 83%);\n\t--ck-color-comment-marker-active: hsl(55, 98%, 68%);\n}\n\n.ck-comment-marker {\n\tbackground: var(--ck-color-comment-marker);\n\n\t/* Match size with suggestion markers */\n\tborder-top: 3px solid transparent;\n\tborder-bottom: 3px solid transparent;\n\n\t/* #152. In the image case, we change marker background to border. */\n\t&.ck-widget {\n\t\tbackground-color: transparent;\n\t\tborder: 3px solid var(--ck-color-comment-marker);\n\t}\n}\n\n.ck-comment-marker--active {\n\tbackground: var(--ck-color-comment-marker-active);\n\n\t/* See #2469. Inactive comment marker inside an active one should be highlighted too. */\n\t& .ck-comment-marker {\n\t\tbackground: var(--ck-color-comment-marker-active);\n\t}\n\n\t&.ck-widget {\n\t\tborder-color: var(--ck-color-comment-marker-active);\n\n\t\t/* See #2469. Inactive comment in a widget inside an active comment should not be highlighted. */\n\t\t& .ck-comment-marker {\n\t\t\tbackground-color: var(--ck-color-comment-marker);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},7651:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck .ck-comments-archive-dropdown.ck-dropdown__panel{z-index:var( --ck-z-modal )}.ck .ck-comments-archive{box-sizing:content-box;max-height:450px;width:320px}.ck .ck-comments-archive .ck-annotation{animation:none}.ck .ck-comments-archive .ck-comments-archive__content,.ck .ck-comments-archive .ck-comments-archive__header{max-height:410px;overflow:auto;padding:var( --ck-spacing-large )}.ck .ck-comments-archive .ck-comments-archive__header{border-bottom:1px solid var( --ck-color-toolbar-border );font-weight:700;line-height:var( --ck-font-size-base );max-height:40px}.ck .ck-comments-archive .ck-comments-archive__content .ck-annotation-wrapper:not(:last-child){margin-bottom:var( --ck-spacing-large )}.ck .ck-comments-archive .ck-comments-archive__info{color:var( --ck-color-annotation-info );font-style:italic;text-align:center}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/commentsarchive.css"],names:[],mappings:"AAUC,qDACC,2BACD,CAGD,yBAGC,sBAAuB,CADvB,gBAAiB,CADjB,WAgCD,CA5BC,wCACC,cACD,CAEA,6GAEC,gBAAiB,CADjB,aAAc,CAEd,iCACD,CAEA,sDAIC,wDAAyD,CADzD,eAAiB,CADjB,sCAAuC,CADvC,eAID,CAGC,+FACC,uCACD,CAGD,oDAGC,uCAAwC,CADxC,iBAAkB,CADlB,iBAGD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-comments-archive-dropdown {\n\t&.ck-dropdown__panel {\n\t\tz-index: var( --ck-z-modal );\n\t}\n}\n\n.ck .ck-comments-archive {\n\twidth: 320px;\n\tmax-height: 450px;\n\tbox-sizing: content-box;\n\n\t& .ck-annotation {\n\t\tanimation: none;\n\t}\n\n\t& .ck-comments-archive__header, & .ck-comments-archive__content {\n\t\toverflow: auto;\n\t\tmax-height: 410px;\n\t\tpadding: var( --ck-spacing-large );\n\t}\n\n\t& .ck-comments-archive__header {\n\t\tmax-height: 40px;\n\t\tline-height: var( --ck-font-size-base );\n\t\tfont-weight: bold;\n\t\tborder-bottom: 1px solid var( --ck-color-toolbar-border );\n\t}\n\n\t& .ck-comments-archive__content {\n\t\t& .ck-annotation-wrapper:not(:last-child) {\n\t\t\tmargin-bottom: var( --ck-spacing-large );\n\t\t}\n\t}\n\n\t& .ck-comments-archive__info {\n\t\ttext-align: center;\n\t\tfont-style: italic;\n\t\tcolor: var( --ck-color-annotation-info );\n\t}\n}\n"],sourceRoot:""}]);const a=s},4342:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,':root{--ck-color-thread-remove-background:var(--ck-color-comment-remove-background);--ck-color-comment-count:#5891ca;--ck-color-thread-header-background:#fdfadd;--ck-color-thread-header-active-background:#fff3a8;--ck-color-unlinked-background:#f5f5f5;--ck-color-unlinked-active-background:#ebebeb}.ck .ck-thread{background-color:var(--ck-color-base-background);border-radius:var(--ck-border-radius);color:var(--ck-color-base-text);outline:0;overflow:hidden;transition:all .3s ease;width:100%}.ck .ck-thread__header{background-color:var(--ck-color-thread-header-background);display:flex;font-size:var(--ck-font-size-base);justify-content:space-between;line-height:1.57;padding:var(--ck-spacing-standard)}.ck .ck-thread__header .ck-button{font-size:var(--ck-annotation-button-size)}.ck .ck-thread__header .ck-context-wrapper{display:inline-flex;height:25px;min-width:0;padding-right:var(--ck-spacing-large);position:relative;width:100%}.ck .ck-thread__header .ck-context{display:flex;overflow:hidden;padding:var(--ck-spacing-small) var(--ck-spacing-medium);white-space:nowrap;width:100%}.ck .ck-thread__header .ck-context.ck-context--quotes:after,.ck .ck-thread__header .ck-context.ck-context--quotes:before{content:\'"\';display:inline-block}.ck .ck-thread__header .ck-context .ck-context__type{font-weight:700;padding-right:var(--ck-spacing-standard)}.ck .ck-thread__header .ck-context .ck-context__value{overflow:hidden;text-overflow:ellipsis}.ck .ck-thread__header .ck-context.overlay{background:var(--ck-color-base-background);border-radius:2px;box-shadow:0 2px 3px hsla(0,0%,100%,.2);box-sizing:border-box;display:inline-block;position:absolute;top:0;white-space:normal;z-index:2}.ck .ck-thread__comment-count{--ck-user-avatar-size:28px;color:var(--ck-color-comment-count);cursor:pointer;font-size:var(--ck-font-size-base);font-weight:700;padding-left:calc(var(--ck-user-avatar-size) + var(--ck-spacing-standard)*2);transition:background-color .3s ease}.ck .ck-thread__comment-count:before{content:"\\25BC";margin-right:var(--ck-spacing-small)}.ck .ck-thread--remove .ck-comment{background-color:var(--ck-color-comment-remove-background)}.ck .ck-thread--remove .ck-thread__input--active{background-color:var(--ck-color-base-background)}.ck .ck-thread--remove .ck-thread__comment-count,.ck .ck-thread--remove .ck-thread__input--active.ck-thread__input{background-color:var(--ck-color-comment-remove-background)}.ck .ck-thread--remove .ck-comment__wrapper .ck-comment:after,.ck .ck-thread__comments .ck-comment__wrapper:last-of-type .ck-comment:after{opacity:0}.ck .ck-thread__container{transition:transform .3s ease}.ck .ck-thread__comments{border-radius:var(--ck-border-radius);list-style:none;margin:0;padding:0;position:relative;z-index:var(--ck-z-default)}.ck .ck-thread__input{border-radius:var(--ck-border-radius);min-height:38px;transition:background-color .2s ease-in-out;white-space:normal;width:calc(100% - var(--ck-user-avatar-size))}.ck .ck-thread--active .ck-comment__options.ck-dropdown{display:block}.ck .ck-thread--active .ck-thread__input{background-color:var(--ck-color-comment-background);display:block}.ck .ck-thread--active .ck-thread__header{background-color:var(--ck-color-thread-header-active-background)}.ck .ck-thread--unlinked{--ck-color-comment-box-border:var(--ck-color-base-border);--ck-color-thread-header-background:var(--ck-color-unlinked-background);--ck-color-thread-header-active-background:var(--ck-color-unlinked-active-background)}.ck .ck-thread--remove-confirmation .ck-thread__container{transform:translate3d(-100%,0,0)}.ck.ck-button.ck-thread__remove-confirm-submit{color:var(--ck-color-button-save)}.ck.ck-button.ck-thread__remove-confirm-cancel{color:var(--ck-color-button-cancel)}.ck .ck-thread__remove-confirm{background-color:var(--ck-color-comment-remove-background);display:flex;font-size:var(--ck-font-size-base);height:100%;justify-content:flex-start;left:100%;position:absolute;top:0;width:100%}.ck .ck-thread__remove-confirm .ck-thread__remove-confirm-inner{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;max-height:400px;padding-top:var(--ck-spacing-standard);width:100%}.ck .ck-thread__remove-confirm p{font-weight:700;margin:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/commentthread.css"],names:[],mappings:"AASA,MACC,6EAA8E,CAC9E,gCAA4C,CAE5C,2CAAsD,CACtD,kDAA8D,CAE9D,sCAA+C,CAC/C,6CACD,CAEA,eAIC,gDAAiD,CAGjD,qCAAsC,CALtC,+BAAgC,CAChC,SAAU,CAEV,eAAgB,CAChB,uBAA0B,CAL1B,UAOD,CAEA,uBAKC,yDAA0D,CAJ1D,YAAa,CAKb,kCAAmC,CAJnC,6BAA8B,CAC9B,gBAAiB,CACjB,kCAsDD,CAlDC,kCACC,0CACD,CAEA,2CACC,mBAAoB,CAGpB,WAAY,CADZ,WAAY,CAGZ,qCAAsC,CADtC,iBAAkB,CAHlB,UAKD,CAEA,mCACC,YAAa,CAEb,eAAgB,CAEhB,wDAAyD,CAHzD,kBAAmB,CAEnB,UAgCD,CA5BE,yHAEC,WAAY,CADZ,oBAED,CAGD,qDACC,eAAiB,CACjB,wCACD,CAEA,sDACC,eAAgB,CAChB,sBACD,CAEA,2CAMC,0CAA2C,CAE3C,iBAAkB,CADlB,uCAA4C,CAG5C,qBAAsB,CATtB,oBAAqB,CACrB,iBAAkB,CAClB,KAAM,CAMN,kBAAmB,CALnB,SAOD,CAIF,8BAEC,0BAA2B,CAI3B,mCAAoC,CAGpC,cAAe,CAFf,kCAAmC,CACnC,eAAiB,CAJjB,4EAAiF,CAQjF,oCAMD,CAJC,qCACC,eAAgB,CAChB,oCACD,CAIA,mCACC,0DACD,CAEA,iDACC,gDAKD,CAEA,mHACC,0DACD,CAaC,2IACC,SACD,CAIF,0BACC,6BACD,CAEA,yBAMC,qCAAsC,CAHtC,eAAgB,CAChB,QAAS,CACT,SAAU,CAJV,iBAAkB,CAClB,2BAKD,CAEA,sBAMC,qCAAsC,CAOtC,eAAgB,CARhB,2CAA8C,CAF9C,kBAAmB,CADnB,6CAYD,CAGC,wDACC,aACD,CAEA,yCAEC,mDAAoD,CADpD,aAED,CAEA,0CACC,gEACD,CAGD,yBACC,yDAA0D,CAE1D,uEAAwE,CACxE,qFACD,CAGC,0DACC,gCACD,CAID,+CACC,iCACD,CAEA,+CACC,mCACD,CAEA,+BASC,0DAA2D,CAN3D,YAAa,CAFb,kCAAmC,CAOnC,WAAY,CAJZ,0BAA2B,CAE3B,SAAU,CAJV,iBAAkB,CAGlB,KAAM,CAEN,UAqBD,CAjBC,gEAGC,kBAAmB,CAFnB,YAAa,CACb,qBAAsB,CAItB,WAAY,CAFZ,sBAAuB,CAMvB,gBAAiB,CALjB,sCAAuC,CAEvC,UAID,CAEA,iCACC,eAAiB,CACjB,QACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-thread-remove-background: var(--ck-color-comment-remove-background);\n\t--ck-color-comment-count: hsl(210, 52%, 57%);\n\n\t--ck-color-thread-header-background: hsl(54, 88%, 93%);\n\t--ck-color-thread-header-active-background: hsl(52, 100%, 83%);\n\n\t--ck-color-unlinked-background: hsl(0, 0%, 96%);\n\t--ck-color-unlinked-active-background: hsl(0, 0%, 92%);\n}\n\n.ck .ck-thread {\n\twidth: 100%;\n\tcolor: var(--ck-color-base-text);\n\toutline: 0;\n\tbackground-color: var(--ck-color-base-background);\n\toverflow: hidden;\n\ttransition: all 300ms ease;\n\tborder-radius: var(--ck-border-radius);\n}\n\n.ck .ck-thread__header {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tline-height: 1.57;\n\tpadding: var(--ck-spacing-standard);\n\tbackground-color: var(--ck-color-thread-header-background);\n\tfont-size: var(--ck-font-size-base);\n\n\t& .ck-button {\n\t\tfont-size: var(--ck-annotation-button-size);\n\t}\n\n\t& .ck-context-wrapper {\n\t\tdisplay: inline-flex;\n\t\twidth: 100%;\n\t\tmin-width: 0;\n\t\theight: 25px;\n\t\tposition: relative;\n\t\tpadding-right: var(--ck-spacing-large);\n\t}\n\n\t& .ck-context {\n\t\tdisplay: flex;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\twidth: 100%;\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\n\t\t&.ck-context--quotes {\n\t\t\t&::after, &::before {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tcontent: '\"';\n\t\t\t}\n\t\t}\n\n\t\t& .ck-context__type {\n\t\t\tfont-weight: bold;\n\t\t\tpadding-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t& .ck-context__value {\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t&.overlay {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tz-index: 2;\n\n\t\t\tbackground: var(--ck-color-base-background);\n\t\t\tbox-shadow: 0 2px 3px hsla(0, 0%, 100%, 0.2);\n\t\t\tborder-radius: 2px;\n\t\t\twhite-space: normal;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t}\n}\n\n.ck .ck-thread__comment-count {\n\t/* Make avatar size in the comment smaller than in presence list. */\n\t--ck-user-avatar-size: 28px;\n\n\tpadding-left: calc( var(--ck-user-avatar-size) + var(--ck-spacing-standard) * 2 );\n\n\tcolor: var(--ck-color-comment-count);\n\tfont-size: var(--ck-font-size-base);\n\tfont-weight: bold;\n\tcursor: pointer;\n\n\t/* Keep similar transition like `ck-annotation`. */\n\ttransition: background-color 300ms ease;\n\n\t&::before {\n\t\tcontent: '\\25BC';\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-thread--remove {\n\t& .ck-comment {\n\t\tbackground-color: var(--ck-color-comment-remove-background);\n\t}\n\n\t& .ck-thread__input--active {\n\t\tbackground-color: var(--ck-color-base-background);\n\n\t\t&.ck-thread__input {\n\t\t\tbackground-color: var(--ck-color-comment-remove-background);\n\t\t}\n\t}\n\n\t& .ck-thread__comment-count {\n\t\tbackground-color: var(--ck-color-comment-remove-background);\n\t}\n\n\t/* Handle visibility of vertical line below avatars. */\n\t& .ck-comment__wrapper {\n\t\t& .ck-comment::after {\n\t\t\topacity: 0;\n\t\t}\n\t}\n}\n\n/* Handle visibility of vertical line below avatars. */\n.ck .ck-thread__comments .ck-comment__wrapper {\n\t&:last-of-type {\n\t\t& .ck-comment::after {\n\t\t\topacity: 0;\n\t\t}\n\t}\n}\n\n.ck .ck-thread__container {\n\ttransition: transform 300ms ease;\n}\n\n.ck .ck-thread__comments {\n\tposition: relative;\n\tz-index: var(--ck-z-default);\n\tlist-style: none;\n\tmargin: 0;\n\tpadding: 0;\n\tborder-radius: var(--ck-border-radius);\n}\n\n.ck .ck-thread__input {\n\t/* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */\n\twidth: calc( 100% - var(--ck-user-avatar-size) );\n\twhite-space: normal;\n\n\ttransition: background-color 200ms ease-in-out;\n\tborder-radius: var(--ck-border-radius);\n\n\t/*\n\t\tThis is equal to the height of the wrapper when the editor instance is loaded.\n\t\tEditor instance is loaded _after_ the comment view is created,\n\t\tso the min-height is set to avoid jitter.\n\t*/\n\tmin-height: 38px;\n}\n\n.ck .ck-thread--active {\n\t& .ck-comment__options.ck-dropdown {\n\t\tdisplay: block;\n\t}\n\n\t& .ck-thread__input {\n\t\tdisplay: block;\n\t\tbackground-color: var(--ck-color-comment-background);\n\t}\n\n\t& .ck-thread__header {\n\t\tbackground-color: var(--ck-color-thread-header-active-background);\n\t}\n}\n\n.ck .ck-thread--unlinked {\n\t--ck-color-comment-box-border: var(--ck-color-base-border);\n\n\t--ck-color-thread-header-background: var(--ck-color-unlinked-background);\n\t--ck-color-thread-header-active-background: var(--ck-color-unlinked-active-background);\n}\n\n.ck .ck-thread--remove-confirmation {\n\t& .ck-thread__container {\n\t\ttransform: translate3d( -100%, 0, 0 );\n\t}\n}\n\n/* We need specificity 020 to beat .ck.ck-button. */\n.ck.ck-button.ck-thread__remove-confirm-submit {\n\tcolor: var(--ck-color-button-save);\n}\n\n.ck.ck-button.ck-thread__remove-confirm-cancel {\n\tcolor: var(--ck-color-button-cancel);\n}\n\n.ck .ck-thread__remove-confirm {\n\tfont-size: var(--ck-font-size-base);\n\tposition: absolute;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\ttop: 0;\n\tleft: 100%;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: var(--ck-color-comment-remove-background);\n\n\t& .ck-thread__remove-confirm-inner {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tpadding-top: var(--ck-spacing-standard);\n\t\theight: 100%;\n\t\twidth: 100%;\n\n\t\t/* Maximum height of confirmation (in case with such long comment). */\n\t\tmax-height: 400px;\n\t}\n\n\t& p {\n\t\tfont-weight: bold;\n\t\tmargin: 0;\n\t}\n}\n"],sourceRoot:""}]);const a=s},659:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-annotation-counter-icon-size:16px;--ck-annotation-counter-number-size:10px;--ck-color-annotation-counter-comment:#f2de02;--ck-color-annotation-counter-suggestion-insertion:#5ad86b;--ck-color-annotation-counter-suggestion-deletion:#d85a79;--ck-color-annotation-counter-suggestion-format:#5ac1d8}.ck.ck-sidebar--narrow .ck-sidebar-item{display:flex;justify-content:center}.ck.ck-sidebar--narrow .ck-annotation-counter{color:grey;cursor:pointer;font-size:var(--ck-annotation-counter-icon-size);min-height:unset;padding:0}.ck.ck-sidebar--narrow .ck-annotation-counter:focus,.ck.ck-sidebar--narrow .ck-annotation-counter:hover{background:transparent;box-shadow:none;color:#4d4d4d}.ck.ck-sidebar--narrow .ck-annotation-counter__badge{background:#333;border-radius:50%;color:#fff;display:flex;font-family:var(--ck-font-face);font-size:var(--ck-annotation-counter-number-size);font-weight:700;height:16px;justify-content:center;line-height:16px;position:absolute;right:0;text-shadow:-1px 0 2px #454545,1px 0 2px #454545;top:-6px;width:16px;z-index:1}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--edit-mode{line-height:1}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-insertion,.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-replace{background:var(--ck-color-annotation-counter-suggestion-insertion)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-deletion{background:var(--ck-color-annotation-counter-suggestion-deletion)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-format{background:var(--ck-color-annotation-counter-suggestion-format)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--comment{background:var(--ck-color-annotation-counter-comment)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/sidebar-narrow.css"],names:[],mappings:"AASA,MACC,sCAAuC,CACvC,wCAAyC,CACzC,6CAAwD,CACxD,0DAAsE,CACtE,yDAAqE,CACrE,uDACD,CAGA,wCACC,YAAa,CACb,sBACD,CAEA,8CASC,UAAsB,CADtB,cAAe,CANf,gDAAiD,CAGjD,gBAAiB,CACjB,SAID,CAEA,wGAEC,sBAAuB,CACvB,eAAgB,CAChB,aACD,CAEA,qDAKC,eAA2B,CAJ3B,iBAAkB,CAMlB,UAAuB,CAUvB,YAAa,CARb,+BAAgC,CADhC,kDAAmD,CAFnD,eAAiB,CAFjB,WAAY,CAcZ,sBAAuB,CAGvB,gBAAiB,CAnBjB,iBAAkB,CAQlB,OAAQ,CAIR,gDAAkE,CAHlE,QAAS,CART,UAAW,CAqBX,SACD,CAGA,gEACC,aACD,CAEA,oJAEC,kEACD,CAEA,0EACC,iEACD,CAEA,wEACC,+DACD,CAEA,8DACC,qDACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-annotation-counter-icon-size: 16px;\n\t--ck-annotation-counter-number-size: 10px;\n\t--ck-color-annotation-counter-comment: hsl(55, 98%, 48%);\n\t--ck-color-annotation-counter-suggestion-insertion: hsl(128, 62%, 60%);\n\t--ck-color-annotation-counter-suggestion-deletion: hsl(345, 62%, 60%);\n\t--ck-color-annotation-counter-suggestion-format: hsl(191, 62%, 60%);\n}\n\n/* Center a annotation counter icon no matter of parent container width. */\n.ck.ck-sidebar--narrow .ck-sidebar-item {\n\tdisplay: flex;\n\tjustify-content: center;\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter {\n\t/* Let's reduce icon size a bit. */\n\tfont-size: var(--ck-annotation-counter-icon-size);\n\n\t/* Reduce default `.ck-button` min-height which is 2.3em, bigger than current icon. */\n\tmin-height: unset;\n\tpadding: 0;\n\n\tcursor: pointer;\n\tcolor: hsl(0, 0%, 50%);\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter:hover,\n.ck.ck-sidebar--narrow .ck-annotation-counter:focus {\n\tbackground: transparent;\n\tbox-shadow: none;\n\tcolor: hsl(0, 0%, 30%);\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge {\n\tborder-radius: 50%;\n\tposition: absolute;\n\twidth: 16px;\n\theight: 16px;\n\tbackground: hsl(0, 0%, 20%);\n\tfont-weight: bold;\n\tcolor: hsl(0, 0%, 100%);\n\tfont-size: var(--ck-annotation-counter-number-size);\n\tfont-family: var(--ck-font-face);\n\tright: 0;\n\ttop: -6px;\n\n\t/* Improve visibility of counter number. */\n\ttext-shadow: -1px 0 2px hsl(0, 0%, 27%), 1px 0 2px hsl(0, 0%, 27%);\n\n\t/* Display number perfectly center of circle. */\n\tdisplay: flex;\n\tjustify-content: center;\n\n\t/* We can't use here `align-items: center` because we need to edit `line-height` for edit mode case. */\n\tline-height: 16px;\n\n\t/* To display above comment icon. */\n\tz-index: 1;\n}\n\n/* When annotation is in edit mode, center `...` differently. */\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge--edit-mode {\n\tline-height: 1;\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-insertion,\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-replace {\n\tbackground: var(--ck-color-annotation-counter-suggestion-insertion);\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-deletion {\n\tbackground: var(--ck-color-annotation-counter-suggestion-deletion);\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-format {\n\tbackground: var(--ck-color-annotation-counter-suggestion-format);\n}\n\n.ck.ck-sidebar--narrow .ck-annotation-counter__badge--comment {\n\tbackground: var(--ck-color-annotation-counter-comment);\n}\n"],sourceRoot:""}]);const a=s},5745:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-annotation-wrapper-background:#fff;--ck-color-annotation-wrapper-drop-shadow:0 1px 1px 1px #e6e6e6}.ck.ck-sidebar{outline:0;position:relative;transition:min-height .25s ease}.ck-sidebar-item{position:absolute;transition:top .3s ease,box-shadow .3s ease;width:100%}.ck-sidebar-item--no-animation{transition:top 0s ease!important}.ck.ck-annotation-wrapper{background:var(--ck-color-annotation-wrapper-background);border-radius:var(--ck-border-radius);box-shadow:var(--ck-color-annotation-wrapper-drop-shadow);outline:0}.ck.ck-annotation-wrapper--active .ck-annotation__actions,.ck.ck-annotation-wrapper:hover .ck-annotation__actions{opacity:1}.ck.ck-annotation-wrapper--active .ck-annotation__actions .ck-comment--resolve,.ck.ck-annotation-wrapper--active .ck-suggestion--accept,.ck.ck-annotation-wrapper:hover .ck-annotation__actions .ck-comment--resolve,.ck.ck-annotation-wrapper:hover .ck-suggestion--accept{color:var(--ck-color-button-save)}.ck.ck-annotation-wrapper--active .ck-suggestion--discard,.ck.ck-annotation-wrapper:hover .ck-suggestion--discard{color:var(--ck-color-button-cancel)}.ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover{box-shadow:var(--ck-drop-shadow)}.ck.ck-annotation-wrapper--active{box-shadow:var(--ck-drop-shadow-active)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-comments/theme/sidebar.css"],names:[],mappings:"AASA,MACC,6CAA0D,CAC1D,+DACD,CAEA,eAGC,SAAU,CAFV,iBAAkB,CAClB,+BAED,CAEA,iBACC,iBAAkB,CAElB,2CAAiD,CADjD,UAED,CAEA,+BACC,gCACD,CAEA,0BAGC,wDAAyD,CADzD,qCAAsC,CAEtC,yDAA0D,CAH1D,SAID,CAIC,kHACC,SAKD,CAEA,4QACC,iCACD,CAEA,kHACC,mCACD,CAID,oEACC,gCACD,CAEA,kCACC,uCACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-annotation-wrapper-background: hsl(0, 0%, 100%);\n\t--ck-color-annotation-wrapper-drop-shadow: 0 1px 1px 1px hsl(0, 0%, 90%);\n}\n\n.ck.ck-sidebar {\n\tposition: relative;\n\ttransition: min-height 250ms ease;\n\toutline: 0;\n}\n\n.ck-sidebar-item {\n\tposition: absolute;\n\twidth: 100%;\n\ttransition: top 300ms ease, box-shadow 300ms ease;\n}\n\n.ck-sidebar-item--no-animation {\n\ttransition: top 0s ease !important;\n}\n\n.ck.ck-annotation-wrapper {\n\toutline: 0;\n\tborder-radius: var(--ck-border-radius);\n\tbackground: var(--ck-color-annotation-wrapper-background);\n\tbox-shadow: var(--ck-color-annotation-wrapper-drop-shadow);\n}\n\n.ck.ck-annotation-wrapper--active,\n.ck.ck-annotation-wrapper:hover{\n\t& .ck-annotation__actions {\n\t\topacity: 1;\n\n\t\t& .ck-comment--resolve {\n\t\t\tcolor: var(--ck-color-button-save);\n\t\t}\n\t}\n\n\t& .ck-suggestion--accept {\n\t\tcolor: var(--ck-color-button-save)\n\t}\n\n\t& .ck-suggestion--discard {\n\t\tcolor: var(--ck-color-button-cancel)\n\t}\n}\n\n/* Handle case where annotation is inactive and users hover them. */\n.ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover {\n\tbox-shadow: var(--ck-drop-shadow);\n}\n\n.ck.ck-annotation-wrapper--active {\n\tbox-shadow: var(--ck-drop-shadow-active);\n}\n"],sourceRoot:""}]);const a=s},3271:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-document-outline-padding:var(--ck-spacing-large);--ck-document-outline-base-font-size:.875em;--ck-document-outline-placeholder-color:var(--ck-color-engine-placeholder-text);--ck-document-outline-indent-level-1:0;--ck-document-outline-indent-level-2:1.5em;--ck-document-outline-indent-level-3:3em;--ck-document-outline-indent-level-4:4.5em;--ck-document-outline-indent-level-5:6em;--ck-document-outline-indent-level-6:7.5em;--ck-document-outline-item-padding:var(--ck-spacing-small);--ck-document-outline-item-active-color:var(--ck-color-base-active);--ck-document-outline-item-default-color:#424242;--ck-document-outline-item-hover-state-color:var(--ck-color-base-text)}.ck.ck-document-outline{font-size:var(--ck-document-outline-base-font-size);padding:var(--ck-document-outline-padding);user-select:none}.ck.ck-document-outline:empty:before{color:var(--ck-document-outline-placeholder-color);content:attr(data-document-outline-empty-placeholder);display:inline-block}.ck.ck-document-outline .ck-document-outline__item{color:var(--ck-document-outline-item-default-color);cursor:pointer;overflow:hidden;padding:var(--ck-document-outline-item-padding);text-overflow:ellipsis;white-space:nowrap}.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty{font-style:italic}.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty:hover,.ck.ck-document-outline .ck-document-outline__item:hover{color:var(--ck-document-outline-item-hover-state-color);text-decoration:underline}.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_active{color:var(--ck-document-outline-item-active-color)}.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_level-1{font-size:1.1em;font-weight:700}.ck.ck-document-outline[dir=ltr] .ck-document-outline__item.ck-document-outline__item_level-1{padding-left:var(--ck-document-outline-indent-level-1)}.ck.ck-document-outline[dir=ltr] .ck-document-outline__item.ck-document-outline__item_level-2{padding-left:var(--ck-document-outline-indent-level-2)}.ck.ck-document-outline[dir=ltr] .ck-document-outline__item.ck-document-outline__item_level-3{padding-left:var(--ck-document-outline-indent-level-3)}.ck.ck-document-outline[dir=ltr] .ck-document-outline__item.ck-document-outline__item_level-4{padding-left:var(--ck-document-outline-indent-level-4)}.ck.ck-document-outline[dir=ltr] .ck-document-outline__item.ck-document-outline__item_level-5{padding-left:var(--ck-document-outline-indent-level-5)}.ck.ck-document-outline[dir=ltr] .ck-document-outline__item.ck-document-outline__item_level-6{padding-left:var(--ck-document-outline-indent-level-6)}.ck.ck-document-outline[dir=rtl] .ck-document-outline__item.ck-document-outline__item_level-1{padding-right:var(--ck-document-outline-indent-level-1)}.ck.ck-document-outline[dir=rtl] .ck-document-outline__item.ck-document-outline__item_level-2{padding-right:var(--ck-document-outline-indent-level-2)}.ck.ck-document-outline[dir=rtl] .ck-document-outline__item.ck-document-outline__item_level-3{padding-right:var(--ck-document-outline-indent-level-3)}.ck.ck-document-outline[dir=rtl] .ck-document-outline__item.ck-document-outline__item_level-4{padding-right:var(--ck-document-outline-indent-level-4)}.ck.ck-document-outline[dir=rtl] .ck-document-outline__item.ck-document-outline__item_level-5{padding-right:var(--ck-document-outline-indent-level-5)}.ck.ck-document-outline[dir=rtl] .ck-document-outline__item.ck-document-outline__item_level-6{padding-right:var(--ck-document-outline-indent-level-6)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-document-outline/theme/documentoutline.css"],names:[],mappings:"AASA,MACC,qDAAsD,CACtD,2CAA4C,CAC5C,+EAAgF,CAEhF,sCAAuC,CACvC,0CAA2C,CAC3C,wCAAyC,CACzC,0CAA2C,CAC3C,wCAAyC,CACzC,0CAA2C,CAE3C,0DAA2D,CAC3D,mEAAoE,CACpE,gDAAyD,CACzD,sEACD,CAEA,wBAEC,mDAAoD,CADpD,0CAA2C,CAE3C,gBA+CD,CA7CC,qCAGC,kDAAmD,CAFnD,qDAAsD,CACtD,oBAED,CAEA,mDAEC,mDAAoD,CAIpD,cAAe,CADf,eAAgB,CAJhB,+CAAgD,CAGhD,sBAAuB,CADvB,kBAuBD,CAlBC,mFACC,iBACD,CAEA,kJAEC,uDAAwD,CACxD,yBACD,CAEA,oFACC,kDACD,CAEA,qFACC,eAAgB,CAChB,eACD,CAiBD,8FACC,sDACD,CAEA,8FACC,sDACD,CAEA,8FACC,sDACD,CAEA,8FACC,sDACD,CAEA,8FACC,sDACD,CAEA,8FACC,sDACD,CAtBA,8FACC,uDACD,CAEA,8FACC,uDACD,CAEA,8FACC,uDACD,CAEA,8FACC,uDACD,CAEA,8FACC,uDACD,CAEA,8FACC,uDACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-document-outline-padding: var(--ck-spacing-large);\n\t--ck-document-outline-base-font-size: .875em;\n\t--ck-document-outline-placeholder-color: var(--ck-color-engine-placeholder-text);\n\n\t--ck-document-outline-indent-level-1: 0;\n\t--ck-document-outline-indent-level-2: 1.5em;\n\t--ck-document-outline-indent-level-3: 3em;\n\t--ck-document-outline-indent-level-4: 4.5em;\n\t--ck-document-outline-indent-level-5: 6em;\n\t--ck-document-outline-indent-level-6: 7.5em;\n\n\t--ck-document-outline-item-padding: var(--ck-spacing-small);\n\t--ck-document-outline-item-active-color: var(--ck-color-base-active);\n\t--ck-document-outline-item-default-color: hsl(0, 0%, 26%);\n\t--ck-document-outline-item-hover-state-color: var(--ck-color-base-text);\n}\n\n.ck.ck-document-outline {\n\tpadding: var(--ck-document-outline-padding);\n\tfont-size: var(--ck-document-outline-base-font-size);\n\tuser-select: none;\n\n\t&:empty::before {\n\t\tcontent: attr(data-document-outline-empty-placeholder);\n\t\tdisplay: inline-block;\n\t\tcolor: var(--ck-document-outline-placeholder-color);\n\t}\n\n\t& .ck-document-outline__item {\n\t\tpadding: var(--ck-document-outline-item-padding);\n\t\tcolor: var(--ck-document-outline-item-default-color);\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\tcursor: pointer;\n\n\t\t&.ck-document-outline__item_empty {\n\t\t\tfont-style: italic;\n\t\t}\n\n\t\t&.ck-document-outline__item_empty:hover,\n\t\t&:hover {\n\t\t\tcolor: var(--ck-document-outline-item-hover-state-color);\n\t\t\ttext-decoration: underline;\n\t\t}\n\n\t\t&.ck-document-outline__item_active {\n\t\t\tcolor: var(--ck-document-outline-item-active-color);\n\t\t}\n\n\t\t&.ck-document-outline__item_level-1 {\n\t\t\tfont-size: 1.1em;\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n\n\t&[dir="ltr"] {\n\t\t& .ck-document-outline__item {\n\t\t\t@mixin document-outline-level-indents padding-left;\n\t\t}\n\t}\n\n\t&[dir="rtl"] {\n\t\t& .ck-document-outline__item {\n\t\t\t@mixin document-outline-level-indents padding-right;\n\t\t}\n\t}\n}\n\n@define-mixin document-outline-level-indents $padding-property {\n\t&.ck-document-outline__item_level-1 {\n\t\t$(padding-property): var(--ck-document-outline-indent-level-1);\n\t}\n\n\t&.ck-document-outline__item_level-2 {\n\t\t$(padding-property): var(--ck-document-outline-indent-level-2);\n\t}\n\n\t&.ck-document-outline__item_level-3 {\n\t\t$(padding-property): var(--ck-document-outline-indent-level-3);\n\t}\n\n\t&.ck-document-outline__item_level-4 {\n\t\t$(padding-property): var(--ck-document-outline-indent-level-4);\n\t}\n\n\t&.ck-document-outline__item_level-5 {\n\t\t$(padding-property): var(--ck-document-outline-indent-level-5);\n\t}\n\n\t&.ck-document-outline__item_level-6 {\n\t\t$(padding-property): var(--ck-document-outline-indent-level-6);\n\t}\n}\n'],sourceRoot:""}]);const a=s},1119:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-table-of-contents-padding:1em;--ck-table-of-contents-line-height:1.5;--ck-table-of-contents-items-start-padding:24px;--ck-table-of-contents-border-color:var(--ck-color-base-border);--ck-table-of-contents-label-background-color:#757575;--ck-table-of-contents-background-color:var(--ck-color-base-foreground)}.ck-content .table-of-contents{margin:.9em auto}.ck-content .table-of-contents.table-of-contents_empty{display:none}.ck-content .table-of-contents .table-of-contents__placeholder{font-style:italic;margin:0;padding:var(--ck-table-of-contents-padding)}.ck-content .table-of-contents>ol{padding:var(--ck-table-of-contents-padding)}.ck-content .table-of-contents ol{line-height:var(--ck-table-of-contents-line-height);list-style-type:none;margin:0}.ck-content .table-of-contents ol ol{padding-inline-start:var(--ck-table-of-contents-items-start-padding)}.ck-content .table-of-contents ol li{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck-editor__editable .ck-widget.table-of-contents{background-color:var(--ck-table-of-contents-background-color);border:1px solid var(--ck-table-of-contents-border-color);display:flow-root;min-width:15em;position:relative}.ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]:after{background-color:var(--ck-table-of-contents-label-background-color);color:#fff;content:attr(data-table-of-contents-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]:after{left:10px;right:auto}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-document-outline/theme/tableofcontents.css"],names:[],mappings:"AAWA,MACC,kCAAmC,CACnC,sCAAuC,CACvC,+CAAgD,CAChD,+DAAgE,CAChE,qDAA8D,CAC9D,uEACD,CAGC,+BACC,gBAgCD,CA9BC,uDACC,YACD,CAEA,+DAGC,iBAAkB,CAFlB,QAAS,CACT,2CAED,CAEA,kCACC,2CACD,CAEA,kCAEC,mDAAoD,CACpD,oBAAqB,CAFrB,QAcD,CAVC,qCACC,oEACD,CAEA,qCAIC,cAAe,CADf,eAAgB,CADhB,sBAAuB,CADvB,kBAID,CAKH,kDAEC,6DAA8D,CAC9D,yDAA0D,CAE1D,iBAAkB,CAClB,cAAe,CALf,iBA2BD,CApBC,sFAOC,mEAAoE,CAKpE,UAAuB,CAXvB,0CAA2C,CAS3C,+BAAgC,CADhC,cAAe,CAEf,gBAAiB,CALjB,uDAAwD,CAHxD,iBAAkB,CAElB,UAAW,CADX,QAAS,CAST,kBAMD,CAnBA,gGAgBE,SAAU,CACV,UAEF",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-table-of-contents-padding: 1em;\n\t--ck-table-of-contents-line-height: 1.5;\n\t--ck-table-of-contents-items-start-padding: 24px;\n\t--ck-table-of-contents-border-color: var(--ck-color-base-border);\n\t--ck-table-of-contents-label-background-color: hsl(0, 0%, 46%);\n\t--ck-table-of-contents-background-color: var(--ck-color-base-foreground);\n}\n\n.ck-content {\n\t& .table-of-contents {\n\t\tmargin: 0.9em auto;\n\n\t\t&.table-of-contents_empty {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& .table-of-contents__placeholder {\n\t\t\tmargin: 0;\n\t\t\tpadding: var(--ck-table-of-contents-padding);\n\t\t\tfont-style: italic;\n\t\t}\n\n\t\t& > ol {\n\t\t\tpadding: var(--ck-table-of-contents-padding);\n\t\t}\n\n\t\t& ol {\n\t\t\tmargin: 0;\n\t\t\tline-height: var(--ck-table-of-contents-line-height);\n\t\t\tlist-style-type: none;\n\n\t\t\t& ol {\n\t\t\t\tpadding-inline-start: var(--ck-table-of-contents-items-start-padding);\n\t\t\t}\n\n\t\t\t& li {\n\t\t\t\twhite-space: nowrap;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\toverflow: hidden;\n\t\t\t\tcursor: default;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-editor__editable .ck-widget.table-of-contents {\n\tposition: relative;\n\tbackground-color: var(--ck-table-of-contents-background-color);\n\tborder: 1px solid var(--ck-table-of-contents-border-color);\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n\tmin-width: 15em;\n\n\t&[data-table-of-contents-label]::after {\n\t\tcontent: attr(data-table-of-contents-label);\n\n\t\tposition: absolute;\n\t\ttop: -1px;\n\t\tright: 10px;\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n\t\tbackground-color: var(--ck-table-of-contents-label-background-color);\n\n\t\tfont-size: 10px;\n\t\tfont-family: var(--ck-font-face);\n\t\tline-height: 16px;\n\t\tcolor: hsl(0, 0%, 100%);\n\t\twhite-space: nowrap;\n\n\t\t@mixin ck-dir rtl {\n\t\t\tleft: 10px;\n\t\t\tright: auto;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},3638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8894:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4401:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const a=s},5436:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-find-and-replace/theme/findandreplace.css"],names:[],mappings:"AAKA,gBACC,+CAAgD,CAChD,0BACD,CAEA,yBACC,kBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-find-result {\n\tbackground: var(--ck-color-highlight-background);\n\tcolor: var(--ck-color-text);\n}\n\n.ck-find-result_selected {\n\tbackground: hsl(29, 100%, 60%);\n}\n"],sourceRoot:""}]);const a=s},9289:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-find-and-replace-form{max-width:100%}.ck.ck-find-and-replace-form fieldset{display:flex}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .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 fieldset{align-content:stretch;align-items:center;border:0;flex-direction:row;flex-wrap:nowrap;margin:0;padding:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset>.ck-button{flex:0 0 auto}[dir=ltr] .ck.ck-find-and-replace-form fieldset>*+*{margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form fieldset>*+*{margin-right:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset .ck-labeled-field-view{flex:1 1 auto}.ck.ck-find-and-replace-form fieldset .ck-labeled-field-view .ck-input{min-width:50px;width:100%}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find{align-items:flex-start}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-find{font-weight:700}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-find .ck-button__label{padding-left:var(--ck-spacing-large);padding-right:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-prev>.ck-icon{transform:rotate(90deg)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-next>.ck-icon{transform:rotate(-90deg)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{left:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{color:var(--ck-color-base-border)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace{flex-wrap:wrap;justify-content:flex-end;margin-top:calc(var(--ck-spacing-large)*-1)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view{margin-bottom:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-options-dropdown{margin-left:0;margin-right:auto}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view,.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view .ck-input{width:100%}@media screen and (max-width:600px){.ck.ck-find-and-replace-form{width:300px}.ck.ck-find-and-replace-form fieldset{flex-wrap:wrap}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-labeled-field-view{flex:1 0 auto;margin-bottom:var(--ck-spacing-standard);width:100%}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button{text-align:center}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type .ck-button__label{text-align:center;width:100%}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>:not(.ck-labeled-field-view){flex:1 1 auto}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-dropdown:not(.ck-labeled-field-view){flex-grow:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-button:not(.ck-labeled-field-view)>.ck-button__label{text-align:center;width:100%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-find-and-replace/theme/findandreplaceform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-find-and-replace/findandreplaceform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAKA,6BACC,cAUD,CARC,sCACC,YAMD,CAHC,yFACC,iBACD,CCNF,6BACC,WAyGD,CAnGC,mCACC,YACD,CAEA,sCAIC,qBAAsB,CADtB,kBAAmB,CAInB,QAAS,CANT,kBAAmB,CACnB,gBAAiB,CAMjB,QAAS,CAFT,+BAwFD,CApFC,iDACC,aACD,CAGC,oDACC,sCACD,CAIA,oDACC,uCACD,CAGD,6DACC,aAMD,CAJC,uEAEC,cAAe,CADf,UAED,CAID,qEAEC,sBAkCD,CAhCC,qFACC,eAOD,CAJC,uGACC,oCAAqC,CACrC,qCACD,CAGD,8FACC,uBACD,CAEA,8FACC,wBACD,CAEA,yFACC,OAAQ,CACR,0BAWD,CAbA,mGAKE,gCAQF,CAbA,mGASE,+BAIF,CAbA,yFAYC,iCACD,CAID,wEACC,cAAe,CACf,wBAAyB,CACzB,2CAeD,CAbC,+FACC,qCACD,CAEA,6FAEC,aAAc,CADd,iBAED,CAEA,wMAEC,UACD,CCzGF,oCD+GA,6BACC,WAiDD,CA/CC,sCACC,cA6CD,CAzCE,4FACC,aAAc,CAEd,wCAAyC,CADzC,UAED,CAEA,gFACC,iBAkBD,CAhBC,8FACC,aAcD,CAfA,wGAIE,aAWF,CAfA,wGAQE,cAOF,CAJC,gHAEC,iBAAkB,CADlB,UAED,CAMH,qGACC,aAUD,CARC,iHACC,WACD,CAEA,iIAEC,iBAAkB,CADlB,UAED,CC5JH",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-find-and-replace-form {\n\tmax-width: 100%;\n\n\t& fieldset {\n\t\tdisplay: flex;\n\n\t\t/* The find fieldset */\n\t\t&.ck-find-and-replace-form__find .ck-results-counter {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-find-and-replace-form {\n\twidth: 400px;\n\n\t/*\n\t * The <form> needs tabindex="-1" for proper Esc handling after being clicked\n\t * but the side effect is that this creates a nasty focus outline in some browsers.\n\t */\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t& fieldset {\n\t\tflex-direction: row;\n\t\tflex-wrap: nowrap;\n\t\talign-items: center;\n\t\talign-content: stretch;\n\n\t\tpadding: var(--ck-spacing-large);\n\t\tborder: 0;\n\t\tmargin: 0;\n\n\t\t& > .ck-button {\n\t\t\tflex: 0 0 auto;\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\t& > * + * {\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t& > * + * {\n\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex: 1 1 auto;\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\t\t\t\tmin-width: 50px;\n\t\t\t}\n\t\t}\n\n\t\t/* The find fieldset */\n\t\t&.ck-find-and-replace-form__find {\n\t\t\t/* To display all controls in line when there\'s an error under the input */\n\t\t\talign-items: flex-start;\n\n\t\t\t& > .ck-button-find {\n\t\t\t\tfont-weight: bold;\n\n\t\t\t\t/* Beef the find button up a little. It\'s the main action button in the form */\n\t\t\t\t& .ck-button__label {\n\t\t\t\t\tpadding-left: var(--ck-spacing-large);\n\t\t\t\t\tpadding-right: var(--ck-spacing-large);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& > .ck-button-prev > .ck-icon {\n\t\t\t\ttransform: rotate(90deg);\n\t\t\t}\n\n\t\t\t& > .ck-button-next > .ck-icon {\n\t\t\t\ttransform: rotate(-90deg);\n\t\t\t}\n\n\t\t\t& .ck-results-counter {\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\tcolor: var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t/* The replace fieldset */\n\t\t&.ck-find-and-replace-form__replace {\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: flex-end;\n\t\t\tmargin-top: calc( -1 * var(--ck-spacing-large) );\n\n\t\t\t& > .ck-labeled-field-view {\n\t\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t& > .ck-options-dropdown {\n\t\t\t\tmargin-right: auto;\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t& > .ck-labeled-field-view,\n\t\t\t& > .ck-labeled-field-view .ck-input {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n\n@mixin ck-media-phone {\n\t.ck.ck-find-and-replace-form {\n\t\twidth: 300px;\n\n\t\t& fieldset {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t/* The find fieldset */\n\t\t\t&.ck-find-and-replace-form__find {\n\t\t\t\t& .ck-labeled-field-view {\n\t\t\t\t\tflex: 1 0 auto;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\tmargin-bottom: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t& > .ck-button {\n\t\t\t\t\ttext-align: center;\n\n\t\t\t\t\t&:first-of-type {\n\t\t\t\t\t\tflex: 1 1 auto;\n\n\t\t\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t\t\tmargin-right: 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t& .ck-button__label {\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* The replace fieldset */\n\t\t\t&.ck-find-and-replace-form__replace > :not(.ck-labeled-field-view) {\n\t\t\t\tflex: 1 1 auto;\n\n\t\t\t\t&.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\n\t\t\t\t&.ck-button > .ck-button__label {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6203:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]);const a=s},2819:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-editor__editable_inline.ck-format-painter-active,.ck.ck-editor__editable_inline.ck-format-painter-active .ck-widget .ck-editor__nested-editable,.ck.ck-editor__editable_inline.ck-format-painter-active a,.ck.ck-editor__editable_inline.ck-format-painter-active a .ck-widget .ck-editor__nested-editable{cursor:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMSAyMCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJNMTQgM2ExIDEgMCAwIDEgMS0xaDEwYTEgMSAwIDAgMSAxIDF2MmExIDEgMCAwIDEtMSAxSDE1YTEgMSAwIDAgMS0xLTFWM1oiIGZpbGw9IiMwMDAiLz48cGF0aCBkPSJNMjcgMy4yNWExLjUgMS41IDAgMCAxIDEuNSAxLjV2MS43YTIuMjUgMi4yNSAwIDAgMS0xLjkzMiAyLjIyNmwtNC40MjQuNjMyYS43NS43NSAwIDAgMC0uNjQ0Ljc0M1YxMWExIDEgMCAwIDEgMSAxdjVhMSAxIDAgMCAxLTEgMUgyMGExIDEgMCAwIDEtMS0xdi01YTEgMSAwIDAgMSAxLTF2LS45NWEyLjI1IDIuMjUgMCAwIDEgMS45MzItMi4yMjZsNC40MjQtLjYzMkEuNzUuNzUgMCAwIDAgMjcgNi40NDlWMy4yNVoiIGZpbGw9IiMwMDAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI2Ljg1NSAyLjI1SDI3YTIuNSAyLjUgMCAwIDEgMi41IDIuNXYxLjdhMy4yNSAzLjI1IDAgMCAxLTIuNzkgMy4yMTZsLTQuMjEuNjAyYTIgMiAwIDAgMSAxIDEuNzMydjVhMiAyIDAgMCAxLTIgMkgyMGEyIDIgMCAwIDEtMi0ydi01YTIgMiAwIDAgMSAxLTEuNzMydi0uMjE3QTMuMjUgMy4yNSAwIDAgMSAyMS4xMjkgN0gxNWEyIDIgMCAwIDEtMi0yVjNhMiAyIDAgMCAxIDItMmgxMGEyIDIgMCAwIDEgMS44NTUgMS4yNVpNMjAgMTAuMDVWMTFhMSAxIDAgMCAwLTEgMXY1YTEgMSAwIDAgMCAxIDFoMS41YTEgMSAwIDAgMCAxLTF2LTVhMSAxIDAgMCAwLTEtMXYtLjk1YzAtLjAxNiAwLS4wMzMuMDAyLS4wNWEuNzUuNzUgMCAwIDEgLjY0Mi0uNjkybDQuNDI0LS42MzJBMi4yNSAyLjI1IDAgMCAwIDI4LjUgNi40NXYtMS43YTEuNDk2IDEuNDk2IDAgMCAwLTEuNS0xLjV2My4yYS43NS43NSAwIDAgMS0uNjQ0Ljc0MmwtNC40MjQuNjMyQTIuMjUgMi4yNSAwIDAgMCAyMCAxMC4wNVpNMTUgMmExIDEgMCAwIDAtMSAxdjJhMSAxIDAgMCAwIDEgMWgxMGExIDEgMCAwIDAgMS0xVjNhMSAxIDAgMCAwLTEtMUgxNVoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMi41IDIuNUEuNS41IDAgMCAxIDMgMmgyLjVhLjUuNSAwIDAgMSAuMzU0LjE0NmwuNjQ2LjY0Ny42NDYtLjY0N0EuNS41IDAgMCAxIDcuNSAySDEwYS41LjUgMCAwIDEgMCAxSDcuNzA3TDcgMy43MDdWMTBoLjVhLjUuNSAwIDAgMSAwIDFIN3Y0Ljc5M2wuNzA3LjcwN0gxMGEuNS41IDAgMCAxIDAgMUg3LjVhLjUuNSAwIDAgMS0uMzU0LS4xNDZsLS42NDYtLjY0Ny0uNjQ2LjY0N2EuNS41IDAgMCAxLS4zNTQuMTQ2SDNhLjUuNSAwIDAgMSAwLTFoMi4yOTNMNiAxNS43OTNWMTFoLS41YS41LjUgMCAwIDEgMC0xSDZWMy43MDdMNS4yOTMgM0gzYS41LjUgMCAwIDEtLjUtLjVaIiBmaWxsPSIjMDAwIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im01Ljc5MyAzLjUtLjUtLjVIM2EuNS41IDAgMCAxIDAtMWgyLjVhLjUuNSAwIDAgMSAuMzU0LjE0NmwuMTQ1LjE0Ni41MDEuNS42NDYtLjY0NkEuNS41IDAgMCAxIDcuNSAySDEwYS41LjUgMCAwIDEgMCAxSDcuNzA3TDcgMy43MDdWMTBoLjVhLjUuNSAwIDAgMSAwIDFIN3Y0Ljc5M2wuNzA3LjcwN0gxMGEuNS41IDAgMCAxIDAgMUg3LjVhLjUuNSAwIDAgMS0uMzU0LS4xNDZsLS42NDYtLjY0Ny0uNS41LS4xNDYuMTQ3YS41LjUgMCAwIDEtLjM1NC4xNDZIM2EuNS41IDAgMCAxIDAtMWgyLjI5M0w2IDE1Ljc5M1YxMWgtLjVhLjUuNSAwIDAgMSAwLTFINlYzLjcwN0w1Ljc5MyAzLjVabS0uOTE0LjVMNSA0LjEyMXY0Ljk2NGExLjUgMS41IDAgMCAwIDAgMi44M3YzLjQ2NGwtLjEyMS4xMjFIM2ExLjUgMS41IDAgMCAwIDAgM2gyLjVhMS41IDEuNSAwIDAgMCAxLS4zODIgMS41IDEuNSAwIDAgMCAxIC4zODJIMTBhMS41IDEuNSAwIDAgMCAwLTNIOC4xMjFMOCAxNS4zNzl2LTMuNDY0YTEuNSAxLjUgMCAwIDAgMC0yLjgzVjQuMTIxTDguMTIxIDRIMTBhMS41IDEuNSAwIDAgMCAwLTNINy41YTEuNSAxLjUgMCAwIDAtMSAuMzgyQTEuNSAxLjUgMCAwIDAgNS41IDFIM2ExLjUgMS41IDAgMSAwIDAgM2gxLjg3OVoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=) 3 3,text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-format-painter/theme/formatpainter.css"],names:[],mappings:"AAoBC,kTAIC,m0FACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable_inline.ck-format-painter-active {\n\t/* Cursor while painting the formatting over an object */\n\t/* & a .ck-widget,\n\t& .ck-widget {\n\t\t&,\n\t\t& *:not(.ck-editor__nested-editable *) {\n\t\t\tcursor: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMSAyMCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjIwIj4KICA8bWFzayBpZD0iYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTMiIHk9IjEiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxOCIgZmlsbD0iIzAwMCI+CiAgICA8cmVjdCBmaWxsPSIjZmZmIiB4PSIxMyIgeT0iMSIgd2lkdGg9IjE3IiBoZWlnaHQ9IjE4Ii8+CiAgICA8cGF0aCBkPSJNMTQgM2ExIDEgMCAwIDEgMS0xaDEwYTEgMSAwIDAgMSAxIDF2MmExIDEgMCAwIDEtMSAxSDE1YTEgMSAwIDAgMS0xLTFWM1oiLz4KICAgIDxwYXRoIGQ9Ik0yNyAzLjI1YTEuNSAxLjUgMCAwIDEgMS41IDEuNXYxLjdhMi4yNSAyLjI1IDAgMCAxLTEuOTMyIDIuMjI2bC00LjQyNC42MzJhLjc1Ljc1IDAgMCAwLS42NDQuNzQzVjExYTEgMSAwIDAgMSAxIDF2NWExIDEgMCAwIDEtMSAxSDIwYTEgMSAwIDAgMS0xLTF2LTVhMSAxIDAgMCAxIDEtMXYtLjk1YTIuMjUgMi4yNSAwIDAgMSAxLjkzMi0yLjIyNmw0LjQyNC0uNjMyQS43NS43NSAwIDAgMCAyNyA2LjQ0OVYzLjI1WiIvPgogIDwvbWFzaz4KICA8cGF0aCBkPSJNMTQgM2ExIDEgMCAwIDEgMS0xaDEwYTEgMSAwIDAgMSAxIDF2MmExIDEgMCAwIDEtMSAxSDE1YTEgMSAwIDAgMS0xLTFWM1oiIGZpbGw9IiMwMDAiLz4KICA8cGF0aCBkPSJNMjcgMy4yNWExLjUgMS41IDAgMCAxIDEuNSAxLjV2MS43YTIuMjUgMi4yNSAwIDAgMS0xLjkzMiAyLjIyNmwtNC40MjQuNjMyYS43NS43NSAwIDAgMC0uNjQ0Ljc0M1YxMWExIDEgMCAwIDEgMSAxdjVhMSAxIDAgMCAxLTEgMUgyMGExIDEgMCAwIDEtMS0xdi01YTEgMSAwIDAgMSAxLTF2LS45NWEyLjI1IDIuMjUgMCAwIDEgMS45MzItMi4yMjZsNC40MjQtLjYzMkEuNzUuNzUgMCAwIDAgMjcgNi40NDlWMy4yNVoiIGZpbGw9IiMwMDAiLz4KICA8cGF0aCBkPSJNMTQgM2ExIDEgMCAwIDEgMS0xaDEwYTEgMSAwIDAgMSAxIDF2MmExIDEgMCAwIDEtMSAxSDE1YTEgMSAwIDAgMS0xLTFWM1oiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBtYXNrPSJ1cmwoI2EpIi8+CiAgPHBhdGggZD0iTTI3IDMuMjVhMS41IDEuNSAwIDAgMSAxLjUgMS41djEuN2EyLjI1IDIuMjUgMCAwIDEtMS45MzIgMi4yMjZsLTQuNDI0LjYzMmEuNzUuNzUgMCAwIDAtLjY0NC43NDNWMTFhMSAxIDAgMCAxIDEgMXY1YTEgMSAwIDAgMS0xIDFIMjBhMSAxIDAgMCAxLTEtMXYtNWExIDEgMCAwIDEgMS0xdi0uOTVhMi4yNSAyLjI1IDAgMCAxIDEuOTMyLTIuMjI2bDQuNDI0LS42MzJBLjc1Ljc1IDAgMCAwIDI3IDYuNDQ5VjMuMjVaIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgbWFzaz0idXJsKCNhKSIvPgogIDxtYXNrIGlkPSJiIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxLjc1IiB5PSIxLjE2NSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjE3IiBmaWxsPSIjMDAwIj4KICAgIDxyZWN0IGZpbGw9IiNmZmYiIHg9IjEuNzUiIHk9IjEuMTY1IiB3aWR0aD0iMTIiIGhlaWdodD0iMTciLz4KICAgIDxwYXRoIGQ9Im0xMi4yNSA5Ljk2LTkuNS03Ljc5NSAyIDEyLjEyNCAyLjM4NC0yLjUzIDIuNzUgNC43NjIgMS43MzItMS0yLjc1LTQuNzYzIDMuMzg0LS43OTlaIi8+CiAgPC9tYXNrPgogIDxwYXRoIGQ9Im0xMi4yNSA5Ljk2LTkuNS03Ljc5NSAyIDEyLjEyNCAyLjM4NC0yLjUzIDIuNzUgNC43NjIgMS43MzItMS0yLjc1LTQuNzYzIDMuMzg0LS43OTlaIiBmaWxsPSIjMDAwIi8+CiAgPHBhdGggZD0ibTEyLjI1IDkuOTYtOS41LTcuNzk1IDIgMTIuMTI0IDIuMzg0LTIuNTMgMi43NSA0Ljc2MiAxLjczMi0xLTIuNzUtNC43NjMgMy4zODQtLjc5OVoiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBtYXNrPSJ1cmwoI2IpIi8+Cjwvc3ZnPgo=) 3 2, default;\n\t\t}\n\t} */\n\n\t/* Cursor while painting the formatting over a text */\n\t&,\n\t& a,\n\t& .ck-widget .ck-editor__nested-editable,\n\t& a .ck-widget .ck-editor__nested-editable {\n\t\tcursor: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMSAyMCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjIwIj4KICA8cGF0aCBkPSJNMTQgM2ExIDEgMCAwIDEgMS0xaDEwYTEgMSAwIDAgMSAxIDF2MmExIDEgMCAwIDEtMSAxSDE1YTEgMSAwIDAgMS0xLTFWM1oiIGZpbGw9IiMwMDAiLz4KICA8cGF0aCBkPSJNMjcgMy4yNWExLjUgMS41IDAgMCAxIDEuNSAxLjV2MS43YTIuMjUgMi4yNSAwIDAgMS0xLjkzMiAyLjIyNmwtNC40MjQuNjMyYS43NS43NSAwIDAgMC0uNjQ0Ljc0M1YxMWExIDEgMCAwIDEgMSAxdjVhMSAxIDAgMCAxLTEgMUgyMGExIDEgMCAwIDEtMS0xdi01YTEgMSAwIDAgMSAxLTF2LS45NWEyLjI1IDIuMjUgMCAwIDEgMS45MzItMi4yMjZsNC40MjQtLjYzMkEuNzUuNzUgMCAwIDAgMjcgNi40NDlWMy4yNVoiIGZpbGw9IiMwMDAiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI2Ljg1NSAyLjI1SDI3YTIuNSAyLjUgMCAwIDEgMi41IDIuNXYxLjdhMy4yNSAzLjI1IDAgMCAxLTIuNzkgMy4yMTZsLTQuMjEuNjAyYTIgMiAwIDAgMSAxIDEuNzMydjVhMiAyIDAgMCAxLTIgMkgyMGEyIDIgMCAwIDEtMi0ydi01YTIgMiAwIDAgMSAxLTEuNzMydi0uMjE3QTMuMjUgMy4yNSAwIDAgMSAyMS4xMjkgN0gxNWEyIDIgMCAwIDEtMi0yVjNhMiAyIDAgMCAxIDItMmgxMGEyIDIgMCAwIDEgMS44NTUgMS4yNVpNMjAgMTAuMDVWMTFhMSAxIDAgMCAwLTEgMXY1YTEgMSAwIDAgMCAxIDFoMS41YTEgMSAwIDAgMCAxLTF2LTVhMSAxIDAgMCAwLTEtMXYtLjk1YzAtLjAxNiAwLS4wMzMuMDAyLS4wNWEuNzUuNzUgMCAwIDEgLjY0Mi0uNjkybDQuNDI0LS42MzJBMi4yNSAyLjI1IDAgMCAwIDI4LjUgNi40NVY0Ljc1YTEuNDk2IDEuNDk2IDAgMCAwLTEuNS0xLjV2My4yYS43NS43NSAwIDAgMS0uNjQ0Ljc0MmwtNC40MjQuNjMyQTIuMjUgMi4yNSAwIDAgMCAyMCAxMC4wNVpNMTUgMmExIDEgMCAwIDAtMSAxdjJhMSAxIDAgMCAwIDEgMWgxMGExIDEgMCAwIDAgMS0xVjNhMSAxIDAgMCAwLTEtMUgxNVoiIGZpbGw9IiNmZmYiLz4KICA8cGF0aCBkPSJNMi41IDIuNUEuNS41IDAgMCAxIDMgMmgyLjVhLjUuNSAwIDAgMSAuMzU0LjE0NmwuNjQ2LjY0Ny42NDYtLjY0N0EuNS41IDAgMCAxIDcuNSAySDEwYS41LjUgMCAwIDEgMCAxSDcuNzA3TDcgMy43MDdWMTBoLjVhLjUuNSAwIDAgMSAwIDFIN3Y0Ljc5M2wuNzA3LjcwN0gxMGEuNS41IDAgMCAxIDAgMUg3LjVhLjUuNSAwIDAgMS0uMzU0LS4xNDZsLS42NDYtLjY0Ny0uNjQ2LjY0N2EuNS41IDAgMCAxLS4zNTQuMTQ2SDNhLjUuNSAwIDAgMSAwLTFoMi4yOTNMNiAxNS43OTNWMTFoLS41YS41LjUgMCAwIDEgMC0xSDZWMy43MDdMNS4yOTMgM0gzYS41LjUgMCAwIDEtLjUtLjVaIiBmaWxsPSIjMDAwIi8+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im01Ljc5MyAzLjUtLjUtLjVIM2EuNS41IDAgMCAxIDAtMWgyLjVhLjUuNSAwIDAgMSAuMzU0LjE0NmwuMTQ1LjE0Ni41MDEuNS42NDYtLjY0NkEuNS41IDAgMCAxIDcuNSAySDEwYS41LjUgMCAwIDEgMCAxSDcuNzA3TDcgMy43MDdWMTBoLjVhLjUuNSAwIDAgMSAwIDFIN3Y0Ljc5M2wuNzA3LjcwN0gxMGEuNS41IDAgMCAxIDAgMUg3LjVhLjUuNSAwIDAgMS0uMzU0LS4xNDZsLS42NDYtLjY0Ny0uNS41LS4xNDYuMTQ3YS41LjUgMCAwIDEtLjM1NC4xNDZIM2EuNS41IDAgMCAxIDAtMWgyLjI5M0w2IDE1Ljc5M1YxMWgtLjVhLjUuNSAwIDAgMSAwLTFINlYzLjcwN0w1Ljc5MyAzLjVabS0uOTE0LjVMNSA0LjEyMXY0Ljk2NGExLjUgMS41IDAgMCAwIDAgMi44M3YzLjQ2NGwtLjEyMS4xMjFIM2ExLjUgMS41IDAgMCAwIDAgM2gyLjVhMS41IDEuNSAwIDAgMCAxLS4zODIgMS41IDEuNSAwIDAgMCAxIC4zODJIMTBhMS41IDEuNSAwIDAgMCAwLTNIOC4xMjFMOCAxNS4zNzl2LTMuNDY0YTEuNSAxLjUgMCAwIDAgMC0yLjgzVjQuMTIxTDguMTIxIDRIMTBhMS41IDEuNSAwIDAgMCAwLTNINy41YTEuNSAxLjUgMCAwIDAtMSAuMzgyQTEuNSAxLjUgMCAwIDAgNS41IDFIM2ExLjUgMS41IDAgMSAwIDAgM2gxLjg3OVoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==) 3 3, text;\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},3230:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const a=s},713:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{background-color:transparent;color:var(--ck-highlight-pen-red)}.ck-content .pen-green{background-color:transparent;color:var(--ck-highlight-pen-green)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBAIC,4BAA6B,CAH7B,iCAID,CALA,uBAIC,4BAA6B,CAH7B,mCAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]);const a=s},9118:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eAGC,kBAA2B,CAC3B,QAAS,CAFT,UAAW,CADX,aAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=s},3403:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-widget.raw-html-embed{display:flow-root;font-style:normal;margin:.9em auto;min-width:15em;position:relative}.ck-widget.raw-html-embed:before{position:absolute;z-index:1}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper{display:flex;flex-direction:column;position:absolute}.ck-widget.raw-html-embed .raw-html-embed__preview{display:flex;overflow:hidden;position:relative}.ck-widget.raw-html-embed .raw-html-embed__preview-content{border-collapse:separate;border-spacing:7px;display:table;margin:auto;position:relative;width:100%}.ck-widget.raw-html-embed .raw-html-embed__preview-placeholder{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}:root{--ck-html-embed-content-width:calc(100% - var(--ck-icon-size)*1.5);--ck-html-embed-source-height:10em;--ck-html-embed-unfocused-outline-width:1px;--ck-html-embed-content-min-height:calc(var(--ck-icon-size) + var(--ck-spacing-standard));--ck-html-embed-source-disabled-background:var(--ck-color-base-foreground);--ck-html-embed-source-disabled-color:#737373}.ck-widget.raw-html-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base)}.ck-widget.raw-html-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.raw-html-embed[dir=ltr]{text-align:left}.ck-widget.raw-html-embed[dir=rtl]{text-align:right}.ck-widget.raw-html-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-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);top:calc(var(--ck-html-embed-unfocused-outline-width)*-1);transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.raw-html-embed[dir=rtl]:before{left:auto;right:var(--ck-spacing-standard)}.ck-widget.raw-html-embed[dir=ltr] .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck.ck-editor__editable.ck-blurred .ck-widget.raw-html-embed.ck-widget_selected:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck.ck-editor__editable:not(.ck-blurred) .ck-widget.raw-html-embed.ck-widget_selected:before{background:var(--ck-color-focus-border);padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck.ck-editor__editable .ck-widget.raw-html-embed:not(.ck-widget_selected):hover:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck-widget.raw-html-embed .raw-html-embed__content-wrapper{padding:var(--ck-spacing-standard)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper{right:var(--ck-spacing-standard);top:var(--ck-spacing-standard)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button.raw-html-embed__save-button{color:var(--ck-color-button-save)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button.raw-html-embed__cancel-button{color:var(--ck-color-button-cancel)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button:not(:first-child){margin-top:var(--ck-spacing-small)}.ck-widget.raw-html-embed[dir=rtl] .raw-html-embed__buttons-wrapper{left:var(--ck-spacing-standard);right:auto}.ck-widget.raw-html-embed .raw-html-embed__source{box-sizing:border-box;direction:ltr;font-family:monospace;font-size:var(--ck-font-size-base);height:var(--ck-html-embed-source-height);min-width:0;padding:var(--ck-spacing-standard);resize:none;tab-size:4;text-align:left;white-space:pre-wrap;width:var(--ck-html-embed-content-width)}.ck-widget.raw-html-embed .raw-html-embed__source[disabled]{-webkit-text-fill-color:var(--ck-html-embed-source-disabled-color);background:var(--ck-html-embed-source-disabled-background);color:var(--ck-html-embed-source-disabled-color);opacity:1}.ck-widget.raw-html-embed .raw-html-embed__preview{min-height:var(--ck-html-embed-content-min-height);width:var(--ck-html-embed-content-width)}.ck-editor__editable:not(.ck-read-only) .ck-widget.raw-html-embed .raw-html-embed__preview{pointer-events:none}.ck-widget.raw-html-embed .raw-html-embed__preview-content{background-color:var(--ck-color-base-foreground);box-sizing:border-box}.ck-widget.raw-html-embed .raw-html-embed__preview-content>*{margin-left:auto;margin-right:auto}.ck-widget.raw-html-embed .raw-html-embed__preview-placeholder{color:var(--ck-html-embed-source-disabled-color)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-html-embed/theme/htmlembed.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-html-embed/htmlembed.css"],names:[],mappings:"AAMA,0BAMC,iBAAkB,CAOlB,iBAAkB,CATlB,gBAAkB,CAMlB,cAAe,CALf,iBAwDD,CA5CC,iCACC,iBAAkB,CAGlB,SACD,CAKA,2DAEC,YAAa,CACb,qBAAsB,CAFtB,iBAGD,CAEA,mDAGC,YAAa,CADb,eAAgB,CADhB,iBAGD,CAEA,2DAOC,wBAAyB,CACzB,kBAAmB,CAFnB,aAAc,CAHd,WAAY,CADZ,iBAAkB,CADlB,UAQD,CAEA,+DAQC,kBAAmB,CAHnB,QAAS,CAET,YAAa,CAEb,sBAAuB,CAPvB,MAAO,CADP,iBAAkB,CAGlB,OAAQ,CADR,KAOD,CC7DD,MACC,kEAAqE,CACrE,kCAAmC,CACnC,2CAA4C,CAC5C,yFAA0F,CAE1F,0EAA2E,CAC3E,6CACD,CAGA,0BAEC,gDAAiD,CADjD,kCA0ID,CAvIC,+DACC,iGACD,CAGA,mCACC,eACD,CAEA,mCACC,gBACD,CAIA,iCAIC,eAA4B,CAG5B,iEAAkE,CAClE,qCAAsC,CAPtC,mCAAoC,CASpC,+BAAgC,CADhC,kCAAmC,CANnC,+BAAgC,CAGhC,kIAAmI,CAJnI,yDAA4D,CAG5D,0GAMD,CAEA,0CACC,SAAU,CACV,gCACD,CAGA,iIACC,gBACD,CAxCD,uFA4CE,sDAAuD,CADvD,KAgGF,CA3IA,6FAkDE,uCAAwC,CADxC,sDAAuD,CADvD,KA2FF,CA3IA,wFAuDE,sDAAuD,CADvD,KAqFF,CA/EC,2DACC,kCACD,CAGA,2DAEC,gCAAiC,CADjC,8BAcD,CAXC,kGACC,iCACD,CAEA,oGACC,mCACD,CAEA,wFACC,kCACD,CAGD,oEACC,+BAAgC,CAChC,UACD,CAGA,kDACC,qBAAsB,CActB,aAAc,CAPd,qBAAsB,CAGtB,kCAAmC,CATnC,yCAA0C,CAG1C,WAAY,CACZ,kCAAmC,CAFnC,WAAY,CAKZ,UAAW,CAKX,eAAgB,CAJhB,oBAAqB,CAPrB,wCAsBD,CARC,4DAKC,kEAAmE,CAJnE,0DAA2D,CAC3D,gDAAiD,CAIjD,SACD,CAID,mDACC,kDAAmD,CACnD,wCAMD,CARA,2FAME,mBAEF,CAEA,2DAEC,gDAAiD,CADjD,qBAOD,CAJC,6DACC,gBAAiB,CACjB,iBACD,CAGD,+DACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The feature container. */\n.ck-widget.raw-html-embed {\n\t/* Give the embed some air. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tposition: relative;\n\tdisplay: flow-root;\n\n\t/* Give the html embed some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (https://github.com/ckeditor/ckeditor5/issues/8331) */\n\tmin-width: 15em;\n\n\t/* Don\'t inherit the style, e.g. when in a block quote. */\n\tfont-style: normal;\n\n\t/* ----- Emebed label in the upper left corner ----------------------------------------------- */\n\n\t&::before {\n\t\tposition: absolute;\n\n\t\t/* Make sure the content does not cover the label. */\n\t\tz-index: 1;\n\t}\n\n\t/* ----- Emebed internals --------------------------------------------------------------------- */\n\n\t/* The switch mode button wrapper. */\n\t& .raw-html-embed__buttons-wrapper {\n\t\tposition: absolute;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t& .raw-html-embed__preview {\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\tdisplay: flex;\n\t}\n\n\t& .raw-html-embed__preview-content {\n\t\twidth: 100%;\n\t\tposition: relative;\n\t\tmargin: auto;\n\n\t\t/* Gives spacing to the small renderable elements, so they always cover the placeholder. */\n\t\tdisplay: table;\n\t\tborder-collapse: separate;\n\t\tborder-spacing: 7px;\n\t}\n\n\t& .raw-html-embed__preview-placeholder {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-html-embed-content-width: calc(100% - 1.5 * var(--ck-icon-size));\n\t--ck-html-embed-source-height: 10em;\n\t--ck-html-embed-unfocused-outline-width: 1px;\n\t--ck-html-embed-content-min-height: calc(var(--ck-icon-size) + var(--ck-spacing-standard));\n\n\t--ck-html-embed-source-disabled-background: var(--ck-color-base-foreground);\n\t--ck-html-embed-source-disabled-color: hsl(0deg 0% 45%);\n}\n\n/* The feature container. */\n.ck-widget.raw-html-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t/* HTML embed widget itself should respect UI language direction */\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* ----- Embed label in the upper left corner ----------------------------------------------- */\n\n\t&::before {\n\t\tcontent: attr(data-html-embed-label);\n\t\ttop: calc(-1 * var(--ck-html-embed-unfocused-outline-width));\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t&[dir="rtl"]::before {\n\t\tleft: auto;\n\t\tright: var(--ck-spacing-standard);\n\t}\n\n\t/* Make space for label but it only collides in LTR languages */\n\t&[dir="ltr"] .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t@nest .ck.ck-editor__editable.ck-blurred &.ck-widget_selected::before {\n\t\ttop: 0px;\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-small);\n\t}\n\n\t@nest .ck.ck-editor__editable:not(.ck-blurred) &.ck-widget_selected::before {\n\t\ttop: 0;\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-small);\n\t\tbackground: var(--ck-color-focus-border);\n\t}\n\n\t@nest .ck.ck-editor__editable &:not(.ck-widget_selected):hover::before {\n\t\ttop: 0px;\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-small);\n\t}\n\n\t/* ----- Emebed internals --------------------------------------------------------------------- */\n\n\t& .raw-html-embed__content-wrapper {\n\t\tpadding: var(--ck-spacing-standard);\n\t}\n\n\t/* The switch mode button wrapper. */\n\t& .raw-html-embed__buttons-wrapper {\n\t\ttop: var(--ck-spacing-standard);\n\t\tright: var(--ck-spacing-standard);\n\n\t\t& .ck-button.raw-html-embed__save-button {\n\t\t\tcolor: var(--ck-color-button-save);\n\t\t}\n\n\t\t& .ck-button.raw-html-embed__cancel-button {\n\t\t\tcolor: var(--ck-color-button-cancel);\n\t\t}\n\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-top: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&[dir="rtl"] .raw-html-embed__buttons-wrapper {\n\t\tleft: var(--ck-spacing-standard);\n\t\tright: auto;\n\t}\n\n\t/* The edit source element. */\n\t& .raw-html-embed__source {\n\t\tbox-sizing: border-box;\n\t\theight: var(--ck-html-embed-source-height);\n\t\twidth: var(--ck-html-embed-content-width);\n\t\tresize: none;\n\t\tmin-width: 0;\n\t\tpadding: var(--ck-spacing-standard);\n\n\t\tfont-family: monospace;\n\t\ttab-size: 4;\n\t\twhite-space: pre-wrap;\n\t\tfont-size: var(--ck-font-size-base); /* Safari needs this. */\n\n\t\t/* HTML code is direction–agnostic. */\n\t\ttext-align: left;\n\t\tdirection: ltr;\n\n\t\t&[disabled] {\n\t\t\tbackground: var(--ck-html-embed-source-disabled-background);\n\t\t\tcolor: var(--ck-html-embed-source-disabled-color);\n\n\t\t\t/* Safari needs this for the proper text color in disabled input (https://github.com/ckeditor/ckeditor5/issues/8320). */\n\t\t\t-webkit-text-fill-color: var(--ck-html-embed-source-disabled-color);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* The preview data container. */\n\t& .raw-html-embed__preview {\n\t\tmin-height: var(--ck-html-embed-content-min-height);\n\t\twidth: var(--ck-html-embed-content-width);\n\n\t\t/* Disable all mouse interaction as long as the editor is not read–only. */\n\t\t@nest .ck-editor__editable:not(.ck-read-only) & {\n\t\t\tpointer-events: none;\n\t\t}\n\t}\n\n\t& .raw-html-embed__preview-content {\n\t\tbox-sizing: border-box;\n\t\tbackground-color: var(--ck-color-base-foreground);\n\n\t\t& > * {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: auto;\n\t\t}\n\t}\n\n\t& .raw-html-embed__preview-placeholder {\n\t\tcolor: var(--ck-html-embed-source-disabled-color)\n\t}\n}\n'],sourceRoot:""}]);const a=s},8468:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n"],sourceRoot:""}]);const a=s},9048:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of <figcaption>.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},8662:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=s},9292:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".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;padding:var(--ck-list-button-padding);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: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-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-url {\n\t& .ck-image-insert-url__action-row {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-image-insert-insert-by-url-width: 250px;\n}\n\n.ck.ck-image-insert-url {\n\t--ck-input-width: 100%;\n\n\t& .ck-image-insert-url__action-row {\n\t\tgrid-column-gap: var(--ck-spacing-large);\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n\n.ck.ck-image-insert-form {\n\t& > .ck.ck-button {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& > .ck.ck-collapsible {\n\t\t&:not(:first-child) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t}\n\n\t/* This is the case when there are no other integrations configured than insert by URL */\n\t& > .ck.ck-image-insert-url {\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t\tpadding: var(--ck-spacing-large);\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n'],sourceRoot:""}]);const a=s},9671:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& img.image_placeholder {\n\t\tbackground-size: 100% 100%;\n\t}\n}\n"],sourceRoot:""}]);const a=s},1043:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const a=s},4622:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9899:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}@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://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const a=s},9825:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const a=s},5870:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}.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://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto   { opacity: 1; }\n}\n"],sourceRoot:""}]);const a=s},6831:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},399:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const a=s},9465:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},4827:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},3858:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+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://./node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const a=s},8676:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const a=s},9989:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},7133:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css","webpack://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},1588:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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%}.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%}.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://./node_modules/@ckeditor/ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,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,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},5777:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const a=s},952:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n   https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n   https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},3525:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},7583:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-mention/mention.css"],names:[],mappings:"AAKA,MACC,+CAAwD,CACxD,+BACD,CAEA,qBACC,6CAA8C,CAC9C,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-mention-background: hsla(341, 100%, 30%, 0.1);\n\t--ck-color-mention-text: hsl(341, 100%, 30%);\n}\n\n.ck-content .mention {\n\tbackground: var(--ck-color-mention-background);\n\tcolor: var(--ck-color-mention-text);\n}\n"],sourceRoot:""}]);const a=s},6391:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-mention-list-max-height: 300px;\n}\n\n.ck.ck-mentions {\n\tmax-height: var(--ck-mention-list-max-height);\n\n\toverflow-y: auto;\n\n\t/* Prevent unnecessary horizontal scrollbar in Safari\n\thttps://github.com/ckeditor/ckeditor5-mention/issues/41 */\n\toverflow-x: hidden;\n\n\toverscroll-behavior: contain;\n\n\t/* Prevent unnecessary vertical scrollbar in Safari\n\thttps://github.com/ckeditor/ckeditor5-mention/issues/41 */\n\t& > .ck-list__item {\n\t\toverflow: hidden;\n\t\tflex-shrink: 0;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6448:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/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,CAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .page-break {\n\tposition: relative;\n\tclear: both;\n\tpadding: 5px 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t&::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tborder-bottom: 2px dashed hsl(0, 0%, 77%);\n\t\twidth: 100%;\n\t}\n}\n\n.ck-content .page-break__label {\n\tposition: relative;\n\tz-index: 1;\n\tpadding: .3em .6em;\n\tdisplay: block;\n\ttext-transform: uppercase;\n\tborder: 1px solid hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\tfont-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\tfont-size: 0.75em;\n\tfont-weight: bold;\n\tcolor: hsl(0, 0%, 20%);\n\tbackground: hsl(0, 0%, 100%);\n\tbox-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);\n\n\t/* Disable the possibility to select the label text by the user. */\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n}\n\n/* Do not show the page break element inside the print preview window. */\n@media print {\n\t.ck-content .page-break {\n\t\tpadding: 0;\n\n\t\t&::after {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},8805:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-pagination-view-line{border-top:1px dotted var(--ck-color-pagination-divider);height:0;pointer-events:none;position:absolute}.ck.ck-pagination-view-line:after{background:#c4c4c4;color:var(--ck-color-base-background);content:attr(data-page-number);display:inline-block;font-size:10px;min-width:18px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:-1px;text-align:center;top:-1px;transform:translateX(100%)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-pagination/theme/line.css"],names:[],mappings:"AASA,4BAGC,wDAAyD,CADzD,QAAS,CAET,mBAAoB,CAHpB,iBAmBD,CAdC,kCAGC,kBAA2B,CAC3B,qCAAsC,CAHtC,8BAA+B,CAI/B,oBAAqB,CAHrB,cAAe,CAOf,cAAe,CAGf,uDAAwD,CANxD,iBAAkB,CAClB,UAAW,CAGX,iBAAkB,CAClB,QAAS,CAHT,0BAKD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-pagination-view-line {\n\tposition: absolute;\n\theight: 0;\n\tborder-top: 1px dotted var(--ck-color-pagination-divider);\n\tpointer-events: none;\n\n\t&::after {\n\t\tcontent: attr(data-page-number);\n\t\tfont-size: 10px;\n\t\tbackground: hsl(0, 0%, 77%);\n\t\tcolor: var(--ck-color-base-background);\n\t\tdisplay: inline-block;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttransform: translateX(100%);\n\t\tmin-width: 18px;\n\t\ttext-align: center;\n\t\ttop: -1px;\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const a=s},3898:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,'.ck.ck-page-navigator{line-height:1;padding:0 var(--ck-spacing-standard)}.ck.ck-page-navigator>.ck-input-number{-moz-appearance:textfield;background:transparent;min-width:var(--ck-ui-component-min-height);text-align:center;width:var(--ck-ui-component-min-height)}.ck.ck-page-navigator>.ck-input-number::-webkit-inner-spin-button,.ck.ck-page-navigator>.ck-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ck.ck-page-navigator>.ck-input-number:not(:focus){border:1px solid transparent;border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-page-navigator>span:before{content:"/";margin:0 var(--ck-spacing-standard)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-pagination/theme/pagenavigator.css"],names:[],mappings:"AAcA,sBAEC,aAAc,CADd,oCA8BD,CA3BC,uCAQC,yBAA0B,CAJ1B,sBAAuB,CAFvB,2CAA4C,CAG5C,iBAAkB,CAJlB,uCAoBD,CAVC,oIAEC,uBAAwB,CACxB,QACD,CAEA,mDACC,4BAA6B,CAC7B,mDACD,CAGD,kCACC,WAAY,CACZ,mCACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css";\n\n.ck.ck-page-navigator {\n\tpadding: 0 var(--ck-spacing-standard);\n\tline-height: 1;\n\n\t& > .ck-input-number {\n\t\twidth: var(--ck-ui-component-min-height);\n\t\tmin-width: var(--ck-ui-component-min-height);\n\n\t\tbackground: transparent;\n\t\ttext-align: center;\n\n\t\t/* Disable native increment/decrement buttons (FF). */\n\t\t-moz-appearance: textfield;\n\n\t\t/* Disable native increment/decrement buttons (Webkit). */\n\t\t&::-webkit-inner-spin-button,\n\t\t&::-webkit-outer-spin-button {\n\t\t\t-webkit-appearance: none;\n\t\t\tmargin: 0;\n\t\t}\n\n\t\t&:not(:focus) {\n\t\t\tborder: 1px solid transparent;\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t\t}\n\t}\n\n\t& > span::before {\n\t\tcontent: \'/\';\n\t\tmargin: 0 var(--ck-spacing-standard);\n\t}\n}\n'],sourceRoot:""}]);const a=s},3857:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-pagination-divider:#ababab}.ck.ck-content:not(.ck-pagination_disabled) .page-break:after,.ck.ck-editor__editable.ck-pagination-view .ck-widget__type-around{display:none}.ck.ck-editor__editable.ck-pagination-view .page-break{break-after:column;display:block;height:0;margin:0;padding:0}.ck.ck-editor__editable.ck-pagination-view .ck-table-column-resizer,.ck.ck-editor__editable.ck-pagination-view .page-break .page-break__label,.ck.ck-editor__editable.ck-pagination-view .page-break:after{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-pagination/theme/pagination.css"],names:[],mappings:"AASA,MACC,qCACD,CAeC,iIACC,YACD,CAEA,uDAGC,kBAAmB,CACnB,aAAc,CACd,QAAS,CAHT,QAAS,CADT,SAcD,CAEA,2MACC,YACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-pagination-divider: hsl(0, 0%, 67%);\n}\n\n/*\n * Content styles.\n */\n\n.ck.ck-content:not(.ck-pagination_disabled) {\n\t& .page-break {\n\t\t&::after {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable.ck-pagination-view {\n\t& .ck-widget__type-around {\n\t\tdisplay: none;\n\t}\n\n\t& .page-break {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tbreak-after: column;\n\t\tdisplay: block;\n\t\theight: 0;\n\n\t\t& .page-break__label {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t&::after {\n\t\t\tdisplay: none;\n\t\t}\n\n\t}\n\n\t& .ck-table-column-resizer {\n\t\tdisplay: none;\n\t}\n}\n"],sourceRoot:""}]);const a=s},9597:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-balloon-panel.ck-tooltip{pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}:root{--ck-color-presence-list-dropdown-background:#fff;--ck-color-presence-list-dropdown-arrow-border:#ebebeb;--ck-presence-list-dropdown-list-max-width:250px;--ck-presence-list-dropdown-list-min-width:180px;--ck-presence-list-users-tooltip-max-width:120px;--ck-presence-list-users-tooltip-min-width:25px}.ck.ck-presence-list{align-items:center;display:flex;font-size:var(--ck-font-size-base);margin-right:var(--ck-spacing-standard);transition:margin-right .2s ease-in-out}.ck.ck-presence-list *{box-sizing:border-box}.ck.ck-presence-list__list{display:flex;justify-content:flex-end}.ck.ck-presence-list__counter{color:var(--ck-color-base-text)}.ck.ck-presence-list__counter--hidden{display:none}.ck.ck-presence-list__list-item{background:none;border:0;color:inherit;font:inherit;margin-left:var(--ck-spacing-standard);outline:none;padding:0;position:relative}.ck.ck-tooltip.ck-presence-list__list-item__tooltip>.ck-tooltip__text{display:inline-block;max-width:var(--ck-presence-list-users-tooltip-max-width);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck.ck-presence-list__marker{display:block;height:3px;margin-top:3px;position:relative;width:100%}.ck-presence-list__balloon button.ck-presence-list__dropdown-list-item *,.ck-presence-list__list button.ck-presence-list__list-item *{cursor:pointer}.ck.ck-presence-list--collapsed .ck-presence-list__list{margin-left:var(--ck-spacing-standard);min-width:calc(var(--ck-user-avatar-size)*1.5)}.ck.ck-presence-list--collapsed .ck-presence-list__list *{cursor:pointer;transition:all .4s ease-in-out}.ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item{margin-left:calc(var(--ck-user-avatar-size)*-1 + 5px)}.ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(5){opacity:.15}.ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(4){opacity:.35}.ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(3){opacity:.55}.ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(2){opacity:.75}.ck.ck-presence-list__balloon{--ck-color-panel-border:var(--ck-color-presence-list-dropdown-arrow-border);--ck-color-panel-background:var(--ck-color-presence-list-dropdown-background);animation:fadeIn .3s ease-in-out;background-color:var(--ck-color-presence-list-dropdown-background);border:0;opacity:1}.ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-wrapper{border-radius:var(--ck-border-radius);max-height:80vh;max-width:var(--ck-presence-list-dropdown-list-max-width);min-width:var(--ck-presence-list-dropdown-list-min-width);overflow-x:hidden;overflow-y:auto}.ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item{align-items:center;background:none;border:0;color:inherit;display:flex;font:inherit;outline:none;padding:var(--ck-spacing-standard);position:relative}.ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item:first-of-type .ck-presence-list__marker{border-top-left-radius:var(--ck-border-radius)}.ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item:last-of-type .ck-presence-list__marker{border-bottom-left-radius:var(--ck-border-radius)}.ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list .ck-user__full-name{color:var(--ck-color-base-text);margin-left:var(--ck-spacing-standard);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list .ck.ck-presence-list__marker{height:100%;left:0;margin:0;position:absolute;width:3px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-real-time-collaboration/theme/presencelist.css"],names:[],mappings:"AAKA,gCAEC,mBAAoB,CAEpB,qCACD,CCCA,MACC,iDAA8D,CAC9D,sDAA+D,CAE/D,gDAAiD,CACjD,gDAAiD,CAEjD,gDAAiD,CACjD,+CACD,CAEA,qBAEC,kBAAmB,CADnB,YAAa,CAIb,kCAAmC,CAFnC,uCAAwC,CACxC,uCAMD,CAHC,uBACC,qBACD,CAGD,2BACC,YAAa,CAGb,wBACD,CAEA,8BACC,+BACD,CAEA,sCACC,YACD,CAEA,gCAUC,eAAgB,CAHhB,QAAS,CADT,aAAc,CADd,YAAa,CAQb,sCAAuC,CAJvC,YAAa,CADb,SAAU,CAIV,iBAED,CAGC,sEACC,oBAAqB,CACrB,yDAA0D,CAC1D,eAAgB,CAChB,iBAAkB,CAClB,sBAAuB,CACvB,kBACD,CAGD,6BAEC,aAAc,CAEd,UAAW,CACX,cAAe,CAJf,iBAAkB,CAElB,UAGD,CAMA,sIAEC,cACD,CAGC,wDAIC,sCAAuC,CAFvC,8CAQD,CAJC,0DACC,cAAe,CACf,8BACD,CAGD,gEAEC,qDAiBD,CAfC,kFACC,WACD,CAEA,kFACC,WACD,CAEA,kFACC,WACD,CAEA,kFACC,WACD,CAIF,8BAEC,2EAA4E,CAC5E,6EAA8E,CAK9E,gCAAmC,CAHnC,kEAAmE,CACnE,QAAS,CACT,SA4DD,CAzDC,0EAQC,qCAAsC,CANtC,eAAgB,CAGhB,yDAA0D,CAD1D,yDAA0D,CAG1D,iBAAkB,CADlB,eAGD,CAEA,uEAYC,kBAAmB,CAHnB,eAAgB,CADhB,QAAS,CAFT,aAAc,CAKd,YAAa,CANb,YAAa,CAEb,YAAa,CAOb,kCAAmC,CADnC,iBAcD,CAVE,+GACC,8CACD,CAIA,8GACC,iDACD,CAKD,sFAIC,+BAAgC,CAChC,sCAAuC,CAHvC,eAAgB,CAChB,sBAAuB,CAFvB,kBAKD,CAEA,+FAIC,WAAY,CAFZ,MAAO,CACP,QAAS,CAFT,iBAAkB,CAIlB,SACD,CAIF,kBACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n","/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import '@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css';\n\n:root {\n\t--ck-color-presence-list-dropdown-background: hsl(0, 0%, 100%);\n\t--ck-color-presence-list-dropdown-arrow-border: hsl(0, 0%, 92%);\n\n\t--ck-presence-list-dropdown-list-max-width: 250px;\n\t--ck-presence-list-dropdown-list-min-width: 180px;\n\n\t--ck-presence-list-users-tooltip-max-width: 120px;\n\t--ck-presence-list-users-tooltip-min-width: 25px;\n}\n\n.ck.ck-presence-list {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin-right: var(--ck-spacing-standard);\n\ttransition: margin-right 200ms ease-in-out;\n\tfont-size: var(--ck-font-size-base);\n\n\t& * {\n\t\tbox-sizing: border-box;\n\t}\n}\n\n.ck.ck-presence-list__list {\n\tdisplay: flex;\n\n\t/* Taking care about margin animation in collapsed mode. */\n\tjustify-content: flex-end;\n}\n\n.ck.ck-presence-list__counter {\n\tcolor: var(--ck-color-base-text);\n}\n\n.ck.ck-presence-list__counter--hidden {\n\tdisplay: none;\n}\n\n.ck.ck-presence-list__list-item {\n\t/**\n\t * Reset default CK5 button styles - `.ck-reset__all *`.\n\t * Reset default user agent button stylesheet too.\n\t */\n\tfont: inherit;\n\tcolor: inherit;\n\tborder: 0;\n\tpadding: 0;\n\toutline: none;\n\tbackground: none;\n\n\tposition: relative;\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-tooltip.ck-presence-list__list-item__tooltip {\n\t& > .ck-tooltip__text {\n\t\tdisplay: inline-block;\n\t\tmax-width: var(--ck-presence-list-users-tooltip-max-width);\n\t\toverflow: hidden;\n\t\ttext-align: center;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n}\n\n.ck.ck-presence-list__marker {\n\tposition: relative;\n\tdisplay: block;\n\twidth: 100%;\n\theight: 3px;\n\tmargin-top: 3px;\n}\n\n/**\n * Add better UX behavior of button to the `clickable` elements.\n * We need to create stronger specificity than `.ck.ck-reset__all *`.\n */\n.ck-presence-list__list button.ck-presence-list__list-item *,\n.ck-presence-list__balloon button.ck-presence-list__dropdown-list-item * {\n\tcursor: pointer;\n}\n\n.ck.ck-presence-list--collapsed {\n\t& .ck-presence-list__list {\n\t\t/* Because of moving avatars to the right with margin-left we need to set min-width of container. */\n\t\tmin-width: calc( var(--ck-user-avatar-size) * 1.5 );\n\n\t\tmargin-left: var(--ck-spacing-standard);\n\n\t\t& * {\n\t\t\tcursor: pointer;\n\t\t\ttransition: all 400ms ease-in-out;\n\t\t}\n\t}\n\n\t& .ck.ck-presence-list__list-item {\n\t\t/* Adding extra px to create collapsed effect. */\n\t\tmargin-left: calc( var(--ck-user-avatar-size) * -1 + 5px);\n\n\t\t&:nth-last-child(5) {\n\t\t\topacity: .15;\n\t\t}\n\n\t\t&:nth-last-child(4) {\n\t\t\topacity: .35;\n\t\t}\n\n\t\t&:nth-last-child(3) {\n\t\t\topacity: .55;\n\t\t}\n\n\t\t&:nth-last-child(2) {\n\t\t\topacity: .75;\n\t\t}\n\t}\n}\n\n.ck.ck-presence-list__balloon {\n\t/* Overwrite arrows background of balloon */\n\t--ck-color-panel-border: var(--ck-color-presence-list-dropdown-arrow-border);\n\t--ck-color-panel-background: var(--ck-color-presence-list-dropdown-background);\n\n\tbackground-color: var(--ck-color-presence-list-dropdown-background);\n\tborder: 0;\n\topacity: 1;\n\tanimation: 300ms fadeIn ease-in-out;\n\n\t& .ck.ck-presence-list__dropdown-list-wrapper {\n\t\t/* Temporary fix, we should rethink max-height of dropdown. */\n\t\tmax-height: 80vh;\n\n\t\tmin-width: var(--ck-presence-list-dropdown-list-min-width);\n\t\tmax-width: var(--ck-presence-list-dropdown-list-max-width);\n\t\toverflow-y: auto;\n\t\toverflow-x: hidden;\n\t\tborder-radius: var(--ck-border-radius);\n\t}\n\n\t& .ck.ck-presence-list__dropdown-list-item {\n\t\t/**\n\t\t * Reset default CK5 button styles - `.ck-reset__all *`.\n\t\t * Reset default user agent button stylesheet too.\n\t\t */\n\t\tfont: inherit;\n\t\tcolor: inherit;\n\t\toutline: none;\n\t\tborder: 0;\n\t\tbackground: none;\n\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tposition: relative;\n\t\tpadding: var(--ck-spacing-standard);\n\n\t\t&:first-of-type {\n\t\t\t& .ck-presence-list__marker {\n\t\t\t\tborder-top-left-radius: var(--ck-border-radius);\n\t\t\t}\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\t& .ck-presence-list__marker {\n\t\t\t\tborder-bottom-left-radius: var(--ck-border-radius);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-presence-list__dropdown-list {\n\t\t& .ck-user__full-name {\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcolor: var(--ck-color-base-text);\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\n\t\t& .ck.ck-presence-list__marker {\n\t\t\tposition: absolute;\n\t\t\tleft: 0;\n\t\t\tmargin: 0;\n\t\t\theight: 100%;\n\t\t\twidth: 3px;\n\t\t}\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8659:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck .ck-user__marker-dot{border-radius:50%;cursor:default;display:block;height:var(--ck-user-dot-size);left:50%;position:absolute;top:calc((var(--ck-user-dot-size)/2)*-1);transform:translate(-50%,-50%);width:var(--ck-user-dot-size)}.ck .ck-user__marker{cursor:default;display:inline;position:relative}.ck .ck-user__marker:after{color:#fff;content:attr(data-name);display:none;font-family:Georgia,sans-serif;font-size:var(--ck-font-size-base);font-style:normal;font-weight:400;left:0;line-height:1;opacity:0;padding:var(--ck-spacing-small);position:absolute;top:-20px;transition:opacity .2s linear,transform .3s ease-in-out;white-space:nowrap;z-index:99999}.ck .ck-user__marker:hover .ck-user__marker-dot{width:0}.ck .ck-user__marker:hover:after{animation:fadeInLeft .3s ease-in-out;display:block;opacity:1}.ck .ck-user__marker-line{bottom:0;height:100%;position:absolute;width:0}.ck .ck-placeholder .ck-user__marker{display:none}@keyframes fadeInLeft{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-real-time-collaboration/theme/usermarkers.css"],names:[],mappings:"AASA,yBAWC,iBAAkB,CAElB,cAAe,CAXf,aAAc,CAQd,8BAA+B,CAN/B,QAAS,CADT,iBAAkB,CAIlB,wCAAiD,CAKjD,8BAAkC,CAHlC,6BAKD,CAEA,qBAGC,cAAe,CAFf,cAAe,CACf,iBA2CD,CAxCC,2BAuBC,UAAuB,CAtBvB,uBAA0B,CAC1B,YAAa,CAIb,8BAAgC,CAGhC,kCAAmC,CAInC,iBAAmB,CACnB,eAAoB,CAEpB,MAAO,CAJP,aAAc,CAKd,SAAU,CAKV,+BAAgC,CAnBhC,iBAAkB,CAiBlB,SAAU,CAKV,uDAA6D,CAD7D,kBAAmB,CAEnB,aACD,CAGC,gDACC,OACD,CAEA,iCAGC,oCAAuC,CAFvC,aAAc,CACd,SAED,CAIF,0BAGC,QAAS,CACT,WAAY,CAFZ,iBAAkB,CAGlB,OACD,CAGC,qCACC,YACD,CAGD,sBACC,GACC,SAAU,CACV,2BACD,CACA,GACC,SAAU,CACV,uBACD,CACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-user__marker-dot {\n\t/* If you are looking for handling dot color, see `usercolors.css` in the `ckeditor5-collaboration-core`. */\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 50%;\n\n\t/* #124 */\n\ttop: calc( ( var(--ck-user-dot-size) / 2 ) * -1 );\n\n\twidth: var(--ck-user-dot-size);\n\theight: var(--ck-user-dot-size);\n\tborder-radius: 50%;\n\ttransform: translate( -50%, -50% );\n\tcursor: default;\n}\n\n.ck .ck-user__marker {\n\tdisplay: inline;\n\tposition: relative;\n\tcursor: default;\n\n\t&::after {\n\t\tcontent: attr( data-name );\n\t\tdisplay: none;\n\t\tposition: absolute;\n\n\t\t/* It should be one font in case of inheriting (example: headers sans-serif and content serif type). */\n\t\tfont-family: Georgia, sans-serif;\n\n\t\t/* It should be px value in case of inheriting (like headers example). */\n\t\tfont-size: var(--ck-font-size-base);\n\n\t\t/* In case of inheriting from various components. */\n\t\tline-height: 1;\n\t\tfont-style: initial;\n\t\tfont-weight: initial;\n\n\t\tleft: 0;\n\t\topacity: 0;\n\n\t\t/* Moving up this element with 100% of its height. */\n\t\ttop: -20px;\n\n\t\tpadding: var(--ck-spacing-small);\n\t\tcolor: hsl(0, 0%, 100%);\n\t\twhite-space: nowrap;\n\t\ttransition: opacity 200ms linear, transform 300ms ease-in-out;\n\t\tz-index: 99999;\n\t}\n\n\t&:hover {\n\t\t& .ck-user__marker-dot {\n\t\t\twidth: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\topacity: 1;\n\t\t\tanimation: fadeInLeft 300ms ease-in-out;\n\t\t}\n\t}\n}\n\n.ck .ck-user__marker-line {\n\t/* If you are looking for handling line color, see `usercolors.css` in the `ckeditor5-collaboration-core`. */\n\tposition: absolute;\n\tbottom: 0;\n\theight: 100%;\n\twidth: 0;\n}\n\n.ck .ck-placeholder {\n\t& .ck-user__marker {\n\t\tdisplay: none;\n\t}\n}\n\n@keyframes fadeInLeft {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateX( -10px );\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateX( 0 );\n\t}\n}\n"],sourceRoot:""}]);const a=s},2353:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-color-restricted-editing-exception-background:rgba(255,169,77,.2);--ck-color-restricted-editing-exception-hover-background:rgba(255,169,77,.35);--ck-color-restricted-editing-exception-brackets:rgba(204,105,0,.4);--ck-color-restricted-editing-selected-exception-background:rgba(255,169,77,.5);--ck-color-restricted-editing-selected-exception-brackets:rgba(204,105,0,.6)}.ck-editor__editable .restricted-editing-exception{background-color:var(--ck-color-restricted-editing-exception-background);border:1px solid;border-image:linear-gradient(to right,var(--ck-color-restricted-editing-exception-brackets) 0,var(--ck-color-restricted-editing-exception-brackets) 5px,transparent 6px,transparent calc(100% - 6px),var(--ck-color-restricted-editing-exception-brackets) calc(100% - 5px),var(--ck-color-restricted-editing-exception-brackets) 100%) 1;transition:background .2s ease-in-out}.ck-editor__editable .restricted-editing-exception.restricted-editing-exception_selected{background-color:var(--ck-color-restricted-editing-selected-exception-background);border-image:linear-gradient(to right,var(--ck-color-restricted-editing-selected-exception-brackets) 0,var(--ck-color-restricted-editing-selected-exception-brackets) 5px,var(--ck-color-restricted-editing-selected-exception-brackets) calc(100% - 5px),var(--ck-color-restricted-editing-selected-exception-brackets) 100%) 1}.ck-editor__editable .restricted-editing-exception.restricted-editing-exception_collapsed{padding-left:1ch}.ck-restricted-editing_mode_restricted,.ck-restricted-editing_mode_restricted *{cursor:default}.ck-restricted-editing_mode_restricted .restricted-editing-exception,.ck-restricted-editing_mode_restricted .restricted-editing-exception *{cursor:text}.ck-restricted-editing_mode_restricted .restricted-editing-exception:hover{background:var(--ck-color-restricted-editing-exception-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-restricted-editing/restrictedediting.css"],names:[],mappings:"AAKA,MACC,sEAA2E,CAC3E,6EAAkF,CAClF,mEAAyE,CACzE,+EAAoF,CACpF,4EACD,CAEA,mDAEC,wEAAyE,CACzE,gBAAiB,CACjB,yUAQG,CAXH,qCA4BD,CAfC,yFACC,iFAAkF,CAClF,gUAOD,CAEA,0FAEC,gBACD,CAQA,gFACC,cACD,CAKC,4IACC,WACD,CAEA,2EACC,wEACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-restricted-editing-exception-background: hsla(31, 100%, 65%, .2);\n\t--ck-color-restricted-editing-exception-hover-background: hsla(31, 100%, 65%, .35);\n\t--ck-color-restricted-editing-exception-brackets: hsla(31, 100%, 40%, .4);\n\t--ck-color-restricted-editing-selected-exception-background: hsla(31, 100%, 65%, .5);\n\t--ck-color-restricted-editing-selected-exception-brackets: hsla(31, 100%, 40%, .6);\n}\n\n.ck-editor__editable .restricted-editing-exception {\n\ttransition: .2s ease-in-out background;\n\tbackground-color: var(--ck-color-restricted-editing-exception-background);\n\tborder: 1px solid;\n\tborder-image: linear-gradient(\n\t\tto right,\n\t\tvar(--ck-color-restricted-editing-exception-brackets) 0%,\n\t\tvar(--ck-color-restricted-editing-exception-brackets) 5px,\n\t\thsla(0, 0%, 0%, 0) 6px,\n\t\thsla(0, 0%, 0%, 0) calc(100% - 6px),\n\t\tvar(--ck-color-restricted-editing-exception-brackets) calc(100% - 5px),\n\t\tvar(--ck-color-restricted-editing-exception-brackets) 100%\n\t) 1;\n\n\t&.restricted-editing-exception_selected {\n\t\tbackground-color: var(--ck-color-restricted-editing-selected-exception-background);\n\t\tborder-image: linear-gradient(\n\t\t\tto right,\n\t\t\tvar(--ck-color-restricted-editing-selected-exception-brackets) 0%,\n\t\t\tvar(--ck-color-restricted-editing-selected-exception-brackets) 5px,\n\t\t\tvar(--ck-color-restricted-editing-selected-exception-brackets) calc(100% - 5px),\n\t\t\tvar(--ck-color-restricted-editing-selected-exception-brackets) 100%\n\t\t) 1;\n\t}\n\n\t&.restricted-editing-exception_collapsed {\n\t\t/* Empty exception should have the same width as exception with at least 1 char */\n\t\tpadding-left: 1ch;\n\t}\n}\n\n.ck-restricted-editing_mode_restricted {\n\tcursor: default;\n\n\t/* We also have to override all elements inside the restricted editable to prevent cursor switching between default and text\n\tduring the pointer movement. */\n\t& * {\n\t\tcursor: default;\n\t}\n\n\t& .restricted-editing-exception {\n\t\tcursor: text;\n\n\t\t& * {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-restricted-editing-exception-hover-background);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9313:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation{align-items:center;display:flex;margin-left:auto}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__wrapper{display:flex;margin-right:var(--ck-spacing-standard)}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__label{font-weight:700;white-space:pre}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__navigation{margin-left:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/changesnavigation.css"],names:[],mappings:"AASA,sEAEC,kBAAmB,CADnB,YAAa,CAEb,gBAeD,CAbC,2HACC,YAAa,CACb,uCACD,CAEA,yHACC,eAAiB,CACjB,eACD,CAEA,8HACC,mCACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin-left: auto;\n\n\t& .ck-revision-history-ui__changes-navigation__wrapper {\n\t\tdisplay: flex;\n\t\tmargin-right: var(--ck-spacing-standard);\n\t}\n\n\t& .ck-revision-history-ui__changes-navigation__label {\n\t\tfont-weight: bold;\n\t\twhite-space: pre;\n\t}\n\n\t& .ck-revision-history-ui__changes-navigation__navigation {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n"],sourceRoot:""}]);const a=s},1845:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck{--ck-revision-history-revision-background-color:var(--ck-color-base-background);--ck-revision-history-revision-border-color:#47576b;--ck-revision-history-revision-box-shadow:0 1px 1px 1px #e6e6e6;--ck-revision-history-revision-author-icon-offset:20px;--ck-revision-history-revision-transitions:background 100ms ease-in,border 100ms ease-in;--ck-revision-history-revision-selected-text-color:var(--ck-color-base-background);--ck-revision-history-revision-selected-input-text-color-empty:var(--ck-color-base-background);--ck-revision-history-revision-selected-background-color:var(--ck-color-base-active);--ck-revision-history-revision-highlighted-background-color:#e0f1ff;--ck-revision-history-revision-highlighted-background-color-hover:#cce7ff;--ck-revision-history-revision-delete-confirmation-background:#fcc;--ck-revision-history-revision-delete-confirmation-active-button-background:#ffb3b3}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision{background:var(--ck-revision-history-revision-background-color);border-left:3px solid var(--ck-revision-history-revision-border-color);border-radius:var(--ck-border-radius);box-shadow:var(--ck-revision-history-revision-box-shadow);display:block;padding:var(--ck-spacing-large) calc(var(--ck-spacing-standard)*2);position:relative;transition:transform .3s ease;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision:last-child{margin-bottom:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__date{display:block;font-size:var(--ck-font-size-small);font-weight:700;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__controls-wrapper{align-items:flex-start;display:flex;flex-direction:row;margin:var(--ck-spacing-standard) 0 0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision-authors{flex:0 1 auto;margin:0 0 0 var(--ck-revision-history-revision-author-icon-offset);min-width:0;padding:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted,.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected{border-bottom-left-radius:0;border-left-color:transparent;border-top-left-radius:0;transform:translateX(calc(var(--ck-revision-history-sidebar-timeline-padding)*-1))}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected{background:var(--ck-revision-history-revision-selected-background-color);color:var(--ck-revision-history-revision-selected-text-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision-name .ck-input{color:var(--ck-revision-history-revision-selected-text-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision-name .ck-input.ck-input-text_empty::placeholder{opacity:.7}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted{background:var(--ck-revision-history-revision-highlighted-background-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__actions_dropdown_open{z-index:var(--ck-z-default)}.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision{box-shadow:none;position:relative;transform:translate3d(-100%,0,0)}.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision,.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision *{--ck-revision-history-revision-background-color:transparent;--ck-revision-history-revision-selected-background-color:transparent;--ck-revision-history-revision-highlighted-background-color:transparent}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm{align-items:center;background:var(--ck-revision-history-revision-delete-confirmation-background);border-radius:var(--ck-border-radius);box-shadow:var(--ck-revision-history-revision-box-shadow);display:flex;flex-direction:row;height:100%;justify-content:space-around;left:100%;position:absolute;top:0;user-select:none;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner{margin-top:var(--ck-spacing-small);text-align:center}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner p{color:var(--ck-color-text);font-weight:700;margin:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions{display:flex;flex-direction:row;justify-content:space-evenly}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:active,.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:focus,.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:hover{background:var(--ck-revision-history-revision-delete-confirmation-active-button-background)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button.ck-thread__remove-confirm-submit{color:var(--ck-color-button-save)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button.ck-thread__remove-confirm-cancel{color:var(--ck-color-button-cancel)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__subrevisions{margin-left:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revision/revision.css"],names:[],mappings:"AASA,IACC,+EAAgF,CAChF,mDAAgE,CAChE,+DAAyE,CACzE,sDAAuD,CACvD,wFAA0F,CAC1F,kFAAmF,CACnF,8FAA+F,CAC/F,oFAAqF,CACrF,mEAAiF,CACjF,yEAAuF,CACvF,kEAAiF,CACjF,mFACD,CAGC,yFAGC,+DAAgE,CAIhE,sEAAuE,CADvE,qCAAsC,CAEtC,yDAA0D,CAN1D,aAAc,CAGd,kEAAqE,CAJrE,iBAAkB,CAUlB,6BAA8B,CAF9B,UAgED,CA5DC,oGACC,eACD,CAEA,sIACC,aAAc,CACd,mCAAoC,CACpC,eAAiB,CACjB,UAAW,CACX,eAAgB,CAChB,sBAAuB,CAEvB,kBAAmB,CADnB,UAGD,CAEA,kJAGC,sBAAuB,CAFvB,YAAa,CACb,kBAAmB,CAEnB,qCACD,CAEA,wIAGC,aAAc,CADd,mEAAoE,CAEpE,WAAY,CAHZ,SAID,CAEA,mRAKC,2BAA4B,CAH5B,6BAA8B,CAE9B,wBAAyB,CADzB,kFAGD,CAEA,wIACC,wEAAyE,CACzE,6DAWD,CATC,8LACC,6DAOD,CAHC,+NACC,UACD,CAIF,2IACC,2EACD,CAEA,4IACC,2BACD,CAKA,4JACC,eAAgB,CAChB,iBAAkB,CAClB,gCAOD,CALC,0TACC,2DAA4D,CAC5D,oEAAqE,CACrE,uEACD,CAKF,6EAIC,kBAAmB,CAUnB,6EAA8E,CAF9E,qCAAsC,CACtC,yDAA0D,CAZ1D,YAAa,CACb,kBAAmB,CAQnB,WAAY,CAPZ,4BAA6B,CAK7B,SAAU,CAFV,iBAAkB,CAClB,KAAM,CAQN,gBAAiB,CANjB,UAwCD,CAhCC,8GAEC,kCAAmC,CADnC,iBA8BD,CA1BC,gHAGC,0BAA2B,CAD3B,eAAiB,CADjB,QAGD,CAGA,iJACC,YAAa,CACb,kBAAmB,CACnB,4BAeD,CAZE,gfACC,2FACD,CAEA,gMACC,iCACD,CAEA,gMACC,mCACD,CAMJ,6FACC,mCACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck {\n\t--ck-revision-history-revision-background-color: var(--ck-color-base-background);\n\t--ck-revision-history-revision-border-color: hsl(213deg 20% 35%);\n\t--ck-revision-history-revision-box-shadow: 0 1px 1px 1px hsl(0deg 0% 90%);\n\t--ck-revision-history-revision-author-icon-offset: 20px;\n\t--ck-revision-history-revision-transitions: background 100ms ease-in, border 100ms ease-in;\n\t--ck-revision-history-revision-selected-text-color: var(--ck-color-base-background);\n\t--ck-revision-history-revision-selected-input-text-color-empty: var(--ck-color-base-background);\n\t--ck-revision-history-revision-selected-background-color: var(--ck-color-base-active);\n\t--ck-revision-history-revision-highlighted-background-color: hsl(208deg 100% 94%);\n\t--ck-revision-history-revision-highlighted-background-color-hover: hsl(208deg 100% 90%);\n\t--ck-revision-history-revision-delete-confirmation-background: hsl(0deg 100% 90%);\n\t--ck-revision-history-revision-delete-confirmation-active-button-background: hsl(0deg 100% 85%);\n}\n\n.ck.ck-revision-history-sidebar__revision-wrapper {\n\t& .ck-revision-history-sidebar__revision {\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tbackground: var(--ck-revision-history-revision-background-color);\n\n\t\tpadding: var(--ck-spacing-large) calc(2 * var(--ck-spacing-standard));\n\t\tborder-radius: var(--ck-border-radius);\n\t\tborder-left: 3px solid var(--ck-revision-history-revision-border-color);\n\t\tbox-shadow: var(--ck-revision-history-revision-box-shadow);\n\t\twidth: 100%;\n\t\t/*transition: var(--ck-revision-history-revision-transitions), transform .3s ease-in-out;*/\n\t\ttransition: transform .3s ease;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t& .ck-revision-history-sidebar__revision__date {\n\t\t\tdisplay: block;\n\t\t\tfont-size: var(--ck-font-size-small);\n\t\t\tfont-weight: bold;\n\t\t\topacity: .8;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twidth: 100%;\n\t\t\twhite-space: nowrap;\n\t\t\t/*transition: var(--ck-revision-history-revision-transitions);*/\n\t\t}\n\n\t\t& .ck-revision-history-sidebar__revision__controls-wrapper {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\talign-items: flex-start;\n\t\t\tmargin: var(--ck-spacing-standard) 0 0;\n\t\t}\n\n\t\t& .ck-revision-history-sidebar__revision-authors {\n\t\t\tpadding: 0;\n\t\t\tmargin: 0 0 0 var(--ck-revision-history-revision-author-icon-offset);\n\t\t\tflex: 0 1 auto;\n\t\t\tmin-width: 0;\n\t\t}\n\n\t\t&.ck-revision-history-sidebar__revision_selected,\n\t\t&.ck-revision-history-sidebar__revision_highlighted {\n\t\t\tborder-left-color: transparent;\n\t\t\ttransform: translateX(calc(-1 * var(--ck-revision-history-sidebar-timeline-padding)));\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t&.ck-revision-history-sidebar__revision_selected {\n\t\t\tbackground: var(--ck-revision-history-revision-selected-background-color);\n\t\t\tcolor: var(--ck-revision-history-revision-selected-text-color);\n\n\t\t\t& .ck-revision-history-sidebar__revision-name .ck-input {\n\t\t\t\tcolor: var(--ck-revision-history-revision-selected-text-color);\n\n\t\t\t\t/* The placeholder displays the date but without a different opacity it would not be unclear\n\t\t\t\twhether this is an actual input value or not */\n\t\t\t\t&.ck-input-text_empty::placeholder {\n\t\t\t\t\topacity: .7;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-revision-history-sidebar__revision_highlighted {\n\t\t\tbackground: var(--ck-revision-history-revision-highlighted-background-color);\n\t\t}\n\n\t\t&.ck-revision-history-sidebar__actions_dropdown_open {\n\t\t\tz-index: var(--ck-z-default);\n\t\t}\n\t}\n\n\t/* Slide the revision to the left when the delete confirmation prompt shows up. */\n\t&.ck-revision-history-sidebar__revision-wrapper_confirmation_visible {\n\t\t& .ck-revision-history-sidebar__revision {\n\t\t\tbox-shadow: none;\n\t\t\tposition: relative;\n\t\t\ttransform: translate3d( -100%, 0, 0 );\n\n\t\t\t&, & * {\n\t\t\t\t--ck-revision-history-revision-background-color: transparent;\n\t\t\t\t--ck-revision-history-revision-selected-background-color: transparent;\n\t\t\t\t--ck-revision-history-revision-highlighted-background-color: transparent;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* A confirmation that shows up when attempting to delete a revision */\n\t& .ck-thread__remove-confirm {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: space-around;\n\t\talign-items: center;\n\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 100%;\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\tborder-radius: var(--ck-border-radius);\n\t\tbox-shadow: var(--ck-revision-history-revision-box-shadow);\n\t\tbackground: var(--ck-revision-history-revision-delete-confirmation-background);\n\t\tuser-select: none;\n\n\t\t& .ck-thread__remove-confirm-inner {\n\t\t\ttext-align: center;\n\t\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t\t/* Confirmation message */\n\t\t\t& p {\n\t\t\t\tmargin: 0;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tcolor: var(--ck-color-text);\n\t\t\t}\n\n\t\t\t/* Confirmation buttons */\n\t\t\t& .ck-thread__remove-confirm-actions {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: row;\n\t\t\t\tjustify-content: space-evenly;\n\n\t\t\t\t& .ck.ck-button {\n\t\t\t\t\t&:hover, &:focus, &:active {\n\t\t\t\t\t\tbackground: var(--ck-revision-history-revision-delete-confirmation-active-button-background);\n\t\t\t\t\t}\n\n\t\t\t\t\t&.ck-thread__remove-confirm-submit {\n\t\t\t\t\t\tcolor: var(--ck-color-button-save);\n\t\t\t\t\t}\n\n\t\t\t\t\t&.ck-thread__remove-confirm-cancel {\n\t\t\t\t\t\tcolor: var(--ck-color-button-cancel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck-revision-history-sidebar__subrevisions {\n\t\tmargin-left: var(--ck-spacing-large);\n\t}\n}\n"],sourceRoot:""}]);const a=s},9536:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions{display:none;position:absolute;right:var(--ck-spacing-small);top:var(--ck-spacing-small)}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__button{min-height:unset;min-width:unset}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__button .ck-button__icon{transform:scale(.7)}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__arrow{display:none}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-list__item__danger{color:var(--ck-color-button-cancel)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button{color:var(--ck-color-base-background)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover{background:var(--ck-color-base-active-focus)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on:hover,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover:hover{filter:brightness(95%)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover{background:var(--ck-revision-history-revision-highlighted-background-color-hover)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on:hover,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover:hover{filter:brightness(95%)}.ck.ck-revision-history-sidebar__revision:hover:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions,.ck.ck-revision-history-sidebar__revision:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions.ck-on{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revision/revisionactions.css"],names:[],mappings:"AAWE,0FACC,YAAa,CACb,iBAAkB,CAElB,6BAA8B,CAD9B,2BAmBD,CAhBC,+GAEC,gBAAiB,CADjB,eAMD,CAHC,gIACC,mBACD,CAGD,8GACC,YACD,CAEA,iHACC,mCACD,CAKC,8JACC,qCAUD,CARC,wUAEC,4CAKD,CAHC,oVACC,sBACD,CAUD,8UAEC,iFAKD,CAHC,0VACC,sBACD,CAOJ,oOAEC,aACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck {\n\t&.ck-revision-history-sidebar__revision {\n\t\t& .ck-revision-history-sidebar__revision__actions {\n\t\t\tdisplay: none;\n\t\t\tposition: absolute;\n\t\t\ttop: var(--ck-spacing-small);\n\t\t\tright: var(--ck-spacing-small);\n\n\t\t\t& .ck-dropdown__button {\n\t\t\t\tmin-width: unset;\n\t\t\t\tmin-height: unset;\n\n\t\t\t\t& .ck-button__icon {\n\t\t\t\t\ttransform: scale( .7 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-dropdown__arrow {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t& .ck-list__item__danger {\n\t\t\t\tcolor: var(--ck-color-button-cancel);\n\t\t\t}\n\t\t}\n\n\t\t&.ck-revision-history-sidebar__revision_selected {\n\t\t\t& .ck-revision-history-sidebar__revision__actions {\n\t\t\t\t& .ck-dropdown__button {\n\t\t\t\t\tcolor: var(--ck-color-base-background);\n\n\t\t\t\t\t&:hover,\n\t\t\t\t\t&.ck-on {\n\t\t\t\t\t\tbackground: var(--ck-color-base-active-focus);\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\tfilter: brightness(95%);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* stylelint-disable no-descending-specificity */\n\t\t&.ck-revision-history-sidebar__revision_highlighted {\n\t\t\t& .ck-revision-history-sidebar__revision__actions {\n\t\t\t\t& .ck-dropdown__button {\n\t\t\t\t\t&:hover,\n\t\t\t\t\t&.ck-on {\n\t\t\t\t\t\tbackground: var(--ck-revision-history-revision-highlighted-background-color-hover);\n\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\tfilter: brightness(95%);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/* stylelint-enable no-descending-specificity */\n\n\t\t&:hover:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions,\n\t\t&:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions.ck-on {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},8152:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-revision-history-sidebar__revision-author{display:block;position:relative;transition:var(--ck-revision-history-revision-transitions)}.ck.ck-revision-history-sidebar__revision-author .ck-revision-history-sidebar__revision-author__name{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ck.ck-revision-history-sidebar__revision-author .ck-icon{height:10px;left:calc(var(--ck-revision-history-revision-author-icon-offset)*-1);position:absolute;top:3px;width:11px}.ck.ck-revision-history-sidebar__revision-author:not(:first-of-type) .ck-icon{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revision/revisionauthor.css"],names:[],mappings:"AASA,iDACC,aAAc,CACd,iBAAkB,CAClB,0DAuBD,CArBC,qGAKC,aAAc,CACd,eAAiB,CALjB,eAAgB,CAChB,sBAAuB,CAEvB,kBAAmB,CADnB,UAID,CAEA,0DAMC,WAAY,CAJZ,oEAAuE,CADvE,iBAAkB,CAElB,OAAQ,CAER,UAED,CAEA,8EACC,YACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-revision-history-sidebar__revision-author {\n\tdisplay: block;\n\tposition: relative;\n\ttransition: var(--ck-revision-history-revision-transitions);\n\n\t& .ck-revision-history-sidebar__revision-author__name {\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twidth: 100%;\n\t\twhite-space: nowrap;\n\t\tdisplay: block;\n\t\tfont-weight: bold;\n\t}\n\n\t& .ck-icon {\n\t\tposition: absolute;\n\t\tleft: calc(-1 * var(--ck-revision-history-revision-author-icon-offset));\n\t\ttop: 3px;\n\n\t\twidth: 11px;\n\t\theight: 10px;\n\t}\n\n\t&:not(:first-of-type) .ck-icon {\n\t\tdisplay: none;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8856:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-revision-history-sidebar__revision-name{display:block;font-size:1.2em;font-weight:700;left:calc(var(--ck-spacing-small)*-1);margin-right:30px;position:relative}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-label{display:none}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input{background:transparent;border-radius:var(--ck-border-radius);color:inherit;font-family:inherit;font-size:var(--ck-font-size-normal);font-weight:700;min-height:auto;min-width:auto;padding:var(--ck-spacing-tiny) var(--ck-spacing-small);transition:var(--ck-revision-history-revision-transitions);width:100%}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input,.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input:focus,.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input[readonly]{background:transparent}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input:not(.ck-input_focused){border-color:transparent}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input::placeholder{color:inherit}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input[readonly]{pointer-events:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revision/revisionname.css"],names:[],mappings:"AASA,+CACC,aAAc,CACd,eAAgB,CAChB,eAAiB,CAEjB,qCAAwC,CACxC,iBAAkB,CAFlB,iBA4CD,CAvCE,+FACC,YACD,CAEA,+FAWC,sBAAuB,CAFvB,qCAAsC,CANtC,aAAc,CACd,mBAAoB,CAEpB,oCAAqC,CADrC,eAAiB,CAHjB,eAAgB,CAKhB,cAAe,CANf,sDAAuD,CASvD,0DAA2D,CAF3D,UAyBD,CApBC,6SACC,sBACD,CAEA,sHAGC,wBACD,CAEA,4GAGC,aACD,CAGA,yGACC,mBACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-revision-history-sidebar__revision-name {\n\tdisplay: block;\n\tfont-size: 1.2em;\n\tfont-weight: bold;\n\tposition: relative;\n\tleft: calc(-1 * var(--ck-spacing-small));\n\tmargin-right: 30px;\n\n\t& > .ck-labeled-field-view__input-wrapper {\n\t\t& > .ck-label {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-input {\n\t\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-small);\n\t\t\tmin-height: auto;\n\t\t\tcolor: inherit;\n\t\t\tfont-family: inherit;\n\t\t\tfont-weight: bold;\n\t\t\tfont-size: var(--ck-font-size-normal);\n\t\t\tmin-width: auto;\n\t\t\twidth: 100%;\n\t\t\tborder-radius: var(--ck-border-radius);\n\t\t\ttransition: var(--ck-revision-history-revision-transitions);\n\t\t\tbackground: transparent;\n\n\t\t\t&, &:focus, &[readonly] {\n\t\t\t\tbackground: transparent;\n\t\t\t}\n\n\t\t\t&:not(.ck-input_focused) {\n\t\t\t\t/* Only when the input is focused, it should look like an input. By default, it should not be obvious\n\t\t\t\tthat revision names are inputs. */\n\t\t\t\tborder-color: transparent;\n\t\t\t}\n\n\t\t\t&::placeholder {\n\t\t\t\t/* The placeholder should be transparent to the users. When there is no name (whis is not mandatory),\n\t\t\t\tthe date is displayed instead of a name and it should look like this is normal. */\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\n\t\t\t/* Don't put the selection in the revision name when clicking an unselected revision. This is annoying. */\n\t\t\t&[readonly] {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},2148:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-revision-history-save-revision-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-revision-history-save-revision-form .ck-labeled-field-view{display:inline-block}.ck.ck-revision-history-save-revision-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-revision-history-save-revision-form{flex-wrap:wrap}.ck.ck-revision-history-save-revision-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-revision-history-save-revision-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revisionhistorysaverevisionform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAWA,2CAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,kEACC,oBACD,CAEA,qDACC,YACD,CCjBA,oCDKD,2CAeE,cAUF,CARE,kEACC,eACD,CAEA,sDACC,cACD,CC1BD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-revision-history-save-revision-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},4708:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck{--ck-revision-history-sidebar-period-background:#ff5724;--ck-revision-history-sidebar-timeline-padding:var(--ck-spacing-large)}.ck.ck-revision-history-sidebar{display:flex;flex-direction:column}.ck.ck-revision-history-sidebar .ck-revision-history-sidebar__timeline{align-items:start;display:flex;flex-direction:column;font-size:var(--ck-font-size-base);height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--ck-revision-history-sidebar-timeline-padding)}.ck.ck-revision-history-sidebar .ck-revision-history-sidebar__timeline.ck-disabled{filter:grayscale(1) opacity(var(--ck-disabled-opacity))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revisionssidebar/revisionssidebar.css"],names:[],mappings:"AASA,IACC,uDAAoE,CACpE,sEACD,CAEA,gCACC,YAAa,CACb,qBAqBD,CAnBC,uEAGC,iBAAkB,CAFlB,YAAa,CACb,qBAAsB,CAGtB,kCAAmC,CAEnC,WAAY,CAMZ,iBAAkB,CAPlB,eAAgB,CAFhB,2DAcD,CAHC,mFACC,uDACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck {\n\t--ck-revision-history-sidebar-period-background: hsl(14deg 100% 57%);\n\t--ck-revision-history-sidebar-timeline-padding: var(--ck-spacing-large);\n}\n\n.ck.ck-revision-history-sidebar {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-revision-history-sidebar__timeline {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: start;\n\t\tpadding: var(--ck-revision-history-sidebar-timeline-padding);\n\t\tfont-size: var(--ck-font-size-base);\n\t\toverflow-y: auto;\n\t\theight: 100%;\n\n\t\t/*\n\t\t * Required for the revision delete confirmation slide-to-the-left effect.\n\t\t * Without it, a h-scroll shows up for a while\n\t\t */\n\t\toverflow-x: hidden;\n\n\t\t&.ck-disabled {\n\t\t\tfilter: grayscale(1) opacity(var(--ck-disabled-opacity));\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},8769:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-revision-history-sidebar__header{--header-height:calc(var(--ck-ui-component-min-height) + var(--ck-spacing-small)*2 + 1px);align-items:center;border-bottom:1px solid var(--ck-color-toolbar-border);color:inherit;display:flex;flex-direction:row;font-family:inherit;font-weight:700;height:var(--header-height);line-height:var(--header-height);min-height:var(--header-height);overflow:hidden;padding:0 var(--ck-revision-history-sidebar-timeline-padding)}.ck.ck-revision-history-sidebar__header .ck-revision-history-sidebar__header__label{color:inherit;font-family:inherit;font-size:1.2em;font-weight:700}.ck.ck-revision-history-sidebar__header .ck-icon{margin-right:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revisionssidebar/revisionssidebarheader.css"],names:[],mappings:"AASA,wCACC,yFAA4F,CAa5F,kBAAmB,CARnB,sDAAuD,CAIvD,aAAc,CAEd,YAAa,CACb,kBAAmB,CALnB,mBAAoB,CACpB,eAAiB,CANjB,2BAA4B,CAE5B,gCAAiC,CADjC,+BAAgC,CAGhC,eAAgB,CAIhB,6DAeD,CAVC,oFAGC,aAAc,CAFd,mBAAoB,CAGpB,eAAgB,CAFhB,eAGD,CAEA,iDACC,oCACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-revision-history-sidebar__header {\n\t--header-height: calc(var(--ck-ui-component-min-height) + 2 * var(--ck-spacing-small) + 1px);\n\n\theight: var(--header-height);\n\tmin-height: var(--header-height);\n\tline-height: var(--header-height);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\toverflow: hidden;\n\tfont-family: inherit;\n\tfont-weight: bold;\n\tcolor: inherit;\n\tpadding: 0 var(--ck-revision-history-sidebar-timeline-padding);\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\n\t& .ck-revision-history-sidebar__header__label {\n\t\tfont-family: inherit;\n\t\tfont-weight: bold;\n\t\tcolor: inherit;\n\t\tfont-size: 1.2em;\n\t}\n\n\t& .ck-icon {\n\t\tmargin-right: var(--ck-spacing-large);\n\t}\n}\n"],sourceRoot:""}]);const a=s},2387:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck{--ck-revision-history-sidebar-revision-vertical-spacing:calc(var(--ck-spacing-standard)*2)}.ck.ck-revision-history-sidebar__time-period{width:100%}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__label{background:var(--ck-revision-history-sidebar-period-background);border-radius:var(--ck-border-radius);color:var(--ck-color-base-background);font-size:9px;font-weight:700;padding:var(--ck-spacing-tiny) var(--ck-spacing-standard);text-transform:uppercase}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__label:first-child{margin-top:var(--ck-spacing-standard)}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__revisions{display:flex;flex-direction:column}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__revisions .ck-revision-history-sidebar__revision-wrapper,.ck.ck-revision-history-sidebar__time-period:not(.ck-hidden)+.ck-revision-history-sidebar__time-period{margin-top:var(--ck-revision-history-sidebar-revision-vertical-spacing)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revisionssidebar/revisionssidebartimeperiod.css"],names:[],mappings:"AASA,IACC,0FACD,CAEA,6CACC,UA4BD,CA1BC,8FACC,+DAAgE,CAIhE,qCAAsC,CACtC,qCAAsC,CAJtC,aAAc,CACd,eAAiB,CACjB,yDAA0D,CAG1D,wBAKD,CAHC,0GACC,qCACD,CAGD,kGACC,YAAa,CACb,qBAKD,CAEA,wPACC,uEACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck {\n\t--ck-revision-history-sidebar-revision-vertical-spacing: calc(2 * var(--ck-spacing-standard));\n}\n\n.ck.ck-revision-history-sidebar__time-period {\n\twidth: 100%;\n\n\t& .ck-revision-history-sidebar__time-period__label {\n\t\tbackground: var(--ck-revision-history-sidebar-period-background);\n\t\tfont-size: 9px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\t\tborder-radius: var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\ttext-transform: uppercase;\n\n\t\t&:first-child {\n\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t& .ck-revision-history-sidebar__time-period__revisions {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t& .ck-revision-history-sidebar__revision-wrapper {\n\t\t\tmargin-top: var(--ck-revision-history-sidebar-revision-vertical-spacing);\n\t\t}\n\t}\n\n\t&:not(.ck-hidden) + .ck-revision-history-sidebar__time-period {\n\t\tmargin-top: var(--ck-revision-history-sidebar-revision-vertical-spacing);\n\t}\n}\n"],sourceRoot:""}]);const a=s},6447:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,'.ck .ck-revision-change{border-top-left-radius:var(--ck-border-radius);outline:0;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck .ck-revision-change>*{font-size:var(--ck-font-size-standard);vertical-align:bottom}.ck .ck-revision-change.ck-revision-change__add{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-revision-change.ck-revision-change__remove{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-revision-change .ck-revision-change__label{font-size:inherit;font-weight:700;vertical-align:inherit}.ck.ck-button.ck-revision-history-ui__back-to-editing{background:var(--ck-color-base-active);color:var(--ck-color-base-background)}.ck.ck-button.ck-revision-history-ui__back-to-editing:hover:not(.ck-disabled){background:var(--ck-color-base-active-focus)}.ck-content .ck-suggestion-preview-marker,.ck-content .ck-suggestion-preview-marker-split{opacity:.75}.ck-content .ck-suggestion-preview-marker-split:after{content:"¶"}.ck-content .ck-suggestion-preview-marker-merge{opacity:.75;text-decoration:line-through}.ck-content .ck-suggestion-preview-marker-merge:after{content:"¶"}.ck-content .ck-suggestion-preview-marker-deletion{text-decoration:line-through}.ck-content .ck-suggestion-marker-deletion-new:not(.ck-widget),.ck-content .ck-suggestion-marker-merge-new{--ck-color-suggestion-marker-deletion-border:none;--ck-color-suggestion-marker-deletion-border-active:none;--ck-color-suggestion-marker-deletion-background:none;--ck-color-suggestion-marker-deletion-background-active:none;--ck-color-suggestion-marker-deletion-stroke:rgba(122,31,54,.8);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.03);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.05)}.ck-content .ck-suggestion-marker-merge-new:after{color:inherit}.ck-content .ck-suggestion-marker-insertion-new,.ck-content .ck-suggestion-marker-split-new{opacity:.75}.ck-content .ck-suggestion-marker-deletion-new.ck-suggestion-marker--active:not(.table),.ck-content .ck-suggestion-marker-merge-new.ck-suggestion-marker--active{--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.08);--ck-color-suggestion-marker-deletion-stroke:#7a1f36;opacity:1}.ck-content .ck-suggestion-marker-insertion-new.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-split-new.ck-suggestion-marker--active{opacity:1}.ck.ck-editor__editable_inline.ck-revision-history-root-add{border:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck.ck-editor__editable_inline.ck-revision-history-root-add.ck-revision-history-root--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck.ck-editor__editable_inline.ck-revision-history-root-remove{border:3px solid var(--ck-color-suggestion-marker-deletion-border)}.ck.ck-editor__editable_inline.ck-revision-history-root-remove.ck-revision-history-root--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revisionviewer.css"],names:[],mappings:"AASA,wBAEC,8CAA+C,CAC/C,SAAU,CAFV,uDAsBD,CAlBC,0BAEC,sCAAuC,CADvC,qBAED,CAEA,gDACC,iEACD,CAEA,mDACC,gEACD,CAEA,mDAEC,iBAAkB,CADlB,eAAiB,CAEjB,sBACD,CAIA,sDACC,sCAAuC,CACvC,qCAKD,CAHC,8EACC,4CACD,CAMD,0FAAwC,WAAe,CACvD,sDAA+C,WAAc,CAC7D,gDAAwC,WAAa,CAAE,4BAA+B,CACtF,sDAA+C,WAAc,CAC7D,mDAA2C,4BAA+B,CAE1E,2GAEC,iDAAkD,CAClD,wDAAyD,CACzD,qDAAsD,CACtD,4DAA6D,CAC7D,+DAAqE,CAErE,sEAA0E,CAC1E,2EACD,CAEA,kDACC,aACD,CAEA,4FAEC,WACD,CAEA,iKAEC,2EAAiF,CACjF,oDAAoE,CAEpE,SACD,CAEA,sJAEC,SACD,CAGD,4DACC,mEAKD,CAHC,6FACC,sEACD,CAGD,+DACC,kEAKD,CAHC,gGACC,qEACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-revision-change {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\tborder-top-left-radius: var(--ck-border-radius);\n\toutline: 0;\n\n\t& > * {\n\t\tvertical-align: bottom;\n\t\tfont-size: var(--ck-font-size-standard);\n\t}\n\n\t&.ck-revision-change__add {\n\t\tborder-left-color: var(--ck-color-suggestion-box-insertion-border);\n\t}\n\n\t&.ck-revision-change__remove {\n\t\tborder-left-color: var(--ck-color-suggestion-box-deletion-border);\n\t}\n\n\t& .ck-revision-change__label {\n\t\tfont-weight: bold;\n\t\tfont-size: inherit;\n\t\tvertical-align: inherit;\n\t}\n}\n\n.ck.ck-button {\n\t&.ck-revision-history-ui__back-to-editing {\n\t\tbackground: var(--ck-color-base-active);\n\t\tcolor: var(--ck-color-base-background);\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-base-active-focus);\n\t\t}\n\t}\n}\n\n.ck-content {\n\t& .ck-suggestion-preview-marker { opacity: 0.75; }\n\t& .ck-suggestion-preview-marker-split { opacity: 0.75; }\n\t& .ck-suggestion-preview-marker-split::after { content: '¶'; }\n\t& .ck-suggestion-preview-marker-merge { opacity: 0.75; text-decoration: line-through; }\n\t& .ck-suggestion-preview-marker-merge::after { content: '¶'; }\n\t& .ck-suggestion-preview-marker-deletion { text-decoration: line-through; }\n\n\t& .ck-suggestion-marker-deletion-new:not(.ck-widget),\n\t& .ck-suggestion-marker-merge-new {\n\t\t--ck-color-suggestion-marker-deletion-border: none;\n\t\t--ck-color-suggestion-marker-deletion-border-active: none;\n\t\t--ck-color-suggestion-marker-deletion-background: none;\n\t\t--ck-color-suggestion-marker-deletion-background-active: none;\n\t\t--ck-color-suggestion-marker-deletion-stroke: hsla(345, 60%, 30%, .8);\n\n\t\t--ck-color-suggestion-widget-deletion-background: hsla(345, 71%, 65%, .03);\n\t\t--ck-color-suggestion-widget-deletion-background-active: hsla(345, 71%, 45%, .05);\n\t}\n\n\t& .ck-suggestion-marker-merge-new::after {\n\t\tcolor: inherit;\n\t}\n\n\t& .ck-suggestion-marker-insertion-new,\n\t& .ck-suggestion-marker-split-new {\n\t\topacity: 0.75;\n\t}\n\n\t& .ck-suggestion-marker-deletion-new.ck-suggestion-marker--active:not(.table),\n\t& .ck-suggestion-marker-merge-new.ck-suggestion-marker--active {\n\t\t--ck-color-suggestion-marker-deletion-background-active: hsla(345, 71%, 50%, .08);\n\t\t--ck-color-suggestion-marker-deletion-stroke: hsla(345, 60%, 30%, 1);\n\n\t\topacity: 1;\n\t}\n\n\t& .ck-suggestion-marker-insertion-new.ck-suggestion-marker--active,\n\t& .ck-suggestion-marker-split-new.ck-suggestion-marker--active {\n\t\topacity: 1;\n\t}\n}\n\n.ck.ck-editor__editable_inline.ck-revision-history-root-add {\n\tborder: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n\n\t&.ck-revision-history-root--active {\n\t\tborder-color: var(--ck-color-suggestion-marker-insertion-border-active);\n\t}\n}\n\n.ck.ck-editor__editable_inline.ck-revision-history-root-remove {\n\tborder: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n\n\t&.ck-revision-history-root--active {\n\t\tborder-color: var(--ck-color-suggestion-marker-deletion-border-active);\n\t}\n}\n"],sourceRoot:""}]);const a=s},2986:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,'.ck{--ck-revision-history-loading-overlay-transition-duration:.2s;--ck-revision-history-loading-overlay-transition-delay:0s;--ck-revision-history-loading-overlay-spinner-rotation-duration:1s;--ck-revision-history-loading-overlay-spinner-size:60px;--ck-revision-history-loading-overlay-visible-background:#fff}.ck.ck-editor__editable:after,.ck.ck-editor__editable:before{content:"";opacity:0;position:absolute;transition:opacity var(--ck-revision-history-loading-overlay-transition-duration) ease;transition-delay:0;visibility:hidden}.ck.ck-editor__editable:before{background:var(--ck-revision-history-loading-overlay-visible-background);height:100%;left:0;top:0;width:100%;z-index:var(--ck-z-default)}.ck.ck-editor__editable:after{animation:ck-revision-history-spinner-animation var(--ck-revision-history-loading-overlay-spinner-rotation-duration) linear infinite;border-radius:50%;border-right:3px solid transparent;border-top:3px solid var(--ck-color-base-text);box-sizing:border-box;height:var(--ck-revision-history-loading-overlay-spinner-size);left:50%;top:50%;transform:translate(-50%,-50%);width:var(--ck-revision-history-loading-overlay-spinner-size);z-index:var(--ck-z-default)}.ck.ck-editor__editable.ck-editor__editable__loading-overlay,.ck.ck-editor__editable.ck-editor__editable__overlay{min-height:calc(var(--ck-revision-history-loading-overlay-spinner-size) + var(--ck-spacing-large)*2);position:relative}.ck.ck-editor__editable.ck-editor__editable__loading-overlay:after,.ck.ck-editor__editable.ck-editor__editable__loading-overlay:before,.ck.ck-editor__editable.ck-editor__editable__overlay:after,.ck.ck-editor__editable.ck-editor__editable__overlay:before{opacity:.8;transition-delay:var(--ck-revision-history-loading-overlay-transition-delay);visibility:visible}.ck.ck-editor__editable.ck-editor__editable__overlay:after{visibility:hidden}@keyframes ck-revision-history-spinner-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-revision-history/theme/revisionviewerloadingoverlay.css"],names:[],mappings:"AASA,IACC,6DAA8D,CAC9D,yDAA0D,CAC1D,kEAAmE,CACnE,uDAAwD,CACxD,6DACD,CAGC,6DAIC,UAAW,CADX,SAAU,CAEV,iBAAkB,CAHlB,sFAAuF,CAIvF,kBAAmB,CALnB,iBAMD,CAEA,+BAKC,wEAAyE,CADzE,WAAY,CAFZ,MAAO,CADP,KAAM,CAEN,UAAW,CAGX,2BACD,CAEA,8BAUC,oIAAqI,CAHrI,iBAAkB,CAElB,kCAAmC,CADnC,8CAA+C,CAP/C,qBAAsB,CAItB,8DAA+D,CAF/D,QAAS,CADT,OAAQ,CAIR,8BAAgC,CAFhC,6DAA8D,CAO9D,2BACD,CAEA,kHAEC,oGAAuG,CADvG,iBAQD,CALC,8PAEC,UAAW,CACX,4EAA6E,CAF7E,kBAGD,CAIA,2DACC,iBACD,CAIF,iDAEC,GACC,2CACD,CAEA,GACC,4CACD,CACD",sourcesContent:["/*\n * What you're currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck {\n\t--ck-revision-history-loading-overlay-transition-duration: .2s;\n\t--ck-revision-history-loading-overlay-transition-delay: 0s;\n\t--ck-revision-history-loading-overlay-spinner-rotation-duration: 1s;\n\t--ck-revision-history-loading-overlay-spinner-size: 60px;\n\t--ck-revision-history-loading-overlay-visible-background: hsla(0, 0%, 100%, 1);\n}\n\n.ck.ck-editor__editable {\n\t&::before, &::after {\n\t\tvisibility: hidden;\n\t\ttransition: opacity var(--ck-revision-history-loading-overlay-transition-duration) ease;\n\t\topacity: 0;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttransition-delay: 0;\n\t}\n\n\t&::before {\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: var(--ck-revision-history-loading-overlay-visible-background);\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t&::after {\n\t\tbox-sizing: border-box;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\twidth: var(--ck-revision-history-loading-overlay-spinner-size);\n\t\theight: var(--ck-revision-history-loading-overlay-spinner-size);\n\t\ttransform: translate(-50%, -50%);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-base-text);\n\t\tborder-right: 3px solid transparent;\n\t\tanimation: ck-revision-history-spinner-animation var(--ck-revision-history-loading-overlay-spinner-rotation-duration) linear infinite;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t&.ck-editor__editable__loading-overlay, &.ck-editor__editable__overlay {\n\t\tposition: relative;\n\t\tmin-height: calc(var(--ck-revision-history-loading-overlay-spinner-size) + 2 * var(--ck-spacing-large));\n\n\t\t&::before, &::after {\n\t\t\tvisibility: visible;\n\t\t\topacity: .8;\n\t\t\ttransition-delay: var(--ck-revision-history-loading-overlay-transition-delay);\n\t\t}\n\t}\n\n\t&.ck-editor__editable__overlay {\n\t\t&::after {\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n}\n\n@keyframes ck-revision-history-spinner-animation {\n\t/* Safari needs this 0deg step. */\n\tfrom {\n\t\ttransform: translate(-50%, -50%) rotate(0deg);\n\t}\n\n\tto {\n\t\ttransform: translate(-50%, -50%) rotate(360deg);\n\t}\n}\n"],sourceRoot:""}]);const a=s},7864:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-show-blocks-border-color:#757575}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>ADDRESS</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>ADDRESS</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>ASIDE</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>ASIDE</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>BLOCKQUOTE</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>BLOCKQUOTE</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>DETAILS</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>DETAILS</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *):not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *){background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>DIV</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *){background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>DIV</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>FOOTER</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>FOOTER</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H1</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H1</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H2</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H2</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H3</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H3</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H4</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H4</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H5</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H5</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H6</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>H6</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>HEADER</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>HEADER</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>MAIN</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>MAIN</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>NAV</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>NAV</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>PRE</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>PRE</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>OL</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>OL</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>UL</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>UL</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>P</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>P</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>SECTION</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>SECTION</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>FIGCAPTION</text></svg>\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption{background-image:url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>FIGCAPTION</text></svg>\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-show-blocks/theme/showblocks.css"],names:[],mappings:"AAOA,MACC,qCACD,CAGC,yIACC,qDACD,CAoBA,oGAfC,sfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAcD,CAFA,oGARC,yiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAOD,CAxBA,uIACC,qDACD,CAwBA,kGAnBC,ofAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAkBD,CAFA,kGAZC,uiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAWD,CA5BA,4IACC,qDACD,CA4BA,uGAvBC,yfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAsBD,CAFA,uGAhBC,4iBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAeD,CAhCA,yIACC,qDACD,CAgCA,oGA3BC,sfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA0BD,CAFA,oGApBC,yiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAmBD,CApCA,kKACC,qDACD,CAoCA,6HA/BC,kfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA8BD,CAFA,6HAxBC,qiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAuBD,CAxCA,wIACC,qDACD,CAwCA,mGAnCC,qfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAkCD,CAFA,mGA5BC,wiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA2BD,CA5CA,oIACC,qDACD,CA4CA,+FAvCC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAsCD,CAFA,+FAhCC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA+BD,CAhDA,oIACC,qDACD,CAgDA,+FA3CC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA0CD,CAFA,+FApCC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAmCD,CApDA,oIACC,qDACD,CAoDA,+FA/CC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA8CD,CAFA,+FAxCC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAuCD,CAxDA,oIACC,qDACD,CAwDA,+FAnDC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAkDD,CAFA,+FA5CC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA2CD,CA5DA,oIACC,qDACD,CA4DA,+FAvDC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAsDD,CAFA,+FAhDC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA+CD,CAhEA,oIACC,qDACD,CAgEA,+FA3DC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA0DD,CAFA,+FApDC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAmDD,CApEA,wIACC,qDACD,CAoEA,mGA/DC,qfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA8DD,CAFA,mGAxDC,wiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAuDD,CAxEA,sIACC,qDACD,CAwEA,iGAnEC,mfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAkED,CAFA,iGA5DC,siBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA2DD,CA5EA,qIACC,qDACD,CA4EA,gGAvEC,kfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAsED,CAFA,gGAhEC,qiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA+DD,CAhFA,qIACC,qDACD,CAgFA,gGA3EC,kfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA0ED,CAFA,gGApEC,qiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAmED,CApFA,oIACC,qDACD,CAoFA,+FA/EC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA8ED,CAFA,+FAxEC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAuED,CAxFA,oIACC,qDACD,CAwFA,+FAnFC,ifAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAkFD,CAFA,+FA5EC,oiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA2ED,CA5FA,mIACC,qDACD,CA4FA,8FAvFC,gfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBAsFD,CAFA,8FAhFC,miBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBA+ED,CAhGA,yIACC,qDACD,CAgGA,oGA3FC,sfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA0FD,CAFA,oGApFC,yiBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAmFD,CApGA,8KACC,qDACD,CAoGA,yIA/FC,yfAAuf,CACvf,2BAA4B,CAC5B,2BAA4B,CAC5B,gBA8FD,CAFA,yIAxFC,4iBAA0iB,CAC1iB,wCAAyC,CACzC,2BAA4B,CAC5B,gBAuFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-show-blocks-border-color: hsl(0, 0%, 46%);\n}\n\n@define-mixin block-name-background $text {\n\t&:not(.ck-widget_selected):not(.ck-widget:hover) {\n\t\toutline: 1px dashed var(--ck-show-blocks-border-color);\n\t}\n\n\t/* Some props are duplicated for both 'ltr' and 'rtl' directions for their higher specificity.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14435 for details. */\n\t@mixin ck-dir ltr {\n\t\tbackground-image: url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>$(text)</text></svg>\");\n\t\tbackground-position: 1px 1px;\n\t\tbackground-repeat: no-repeat;\n\t\tpadding-top: 15px;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\tbackground-image: url(\"data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>$(text)</text></svg>\");\n\t\tbackground-position: calc(100% - 1px) 1px;\n\t\tbackground-repeat: no-repeat;\n\t\tpadding-top: 15px;\n\t}\n}\n\n.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) {\n\t& address {\n\t\t@mixin block-name-background ADDRESS;\n\t}\n\n\t& aside {\n\t\t@mixin block-name-background ASIDE;\n\t}\n\n\t& blockquote {\n\t\t@mixin block-name-background BLOCKQUOTE;\n\t}\n\n\t& details {\n\t\t@mixin block-name-background DETAILS;\n\t}\n\n\t& div:not(.ck-widget, .ck-widget *) {\n\t\t@mixin block-name-background DIV;\n\t}\n\n\t& footer {\n\t\t@mixin block-name-background FOOTER;\n\t}\n\n\t& h1 {\n\t\t@mixin block-name-background H1;\n\t}\n\n\t& h2 {\n\t\t@mixin block-name-background H2;\n\t}\n\n\t& h3 {\n\t\t@mixin block-name-background H3;\n\t}\n\n\t& h4 {\n\t\t@mixin block-name-background H4;\n\t}\n\n\t& h5 {\n\t\t@mixin block-name-background H5;\n\t}\n\n\t& h6 {\n\t\t@mixin block-name-background H6;\n\t}\n\n\t& header {\n\t\t@mixin block-name-background HEADER;\n\t}\n\n\t& main {\n\t\t@mixin block-name-background MAIN;\n\t}\n\n\t& nav {\n\t\t@mixin block-name-background NAV;\n\t}\n\n\t& pre {\n\t\t@mixin block-name-background PRE;\n\t}\n\n\t& ol {\n\t\t@mixin block-name-background OL;\n\t}\n\n\t& ul {\n\t\t@mixin block-name-background UL;\n\t}\n\n\t& p {\n\t\t@mixin block-name-background P;\n\t}\n\n\t& section {\n\t\t@mixin block-name-background SECTION;\n\t}\n\n\t& :where(figure.image, figure.table) figcaption {\n\t\t@mixin block-name-background FIGCAPTION;\n\t}\n}\n"],sourceRoot:""}]);const a=s},651:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,":root{--ck-slash-command-button-width:250px;--ck-slash-command-description-width:200px}.ck.ck-button.ck-slash-command-button{display:flex;justify-content:flex-start;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base));width:var(--ck-slash-command-button-width)}.ck.ck-button.ck-slash-command-button .ck.ck-icon{background-color:var(--ck-color-base-background);border-radius:2px;box-sizing:initial;color:var(--ck-color-base-text);flex-shrink:0;margin-left:0;padding:5px}[dir=ltr] .ck.ck-button.ck-slash-command-button .ck.ck-icon{margin:0 var(--ck-spacing-small) 0 0}[dir=rtl] .ck.ck-button.ck-slash-command-button .ck.ck-icon{margin:0 0 0 var(--ck-spacing-small)}.ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part{display:flex;flex-direction:column}[dir=ltr] .ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part{margin-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part{margin-right:var(--ck-spacing-small)}.ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part>span{line-height:1.2em}.ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part>.ck-button__label,.ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part>.ck-slash-command-button__description{overflow:hidden;text-overflow:ellipsis;width:var(--ck-slash-command-description-width)}.ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part>.ck-button__label{font-weight:700}.ck.ck-button.ck-slash-command-button>.ck-slash-command-button__text-part>.ck-slash-command-button__description{font-size:var(--ck-font-size-small);opacity:.75}.ck.ck-button.ck-slash-command-button.ck-on>.ck-slash-command-button__text-part>span{color:var(--ck-color-list-button-on-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-slash-command/theme/slashcommand.css"],names:[],mappings:"AAWA,MACC,qCAAsC,CACtC,0CACD,CAEA,sCACC,YAAa,CACb,0BAA2B,CAE3B,oEAAyE,CADzE,0CAyDD,CAtDC,kDAKC,gDAAiD,CACjD,iBAAkB,CAClB,kBAAmB,CAHnB,+BAAgC,CAHhC,aAAc,CACd,aAAc,CACd,WAaD,CAhBA,4DAUE,oCAMF,CAhBA,4DAcE,oCAEF,CAEA,0EACC,YAAa,CACb,qBA6BD,CA/BA,oFAKE,mCA0BF,CA/BA,oFASE,oCAsBF,CAnBC,+EACC,iBACD,CAEA,4MAGC,eAAgB,CAChB,sBAAuB,CAFvB,+CAGD,CAEA,4FACC,eACD,CAEA,gHACC,mCAAoC,CACpC,WACD,CAGD,qFACC,yCACD",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-slash-command-button-width: 250px;\n\t--ck-slash-command-description-width: 200px;\n}\n\n.ck.ck-button.ck-slash-command-button {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\twidth: var(--ck-slash-command-button-width);\n\tpadding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t& .ck.ck-icon {\n\t\tflex-shrink: 0;\n\t\tmargin-left: 0;\n\t\tpadding: 5px;\n\t\tcolor: var(--ck-color-base-text);\n\t\tbackground-color: var(--ck-color-base-background);\n\t\tborder-radius: 2px;\n\t\tbox-sizing: initial;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin: 0 var(--ck-spacing-small) 0 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin: 0 0 0 var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t& > .ck-slash-command-button__text-part {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t& > span {\n\t\t\tline-height: 1.2em;\n\t\t}\n\n\t\t& > .ck-button__label,\n\t\t& > .ck-slash-command-button__description {\n\t\t\twidth: var(--ck-slash-command-description-width);\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t& > .ck-button__label {\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\t& > .ck-slash-command-button__description {\n\t\t\tfont-size: var(--ck-font-size-small);\n\t\t\topacity: 0.75;\n\t\t}\n\t}\n\n\t&.ck-on > .ck-slash-command-button__text-part > span {\n\t\tcolor: var(--ck-color-list-button-on-text);\n\t}\n}\n'],sourceRoot:""}]);const a=s},671:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-source-editing/theme/sourceediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,wBAEC,eAAgB,CADhB,iBAED,CAEA,+DAIC,4BAA6B,CAG7B,qBAAsB,CADtB,oCAAqC,CADrC,sCAAuC,CAFvC,QAAS,CADT,+BAAgC,CAMhC,oBACD,CAEA,8BACC,4BAA6B,CAE7B,aAAc,CADd,iBAED,CAEA,iCASC,wCAAyC,CC7BzC,eAAgB,CD2BhB,qBAAsB,CAJtB,WAAY,CAEZ,YAAa,CACb,eAAgB,CALhB,iBAAkB,CAGlB,WAAY,CAFZ,UAkBD,CApBA,yGChBE,qCAAsC,CD4BtC,wBAAyB,CACzB,yBAOF,CAJC,uDEpCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFwCA",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck-source-editing-area {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.ck-source-editing-area::after,\n.ck-source-editing-area textarea {\n\tpadding: var(--ck-spacing-large);\n\tmargin: 0;\n\tborder: 1px solid transparent;\n\tline-height: var(--ck-line-height-base);\n\tfont-size: var(--ck-font-size-normal);\n\tfont-family: monospace;\n\twhite-space: pre-wrap;\n}\n\n.ck-source-editing-area::after {\n\tcontent: attr(data-value) " ";\n\tvisibility: hidden;\n\tdisplay: block;\n}\n\n.ck-source-editing-area textarea {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tresize: none;\n\toutline: none;\n\toverflow: hidden;\n\tbox-sizing: border-box;\n\n\tborder-color: var(--ck-color-base-border);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not([readonly]):focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},4046:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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{max-height:200px;overflow-x:hidden;overflow-y:auto;width:350px}@media screen and (max-width:600px){.ck.ck-character-grid{width:190px}}.ck.ck-character-grid .ck-character-grid__tiles{grid-gap:var(--ck-spacing-standard);grid-template-columns:repeat(10,1fr);margin:var(--ck-spacing-standard) var(--ck-spacing-large)}@media screen and (max-width:600px){.ck.ck-character-grid .ck-character-grid__tiles{grid-template-columns:repeat(5,1fr)}}.ck.ck-character-grid .ck-character-grid__tile{border:0;font-size:1.2em;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)}.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://./node_modules/@ckeditor/ckeditor5-special-characters/theme/charactergrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/charactergrid.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAKA,sBACC,cAKD,CAHC,gDACC,YACD,CCFD,MACC,kCACD,CAEA,sBAIC,gBAAiB,CAFjB,iBAAkB,CADlB,eAAgB,CAEhB,WAyCD,CClDC,oCDMD,sBAOE,WAqCF,CChDC,CDcA,gDAGC,mCAAoC,CAFpC,oCAAsC,CACtC,yDAMD,CCxBA,oCDgBA,gDAME,mCAEF,CCtBA,CDwBA,+CAQC,QAAS,CAHT,eAAgB,CAHhB,yCAA0C,CAE1C,6CAA8C,CAD9C,4CAA6C,CAG7C,SAAU,CACV,8BAA+B,CAN/B,wCAsBD,CAbC,8IAGC,QAAS,CACT,iGACD,CAGA,iEACC,8CAA+C,CAE/C,iBAAkB,CADlB,UAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-grid {\n\tmax-width: 100%;\n\t\n\t& .ck-character-grid__tiles {\n\t\tdisplay: grid;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-character-grid-tile-size: 24px;\n}\n\n.ck.ck-character-grid {\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 350px;\n\tmax-height: 200px;\n\n\t@mixin ck-media-phone {\n\t\twidth: 190px;\n\t}\n\n\t& .ck-character-grid__tiles {\n\t\tgrid-template-columns: repeat(10, 1fr);\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\t\tgrid-gap: var(--ck-spacing-standard);\n\n\t\t@mixin ck-media-phone {\n\t\t\tgrid-template-columns: repeat(5, 1fr);\n\t\t}\n\t}\n\n\t& .ck-character-grid__tile {\n\t\twidth: var(--ck-character-grid-tile-size);\n\t\theight: var(--ck-character-grid-tile-size);\n\t\tmin-width: var(--ck-character-grid-tile-size);\n\t\tmin-height: var(--ck-character-grid-tile-size);\n\t\tfont-size: 1.2em;\n\t\tpadding: 0;\n\t\ttransition: .2s ease box-shadow;\n\t\tborder: 0;\n\n\t\t&:focus:not( .ck-disabled ),\n\t\t&:hover:not( .ck-disabled ) {\n\t\t\t/* Disable the default .ck-button\'s border ring. */\n\t\t\tborder: 0;\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t\t}\n\n\t\t/* Make sure the glyph is rendered in the center of the button */\n\t\t& .ck-button__label {\n\t\t\tline-height: var(--ck-character-grid-tile-size);\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6158:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}@media screen and (max-width:600px){.ck.ck-character-info{max-width:190px}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-special-characters/theme/characterinfo.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/characterinfo.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.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,CClBA,oCDCD,sBAoBE,eAEF,CCrBC",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-info {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-character-info {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t& > * {\n\t\ttext-transform: uppercase;\n\t\tfont-size: var(--ck-font-size-small);\n\t}\n\n\t& .ck-character-info__name {\n\t\tmax-width: 280px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& .ck-character-info__code {\n\t\topacity: .6;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tmax-width: 190px;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8170:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/specialcharacters.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAUC,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,sEAEC,gBAAiB,CAEjB,iBAAkB,CADlB,eAED,CCfA,oCDED,qCAgBE,eAOF,CALE,6DAEC,eAAgB,CADhB,sBAED,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-special-characters-navigation {\n\n\t& > .ck-label {\n\t\tmax-width: 160px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& > .ck-dropdown .ck-dropdown__panel {\n\t\t/* There could be dozens of categories available. Use scroll to prevent a 10e6px dropdown. */\n\t\tmax-height: 250px;\n\t\toverflow-y: auto;\n\t\toverflow-x: hidden;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tmax-width: 190px;\n\n\t\t& > .ck-form__header__label {\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},2844:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/style.css"],names:[],mappings:"AAKA,iGACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active > .ck-button > .ck-button__label {\n\tfont-style: italic;\n}\n"],sourceRoot:""}]);const a=s},3875:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-style/theme/stylegrid.css","webpack://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-columns: 3;\n}\n\n.ck.ck-style-panel .ck-style-grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--ck-style-panel-columns),auto);\n\tjustify-content: start;\n\n\t& .ck-style-grid__button {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tflex-direction: column;\n\n\t\t& .ck-style-grid__button__preview {\n\t\t\tdisplay: flex;\n\t\t\talign-content: center;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t\tflex-basis: 100%;\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-button-width: 120px;\n\t--ck-style-panel-button-height: 80px;\n\t--ck-style-panel-button-label-background: hsl(0, 0%, 94.1%);\n\t--ck-style-panel-button-hover-label-background: hsl(0, 0%, 92.1%);\n\t--ck-style-panel-button-hover-border-color: hsl(0, 0%, 70%);\n}\n\n.ck.ck-style-panel .ck-style-grid {\n\trow-gap: var(--ck-spacing-large);\n\tcolumn-gap: var(--ck-spacing-large);\n\n\t& .ck-style-grid__button {\n\t\t--ck-color-button-default-hover-background: var(--ck-color-base-background);\n\t\t--ck-color-button-default-active-background: var(--ck-color-base-background);\n\n\t\tpadding: 0;\n\t\twidth: var(--ck-style-panel-button-width);\n\t\theight: var(--ck-style-panel-button-height);\n\n\t\t/* Let default .ck-button :focus styles apply */\n\t\t&:not(:focus) {\n\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t& .ck-button__label {\n\t\t\theight: 22px;\n\t\t\tline-height: 22px;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tflex-shrink: 0;\n\t\t}\n\n\t\t& .ck-style-grid__button__preview {\n\t\t\twidth: 100%;\n\t\t\toverflow: hidden;\n\t\t\topacity: .9;\n\n\t\t\tpadding: var(--ck-spacing-medium);\n\t\t\tbackground: var(--ck-color-base-background);\n\t\t\tborder: 2px solid var(--ck-color-base-background);\n\t\t}\n\n\t\t&.ck-disabled {\n\t\t\t--ck-color-button-default-disabled-background: var(--ck-color-base-foreground);\n\n\t\t\t/* Let default .ck-button :focus styles apply */\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-color: var(--ck-style-panel-button-label-background);\n\t\t\t}\n\n\t\t\t& .ck-style-grid__button__preview {\n\t\t\t\topacity: .4;\n\n\t\t\t\tborder-color: var(--ck-color-base-foreground);\n\t\t\t\tfilter: saturate(.3);\n\t\t\t}\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tborder-color: var(--ck-color-base-active);\n\n\t\t\t& .ck-button__label {\n\t\t\t\tbox-shadow: 0 -1px 0 var(--ck-color-base-active);\n\t\t\t\tz-index: 1; /* Stay on top of the preview with the shadow. */\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: var(--ck-color-base-active-focus);\n\t\t\t}\n\t\t}\n\n\t\t&:not(.ck-on) {\n\t\t\t& .ck-button__label {\n\t\t\t\tbackground: var(--ck-style-panel-button-label-background);\n\t\t\t}\n\n\t\t\t&:hover .ck-button__label {\n\t\t\t\tbackground: var(--ck-style-panel-button-hover-label-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled):not(.ck-on) {\n\t\t\tborder-color: var(--ck-style-panel-button-hover-border-color);\n\n\t\t\t& .ck-style-grid__button__preview {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9545:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/stylegroup.css"],names:[],mappings:"AAMC,0DACC,gCACD,CAGC,sEACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-style-panel .ck-style-panel__style-group {\n\t& > .ck-label {\n\t\tmargin: var(--ck-spacing-large) 0;\n\t}\n\n\t&:first-child {\n\t\t& > .ck-label {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},6746:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/stylepanel.css"],names:[],mappings:"AAKA,MACC,iCACD,CAEA,mBAGC,2CAA4C,CAD5C,eAAgB,CADhB,+BAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-max-height: 470px;\n}\n\n.ck.ck-style-panel {\n\tpadding: var(--ck-spacing-large);\n\toverflow-y: auto;\n\tmax-height: var(--ck-style-panel-max-height);\n}\n"],sourceRoot:""}]);const a=s},4082:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t   outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8027:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-table/theme/formrow.css","webpack://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},8085:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}.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://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},4104:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}.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://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const a=s},9888:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}.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://./node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=s},5737:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css","webpack://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},728:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t   The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n   all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\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,\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\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\n\t   unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const a=s},4777:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},198:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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{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)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./node_modules/@ckeditor/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,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\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);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},9221:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css","webpack://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},5593:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},8112:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,':root{--ck-template-dropdown-view-width:345px;--ck-template-dropdown-view-height:300px;--ck-template-icon-size:45px}.ck.ck-template-form{width:var(--ck-template-dropdown-view-width)}@media screen and (max-width:600px){.ck.ck-template-form{--ck-template-dropdown-view-width:260px}}.ck.ck-template-form>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-template-form>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list{max-height:var(--ck-template-dropdown-view-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:var(--ck-spacing-large)}.ck-rounded-corners .ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list{border-radius:0}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item:not(.ck-hidden)~.ck.ck-list__item{margin-top:var(--ck-spacing-large)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button{align-items:center;border-radius:var(--ck-border-radius);display:grid;gap:var(--ck-spacing-large) var(--ck-spacing-large);grid-auto-columns:1fr;grid-auto-flow:column dense;grid-template-areas:"ck-template-icon ck-template-content";grid-template-columns:var(--ck-template-icon-size) 1fr;grid-template-rows:var(--ck-template-icon-size);margin:0;overflow:hidden;padding:0;width:100%}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button:not(:focus){border-color:var(--ck-color-dropdown-panel-background)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck.ck-icon{color:unset;grid-area:ck-template-icon;height:auto;margin:0;width:var(--ck-template-icon-size)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck.ck-icon *{color:unset}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck.ck-icon :not([fill]){fill:unset}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part{display:flex;flex-direction:column;grid-area:ck-template-content;height:100%;justify-content:space-evenly;margin:0;min-width:0}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part>.ck.ck-button__label{color:var(--ck-color-text);display:block;font-size:var(--ck-font-size-base);font-weight:700;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part .ck-template-form__description{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--ck-color-text);display:-webkit-box;font-size:.85em;line-height:1.1;margin-top:var(--ck-spacing-tiny);overflow:hidden;text-overflow:ellipsis;white-space:normal}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-template/theme/template.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAWA,MACC,uCAAwC,CACxC,wCAAyC,CACzC,4BACD,CAEA,qBACC,4CA4HD,CCxIC,oCDWD,qBAIE,uCAyHF,CCtIC,CDgBA,4CACC,+BACD,CAEA,yCACC,gDAgHD,CA9GC,sEACC,kDAAmD,CAEnD,iBAAkB,CAClB,eAAgB,CAChB,2BAA4B,CAH5B,+BA2GD,CA7GA,0FAYE,eAiGF,CA5FE,0HACC,kCACD,CAEA,sGAgBC,kBAAmB,CAZnB,qCAAsC,CAKtC,YAAa,CAKb,mDAAoD,CAFpD,qBAAsB,CAGtB,2BAA4B,CAE5B,0DAA2D,CAP3D,sDAAuD,CACvD,+CAAgD,CAThD,QAAS,CAKT,eAAgB,CAJhB,SAAU,CAFV,UAqFD,CAnEC,kHACC,sDACD,CAEA,kHAOC,WAAY,CAJZ,0BAA2B,CAD3B,WAAY,CAEZ,QAAS,CAHT,kCAeD,CAPC,oHACC,WAKD,CAHC,+HACC,UACD,CAIF,mIACC,YAAa,CACb,qBAAsB,CAGtB,6BAA8B,CAD9B,WAAY,CADZ,4BAA6B,CAI7B,QAAS,CADT,WAsCD,CAnCC,wJAIC,0BAA2B,CAH3B,aAAc,CAEd,kCAAmC,CADnC,eAAiB,CAGjB,eAAgB,CAGhB,eAAgB,CAChB,sBAAuB,CAFvB,kBAGD,CAEA,kKAYC,2BAA4B,CAC5B,oBAAqB,CAVrB,0BAA2B,CAF3B,mBAAoB,CACpB,eAAiB,CAEjB,eAAgB,CAGhB,iCAAkC,CAGlC,eAAgB,CAChB,sBAAuB,CAFvB,kBAKD,CAEA,wIACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:['/*\n * What you\'re currently looking at is the source code of a legally protected, proprietary software.\n * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n *\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n:root {\n\t--ck-template-dropdown-view-width: 345px;\n\t--ck-template-dropdown-view-height: 300px;\n\t--ck-template-icon-size: 45px;\n}\n\n.ck.ck-template-form {\n\twidth: var(--ck-template-dropdown-view-width);\n\n\t@mixin ck-media-phone {\n\t\t--ck-template-dropdown-view-width: 260px;\n\t}\n\n\t& > .ck-labeled-field-view {\n\t\tpadding: var(--ck-spacing-large);\n\t}\n\n\t& > .ck-search__results {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t& > .ck.ck-list.ck-template-list {\n\t\t\tmax-height: var(--ck-template-dropdown-view-height);\n\t\t\tpadding: var(--ck-spacing-large);\n\t\t\toverflow-x: hidden;\n\t\t\toverflow-y: auto;\n\t\t\toverscroll-behavior: contain;\n\n\t\t\t/*\n\t\t\t* This is a dirty way to increase the selector specificity and override the default rounded corners\n\t\t\t* of a list inside a dropdown panel\n\t\t\t*/\n\t\t\t@nest .ck-rounded-corners & {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck.ck-list__item {\n\t\t\t\t/* This is an easy way to address the problem of spacings between hidden and visible list items */\n\t\t\t\t&:not(.ck-hidden) ~ .ck.ck-list__item {\n\t\t\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\t\t}\n\n\t\t\t\t& > .ck.ck-button {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\tmargin: 0;\n\t\t\t\t\tpadding: 0;\n\t\t\t\t\tborder-radius: var(--ck-border-radius);\n\n\t\t\t\t\t/* Crop the icon when the border-radius is large */\n\t\t\t\t\toverflow: hidden;\n\n\t\t\t\t\tdisplay: grid;\n\t\t\t\t\tgrid-template-columns: var(--ck-template-icon-size) 1fr;\n\t\t\t\t\tgrid-template-rows: var(--ck-template-icon-size);\n\t\t\t\t\tgrid-auto-columns: 1fr;\n\n\t\t\t\t\tgap: var(--ck-spacing-large) var(--ck-spacing-large);\n\t\t\t\t\tgrid-auto-flow: column dense;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tgrid-template-areas: "ck-template-icon ck-template-content";\n\n\t\t\t\t\t&:not(:focus) {\n\t\t\t\t\t\tborder-color: var(--ck-color-dropdown-panel-background);\n\t\t\t\t\t}\n\n\t\t\t\t\t& > .ck.ck-icon {\n\t\t\t\t\t\twidth: var(--ck-template-icon-size);\n\t\t\t\t\t\theight: auto;\n\t\t\t\t\t\tgrid-area: ck-template-icon;\n\t\t\t\t\t\tmargin: 0;\n\n\t\t\t\t\t\t/* Override default rules for icons to allow any fill color. */\n\t\t\t\t\t\tcolor: unset;\n\n\t\t\t\t\t\t& * {\n\t\t\t\t\t\t\tcolor: unset;\n\n\t\t\t\t\t\t\t&:not([fill]) {\n\t\t\t\t\t\t\t\tfill: unset;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t& > .ck-template-form__text-part {\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\tflex-direction: column;\n\t\t\t\t\t\tjustify-content: space-evenly;\n\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\tgrid-area: ck-template-content;\n\t\t\t\t\t\tmin-width: 0;\n\t\t\t\t\t\tmargin: 0;\n\n\t\t\t\t\t\t& > .ck.ck-button__label {\n\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\t\t\tfont-size: var(--ck-font-size-base);\n\t\t\t\t\t\t\tcolor: var(--ck-color-text);\n\t\t\t\t\t\t\tline-height: 1.1;\n\n\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t& .ck-template-form__description {\n\t\t\t\t\t\t\tdisplay: -webkit-box;\n\t\t\t\t\t\t\tfont-size: 0.85em;\n\t\t\t\t\t\t\tcolor: var(--ck-color-text);\n\t\t\t\t\t\t\tline-height: 1.1;\n\n\t\t\t\t\t\t\t/* Leave some tiny spacing between title and description. */\n\t\t\t\t\t\t\tmargin-top: var(--ck-spacing-tiny);\n\n\t\t\t\t\t\t\twhite-space: normal;\n\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t\t-webkit-box-orient: vertical;\n\t\t\t\t\t\t\t-webkit-line-clamp: 2;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t& mark {\n\t\t\t\t\t\t\tbackground: var(--ck-color-highlight-background);\n\t\t\t\t\t\t\tvertical-align: initial;\n\t\t\t\t\t\t\tfont-weight: inherit;\n\t\t\t\t\t\t\tline-height: inherit;\n\t\t\t\t\t\t\tfont-size: inherit;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},5063:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-aria-live-announcer {\n\tposition: absolute;\n\tleft: -10000px;\n\ttop: -10000px;\n}\n"],sourceRoot:""}]);const a=s},6168:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},4499:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,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,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../../mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\n\t@mixin ck-dir ltr {\n\t\tjustify-content: left;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\tjustify-content: right;\n\t}\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text)  {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=s},9681:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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)}.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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=s},7217:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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;padding:var(--ck-list-button-padding);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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-list-button-padding);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4923:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const a=s},2191:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4240:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./node_modules/@ckeditor/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:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},3488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"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:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6875:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},66:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},5075:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=s},4547:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,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:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},5523:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[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{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAkBD,CAbC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t}\n\t}\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n'],sourceRoot:""}]);const a=s},1361:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const a=s},1174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},6985:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},2751:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const a=s},8111:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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)}.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)>.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)>.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)>.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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD+GD,CA1GA,2FCDE,qCD2GF,CAvGC,mEACC,UAoCD,CAlCC,gFACC,KAgCD,CAjCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBA4BF,CAjCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAqBF,CAjCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,4WAGE,+HAYF,CAfA,4WAOE,wIAQF,CAfA,wVAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t\ttransform-origin: 100% 0;\n\t\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},5869:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item .ck-button{text-align:left}[dir=rtl] .ck.ck-list__item .ck-button{text-align:right}.ck.ck-list__item .ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{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-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,oJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cAgED,CA9DC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UA6CD,CA/CA,uCAME,eAyCF,CA/CA,uCAUE,gBAqCF,CA/CA,6BAgBC,qCA+BD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-list-button-padding:\n\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n}\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\tborder-radius: 0;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t   because e.g. different heading styles may have different height\n\t\t   https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > .ck-label {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8245:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},1757:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const a=s},3553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},3609:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},1590:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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-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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},9815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/search/search.css","webpack://./node_modules/@ckeditor/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:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const a=s},9832:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./node_modules/@ckeditor/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,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},3175:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const a=s},4779:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const a=s},5571:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,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,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,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:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},9948:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const a=s},6150:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,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,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,CC3GhD,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,kCJ2GD,CIrGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------- */\n\n\t--ck-color-light-red:\t\t\t\t\t\t\t\t\t\thsl(0, 100%, 90%);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const a=s},6507:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t   * background-color for the .ck-widget_selected state change,\n\t\t   * visibility for hiding the handler,\n\t\t   * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},2263:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const a=s},5137:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());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)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const a=s},6616:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".ck.ck-dropdown.ck-wproofreader-empty .ck-dropdown__panel{display:none!important}","",{version:3,sources:["webpack://./node_modules/@webspellchecker/wproofreader-ckeditor5/theme/wproofreader.css"],names:[],mappings:"AAAA,0DACC,sBACD",sourcesContent:[".ck.ck-dropdown.ck-wproofreader-empty .ck-dropdown__panel {\n\tdisplay: none !important;\n}\n"],sourceRoot:""}]);const a=s},7546:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(4015),o=n.n(i),r=n(3645),s=n.n(r)()(o());s.push([t.id,".wrs_modal_overlay{background:rgba(0,0,0,.8);bottom:0;font-family:arial,sans-serif;left:0;opacity:.65;pointer-events:auto;position:fixed;right:0;top:0;z-index:999998}.wrs_modal_overlay.wrs_modal_android,.wrs_modal_overlay.wrs_modal_ios{display:none;visibility:hidden}.wrs_modal_overlay.wrs_modal_ios.moodle{position:fixed}.wrs_modal_overlay.wrs_modal_desktop.wrs_stack{background:transparent;display:none}.wrs_modal_overlay.wrs_modal_desktop.wrs_maximized{background:rgba(0,0,0,.8)}.wrs_modal_overlay.wrs_modal_desktop.wrs_closed,.wrs_modal_overlay.wrs_modal_desktop.wrs_minimized{background:transparent;display:none}.wrs_modal_title{color:#fff;padding:5px 0 5px 10px;text-align:left;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.wrs_modal_close_button{background-repeat:no-repeat}.wrs_modal_close_button,.wrs_modal_minimize_button{color:#fff;cursor:pointer;float:right;margin:10px 7px 0 0;padding:5px 10px 5px 0}.wrs_modal_minimize_button{top:inherit}.wrs_modal_stack_button{color:#fff;cursor:pointer;float:right;margin:10px 7px 0 0;padding:5px 10px 5px 0;top:inherit}.wrs_modal_stack_button.wrs_minimized,.wrs_modal_stack_button.wrs_stack{margin:0;padding:0;visibility:hidden}.wrs_modal_maximize_button{color:#fff;cursor:pointer;float:right;margin:10px 7px 0 0;padding:5px 10px 5px 0;top:inherit}.wrs_modal_maximize_button.wrs_maximized{margin:0;padding:0;visibility:hidden}.wrs_modal_title_bar{background-color:#778e9a;display:block}.wrs_modal_dialogContainer{background:#fafafa;border:none;z-index:999999}.wrs_modal_dialogContainer.wrs_modal_desktop{font-size:14px}.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_maximized{position:fixed}.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized{margin:0 10px 0 0;position:fixed;top:inherit}.wrs_modal_dialogContainer.wrs_closed{display:none;opacity:0;visibility:hidden}.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_stack{bottom:0;box-shadow:0 2px 8px rgba(0,0,0,.5);position:fixed;right:0}.wrs_modal_dialogContainer.wrs_drag,.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_drag{box-shadow:0 2px 8px rgba(0,0,0,.5)}.wrs_modal_dialogContainer.wrs_modal_android{height:99%;width:99%}.wrs_modal_dialogContainer.wrs_modal_android,.wrs_modal_dialogContainer.wrs_modal_ios{margin:auto;overflow:hidden;position:fixed;right:50%!important;top:50%;transform:translate(50%,-50%)}.wrs_modal_dialogContainer.wrs_modal_ios{height:100%;width:100%}.wrs_content_container.wrs_minimized{display:none}.wrs_content_container.wrs_modal_android{display:flex;flex-direction:column;flex-grow:1;height:0;width:100%}.wrs_content_container.wrs_modal_android>div:first-child,.wrs_content_container.wrs_modal_desktop>div:first-child,.wrs_content_container.wrs_modal_ios>div:first-child{flex-grow:1}.wrs_modal_wrapper.wrs_modal_android{display:flex;flex-direction:column;height:100%;margin:auto;width:100%}.wrs_content_container.wrs_modal_desktop,.wrs_content_container.wrs_modal_ios{display:flex;flex-direction:column;flex-grow:1;width:100%}.wrs_content_container.wrs_modal_ios{height:0}.wrs_modal_wrapper.wrs_modal_ios{display:flex;flex-direction:column;height:100%;margin:auto;width:100%}.wrs_virtual_keyboard{height:100%;left:50%;top:0;transform:translate(-50%);width:100%}@media (orientation:portrait){.wrs_modal_dialogContainer.wrs_modal_mobile{border-width:0;height:100vmin;margin:auto;width:100vmin}.wrs_modal_wrapper.wrs_modal_mobile{height:100vmin;margin:auto;width:100vmin}}@media (orientation:landscape){.wrs_modal_dialogContainer.wrs_modal_mobile{border-width:0;height:100vmin;margin:auto;width:100vmin}.wrs_modal_wrapper.wrs_modal_mobile{height:100vmin;margin:auto;width:100vmin}}.wrs_modal_dialogContainer.wrs_modal_badStock,.wrs_modal_wrapper.wrs_modal_badStock{border-width:0;height:280px;margin:0 auto;width:100%}.wrs_noselect{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.wrs_bottom_right_resizer{bottom:8px;color:#778e9a;cursor:se-resize;height:10px;position:absolute;right:4px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:10px}.wrs_bottom_left_resizer{color:#778e9a;cursor:se-resize;height:15px;left:0;position:absolute;top:0;width:15px}.wrs_modal_controls{height:42px;line-height:normal;margin:3px 0;overflow:hidden}.wrs_modal_links{display:inline;float:right;font-family:arial,sans-serif;margin:10px auto 0;padding:6px;text-align:right}.wrs_modal_links>a{color:#778e9a;font-size:16px;text-decoration:none}.wrs_modal_button_cancel,.wrs_modal_button_cancel:active,.wrs_modal_button_cancel:focus,.wrs_modal_button_cancel:hover,.wrs_modal_button_cancel:visited{background-color:#ddd;border:1px solid #778e9a;border-radius:3px;cursor:pointer;font-family:arial,sans-serif;font-size:14px;height:32px;margin:10px auto 0 5px;min-width:80px;padding:6px 8px}.wrs_modal_button_accept,.wrs_modal_button_accept:active,.wrs_modal_button_accept:focus,.wrs_modal_button_accept:hover,.wrs_modal_button_accept:visited{background:#778e9a;border:1px solid #778e9a;border-radius:3px;color:#fff;cursor:pointer;font-family:arial,sans-serif;font-size:14px;height:32px;margin:10px 5px 0 auto;min-width:80px;padding:6px 8px}.wrs_editor_vertical_bar{background:none;cursor:pointer;float:right;height:20px;width:20px}.wrs_modal_buttons_container{display:inline;float:left}.wrs_modal_buttons_container.wrs_modalAndroid{padding-left:6px}.wrs_modal_buttons_container.wrs_modalDesktop{padding-left:0}.wrs_modal_buttons_container>button{background-image:none;line-height:normal}.wrs_modal_wrapper{display:flex;flex-direction:column;margin:6px}.wrs_modal_wrapper.wrs_modal_desktop.wrs_minimized{display:none}@media only screen and (max-device-width:480px) and (orientation:portrait){#wrs_modal_wrapper{width:140%}}.wrs_popupmessage_overlay_envolture{display:none;width:100%}.wrs_popupmessage_overlay{background-color:rgba(0,0,0,.5);bottom:0;cursor:pointer;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.wrs_popupmessage_panel{background:#fff;border-radius:2px;color:#2e2e2e;font-family:sans-serif;font-size:15px;left:50%;max-height:75%;max-width:500px;overflow:auto;padding:20px;position:absolute;text-align:left;top:50%;transform:translate(-50%,-50%);width:75%;z-index:5}.wrs_popupmessage_button_area{margin:10px 0 0}.wrs_panelContainer *{border:0}.wrs_button_cancel,.wrs_button_cancel:active,.wrs_button_cancel:focus,.wrs_button_cancel:hover,.wrs_button_cancel:visited{background-color:#ddd;background-image:none;border:1px solid #778e9a;border-radius:3px;cursor:pointer;font-family:arial,sans-serif;font-size:14px;height:32px;margin:10px auto 0 5px;min-width:80px;padding:6px 8px}.wrs_button_accept,.wrs_button_accept:active,.wrs_button_accept:focus,.wrs_button_accept:hover,.wrs_button_accept:visited{background:#778e9a;border:1px solid #778e9a;border-radius:3px;color:#fff;cursor:pointer;font-family:arial,sans-serif;font-size:14px;height:32px;margin:10px 5px 0 auto;min-width:80px;padding:6px 8px}.wrs_editor button{box-shadow:none}.wrs_editor .wrs_header button{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.wrs_modal_overlay.wrs_modal_desktop.wrs_stack.wrs_overlay_active{display:block}.wrs_toolbar tr:focus,.wrs_toolbar tr:hover{background:none}.wrs_modal_rtl .wrs_modal_button_cancel{margin-left:0;margin-right:5px}.wrs_modal_rtl .wrs_modal_button_accept{margin-left:5px;margin-right:0}.wrs_modal_rtl .wrs_button_cancel{margin-left:0;margin-right:5px}.wrs_modal_rtl .wrs_button_accept{margin-left:5px;margin-right:0}","",{version:3,sources:["webpack://./node_modules/@wiris/mathtype-html-integration-devkit/styles/styles.css"],names:[],mappings:"AAAA,mBAOE,yBAA8B,CAD9B,QAAS,CAJT,4BAA8B,CAG9B,MAAO,CAIP,WAAa,CACb,mBAAoB,CATpB,cAAe,CAGf,OAAQ,CADR,KAAM,CAKN,cAGF,CAOA,sEAEE,YAAa,CADb,iBAEF,CAEA,wCACE,cACF,CAEA,+CACE,sBAA4B,CAC5B,YACF,CAEA,mDACE,yBACF,CAOA,mGACE,sBAA4B,CAC5B,YACF,CAEA,iBACE,UAAW,CACX,sBAAuB,CAKvB,eAAgB,CAJhB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAEF,CAEA,wBAME,2BACF,CAEA,mDANE,UAAW,CADX,cAAe,CADf,WAAY,CAIZ,mBAAoB,CADpB,sBAYF,CAPA,2BAKE,WAEF,CAEA,wBAGE,UAAW,CADX,cAAe,CADf,WAAY,CAGZ,mBAAoB,CACpB,sBAAuB,CACvB,WACF,CAQA,wEAEE,QAAS,CACT,SAAU,CAFV,iBAGF,CAEA,2BAGE,UAAW,CADX,cAAe,CADf,WAAY,CAGZ,mBAAoB,CACpB,sBAAuB,CACvB,WACF,CAEA,yCAEE,QAAS,CACT,SAAU,CAFV,iBAGF,CAEA,qBAEE,wBAAyB,CADzB,aAEF,CAEA,2BAEE,kBAAmB,CADnB,WAAY,CAEZ,cACF,CAEA,6CACE,cACF,CAEA,2DACE,cACF,CAEA,2DAIE,iBAAkB,CAHlB,cAAe,CACf,WAGF,CAEA,sCAEE,YAAa,CACb,SAAU,CAFV,iBAGF,CAKA,uDAEE,QAAS,CAET,mCAAwC,CAHxC,cAAe,CAEf,OAEF,CAMA,0FACE,mCACF,CAEA,6CAIE,UAAW,CADX,SAMF,CAEA,sFAVE,WAAY,CAIZ,eAAgB,CAHhB,cAAe,CAMf,mBAAqB,CADrB,OAAQ,CADR,6BAcF,CATA,yCAIE,WAAY,CADZ,UAMF,CAKA,qCACE,YACF,CAMA,yCAIE,YAAa,CACb,qBAAsB,CAFtB,WAAY,CADZ,QAAU,CADV,UAKF,CAUA,uKACE,WACF,CAEA,qCAEE,YAAa,CACb,qBAAsB,CACtB,WAAY,CAHZ,WAAY,CAIZ,UACF,CASA,8EAJE,YAAa,CACb,qBAAsB,CAFtB,WAAY,CADZ,UAYF,CANA,qCAEE,QAIF,CAEA,iCAEE,YAAa,CACb,qBAAsB,CACtB,WAAY,CAHZ,WAAY,CAIZ,UACF,CAEA,sBACE,WAAY,CAGZ,QAAS,CADT,KAAM,CAEN,yBAA8B,CAH9B,UAIF,CAEA,8BACE,4CAIE,cAAe,CAFf,cAAe,CACf,WAAY,CAFZ,aAIF,CAEA,oCAEE,cAAe,CACf,WAAY,CAFZ,aAGF,CACF,CAEA,+BACE,4CAIE,cAAe,CAFf,cAAe,CACf,WAAY,CAFZ,aAIF,CAEA,oCAEE,cAAe,CACf,WAAY,CAFZ,aAGF,CACF,CASA,oFAIE,cAAe,CAFf,YAAa,CACb,aAAc,CAFd,UAIF,CAEA,cACE,qBAAsB,CACtB,uBAAwB,CACxB,wBAAyB,CACzB,oBAAqB,CACrB,gBACF,CAEA,0BAME,UAAW,CAHX,aAAc,CAId,gBAAiB,CALjB,WAAY,CAEZ,iBAAkB,CAClB,SAAU,CAGV,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAiB,CAVjB,UAWF,CAEA,yBAGE,aAAc,CAId,gBAAiB,CALjB,WAAY,CAGZ,MAAO,CADP,iBAAkB,CAElB,KAAM,CALN,UAOF,CAEA,oBACE,WAAY,CAGZ,kBAAmB,CAFnB,YAAa,CACb,eAEF,CAEA,iBAKE,cAAe,CACf,WAAY,CAHZ,4BAA8B,CAD9B,kBAAgB,CAEhB,WAAY,CAGZ,gBACF,CAEA,mBAEE,aAAc,CACd,cAAe,CAFf,oBAGF,CAEA,wJAeE,qBAAsB,CAPtB,wBAAyB,CADzB,iBAAkB,CAMlB,cAAe,CACf,4BAA8B,CAR9B,cAAe,CAUf,WAAY,CAJZ,sBAAgB,CAPhB,cAAe,CAIf,eAQF,CAEA,wJAcE,kBAAmB,CANnB,wBAAyB,CADzB,iBAAkB,CAMlB,UAAW,CAEX,cAAe,CACf,4BAA8B,CAV9B,cAAe,CAWf,WAAY,CALZ,sBAAgB,CAPhB,cAAe,CAIf,eASF,CAEA,yBAGE,eAAgB,CAEhB,cAAe,CAHf,WAAY,CADZ,WAAY,CAGZ,UAEF,CAEA,6BACE,cAAe,CACf,UACF,CAEA,8CACE,gBACF,CAEA,8CACE,cACF,CAEA,oCAEE,qBAAsB,CADtB,kBAEF,CAEA,mBAEE,YAAa,CACb,qBAAsB,CAFtB,UAGF,CAEA,mDACE,YACF,CAEA,2EACE,mBACE,UACF,CACF,CAEA,oCACE,YAAa,CACb,UACF,CAEA,0BAQE,+BAAoC,CADpC,QAAS,CAGT,cAAe,CAPf,WAAY,CAEZ,MAAO,CAJP,iBAAkB,CAKlB,OAAQ,CAFR,KAAM,CAFN,UAAW,CAOX,SAEF,CAEA,wBAKE,eAAiB,CAGjB,iBAAkB,CAKlB,aAAc,CAHd,sBAAuB,CACvB,cAAe,CATf,QAAS,CAaT,cAAe,CATf,eAAgB,CAUhB,aAAc,CAPd,YAAa,CALb,iBAAkB,CAQlB,eAAgB,CAXhB,OAAQ,CAER,8BAAgC,CAIhC,SAAU,CAOV,SAGF,CAEA,8BACE,eACF,CAEA,sBACE,QACF,CAEA,0HAeE,qBAAsB,CACtB,qBAAsB,CARtB,wBAAyB,CADzB,iBAAkB,CAMlB,cAAe,CACf,4BAA8B,CAR9B,cAAe,CAWf,WAAY,CALZ,sBAAgB,CAPhB,cAAe,CAIf,eASF,CAEA,0HAcE,kBAAmB,CANnB,wBAAyB,CADzB,iBAAkB,CAMlB,UAAW,CAEX,cAAe,CACf,4BAA8B,CAV9B,cAAe,CAWf,WAAY,CALZ,sBAAgB,CAPhB,cAAe,CAIf,eASF,CAEA,mBACE,eACF,CAEA,+BACE,kBAAmB,CACnB,2BAA4B,CAC5B,4BACF,CAEA,kEACE,aACF,CAOA,4CACE,eACF,CAGA,wCAEE,aAAc,CADd,gBAEF,CAEA,wCAEE,eAAgB,CADhB,cAEF,CAEA,kCAEE,aAAc,CADd,gBAEF,CAEA,kCAEE,eAAgB,CADhB,cAEF",sourcesContent:[".wrs_modal_overlay {\n  position: fixed;\n  font-family: arial, sans-serif;\n  top: 0;\n  right: 0;\n  left: 0;\n  bottom: 0;\n  background: rgba(0, 0, 0, 0.8);\n  z-index: 999998;\n  opacity: 0.65;\n  pointer-events: auto;\n}\n\n.wrs_modal_overlay.wrs_modal_ios {\n  visibility: hidden;\n  display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_android {\n  visibility: hidden;\n  display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_ios.moodle {\n  position: fixed;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_stack {\n  background: rgba(0, 0, 0, 0);\n  display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_maximized {\n  background: rgba(0, 0, 0, 0.8);\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_minimized {\n  background: rgba(0, 0, 0, 0);\n  display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_closed {\n  background: rgba(0, 0, 0, 0);\n  display: none;\n}\n\n.wrs_modal_title {\n  color: #fff;\n  padding: 5px 0 5px 10px;\n  -moz-user-select: none;\n  -webkit-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  text-align: left;\n}\n\n.wrs_modal_close_button {\n  float: right;\n  cursor: pointer;\n  color: #fff;\n  padding: 5px 10px 5px 0;\n  margin: 10px 7px 0 0;\n  background-repeat: no-repeat;\n}\n\n.wrs_modal_minimize_button {\n  float: right;\n  cursor: pointer;\n  color: #fff;\n  padding: 5px 10px 5px 0;\n  top: inherit;\n  margin: 10px 7px 0 0;\n}\n\n.wrs_modal_stack_button {\n  float: right;\n  cursor: pointer;\n  color: #fff;\n  margin: 10px 7px 0 0;\n  padding: 5px 10px 5px 0;\n  top: inherit;\n}\n\n.wrs_modal_stack_button.wrs_stack {\n  visibility: hidden;\n  margin: 0;\n  padding: 0;\n}\n\n.wrs_modal_stack_button.wrs_minimized {\n  visibility: hidden;\n  margin: 0;\n  padding: 0;\n}\n\n.wrs_modal_maximize_button {\n  float: right;\n  cursor: pointer;\n  color: #fff;\n  margin: 10px 7px 0 0;\n  padding: 5px 10px 5px 0;\n  top: inherit;\n}\n\n.wrs_modal_maximize_button.wrs_maximized {\n  visibility: hidden;\n  margin: 0;\n  padding: 0;\n}\n\n.wrs_modal_title_bar {\n  display: block;\n  background-color: #778e9a;\n}\n\n.wrs_modal_dialogContainer {\n  border: none;\n  background: #fafafa;\n  z-index: 999999;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop {\n  font-size: 14px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_maximized {\n  position: fixed;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized {\n  position: fixed;\n  top: inherit;\n  margin: 0;\n  margin-right: 10px;\n}\n\n.wrs_modal_dialogContainer.wrs_closed {\n  visibility: hidden;\n  display: none;\n  opacity: 0;\n}\n\n/* Class that exists but hasn't got css properties defined\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized.wrs_drag {} */\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_stack {\n  position: fixed;\n  bottom: 0;\n  right: 0;\n  box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_drag {\n  box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_drag {\n  box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_android {\n  margin: auto;\n  position: fixed;\n  width: 99%;\n  height: 99%;\n  overflow: hidden;\n  transform: translate(50%, -50%);\n  top: 50%;\n  right: 50% !important;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_ios {\n  margin: auto;\n  position: fixed;\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n  transform: translate(50%, -50%);\n  top: 50%;\n  right: 50% !important;\n}\n\n/* Class that exists but hasn't got css properties defined\n.wrs_content_container.wrs_maximized {} */\n\n.wrs_content_container.wrs_minimized {\n  display: none;\n}\n\n/* .wrs_editor {\n    flex-grow: 1;\n} */\n\n.wrs_content_container.wrs_modal_android {\n  width: 100%;\n  height: 0%;\n  flex-grow: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.wrs_content_container.wrs_modal_android > div:first-child {\n  flex-grow: 1;\n}\n\n.wrs_content_container.wrs_modal_ios > div:first-child {\n  flex-grow: 1;\n}\n\n.wrs_content_container.wrs_modal_desktop > div:first-child {\n  flex-grow: 1;\n}\n\n.wrs_modal_wrapper.wrs_modal_android {\n  margin: auto;\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  width: 100%;\n}\n\n.wrs_content_container.wrs_modal_desktop {\n  width: 100%;\n  flex-grow: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.wrs_content_container.wrs_modal_ios {\n  width: 100%;\n  height: 0%;\n  flex-grow: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.wrs_modal_wrapper.wrs_modal_ios {\n  margin: auto;\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  width: 100%;\n}\n\n.wrs_virtual_keyboard {\n  height: 100%;\n  width: 100%;\n  top: 0;\n  left: 50%;\n  transform: translate(-50%, 0%);\n}\n\n@media all and (orientation: portrait) {\n  .wrs_modal_dialogContainer.wrs_modal_mobile {\n    width: 100vmin;\n    height: 100vmin;\n    margin: auto;\n    border-width: 0;\n  }\n\n  .wrs_modal_wrapper.wrs_modal_mobile {\n    width: 100vmin;\n    height: 100vmin;\n    margin: auto;\n  }\n}\n\n@media all and (orientation: landscape) {\n  .wrs_modal_dialogContainer.wrs_modal_mobile {\n    width: 100vmin;\n    height: 100vmin;\n    margin: auto;\n    border-width: 0;\n  }\n\n  .wrs_modal_wrapper.wrs_modal_mobile {\n    width: 100vmin;\n    height: 100vmin;\n    margin: auto;\n  }\n}\n\n.wrs_modal_dialogContainer.wrs_modal_badStock {\n  width: 100%;\n  height: 280px;\n  margin: 0 auto;\n  border-width: 0;\n}\n\n.wrs_modal_wrapper.wrs_modal_badStock {\n  width: 100%;\n  height: 280px;\n  margin: 0 auto;\n  border-width: 0;\n}\n\n.wrs_noselect {\n  -moz-user-select: none;\n  -khtml-user-select: none;\n  -webkit-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n\n.wrs_bottom_right_resizer {\n  width: 10px;\n  height: 10px;\n  color: #778e9a;\n  position: absolute;\n  right: 4px;\n  bottom: 8px;\n  cursor: se-resize;\n  -moz-user-select: none;\n  -webkit-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n\n.wrs_bottom_left_resizer {\n  width: 15px;\n  height: 15px;\n  color: #778e9a;\n  position: absolute;\n  left: 0;\n  top: 0;\n  cursor: se-resize;\n}\n\n.wrs_modal_controls {\n  height: 42px;\n  margin: 3px 0;\n  overflow: hidden;\n  line-height: normal;\n}\n\n.wrs_modal_links {\n  margin: 10px auto;\n  margin-bottom: 0;\n  font-family: arial, sans-serif;\n  padding: 6px;\n  display: inline;\n  float: right;\n  text-align: right;\n}\n\n.wrs_modal_links > a {\n  text-decoration: none;\n  color: #778e9a;\n  font-size: 16px;\n}\n\n.wrs_modal_button_cancel,\n.wrs_modal_button_cancel:hover,\n.wrs_modal_button_cancel:visited,\n.wrs_modal_button_cancel:active,\n.wrs_modal_button_cancel:focus {\n  min-width: 80px;\n  font-size: 14px;\n  border-radius: 3px;\n  border: 1px solid #778e9a;\n  padding: 6px 8px;\n  margin: 10px auto;\n  margin-left: 5px;\n  margin-bottom: 0;\n  cursor: pointer;\n  font-family: arial, sans-serif;\n  background-color: #ddd;\n  height: 32px;\n}\n\n.wrs_modal_button_accept,\n.wrs_modal_button_accept:hover,\n.wrs_modal_button_accept:visited,\n.wrs_modal_button_accept:active,\n.wrs_modal_button_accept:focus {\n  min-width: 80px;\n  font-size: 14px;\n  border-radius: 3px;\n  border: 1px solid #778e9a;\n  padding: 6px 8px;\n  margin: 10px auto;\n  margin-right: 5px;\n  margin-bottom: 0;\n  color: #fff;\n  background: #778e9a;\n  cursor: pointer;\n  font-family: arial, sans-serif;\n  height: 32px;\n}\n\n.wrs_editor_vertical_bar {\n  height: 20px;\n  float: right;\n  background: none;\n  width: 20px;\n  cursor: pointer;\n}\n\n.wrs_modal_buttons_container {\n  display: inline;\n  float: left;\n}\n\n.wrs_modal_buttons_container.wrs_modalAndroid {\n  padding-left: 6px;\n}\n\n.wrs_modal_buttons_container.wrs_modalDesktop {\n  padding-left: 0;\n}\n\n.wrs_modal_buttons_container > button {\n  line-height: normal;\n  background-image: none;\n}\n\n.wrs_modal_wrapper {\n  margin: 6px;\n  display: flex;\n  flex-direction: column;\n}\n\n.wrs_modal_wrapper.wrs_modal_desktop.wrs_minimized {\n  display: none;\n}\n\n@media only screen and (max-device-width: 480px) and (orientation: portrait) {\n  #wrs_modal_wrapper {\n    width: 140%;\n  }\n}\n\n.wrs_popupmessage_overlay_envolture {\n  display: none;\n  width: 100%;\n}\n\n.wrs_popupmessage_overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background-color: rgba(0, 0, 0, 0.5);\n  z-index: 4;\n  cursor: pointer;\n}\n\n.wrs_popupmessage_panel {\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  position: absolute;\n  background: white;\n  max-width: 500px;\n  width: 75%;\n  border-radius: 2px;\n  padding: 20px;\n  font-family: sans-serif;\n  font-size: 15px;\n  text-align: left;\n  color: #2e2e2e;\n  z-index: 5;\n  max-height: 75%;\n  overflow: auto;\n}\n\n.wrs_popupmessage_button_area {\n  margin: 10px 0 0 0;\n}\n\n.wrs_panelContainer * {\n  border: 0;\n}\n\n.wrs_button_cancel,\n.wrs_button_cancel:hover,\n.wrs_button_cancel:visited,\n.wrs_button_cancel:active,\n.wrs_button_cancel:focus {\n  min-width: 80px;\n  font-size: 14px;\n  border-radius: 3px;\n  border: 1px solid #778e9a;\n  padding: 6px 8px;\n  margin: 10px auto;\n  margin-left: 5px;\n  margin-bottom: 0;\n  cursor: pointer;\n  font-family: arial, sans-serif;\n  background-color: #ddd;\n  background-image: none;\n  height: 32px;\n}\n\n.wrs_button_accept,\n.wrs_button_accept:hover,\n.wrs_button_accept:visited,\n.wrs_button_accept:active,\n.wrs_button_accept:focus {\n  min-width: 80px;\n  font-size: 14px;\n  border-radius: 3px;\n  border: 1px solid #778e9a;\n  padding: 6px 8px;\n  margin: 10px auto;\n  margin-right: 5px;\n  margin-bottom: 0;\n  color: #fff;\n  background: #778e9a;\n  cursor: pointer;\n  font-family: arial, sans-serif;\n  height: 32px;\n}\n\n.wrs_editor button {\n  box-shadow: none;\n}\n\n.wrs_editor .wrs_header button {\n  border-bottom: none;\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_stack.wrs_overlay_active {\n  display: block;\n}\n\n/* Fix selection in drupal style */\n.wrs_toolbar tr:focus {\n  background: none;\n}\n\n.wrs_toolbar tr:hover {\n  background: none;\n}\n\n/* End of fix drupal */\n.wrs_modal_rtl .wrs_modal_button_cancel {\n  margin-right: 5px;\n  margin-left: 0;\n}\n\n.wrs_modal_rtl .wrs_modal_button_accept {\n  margin-right: 0;\n  margin-left: 5px;\n}\n\n.wrs_modal_rtl .wrs_button_cancel {\n  margin-right: 5px;\n  margin-left: 0;\n}\n\n.wrs_modal_rtl .wrs_button_accept {\n  margin-right: 0;\n  margin-left: 5px;\n}\n"],sourceRoot:""}]);const a=s},3645: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,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},4015: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 i,o,r=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))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,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(t){var n=e(t,4),i=n[1],o=n[3];if(!o)return i;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(s," */"),c=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[i].concat(c).concat([a]).join("\n")}return[i].join("\n")}},1227:(t,e,n)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(i++,"%c"===t&&(o=i))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(2447)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2447:(t,e,n)=>{t.exports=function(t){function e(t){let n,o,r,s=null;function a(...t){if(!a.enabled)return;const i=a,o=Number(new Date),r=o-(n||o);i.diff=r,i.prev=n,i.curr=o,n=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const r=e.formatters[o];if("function"==typeof r){const e=t[s];n=r.call(i,e),t.splice(s,1),s--}return n})),e.formatArgs.call(i,t);(i.log||e.log).apply(i,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=i,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,r=e.enabled(t)),r),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function i(t,n){const i=e(this.namespace+(void 0===n?":":n)+t);return i.log=this.log,i}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const i=("string"==typeof t?t:"").split(/[\s,]+/),o=i.length;for(n=0;n<o;n++)i[n]&&("-"===(t=i[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(7824),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},9490:(t,e)=>{"use strict";function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function a(t,e,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&s(o,n.prototype),o},a.apply(null,arguments)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return a(t,arguments,r(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s(i,t)},c(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t){var e=0;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)))return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}var u=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(c(Error)),h=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return o(e,t),e}(u),m=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return o(e,t),e}(u),g=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return o(e,t),e}(u),p=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(u),f=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return o(e,t),e}(u),x=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(u),b=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return o(e,t),e}(u),k="numeric",w="short",A="long",_={year:k,month:k,day:k},v={year:k,month:w,day:k},C={year:k,month:w,day:k,weekday:w},y={year:k,month:A,day:k},E={year:k,month:A,day:k,weekday:A},I={hour:k,minute:k},S={hour:k,minute:k,second:k},T={hour:k,minute:k,second:k,timeZoneName:w},D={hour:k,minute:k,second:k,timeZoneName:A},M={hour:k,minute:k,hour12:!1},B={hour:k,minute:k,second:k,hour12:!1},O={hour:k,minute:k,second:k,hour12:!1,timeZoneName:w},N={hour:k,minute:k,second:k,hour12:!1,timeZoneName:A},P={year:k,month:k,day:k,hour:k,minute:k},R={year:k,month:k,day:k,hour:k,minute:k,second:k},L={year:k,month:w,day:k,hour:k,minute:k},j={year:k,month:w,day:k,hour:k,minute:k,second:k},z={year:k,month:w,day:k,weekday:w,hour:k,minute:k},V={year:k,month:A,day:k,hour:k,minute:k,timeZoneName:w},F={year:k,month:A,day:k,hour:k,minute:k,second:k,timeZoneName:w},U={year:k,month:A,day:k,weekday:A,hour:k,minute:k,timeZoneName:A},H={year:k,month:A,day:k,weekday:A,hour:k,minute:k,second:k,timeZoneName:A};function G(t){return void 0===t}function q(t){return"number"==typeof t}function W(t){return"number"==typeof t&&t%1==0}function K(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function Z(){return!G(Intl.DateTimeFormat.prototype.formatToParts)}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function J(t,e,n){if(0!==t.length)return t.reduce((function(t,i){var o=[e(i),i];return t&&n(t[0],o[0])===t[0]?t:o}),null)[1]}function $(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}function Q(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function X(t,e,n){return W(t)&&t>=e&&t<=n}function tt(t,e){void 0===e&&(e=2);var n=t<0?"-":"",i=n?-1*t:t;return""+n+(i.toString().length<e?("0".repeat(e)+i).slice(-e):i.toString())}function et(t){return G(t)||null===t||""===t?void 0:parseInt(t,10)}function nt(t){if(!G(t)&&null!==t&&""!==t){var e=1e3*parseFloat("0."+t);return Math.floor(e)}}function it(t,e,n){void 0===n&&(n=!1);var i=Math.pow(10,e);return(n?Math.trunc:Math.round)(t*i)/i}function ot(t){return t%4==0&&(t%100!=0||t%400==0)}function rt(t){return ot(t)?366:365}function st(t,e){var n=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===n?ot(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function at(t){var e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function ct(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,i=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===i?53:52}function lt(t){return t>99?t:t>60?1900+t:2e3+t}function dt(t,e,n,i){void 0===i&&(i=null);var o=new Date(t),r={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(r.timeZone=i);var s=Object.assign({timeZoneName:e},r),a=K();if(a&&Z()){var c=new Intl.DateTimeFormat(n,s).formatToParts(o).find((function(t){return"timezonename"===t.type.toLowerCase()}));return c?c.value:null}if(a){var l=new Intl.DateTimeFormat(n,r).format(o);return new Intl.DateTimeFormat(n,s).format(o).substring(l.length).replace(/^[, \u200e]+/,"")}return null}function ut(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var i=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function ht(t){var e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new x("Invalid unit value "+t);return e}function mt(t,e,n){var i={};for(var o in t)if(Q(t,o)){if(n.indexOf(o)>=0)continue;var r=t[o];if(null==r)continue;i[e(o)]=ht(r)}return i}function gt(t,e){var n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return""+o+tt(n,2)+":"+tt(i,2);case"narrow":return""+o+n+(i>0?":"+i:"");case"techie":return""+o+tt(n,2)+tt(i,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function pt(t){return $(t,["hour","minute","second","millisecond"])}var ft=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function xt(t){return JSON.stringify(t,Object.keys(t).sort())}var bt=["January","February","March","April","May","June","July","August","September","October","November","December"],kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wt=["J","F","M","A","M","J","J","A","S","O","N","D"];function At(t){switch(t){case"narrow":return[].concat(wt);case"short":return[].concat(kt);case"long":return[].concat(bt);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var _t=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],vt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ct=["M","T","W","T","F","S","S"];function yt(t){switch(t){case"narrow":return[].concat(Ct);case"short":return[].concat(vt);case"long":return[].concat(_t);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Et=["AM","PM"],It=["Before Christ","Anno Domini"],St=["BC","AD"],Tt=["B","A"];function Dt(t){switch(t){case"narrow":return[].concat(Tt);case"short":return[].concat(St);case"long":return[].concat(It);default:return null}}function Mt(t,e){for(var n,i="",o=d(t);!(n=o()).done;){var r=n.value;r.literal?i+=r.val:i+=e(r.val)}return i}var Bt={D:_,DD:v,DDD:y,DDDD:E,t:I,tt:S,ttt:T,tttt:D,T:M,TT:B,TTT:O,TTTT:N,f:P,ff:L,fff:V,ffff:U,F:R,FF:j,FFF:F,FFFF:H},Ot=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.parseFormat=function(t){for(var e=null,n="",i=!1,o=[],r=0;r<t.length;r++){var s=t.charAt(r);"'"===s?(n.length>0&&o.push({literal:i,val:n}),e=null,n="",i=!i):i||s===e?n+=s:(n.length>0&&o.push({literal:!1,val:n}),n=s,e=s)}return n.length>0&&o.push({literal:i,val:n}),o},t.macroTokenToFormatOpts=function(t){return Bt[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return tt(t,e);var n=Object.assign({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},e.formatDateTimeFromString=function(e,n){var i=this,o="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&Z(),s=function(t,n){return i.loc.extract(e,t,n)},a=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},c=function(){return o?function(t){return Et[t.hour<12?0:1]}(e):s({hour:"numeric",hour12:!0},"dayperiod")},l=function(t,n){return o?function(t,e){return At(e)[t.month-1]}(e,t):s(n?{month:t}:{month:t,day:"numeric"},"month")},d=function(t,n){return o?function(t,e){return yt(e)[t.weekday-1]}(e,t):s(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},u=function(t){return o?function(t,e){return Dt(e)[t.year<0?0:1]}(e,t):s({era:t},"era")};return Mt(t.parseFormat(n),(function(n){switch(n){case"S":return i.num(e.millisecond);case"u":case"SSS":return i.num(e.millisecond,3);case"s":return i.num(e.second);case"ss":return i.num(e.second,2);case"m":return i.num(e.minute);case"mm":return i.num(e.minute,2);case"h":return i.num(e.hour%12==0?12:e.hour%12);case"hh":return i.num(e.hour%12==0?12:e.hour%12,2);case"H":return i.num(e.hour);case"HH":return i.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:i.opts.allowZ});case"ZZ":return a({format:"short",allowZ:i.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:i.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:i.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:i.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return r?s({day:"numeric"},"day"):i.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):i.num(e.day,2);case"c":case"E":return i.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):i.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):i.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?s({month:"numeric"},"month"):i.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):i.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?s({year:"numeric"},"year"):i.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):i.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):i.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):i.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return i.num(e.weekYear.toString().slice(-2),2);case"kkkk":return i.num(e.weekYear,4);case"W":return i.num(e.weekNumber);case"WW":return i.num(e.weekNumber,2);case"o":return i.num(e.ordinal);case"ooo":return i.num(e.ordinal,3);case"q":return i.num(e.quarter);case"qq":return i.num(e.quarter,2);case"X":return i.num(Math.floor(e.ts/1e3));case"x":return i.num(e.ts);default:return function(n){var o=t.macroTokenToFormatOpts(n);return o?i.formatWithSystemDefault(e,o):n}(n)}}))},e.formatDurationFromString=function(e,n){var i,o=this,r=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=t.parseFormat(n),a=s.reduce((function(t,e){var n=e.literal,i=e.val;return n?t:t.concat(i)}),[]),c=e.shiftTo.apply(e,a.map(r).filter((function(t){return t})));return Mt(s,(i=c,function(t){var e=r(t);return e?o.num(i.get(e),t.length):t}))},t}(),Nt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Pt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new b},e.formatOffset=function(t,e){throw new b},e.offset=function(t){throw new b},e.equals=function(t){throw new b},i(t,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"universal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),t}(),Rt=null,Lt=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.offsetName=function(t,e){return dt(t,e.format,e.locale)},n.formatOffset=function(t,e){return gt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"local"===t.type},i(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return K()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Rt&&(Rt=new e),Rt}}]),e}(Pt),jt=RegExp("^"+ft.source+"$"),zt={};var Vt={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ft={},Ut=function(t){function e(n){var i;return(i=t.call(this)||this).zoneName=n,i.valid=e.isValidZone(n),i}o(e,t),e.create=function(t){return Ft[t]||(Ft[t]=new e(t)),Ft[t]},e.resetCache=function(){Ft={},zt={}},e.isValidSpecifier=function(t){return!(!t||!t.match(jt))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var n=e.prototype;return n.offsetName=function(t,e){return dt(t,e.format,e.locale,this.name)},n.formatOffset=function(t,e){return gt(this.offset(t),e)},n.offset=function(t){var e=new Date(t);if(isNaN(e))return NaN;var n,i=(n=this.name,zt[n]||(zt[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),zt[n]),o=i.formatToParts?function(t,e){for(var n=t.formatToParts(e),i=[],o=0;o<n.length;o++){var r=n[o],s=r.type,a=r.value,c=Vt[s];G(c)||(i[c]=parseInt(a,10))}return i}(i,e):function(t,e){var n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),o=i[1],r=i[2];return[i[3],o,r,i[4],i[5],i[6]]}(i,e),r=o[0],s=o[1],a=o[2],c=o[3],l=+e,d=l%1e3;return(at({year:r,month:s,day:a,hour:24===c?0:c,minute:o[4],second:o[5],millisecond:0})-(l-=d>=0?d:1e3+d))/6e4},n.equals=function(t){return"iana"===t.type&&t.name===this.name},i(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Pt),Ht=null,Gt=function(t){function e(e){var n;return(n=t.call(this)||this).fixed=e,n}o(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(ut(n[1],n[2]))}return null},i(e,null,[{key:"utcInstance",get:function(){return null===Ht&&(Ht=new e(0)),Ht}}]);var n=e.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(t,e){return gt(this.fixed,e)},n.offset=function(){return this.fixed},n.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},i(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+gt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(Pt),qt=function(t){function e(e){var n;return(n=t.call(this)||this).zoneName=e,n}o(e,t);var n=e.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Pt);function Wt(t,e){var n;if(G(t)||null===t)return e;if(t instanceof Pt)return t;if("string"==typeof t){var i=t.toLowerCase();return"local"===i?e:"utc"===i||"gmt"===i?Gt.utcInstance:null!=(n=Ut.parseGMTOffset(t))?Gt.instance(n):Ut.isValidSpecifier(i)?Ut.create(t):Gt.parseSpecifier(i)||new qt(t)}return q(t)?Gt.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new qt(t)}var Kt=function(){return Date.now()},Zt=null,Yt=null,Jt=null,$t=null,Qt=!1,Xt=function(){function t(){}return t.resetCaches=function(){de.resetCache(),Ut.resetCache()},i(t,null,[{key:"now",get:function(){return Kt},set:function(t){Kt=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){Zt=t?Wt(t):null}},{key:"defaultZone",get:function(){return Zt||Lt.instance}},{key:"defaultLocale",get:function(){return Yt},set:function(t){Yt=t}},{key:"defaultNumberingSystem",get:function(){return Jt},set:function(t){Jt=t}},{key:"defaultOutputCalendar",get:function(){return $t},set:function(t){$t=t}},{key:"throwOnInvalid",get:function(){return Qt},set:function(t){Qt=t}}]),t}(),te={};function ee(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),i=te[n];return i||(i=new Intl.DateTimeFormat(t,e),te[n]=i),i}var ne={};var ie={};function oe(t,e){void 0===e&&(e={});var n=e,i=(n.base,function(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}(n,["base"])),o=JSON.stringify([t,i]),r=ie[o];return r||(r=new Intl.RelativeTimeFormat(t,e),ie[o]=r),r}var re=null;function se(t,e,n,i,o){var r=t.listingMode(n);return"error"===r?null:"en"===r?i(e):o(e)}var ae=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e&&K()){var i={useGrouping:!1};n.padTo>0&&(i.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),i=ne[n];return i||(i=new Intl.NumberFormat(t,e),ne[n]=i),i}(t,i)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return tt(this.floor?Math.floor(t):it(t,3),this.padTo)},t}(),ce=function(){function t(t,e,n){var i;if(this.opts=n,this.hasIntl=K(),t.zone.universal&&this.hasIntl){var o=t.offset/60*-1,r=o>=0?"Etc/GMT+"+o:"Etc/GMT"+o,s=Ut.isValidZone(r);0!==t.offset&&s?(i=r,this.dt=t):(i="UTC",n.timeZoneName?this.dt=t:this.dt=0===t.offset?t:mi.fromMillis(t.ts+60*t.offset*1e3))}else"local"===t.zone.type?this.dt=t:(this.dt=t,i=t.zone.name);if(this.hasIntl){var a=Object.assign({},this.opts);i&&(a.timeZone=i),this.dtf=ee(e,a)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){var e="EEEE, LLLL d, yyyy, h:mm a";switch(xt($(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case xt(_):return"M/d/yyyy";case xt(v):return"LLL d, yyyy";case xt(C):return"EEE, LLL d, yyyy";case xt(y):return"LLLL d, yyyy";case xt(E):return"EEEE, LLLL d, yyyy";case xt(I):return"h:mm a";case xt(S):return"h:mm:ss a";case xt(T):case xt(D):return"h:mm a";case xt(M):return"HH:mm";case xt(B):return"HH:mm:ss";case xt(O):case xt(N):return"HH:mm";case xt(P):return"M/d/yyyy, h:mm a";case xt(L):return"LLL d, yyyy, h:mm a";case xt(V):return"LLLL d, yyyy, h:mm a";case xt(U):return e;case xt(R):return"M/d/yyyy, h:mm:ss a";case xt(j):return"LLL d, yyyy, h:mm:ss a";case xt(z):return"EEE, d LLL yyyy, h:mm a";case xt(F):return"LLLL d, yyyy, h:mm:ss a";case xt(H):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return e}}(this.opts),e=de.create("en-US");return Ot.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&Z()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),le=function(){function t(t,e,n){this.opts=Object.assign({style:"long"},n),!e&&Y()&&(this.rtf=oe(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,i){void 0===n&&(n="always"),void 0===i&&(i=!1);var o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&r){var s="days"===t;switch(e){case 1:return s?"tomorrow":"next "+o[t][0];case-1:return s?"yesterday":"last "+o[t][0];case 0:return s?"today":"this "+o[t][0]}}var a=Object.is(e,-0)||e<0,c=Math.abs(e),l=1===c,d=o[t],u=i?l?d[1]:d[2]||d[1]:l?o[t][0]:t;return a?c+" "+u+" ago":"in "+c+" "+u}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),de=function(){function t(t,e,n,i){var o=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,i=t.substring(0,e);try{n=ee(t).resolvedOptions()}catch(t){n=ee(i).resolvedOptions()}var o=n;return[i,o.numberingSystem,o.calendar]}(t),r=o[0],s=o[1],a=o[2];this.locale=r,this.numberingSystem=e||s||null,this.outputCalendar=n||a||null,this.intl=function(t,e,n){return K()?n||e?(t+="-u",n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,n,i,o){void 0===o&&(o=!1);var r=e||Xt.defaultLocale;return new t(r||(o?"en-US":function(){if(re)return re;if(K()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return re=t&&"und"!==t?t:"en-US"}return re="en-US"}()),n||Xt.defaultNumberingSystem,i||Xt.defaultOutputCalendar,r)},t.resetCache=function(){re=null,te={},ne={},ie={}},t.fromObject=function(e){var n=void 0===e?{}:e,i=n.locale,o=n.numberingSystem,r=n.outputCalendar;return t.create(i,o,r)};var e=t.prototype;return e.listingMode=function(t){void 0===t&&(t=!0);var e=K()&&Z(),n=this.isEnglish(),i=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e||n&&i||t?!e||n&&i?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},e.months=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),se(this,t,n,At,(function(){var n=e?{month:t,day:"numeric"}:{month:t},o=e?"format":"standalone";return i.monthsCache[o][t]||(i.monthsCache[o][t]=function(t){for(var e=[],n=1;n<=12;n++){var i=mi.utc(2016,n,1);e.push(t(i))}return e}((function(t){return i.extract(t,n,"month")}))),i.monthsCache[o][t]}))},e.weekdays=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),se(this,t,n,yt,(function(){var n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=e?"format":"standalone";return i.weekdaysCache[o][t]||(i.weekdaysCache[o][t]=function(t){for(var e=[],n=1;n<=7;n++){var i=mi.utc(2016,11,13+n);e.push(t(i))}return e}((function(t){return i.extract(t,n,"weekday")}))),i.weekdaysCache[o][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),se(this,void 0,t,(function(){return Et}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hour12:!0};e.meridiemCache=[mi.utc(2016,11,13,9),mi.utc(2016,11,13,19)].map((function(n){return e.extract(n,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var n=this;return void 0===e&&(e=!0),se(this,t,e,Dt,(function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[mi.utc(-40,1,1),mi.utc(2017,1,1)].map((function(t){return n.extract(t,e,"era")}))),n.eraCache[t]}))},e.extract=function(t,e,n){var i=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===n}));return i?i.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new ae(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new ce(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new le(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||K()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},i(t,[{key:"fastNumbers",get:function(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||K()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),t}();function ue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.reduce((function(t,e){return t+e.source}),"");return RegExp("^"+i+"$")}function he(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(e,n){var i=e[0],o=e[1],r=e[2],s=n(t,r),a=s[0],c=s[1],l=s[2];return[Object.assign(i,a),o||c,l]}),[{},null,1]).slice(0,2)}}function me(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var o=0,r=n;o<r.length;o++){var s=r[o],a=s[0],c=s[1],l=a.exec(t);if(l)return c(l)}return[null,null]}function ge(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t,n){var i,o={};for(i=0;i<e.length;i++)o[e[i]]=et(t[n+i]);return[o,null,n+i]}}var pe=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,fe=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,xe=RegExp(""+fe.source+pe.source+"?"),be=RegExp("(?:T"+xe.source+")?"),ke=ge("weekYear","weekNumber","weekDay"),we=ge("year","ordinal"),Ae=RegExp(fe.source+" ?(?:"+pe.source+"|("+ft.source+"))?"),_e=RegExp("(?: "+Ae.source+")?");function ve(t,e,n){var i=t[e];return G(i)?n:et(i)}function Ce(t,e){return[{year:ve(t,e),month:ve(t,e+1,1),day:ve(t,e+2,1)},null,e+3]}function ye(t,e){return[{hours:ve(t,e,0),minutes:ve(t,e+1,0),seconds:ve(t,e+2,0),milliseconds:nt(t[e+3])},null,e+4]}function Ee(t,e){var n=!t[e]&&!t[e+1],i=ut(t[e+1],t[e+2]);return[{},n?null:Gt.instance(i),e+3]}function Ie(t,e){return[{},t[e]?Ut.create(t[e]):null,e+1]}var Se=RegExp("^T?"+fe.source+"$"),Te=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function De(t){var e=t[0],n=t[1],i=t[2],o=t[3],r=t[4],s=t[5],a=t[6],c=t[7],l=t[8],d="-"===e[0],u=c&&"-"===c[0],h=function(t,e){return void 0===e&&(e=!1),void 0!==t&&(e||t&&d)?-t:t};return[{years:h(et(n)),months:h(et(i)),weeks:h(et(o)),days:h(et(r)),hours:h(et(s)),minutes:h(et(a)),seconds:h(et(c),"-0"===c),milliseconds:h(nt(l),u)}]}var Me={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Be(t,e,n,i,o,r,s){var a={year:2===e.length?lt(et(e)):et(e),month:kt.indexOf(n)+1,day:et(i),hour:et(o),minute:et(r)};return s&&(a.second=et(s)),t&&(a.weekday=t.length>3?_t.indexOf(t)+1:vt.indexOf(t)+1),a}var Oe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ne(t){var e,n=t[1],i=t[2],o=t[3],r=t[4],s=t[5],a=t[6],c=t[7],l=t[8],d=t[9],u=t[10],h=t[11],m=Be(n,r,o,i,s,a,c);return e=l?Me[l]:d?0:ut(u,h),[m,new Gt(e)]}var Pe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Re=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Le=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function je(t){var e=t[1],n=t[2],i=t[3];return[Be(e,t[4],i,n,t[5],t[6],t[7]),Gt.utcInstance]}function ze(t){var e=t[1],n=t[2],i=t[3],o=t[4],r=t[5],s=t[6];return[Be(e,t[7],n,i,o,r,s),Gt.utcInstance]}var Ve=ue(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,be),Fe=ue(/(\d{4})-?W(\d\d)(?:-?(\d))?/,be),Ue=ue(/(\d{4})-?(\d{3})/,be),He=ue(xe),Ge=he(Ce,ye,Ee),qe=he(ke,ye,Ee),We=he(we,ye,Ee),Ke=he(ye,Ee);var Ze=he(ye);var Ye=ue(/(\d{4})-(\d\d)-(\d\d)/,_e),Je=ue(Ae),$e=he(Ce,ye,Ee,Ie),Qe=he(ye,Ee,Ie);var Xe={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tn=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Xe),en=365.2425,nn=30.436875,on=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:en,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:nn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Xe),rn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],sn=rn.slice(0).reverse();function an(t,e,n){void 0===n&&(n=!1);var i={values:n?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ln(i)}function cn(t,e,n,i,o){var r=t[o][n],s=e[n]/r,a=!(Math.sign(s)===Math.sign(i[o]))&&0!==i[o]&&Math.abs(s)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(s):Math.trunc(s);i[o]+=a,e[n]-=a*r}var ln=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||de.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?on:tn,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject(Object.assign({milliseconds:e},n))},t.fromObject=function(e){if(null==e||"object"!=typeof e)throw new x("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:mt(e,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:de.fromObject(e),conversionAccuracy:e.conversionAccuracy})},t.fromISO=function(e,n){var i=function(t){return me(t,[Te,De])}(e),o=i[0];if(o){var r=Object.assign(o,n);return t.fromObject(r)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,n){var i=function(t){return me(t,[Se,Ze])}(e),o=i[0];if(o){var r=Object.assign(o,n);return t.fromObject(r)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new x("need to specify a reason the Duration is invalid");var i=e instanceof Nt?e:new Nt(e,n);if(Xt.throwOnInvalid)throw new g(i);return new t({invalid:i})},t.normalizeUnit=function(t){var e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new f(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var n=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?Ot.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=it(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toISOTime=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var e=this.toMillis();if(e<0||e>=864e5)return null;t=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),i="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(i+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===n.milliseconds||(i+=".SSS"));var o=n.toFormat(i);return t.includePrefix&&(o="T"+o),o},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(t){if(!this.isValid)return this;for(var e,n=dn(t),i={},o=d(rn);!(e=o()).done;){var r=e.value;(Q(n.values,r)||Q(this.values,r))&&(i[r]=n.get(r)+this.get(r))}return an(this,{values:i},!0)},e.minus=function(t){if(!this.isValid)return this;var e=dn(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,i=Object.keys(this.values);n<i.length;n++){var o=i[n];e[o]=ht(t(this.values[o],o))}return an(this,{values:e},!0)},e.get=function(e){return this[t.normalizeUnit(e)]},e.set=function(e){return this.isValid?an(this,{values:Object.assign(this.values,mt(e,t.normalizeUnit,[]))}):this},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,i=e.numberingSystem,o=e.conversionAccuracy,r={loc:this.loc.clone({locale:n,numberingSystem:i})};return o&&(r.conversionAccuracy=o),an(this,r)},e.as=function(t){return this.isValid?this.shiftTo(t).get(t):NaN},e.normalize=function(){if(!this.isValid)return this;var t=this.toObject();return function(t,e){sn.reduce((function(n,i){return G(e[i])?n:(n&&cn(t,e,n,e,i),i)}),null)}(this.matrix,t),an(this,{values:t},!0)},e.shiftTo=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(e){return t.normalizeUnit(e)}));for(var o,r,s={},a={},c=this.toObject(),l=d(rn);!(r=l()).done;){var u=r.value;if(n.indexOf(u)>=0){o=u;var h=0;for(var m in a)h+=this.matrix[m][u]*a[m],a[m]=0;q(c[u])&&(h+=c[u]);var g=Math.trunc(h);for(var p in s[u]=g,a[u]=h-g,c)rn.indexOf(p)>rn.indexOf(u)&&cn(this.matrix,c,p,s,u)}else q(c[u])&&(a[u]=c[u])}for(var f in a)0!==a[f]&&(s[o]+=f===o?a[f]:a[f]/this.matrix[o][f]);return an(this,{values:s},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);e<n.length;e++){var i=n[e];t[i]=-this.values[i]}return an(this,{values:t},!0)},e.equals=function(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(var e,n=d(rn);!(e=n()).done;){var i=e.value;if(o=this.values[i],r=t.values[i],!(void 0===o||0===o?void 0===r||0===r:o===r))return!1}var o,r;return!0},i(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}();function dn(t){if(q(t))return ln.fromMillis(t);if(ln.isDuration(t))return t;if("object"==typeof t)return ln.fromObject(t);throw new x("Unknown duration argument "+t+" of type "+typeof t)}var un="Invalid Interval";function hn(t,e){return t&&t.isValid?e&&e.isValid?e<t?mn.invalid("end before start","The end of an interval must be after its start, but you had start="+t.toISO()+" and end="+e.toISO()):null:mn.invalid("missing or invalid end"):mn.invalid("missing or invalid start")}var mn=function(){function t(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new x("need to specify a reason the Interval is invalid");var i=e instanceof Nt?e:new Nt(e,n);if(Xt.throwOnInvalid)throw new m(i);return new t({invalid:i})},t.fromDateTimes=function(e,n){var i=gi(e),o=gi(n),r=hn(i,o);return null==r?new t({start:i,end:o}):r},t.after=function(e,n){var i=dn(n),o=gi(e);return t.fromDateTimes(o,o.plus(i))},t.before=function(e,n){var i=dn(n),o=gi(e);return t.fromDateTimes(o.minus(i),o)},t.fromISO=function(e,n){var i=(e||"").split("/",2),o=i[0],r=i[1];if(o&&r){var s,a,c,l;try{a=(s=mi.fromISO(o,n)).isValid}catch(r){a=!1}try{l=(c=mi.fromISO(r,n)).isValid}catch(r){l=!1}if(a&&l)return t.fromDateTimes(s,c);if(a){var d=ln.fromISO(r,n);if(d.isValid)return t.after(s,d)}else if(l){var u=ln.fromISO(o,n);if(u.isValid)return t.before(c,u)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(t){return t&&t.isLuxonInterval||!1};var e=t.prototype;return e.length=function(t){return void 0===t&&(t="milliseconds"),this.isValid?this.toDuration.apply(this,[t]).get(t):NaN},e.count=function(t){if(void 0===t&&(t="milliseconds"),!this.isValid)return NaN;var e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+1},e.hasSame=function(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(t){return!!this.isValid&&this.s>t},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&(this.s<=t&&this.e>t)},e.set=function(e){var n=void 0===e?{}:e,i=n.start,o=n.end;return this.isValid?t.fromDateTimes(i||this.s,o||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];for(var r=i.map(gi).filter((function(t){return e.contains(t)})).sort(),s=[],a=this.s,c=0;a<this.e;){var l=r[c]||this.e,d=+l>+this.e?this.e:l;s.push(t.fromDateTimes(a,d)),a=d,c+=1}return s},e.splitBy=function(e){var n=dn(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var i,o=this.s,r=1,s=[];o<this.e;){var a=this.start.plus(n.mapUnits((function(t){return t*r})));i=+a>+this.e?this.e:a,s.push(t.fromDateTimes(o,i)),o=i,r+=1}return s},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s<t.e},e.abutsStart=function(t){return!!this.isValid&&+this.e==+t.s},e.abutsEnd=function(t){return!!this.isValid&&+t.e==+this.s},e.engulfs=function(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)},e.equals=function(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))},e.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:t.fromDateTimes(n,i)},e.union=function(e){if(!this.isValid)return this;var n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,i)},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var n=t[0],i=t[1];return i?i.overlaps(e)||i.abutsStart(e)?[n,i.union(e)]:[n.concat([i]),e]:[n,e]}),[[],null]),n=e[0],i=e[1];return i&&n.push(i),n},t.xor=function(e){for(var n,i,o=null,r=0,s=[],a=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),c=d((n=Array.prototype).concat.apply(n,a).sort((function(t,e){return t.time-e.time})));!(i=c()).done;){var l=i.value;1===(r+="s"===l.type?1:-1)?o=l.time:(o&&+o!=+l.time&&s.push(t.fromDateTimes(o,l.time)),o=null)}return t.merge(s)},e.difference=function(){for(var e=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.xor([this].concat(i)).map((function(t){return e.intersection(t)})).filter((function(t){return t&&!t.isEmpty()}))},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":un},e.toISO=function(t){return this.isValid?this.s.toISO(t)+"/"+this.e.toISO(t):un},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():un},e.toISOTime=function(t){return this.isValid?this.s.toISOTime(t)+"/"+this.e.toISOTime(t):un},e.toFormat=function(t,e){var n=(void 0===e?{}:e).separator,i=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(t)+i+this.e.toFormat(t):un},e.toDuration=function(t,e){return this.isValid?this.e.diff(this.s,t,e):ln.invalid(this.invalidReason)},e.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},i(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(),gn=function(){function t(){}return t.hasDST=function(t){void 0===t&&(t=Xt.defaultZone);var e=mi.now().setZone(t).set({month:12});return!t.universal&&e.offset!==e.set({month:6}).offset},t.isValidIANAZone=function(t){return Ut.isValidSpecifier(t)&&Ut.isValidZone(t)},t.normalizeZone=function(t){return Wt(t,Xt.defaultZone)},t.months=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,o=void 0===i?null:i,r=n.numberingSystem,s=void 0===r?null:r,a=n.locObj,c=void 0===a?null:a,l=n.outputCalendar,d=void 0===l?"gregory":l;return(c||de.create(o,s,d)).months(t)},t.monthsFormat=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,o=void 0===i?null:i,r=n.numberingSystem,s=void 0===r?null:r,a=n.locObj,c=void 0===a?null:a,l=n.outputCalendar,d=void 0===l?"gregory":l;return(c||de.create(o,s,d)).months(t,!0)},t.weekdays=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,o=void 0===i?null:i,r=n.numberingSystem,s=void 0===r?null:r,a=n.locObj;return((void 0===a?null:a)||de.create(o,s,null)).weekdays(t)},t.weekdaysFormat=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,i=n.locale,o=void 0===i?null:i,r=n.numberingSystem,s=void 0===r?null:r,a=n.locObj;return((void 0===a?null:a)||de.create(o,s,null)).weekdays(t,!0)},t.meridiems=function(t){var e=(void 0===t?{}:t).locale,n=void 0===e?null:e;return de.create(n).meridiems()},t.eras=function(t,e){void 0===t&&(t="short");var n=(void 0===e?{}:e).locale,i=void 0===n?null:n;return de.create(i,null,"gregory").eras(t)},t.features=function(){var t=!1,e=!1,n=!1,i=!1;if(K()){t=!0,e=Z(),i=Y();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(t){n=!1}}return{intl:t,intlTokens:e,zones:n,relative:i}},t}();function pn(t,e){var n=function(t){return t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},i=n(e)-n(t);return Math.floor(ln.fromMillis(i).as("days"))}function fn(t,e,n,i){var o=function(t,e,n){for(var i,o,r={},s=0,a=[["years",function(t,e){return e.year-t.year}],["quarters",function(t,e){return e.quarter-t.quarter}],["months",function(t,e){return e.month-t.month+12*(e.year-t.year)}],["weeks",function(t,e){var n=pn(t,e);return(n-n%7)/7}],["days",pn]];s<a.length;s++){var c=a[s],l=c[0],d=c[1];if(n.indexOf(l)>=0){var u;i=l;var h,m=d(t,e);(o=t.plus(((u={})[l]=m,u)))>e?(t=t.plus(((h={})[l]=m-1,h)),m-=1):t=o,r[l]=m}}return[t,r,o,i]}(t,e,n),r=o[0],s=o[1],a=o[2],c=o[3],l=e-r,d=n.filter((function(t){return["hours","minutes","seconds","milliseconds"].indexOf(t)>=0}));if(0===d.length){var u;if(a<e)a=r.plus(((u={})[c]=1,u));a!==r&&(s[c]=(s[c]||0)+l/(a-r))}var h,m=ln.fromObject(Object.assign(s,i));return d.length>0?(h=ln.fromMillis(l,i)).shiftTo.apply(h,d).plus(m):m}var xn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},bn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},kn=xn.hanidec.replace(/[\[|\]]/g,"").split("");function wn(t,e){var n=t.numberingSystem;return void 0===e&&(e=""),new RegExp(""+xn[n||"latn"]+e)}var An="missing Intl.DateTimeFormat.formatToParts support";function _n(t,e){return void 0===e&&(e=function(t){return t}),{regex:t,deser:function(t){var n=t[0];return e(function(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var n=0;n<t.length;n++){var i=t.charCodeAt(n);if(-1!==t[n].search(xn.hanidec))e+=kn.indexOf(t[n]);else for(var o in bn){var r=bn[o],s=r[0],a=r[1];i>=s&&i<=a&&(e+=i-s)}}return parseInt(e,10)}return e}(n))}}}var vn="( |"+String.fromCharCode(160)+")",Cn=new RegExp(vn,"g");function yn(t){return t.replace(/\./g,"\\.?").replace(Cn,vn)}function En(t){return t.replace(/\./g,"").replace(Cn," ").toLowerCase()}function In(t,e){return null===t?null:{regex:RegExp(t.map(yn).join("|")),deser:function(n){var i=n[0];return t.findIndex((function(t){return En(i)===En(t)}))+e}}}function Sn(t,e){return{regex:t,deser:function(t){return ut(t[1],t[2])},groups:e}}function Tn(t){return{regex:t,deser:function(t){return t[0]}}}var Dn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Mn=null;function Bn(t,e){if(t.literal)return t;var n=Ot.macroTokenToFormatOpts(t.val);if(!n)return t;var i=Ot.create(e,n).formatDateTimeParts((Mn||(Mn=mi.fromMillis(1555555555555)),Mn)).map((function(t){return function(t,e,n){var i=t.type,o=t.value;if("literal"===i)return{literal:!0,val:o};var r=n[i],s=Dn[i];return"object"==typeof s&&(s=s[r]),s?{literal:!1,val:s}:void 0}(t,0,n)}));return i.includes(void 0)?t:i}function On(t,e,n){var i=function(t,e){var n;return(n=Array.prototype).concat.apply(n,t.map((function(t){return Bn(t,e)})))}(Ot.parseFormat(n),t),o=i.map((function(e){return n=e,o=wn(i=t),r=wn(i,"{2}"),s=wn(i,"{3}"),a=wn(i,"{4}"),c=wn(i,"{6}"),l=wn(i,"{1,2}"),d=wn(i,"{1,3}"),u=wn(i,"{1,6}"),h=wn(i,"{1,9}"),m=wn(i,"{2,4}"),g=wn(i,"{4,6}"),p=function(t){return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(t){return t[0]},literal:!0};var e},f=function(t){if(n.literal)return p(t);switch(t.val){case"G":return In(i.eras("short",!1),0);case"GG":return In(i.eras("long",!1),0);case"y":return _n(u);case"yy":case"kk":return _n(m,lt);case"yyyy":case"kkkk":return _n(a);case"yyyyy":return _n(g);case"yyyyyy":return _n(c);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return _n(l);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return _n(r);case"MMM":return In(i.months("short",!0,!1),1);case"MMMM":return In(i.months("long",!0,!1),1);case"LLL":return In(i.months("short",!1,!1),1);case"LLLL":return In(i.months("long",!1,!1),1);case"o":case"S":return _n(d);case"ooo":case"SSS":return _n(s);case"u":return Tn(h);case"a":return In(i.meridiems(),0);case"E":case"c":return _n(o);case"EEE":return In(i.weekdays("short",!1,!1),1);case"EEEE":return In(i.weekdays("long",!1,!1),1);case"ccc":return In(i.weekdays("short",!0,!1),1);case"cccc":return In(i.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Sn(new RegExp("([+-]"+l.source+")(?::("+r.source+"))?"),2);case"ZZZ":return Sn(new RegExp("([+-]"+l.source+")("+r.source+")?"),2);case"z":return Tn(/[a-z_+-/]{1,256}?/i);default:return p(t)}}(n)||{invalidReason:An},f.token=n,f;var n,i,o,r,s,a,c,l,d,u,h,m,g,p,f})),r=o.find((function(t){return t.invalidReason}));if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};var s=function(t){return["^"+t.map((function(t){return t.regex})).reduce((function(t,e){return t+"("+e.source+")"}),"")+"$",t]}(o),a=s[0],c=s[1],l=RegExp(a,"i"),d=function(t,e,n){var i=t.match(e);if(i){var o={},r=1;for(var s in n)if(Q(n,s)){var a=n[s],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(i.slice(r,r+c))),r+=c}return[i,o]}return[i,{}]}(e,l,c),u=d[0],h=d[1],m=h?function(t){var e;return e=G(t.Z)?G(t.z)?null:Ut.create(t.z):new Gt(t.Z),G(t.q)||(t.M=3*(t.q-1)+1),G(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),G(t.u)||(t.S=nt(t.u)),[Object.keys(t).reduce((function(e,n){var i=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return i&&(e[i]=t[n]),e}),{}),e]}(h):[null,null],g=m[0],f=m[1];if(Q(h,"a")&&Q(h,"H"))throw new p("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:l,rawMatches:u,matches:h,result:g,zone:f}}var Nn=[0,31,59,90,120,151,181,212,243,273,304,334],Pn=[0,31,60,91,121,152,182,213,244,274,305,335];function Rn(t,e){return new Nt("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function Ln(t,e,n){var i=new Date(Date.UTC(t,e-1,n)).getUTCDay();return 0===i?7:i}function jn(t,e,n){return n+(ot(t)?Pn:Nn)[e-1]}function zn(t,e){var n=ot(t)?Pn:Nn,i=n.findIndex((function(t){return t<e}));return{month:i+1,day:e-n[i]}}function Vn(t){var e,n=t.year,i=t.month,o=t.day,r=jn(n,i,o),s=Ln(n,i,o),a=Math.floor((r-s+10)/7);return a<1?a=ct(e=n-1):a>ct(n)?(e=n+1,a=1):e=n,Object.assign({weekYear:e,weekNumber:a,weekday:s},pt(t))}function Fn(t){var e,n=t.weekYear,i=t.weekNumber,o=t.weekday,r=Ln(n,1,4),s=rt(n),a=7*i+o-r-3;a<1?a+=rt(e=n-1):a>s?(e=n+1,a-=rt(n)):e=n;var c=zn(e,a),l=c.month,d=c.day;return Object.assign({year:e,month:l,day:d},pt(t))}function Un(t){var e=t.year,n=jn(e,t.month,t.day);return Object.assign({year:e,ordinal:n},pt(t))}function Hn(t){var e=t.year,n=zn(e,t.ordinal),i=n.month,o=n.day;return Object.assign({year:e,month:i,day:o},pt(t))}function Gn(t){var e=W(t.year),n=X(t.month,1,12),i=X(t.day,1,st(t.year,t.month));return e?n?!i&&Rn("day",t.day):Rn("month",t.month):Rn("year",t.year)}function qn(t){var e=t.hour,n=t.minute,i=t.second,o=t.millisecond,r=X(e,0,23)||24===e&&0===n&&0===i&&0===o,s=X(n,0,59),a=X(i,0,59),c=X(o,0,999);return r?s?a?!c&&Rn("millisecond",o):Rn("second",i):Rn("minute",n):Rn("hour",e)}var Wn="Invalid DateTime",Kn=864e13;function Zn(t){return new Nt("unsupported zone",'the zone "'+t.name+'" is not supported')}function Yn(t){return null===t.weekData&&(t.weekData=Vn(t.c)),t.weekData}function Jn(t,e){var n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new mi(Object.assign({},n,e,{old:n}))}function $n(t,e,n){var i=t-60*e*1e3,o=n.offset(i);if(e===o)return[i,e];i-=60*(o-e)*1e3;var r=n.offset(i);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}function Qn(t,e){var n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Xn(t,e,n){return $n(at(t),e,n)}function ti(t,e){var n=t.o,i=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),r=Object.assign({},t.c,{year:i,month:o,day:Math.min(t.c.day,st(i,o))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),s=ln.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=$n(at(r),n,t.zone),c=a[0],l=a[1];return 0!==s&&(c+=s,l=t.zone.offset(c)),{ts:c,o:l}}function ei(t,e,n,i,o){var r=n.setZone,s=n.zone;if(t&&0!==Object.keys(t).length){var a=e||s,c=mi.fromObject(Object.assign(t,n,{zone:a,setZone:void 0}));return r?c:c.setZone(s)}return mi.invalid(new Nt("unparsable",'the input "'+o+"\" can't be parsed as "+i))}function ni(t,e,n){return void 0===n&&(n=!0),t.isValid?Ot.create(de.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ii(t,e){var n=e.suppressSeconds,i=void 0!==n&&n,o=e.suppressMilliseconds,r=void 0!==o&&o,s=e.includeOffset,a=e.includePrefix,c=void 0!==a&&a,l=e.includeZone,d=void 0!==l&&l,u=e.spaceZone,h=void 0!==u&&u,m=e.format,g=void 0===m?"extended":m,p="basic"===g?"HHmm":"HH:mm";i&&0===t.second&&0===t.millisecond||(p+="basic"===g?"ss":":ss",r&&0===t.millisecond||(p+=".SSS")),(d||s)&&h&&(p+=" "),d?p+="z":s&&(p+="basic"===g?"ZZZ":"ZZ");var f=ni(t,p);return c&&(f="T"+f),f}var oi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ri={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},si={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ai=["year","month","day","hour","minute","second","millisecond"],ci=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],li=["year","ordinal","hour","minute","second","millisecond"];function di(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new f(t);return e}function ui(t,e){for(var n,i=d(ai);!(n=i()).done;){var o=n.value;G(t[o])&&(t[o]=oi[o])}var r=Gn(t)||qn(t);if(r)return mi.invalid(r);var s=Xt.now(),a=Xn(t,e.offset(s),e),c=a[0],l=a[1];return new mi({ts:c,zone:e,o:l})}function hi(t,e,n){var i=!!G(n.round)||n.round,o=function(t,o){return t=it(t,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,o)},r=function(i){return n.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i)};if(n.unit)return o(r(n.unit),n.unit);for(var s,a=d(n.units);!(s=a()).done;){var c=s.value,l=r(c);if(Math.abs(l)>=1)return o(l,c)}return o(t>e?-0:0,n.units[n.units.length-1])}var mi=function(){function t(t){var e=t.zone||Xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Nt("invalid input"):null)||(e.isValid?null:Zn(e));this.ts=G(t.ts)?Xt.now():t.ts;var i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var r=[t.old.c,t.old.o];i=r[0],o=r[1]}else{var s=e.offset(this.ts);i=Qn(this.ts,s),i=(n=Number.isNaN(i.year)?new Nt("invalid input"):null)?null:i,o=n?null:s}this._zone=e,this.loc=t.loc||de.create(),this.invalid=n,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(e,n,i,o,r,s,a){return G(e)?t.now():ui({year:e,month:n,day:i,hour:o,minute:r,second:s,millisecond:a},Xt.defaultZone)},t.utc=function(e,n,i,o,r,s,a){return G(e)?new t({ts:Xt.now(),zone:Gt.utcInstance}):ui({year:e,month:n,day:i,hour:o,minute:r,second:s,millisecond:a},Gt.utcInstance)},t.fromJSDate=function(e,n){void 0===n&&(n={});var i,o=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);if(Number.isNaN(o))return t.invalid("invalid input");var r=Wt(n.zone,Xt.defaultZone);return r.isValid?new t({ts:o,zone:r,loc:de.fromObject(n)}):t.invalid(Zn(r))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),q(e))return e<-Kn||e>Kn?t.invalid("Timestamp out of range"):new t({ts:e,zone:Wt(n.zone,Xt.defaultZone),loc:de.fromObject(n)});throw new x("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),q(e))return new t({ts:1e3*e,zone:Wt(n.zone,Xt.defaultZone),loc:de.fromObject(n)});throw new x("fromSeconds requires a numerical input")},t.fromObject=function(e){var n=Wt(e.zone,Xt.defaultZone);if(!n.isValid)return t.invalid(Zn(n));var i=Xt.now(),o=n.offset(i),r=mt(e,di,["zone","locale","outputCalendar","numberingSystem"]),s=!G(r.ordinal),a=!G(r.year),c=!G(r.month)||!G(r.day),l=a||c,u=r.weekYear||r.weekNumber,h=de.fromObject(e);if((l||s)&&u)throw new p("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new p("Can't mix ordinal dates with month/day");var m,g,f=u||r.weekday&&!l,x=Qn(i,o);f?(m=ci,g=ri,x=Vn(x)):s?(m=li,g=si,x=Un(x)):(m=ai,g=oi);for(var b,k=!1,w=d(m);!(b=w()).done;){var A=b.value;G(r[A])?r[A]=k?g[A]:x[A]:k=!0}var _=f?function(t){var e=W(t.weekYear),n=X(t.weekNumber,1,ct(t.weekYear)),i=X(t.weekday,1,7);return e?n?!i&&Rn("weekday",t.weekday):Rn("week",t.week):Rn("weekYear",t.weekYear)}(r):s?function(t){var e=W(t.year),n=X(t.ordinal,1,rt(t.year));return e?!n&&Rn("ordinal",t.ordinal):Rn("year",t.year)}(r):Gn(r),v=_||qn(r);if(v)return t.invalid(v);var C=Xn(f?Fn(r):s?Hn(r):r,o,n),y=new t({ts:C[0],zone:n,o:C[1],loc:h});return r.weekday&&l&&e.weekday!==y.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+r.weekday+" and a date of "+y.toISO()):y},t.fromISO=function(t,e){void 0===e&&(e={});var n=function(t){return me(t,[Ve,Ge],[Fe,qe],[Ue,We],[He,Ke])}(t);return ei(n[0],n[1],e,"ISO 8601",t)},t.fromRFC2822=function(t,e){void 0===e&&(e={});var n=function(t){return me(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Oe,Ne])}(t);return ei(n[0],n[1],e,"RFC 2822",t)},t.fromHTTP=function(t,e){void 0===e&&(e={});var n=function(t){return me(t,[Pe,je],[Re,je],[Le,ze])}(t);return ei(n[0],n[1],e,"HTTP",e)},t.fromFormat=function(e,n,i){if(void 0===i&&(i={}),G(e)||G(n))throw new x("fromFormat requires an input string and a format");var o=i,r=o.locale,s=void 0===r?null:r,a=o.numberingSystem,c=void 0===a?null:a,l=function(t,e,n){var i=On(t,e,n);return[i.result,i.zone,i.invalidReason]}(de.fromOpts({locale:s,numberingSystem:c,defaultToEN:!0}),e,n),d=l[0],u=l[1],h=l[2];return h?t.invalid(h):ei(d,u,i,"format "+n,e)},t.fromString=function(e,n,i){return void 0===i&&(i={}),t.fromFormat(e,n,i)},t.fromSQL=function(t,e){void 0===e&&(e={});var n=function(t){return me(t,[Ye,$e],[Je,Qe])}(t);return ei(n[0],n[1],e,"SQL",t)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new x("need to specify a reason the DateTime is invalid");var i=e instanceof Nt?e:new Nt(e,n);if(Xt.throwOnInvalid)throw new h(i);return new t({invalid:i})},t.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(t){return this[t]},e.resolvedLocaleOpts=function(t){void 0===t&&(t={});var e=Ot.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(Gt.instance(t),e)},e.toLocal=function(){return this.setZone(Xt.defaultZone)},e.setZone=function(e,n){var i=void 0===n?{}:n,o=i.keepLocalTime,r=void 0!==o&&o,s=i.keepCalendarTime,a=void 0!==s&&s;if((e=Wt(e,Xt.defaultZone)).equals(this.zone))return this;if(e.isValid){var c=this.ts;if(r||a){var l=e.offset(this.ts);c=Xn(this.toObject(),l,e)[0]}return Jn(this,{ts:c,zone:e})}return t.invalid(Zn(e))},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,i=e.numberingSystem,o=e.outputCalendar;return Jn(this,{loc:this.loc.clone({locale:n,numberingSystem:i,outputCalendar:o})})},e.setLocale=function(t){return this.reconfigure({locale:t})},e.set=function(t){if(!this.isValid)return this;var e,n=mt(t,di,[]),i=!G(n.weekYear)||!G(n.weekNumber)||!G(n.weekday),o=!G(n.ordinal),r=!G(n.year),s=!G(n.month)||!G(n.day),a=r||s,c=n.weekYear||n.weekNumber;if((a||o)&&c)throw new p("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new p("Can't mix ordinal dates with month/day");i?e=Fn(Object.assign(Vn(this.c),n)):G(n.ordinal)?(e=Object.assign(this.toObject(),n),G(n.day)&&(e.day=Math.min(st(e.year,e.month),e.day))):e=Hn(Object.assign(Un(this.c),n));var l=Xn(e,this.o,this.zone);return Jn(this,{ts:l[0],o:l[1]})},e.plus=function(t){return this.isValid?Jn(this,ti(this,dn(t))):this},e.minus=function(t){return this.isValid?Jn(this,ti(this,dn(t).negate())):this},e.startOf=function(t){if(!this.isValid)return this;var e={},n=ln.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){var i=Math.ceil(this.month/3);e.month=3*(i-1)+1}return this.set(e)},e.endOf=function(t){var e;return this.isValid?this.plus((e={},e[t]=1,e)).startOf(t).minus(1):this},e.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?Ot.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Wn},e.toLocaleString=function(t){return void 0===t&&(t=_),this.isValid?Ot.create(this.loc.clone(t),t).formatDateTime(this):Wn},e.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?Ot.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},e.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate(t)+"T"+this.toISOTime(t):null},e.toISODate=function(t){var e=(void 0===t?{}:t).format,n="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),ni(this,n)},e.toISOWeekDate=function(){return ni(this,"kkkk-'W'WW-c")},e.toISOTime=function(t){var e=void 0===t?{}:t,n=e.suppressMilliseconds,i=void 0!==n&&n,o=e.suppressSeconds,r=void 0!==o&&o,s=e.includeOffset,a=void 0===s||s,c=e.includePrefix,l=void 0!==c&&c,d=e.format;return ii(this,{suppressSeconds:r,suppressMilliseconds:i,includeOffset:a,includePrefix:l,format:void 0===d?"extended":d})},e.toRFC2822=function(){return ni(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return ni(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return ni(this,"yyyy-MM-dd")},e.toSQLTime=function(t){var e=void 0===t?{}:t,n=e.includeOffset,i=void 0===n||n,o=e.includeZone;return ii(this,{includeOffset:i,includeZone:void 0!==o&&o,spaceZone:!0})},e.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},e.toString=function(){return this.isValid?this.toISO():Wn},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(t,e,n){if(void 0===e&&(e="milliseconds"),void 0===n&&(n={}),!this.isValid||!t.isValid)return ln.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");var i,o=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),r=(i=e,Array.isArray(i)?i:[i]).map(ln.normalizeUnit),s=t.valueOf()>this.valueOf(),a=fn(s?this:t,s?t:this,r,o);return s?a.negate():a},e.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.now(),e,n)},e.until=function(t){return this.isValid?mn.fromDateTimes(this,t):this},e.hasSame=function(t,e){if(!this.isValid)return!1;var n=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(e)<=n&&n<=i.endOf(e)},e.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0,o=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(o=e.unit,r=void 0),hi(n,this.plus(i),Object.assign(e,{numeric:"always",units:o,unit:r}))},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?hi(e.base||t.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.every(t.isDateTime))throw new x("min requires all arguments be DateTimes");return J(n,(function(t){return t.valueOf()}),Math.min)},t.max=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.every(t.isDateTime))throw new x("max requires all arguments be DateTimes");return J(n,(function(t){return t.valueOf()}),Math.max)},t.fromFormatExplain=function(t,e,n){void 0===n&&(n={});var i=n,o=i.locale,r=void 0===o?null:o,s=i.numberingSystem,a=void 0===s?null:s;return On(de.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),t,e)},t.fromStringExplain=function(e,n,i){return void 0===i&&(i={}),t.fromFormatExplain(e,n,i)},i(t,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Yn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Yn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Yn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Un(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?gn.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?gn.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?gn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?gn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ot(this.year)}},{key:"daysInMonth",get:function(){return st(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?rt(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ct(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return _}},{key:"DATE_MED",get:function(){return v}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return C}},{key:"DATE_FULL",get:function(){return y}},{key:"DATE_HUGE",get:function(){return E}},{key:"TIME_SIMPLE",get:function(){return I}},{key:"TIME_WITH_SECONDS",get:function(){return S}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return T}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return D}},{key:"TIME_24_SIMPLE",get:function(){return M}},{key:"TIME_24_WITH_SECONDS",get:function(){return B}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return O}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return N}},{key:"DATETIME_SHORT",get:function(){return P}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return R}},{key:"DATETIME_MED",get:function(){return L}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return z}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_HUGE",get:function(){return U}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return H}}]),t}();function gi(t){if(mi.isDateTime(t))return t;if(t&&t.valueOf&&q(t.valueOf()))return mi.fromJSDate(t);if(t&&"object"==typeof t)return mi.fromObject(t);throw new x("Unknown datetime argument: "+t+", of type "+typeof t)}e.ou=mi},7824:t=>{var e=1e3,n=60*e,i=60*n,o=24*i,r=7*o,s=365.25*o;function a(t,e,n,i){var o=e>=1.5*n;return Math.round(t/n)+" "+i+(o?"s":"")}t.exports=function(t,c){c=c||{};var l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*i;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===l&&isFinite(t))return c.long?function(t){var r=Math.abs(t);if(r>=o)return a(t,r,o,"day");if(r>=i)return a(t,r,i,"hour");if(r>=n)return a(t,r,n,"minute");if(r>=e)return a(t,r,e,"second");return t+" ms"}(t):function(t){var r=Math.abs(t);if(r>=o)return Math.round(t/o)+"d";if(r>=i)return Math.round(t/i)+"h";if(r>=n)return Math.round(t/n)+"m";if(r>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},2100:(t,e,n)=>{"use strict";t.exports=n(9482)},9482:(t,e,n)=>{"use strict";var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(1173),i.BufferWriter=n(1439),i.Reader=n(1408),i.BufferReader=n(593),i.util=n(9693),i.rpc=n(5994),i.roots=n(5054),i.configure=o,o()},1408:(t,e,n)=>{"use strict";t.exports=c;var i,o=n(9693),r=o.LongBits,s=o.utf8;function a(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function c(t){this.buf=t,this.pos=0,this.len=t.length}var l,d="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new c(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new c(t);throw Error("illegal buffer")},u=function(){return o.Buffer?function(t){return(c.create=function(t){return o.Buffer.isBuffer(t)?new i(t):d(t)})(t)}:d};function h(){var t=new r(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw a(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw a(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function m(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function g(){if(this.pos+8>this.len)throw a(this,8);return new r(m(this.buf,this.pos+=4),m(this.buf,this.pos+=4))}c.create=u(),c.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,c.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return l}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return m(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|m(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},c.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw a(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,n):e===n?new this.buf.constructor(0):this._slice.call(this.buf,e,n)},c.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},c.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw a(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},c._configure=function(t){i=t,c.create=u(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(c.prototype,{int64:function(){return h.call(this)[e](!1)},uint64:function(){return h.call(this)[e](!0)},sint64:function(){return h.call(this).zzDecode()[e](!1)},fixed64:function(){return g.call(this)[e](!0)},sfixed64:function(){return g.call(this)[e](!1)}})}},593:(t,e,n)=>{"use strict";t.exports=r;var i=n(1408);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(9693);function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},5054:t=>{"use strict";t.exports={}},5994:(t,e,n)=>{"use strict";e.Service=n(7948)},7948:(t,e,n)=>{"use strict";t.exports=o;var i=n(9693);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var a=this;if(!s)return i.asPromise(t,a,e,n,o,r);if(a.rpcImpl)try{return a.rpcImpl(e,n[a.requestDelimited?"encodeDelimited":"encode"](r).finish(),(function(t,n){if(t)return a.emit("error",t,e),s(t);if(null!==n){if(!(n instanceof o))try{n=o[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return a.emit("error",t,e),s(t)}return a.emit("data",n,e),s(null,n)}a.end(!0)}))}catch(t){return a.emit("error",t,e),void setTimeout((function(){s(t)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(t,e,n)=>{"use strict";t.exports=o;var i=n(9693);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/4294967296>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>4294967295&&(n=0,++i>4294967295&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t)){if(!i.Long)return o.fromNumber(parseInt(t,10));t=i.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var a=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},9693:function(t,e,n){"use strict";var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;++o)void 0!==t[i[o]]&&n||(t[i[o]]=e[i[o]]);return t}function r(t){function e(t,n){if(!(this instanceof e))return new e(t,n);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&o(this,n)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}i.asPromise=n(4537),i.base64=n(7419),i.EventEmitter=n(9211),i.float=n(945),i.inquire=n(7199),i.utf8=n(4997),i.pool=n(6662),i.LongBits=n(1945),i.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),i.global=i.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.isset=i.isSet=function(t,e){var n=t[e];return!(null==n||!t.hasOwnProperty(e))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var t=Object.keys(this),n=t.length-1;n>-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var t=i.Buffer;t?(i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,n){return new t(e,n)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},1173:(t,e,n)=>{"use strict";t.exports=u;var i,o=n(9693),r=o.LongBits,s=o.base64,a=o.utf8;function c(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function l(){}function d(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function u(){this.len=0,this.head=new c(l,0,0),this.tail=this.head,this.states=null}var h=function(){return o.Buffer?function(){return(u.create=function(){return new i})()}:function(){return new u}};function m(t,e,n){e[n]=255&t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function p(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function f(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}u.create=h(),u.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(u.alloc=o.pool(u.alloc,o.Array.prototype.subarray)),u.prototype._push=function(t,e,n){return this.tail=this.tail.next=new c(t,e,n),this.len+=e,this},g.prototype=Object.create(c.prototype),g.prototype.fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},u.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},u.prototype.int32=function(t){return t<0?this._push(p,10,r.fromNumber(t)):this.uint32(t)},u.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},u.prototype.uint64=function(t){var e=r.from(t);return this._push(p,e.length(),e)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(p,e.length(),e)},u.prototype.bool=function(t){return this._push(m,1,t?1:0)},u.prototype.fixed32=function(t){return this._push(f,4,t>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(t){var e=r.from(t);return this._push(f,4,e.lo)._push(f,4,e.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},u.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var x=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i<t.length;++i)e[n+i]=t[i]};u.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(m,1,0);if(o.isString(t)){var n=u.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(x,e,t)},u.prototype.string=function(t){var e=a.length(t);return e?this.uint32(e)._push(a.write,e,t):this._push(m,1,0)},u.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(l,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(l,0,0),this.len=0),this},u.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},u.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},u._configure=function(t){i=t,u.create=h(),i._configure()}},1439:(t,e,n)=>{"use strict";t.exports=r;var i=n(1173);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(9693);function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i<t.length;)e[n++]=t[i++]}},r.prototype.bytes=function(t){o.isString(t)&&(t=o._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()},7129:(t,e)=>{"use strict";var n=Object.prototype.hasOwnProperty;function i(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var i,r,s=[];for(r in"string"!=typeof e&&(e="?"),t)if(n.call(t,r)){if((i=t[r])||null!=i&&!isNaN(i)||(i=""),r=o(r),i=o(i),null===r||null===i)continue;s.push(r+"="+i)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,o={};e=n.exec(t);){var r=i(e[1]),s=i(e[2]);null===r||null===s||r in o||(o[r]=s)}return o}},7418:t=>{"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},3379:(t,e,n)=>{"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],l=n[c]||0,d="".concat(c," ").concat(l);n[c]=l+1;var u=a(d),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(s[u].references++,s[u].updater(h)):s.push({identifier:d,updater:f(h,e),references:1}),i.push(d)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var d,u=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function h(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function m(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var g=null,p=0;function f(t,e){var n,i,o;if(e.singleton){var r=p++;n=g||(g=l(e)),i=h.bind(null,n,r,!1),o=h.bind(null,n,r,!0)}else n=l(e),i=m.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=c(t,e),l=0;l<n.length;l++){var d=a(n[l]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}n=r}}}},4564:(t,e,n)=>{"use strict";var i=n(7418),o=n(7129),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,d=/^[a-zA-Z]:/;function u(t){return(t||"").toString().replace(r,"")}var h=[["#","hash"],["?","query"],function(t,e){return p(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function g(t){var e,i=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},r=typeof(t=t||i);if("blob:"===t.protocol)o=new x(unescape(t.pathname),{});else if("string"===r)for(e in o=new x(t,{}),m)delete o[e];else if("object"===r){for(e in t)e in m||(o[e]=t[e]);void 0===o.slashes&&(o.slashes=a.test(t.href))}return o}function p(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function f(t,e){t=(t=u(t)).replace(s,""),e=e||{};var n,i=l.exec(t),o=i[1]?i[1].toLowerCase():"",r=!!i[2],a=!!i[3],c=0;return r?a?(n=i[2]+i[3]+i[4],c=i[2].length+i[3].length):(n=i[2]+i[4],c=i[2].length):a?(n=i[3]+i[4],c=i[3].length):n=i[4],"file:"===o?c>=2&&(n=n.slice(2)):p(o)?n=i[4]:o?r&&(n=n.slice(2)):c>=2&&p(e.protocol)&&(n=i[4]),{protocol:o,slashes:r||p(o),slashesCount:c,rest:n}}function x(t,e,n){if(t=(t=u(t)).replace(s,""),!(this instanceof x))return new x(t,e,n);var r,a,c,l,m,b,k=h.slice(),w=typeof e,A=this,_=0;for("object"!==w&&"string"!==w&&(n=e,e=null),n&&"function"!=typeof n&&(n=o.parse),r=!(a=f(t||"",e=g(e))).protocol&&!a.slashes,A.slashes=a.slashes||r&&e.slashes,A.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||d.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!p(A.protocol)))&&(k[3]=[/(.*)/,"pathname"]);_<k.length;_++)"function"!=typeof(l=k[_])?(c=l[0],b=l[1],c!=c?A[b]=t:"string"==typeof c?~(m="@"===c?t.lastIndexOf(c):t.indexOf(c))&&("number"==typeof l[2]?(A[b]=t.slice(0,m),t=t.slice(m+l[2])):(A[b]=t.slice(m),t=t.slice(0,m))):(m=c.exec(t))&&(A[b]=m[1],t=t.slice(0,m.index)),A[b]=A[b]||r&&l[3]&&e[b]||"",l[4]&&(A[b]=A[b].toLowerCase())):t=l(t,A);n&&(A.query=n(A.query)),r&&e.slashes&&"/"!==A.pathname.charAt(0)&&(""!==A.pathname||""!==e.pathname)&&(A.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),i=n.length,o=n[i-1],r=!1,s=0;i--;)"."===n[i]?n.splice(i,1):".."===n[i]?(n.splice(i,1),s++):s&&(0===i&&(r=!0),n.splice(i,1),s--);return r&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(A.pathname,e.pathname)),"/"!==A.pathname.charAt(0)&&p(A.protocol)&&(A.pathname="/"+A.pathname),i(A.port,A.protocol)||(A.host=A.hostname,A.port=""),A.username=A.password="",A.auth&&(~(m=A.auth.indexOf(":"))?(A.username=A.auth.slice(0,m),A.username=encodeURIComponent(decodeURIComponent(A.username)),A.password=A.auth.slice(m+1),A.password=encodeURIComponent(decodeURIComponent(A.password))):A.username=encodeURIComponent(decodeURIComponent(A.auth)),A.auth=A.password?A.username+":"+A.password:A.username),A.origin="file:"!==A.protocol&&p(A.protocol)&&A.host?A.protocol+"//"+A.host:"null",A.href=A.toString()}x.prototype={set:function(t,e,n){var r=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||o.parse)(e)),r[t]=e;break;case"port":r[t]=e,i(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=e,r.port&&(e+=":"+r.port),r.host=e;break;case"host":r[t]=e,c.test(e)?(e=e.split(":"),r.port=e.pop(),r.hostname=e.join(":")):(r.hostname=e,r.port="");break;case"protocol":r.protocol=e.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";r[t]=e.charAt(0)!==s?s+e:e}else r[t]=e;break;case"username":case"password":r[t]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(r.username=e.slice(0,a),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=e.slice(a+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(e))}for(var l=0;l<h.length;l++){var d=h[l];d[4]&&(r[d[1]]=r[d[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&p(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,n=this,i=n.host,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(n.protocol&&n.slashes||p(n.protocol)?"//":"");return n.username?(s+=n.username,n.password&&(s+=":"+n.password),s+="@"):n.password?(s+=":"+n.password,s+="@"):"file:"!==n.protocol&&p(n.protocol)&&!i&&"/"!==n.pathname&&(s+="@"),(":"===i[i.length-1]||c.test(n.hostname)&&!n.port)&&(i+=":"),s+=i+n.pathname,(e="object"==typeof n.query?t(n.query):n.query)&&(s+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(s+=n.hash),s}},x.extractProtocol=f,x.location=g,x.trimLeft=u,x.qs=o,t.exports=x},8410:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NIL:()=>y,parse:()=>u,stringify:()=>s.Z,v1:()=>l,v3:()=>w,v4:()=>A.Z,v5:()=>C,validate:()=>d.Z,version:()=>E});var i,o,r=n(3653),s=n(3958),a=0,c=0;const l=function(t,e,n){var l=e&&n||0,d=e||new Array(16),u=(t=t||{}).node||i,h=void 0!==t.clockseq?t.clockseq:o;if(null==u||null==h){var m=t.random||(t.rng||r.Z)();null==u&&(u=i=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==h&&(h=o=16383&(m[6]<<8|m[7]))}var g=void 0!==t.msecs?t.msecs:Date.now(),p=void 0!==t.nsecs?t.nsecs:c+1,f=g-a+(p-c)/1e4;if(f<0&&void 0===t.clockseq&&(h=h+1&16383),(f<0||g>a)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=g,c=p,o=h;var x=(1e4*(268435455&(g+=122192928e5))+p)%4294967296;d[l++]=x>>>24&255,d[l++]=x>>>16&255,d[l++]=x>>>8&255,d[l++]=255&x;var b=g/4294967296*1e4&268435455;d[l++]=b>>>8&255,d[l++]=255&b,d[l++]=b>>>24&15|16,d[l++]=b>>>16&255,d[l++]=h>>>8|128,d[l++]=255&h;for(var k=0;k<6;++k)d[l+k]=u[k];return e||(0,s.Z)(d)};var d=n(7738);const u=function(t){if(!(0,d.Z)(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};function h(t,e,n){function i(t,i,o,r){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof i&&(i=u(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(i),a.set(t,i.length),(a=n(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){r=r||0;for(var c=0;c<16;++c)o[r+c]=a[c];return o}return(0,s.Z)(a)}try{i.name=t}catch(t){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function m(t){return 14+(t+64>>>9<<4)+1}function g(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function p(t,e,n,i,o,r){return g((s=g(g(e,t),g(i,r)))<<(a=o)|s>>>32-a,n);var s,a}function f(t,e,n,i,o,r,s){return p(e&n|~e&i,t,e,o,r,s)}function x(t,e,n,i,o,r,s){return p(e&i|n&~i,t,e,o,r,s)}function b(t,e,n,i,o,r,s){return p(e^n^i,t,e,o,r,s)}function k(t,e,n,i,o,r,s){return p(n^(e|~i),t,e,o,r,s)}const w=h("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,i="0123456789abcdef",o=0;o<n;o+=8){var r=t[o>>5]>>>o%32&255,s=parseInt(i.charAt(r>>>4&15)+i.charAt(15&r),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[m(e)-1]=e;for(var n=1732584193,i=-271733879,o=-1732584194,r=271733878,s=0;s<t.length;s+=16){var a=n,c=i,l=o,d=r;n=f(n,i,o,r,t[s],7,-680876936),r=f(r,n,i,o,t[s+1],12,-389564586),o=f(o,r,n,i,t[s+2],17,606105819),i=f(i,o,r,n,t[s+3],22,-1044525330),n=f(n,i,o,r,t[s+4],7,-176418897),r=f(r,n,i,o,t[s+5],12,1200080426),o=f(o,r,n,i,t[s+6],17,-1473231341),i=f(i,o,r,n,t[s+7],22,-45705983),n=f(n,i,o,r,t[s+8],7,1770035416),r=f(r,n,i,o,t[s+9],12,-1958414417),o=f(o,r,n,i,t[s+10],17,-42063),i=f(i,o,r,n,t[s+11],22,-1990404162),n=f(n,i,o,r,t[s+12],7,1804603682),r=f(r,n,i,o,t[s+13],12,-40341101),o=f(o,r,n,i,t[s+14],17,-1502002290),n=x(n,i=f(i,o,r,n,t[s+15],22,1236535329),o,r,t[s+1],5,-165796510),r=x(r,n,i,o,t[s+6],9,-1069501632),o=x(o,r,n,i,t[s+11],14,643717713),i=x(i,o,r,n,t[s],20,-373897302),n=x(n,i,o,r,t[s+5],5,-701558691),r=x(r,n,i,o,t[s+10],9,38016083),o=x(o,r,n,i,t[s+15],14,-660478335),i=x(i,o,r,n,t[s+4],20,-405537848),n=x(n,i,o,r,t[s+9],5,568446438),r=x(r,n,i,o,t[s+14],9,-1019803690),o=x(o,r,n,i,t[s+3],14,-187363961),i=x(i,o,r,n,t[s+8],20,1163531501),n=x(n,i,o,r,t[s+13],5,-1444681467),r=x(r,n,i,o,t[s+2],9,-51403784),o=x(o,r,n,i,t[s+7],14,1735328473),n=b(n,i=x(i,o,r,n,t[s+12],20,-1926607734),o,r,t[s+5],4,-378558),r=b(r,n,i,o,t[s+8],11,-2022574463),o=b(o,r,n,i,t[s+11],16,1839030562),i=b(i,o,r,n,t[s+14],23,-35309556),n=b(n,i,o,r,t[s+1],4,-1530992060),r=b(r,n,i,o,t[s+4],11,1272893353),o=b(o,r,n,i,t[s+7],16,-155497632),i=b(i,o,r,n,t[s+10],23,-1094730640),n=b(n,i,o,r,t[s+13],4,681279174),r=b(r,n,i,o,t[s],11,-358537222),o=b(o,r,n,i,t[s+3],16,-722521979),i=b(i,o,r,n,t[s+6],23,76029189),n=b(n,i,o,r,t[s+9],4,-640364487),r=b(r,n,i,o,t[s+12],11,-421815835),o=b(o,r,n,i,t[s+15],16,530742520),n=k(n,i=b(i,o,r,n,t[s+2],23,-995338651),o,r,t[s],6,-198630844),r=k(r,n,i,o,t[s+7],10,1126891415),o=k(o,r,n,i,t[s+14],15,-1416354905),i=k(i,o,r,n,t[s+5],21,-57434055),n=k(n,i,o,r,t[s+12],6,1700485571),r=k(r,n,i,o,t[s+3],10,-1894986606),o=k(o,r,n,i,t[s+10],15,-1051523),i=k(i,o,r,n,t[s+1],21,-2054922799),n=k(n,i,o,r,t[s+8],6,1873313359),r=k(r,n,i,o,t[s+15],10,-30611744),o=k(o,r,n,i,t[s+6],15,-1560198380),i=k(i,o,r,n,t[s+13],21,1309151649),n=k(n,i,o,r,t[s+4],6,-145523070),r=k(r,n,i,o,t[s+11],10,-1120210379),o=k(o,r,n,i,t[s+2],15,718787259),i=k(i,o,r,n,t[s+9],21,-343485551),n=g(n,a),i=g(i,c),o=g(o,l),r=g(r,d)}return[n,i,o,r]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(m(e)),i=0;i<e;i+=8)n[i>>5]|=(255&t[i/8])<<i%32;return n}(t),8*t.length))}));var A=n(2045);function _(t,e,n,i){switch(t){case 0:return e&n^~e&i;case 1:case 3:return e^n^i;case 2:return e&n^e&i^n&i}}function v(t,e){return t<<e|t>>>32-e}const C=h("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var i=unescape(encodeURIComponent(t));t=[];for(var o=0;o<i.length;++o)t.push(i.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,s=Math.ceil(r/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=t[64*c+4*d]<<24|t[64*c+4*d+1]<<16|t[64*c+4*d+2]<<8|t[64*c+4*d+3];a[c]=l}a[s-1][14]=8*(t.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(t.length-1)&4294967295;for(var u=0;u<s;++u){for(var h=new Uint32Array(80),m=0;m<16;++m)h[m]=a[u][m];for(var g=16;g<80;++g)h[g]=v(h[g-3]^h[g-8]^h[g-14]^h[g-16],1);for(var p=n[0],f=n[1],x=n[2],b=n[3],k=n[4],w=0;w<80;++w){var A=Math.floor(w/20),C=v(p,5)+_(A,f,x,b)+k+e[A]+h[w]>>>0;k=b,b=x,x=v(f,30)>>>0,f=p,p=C}n[0]=n[0]+p>>>0,n[1]=n[1]+f>>>0,n[2]=n[2]+x>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+k>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),y="00000000-0000-0000-0000-000000000000";const E=function(t){if(!(0,d.Z)(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},3653:(t,e,n)=>{"use strict";var i;n.d(e,{Z:()=>r});var o=new Uint8Array(16);function r(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}},3958:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});for(var i=n(7738),o=[],r=0;r<256;++r)o.push((r+256).toString(16).substr(1));const s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase();if(!(0,i.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},2045:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(3653),o=n(3958);const r=function(t,e,n){var r=(t=t||{}).random||(t.rng||i.Z)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=r[s];return e}return(0,o.Z)(r)}},7738:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const o=function(t){return"string"==typeof t&&i.test(t)}},8419:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasCORS=void 0;let n=!1;try{n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}e.hasCORS=n},5754:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decode=e.encode=void 0,e.encode=function(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){let e={},n=t.split("&");for(let t=0,i=n.length;t<i;t++){let i=n[t].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}},5222:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parse=void 0;const n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.parse=function(t){const e=t,o=t.indexOf("["),r=t.indexOf("]");-1!=o&&-1!=r&&(t=t.substring(0,o)+t.substring(o,r).replace(/:/g,";")+t.substring(r,t.length));let s=n.exec(t||""),a={},c=14;for(;c--;)a[i[c]]=s[c]||"";return-1!=o&&-1!=r&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");"/"!=e.slice(0,1)&&0!==e.length||i.splice(0,1);"/"==e.slice(-1)&&i.splice(i.length-1,1);return i}(0,a.path),a.queryKey=function(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,i){e&&(n[e]=i)})),n}(0,a.query),a}},8726:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.yeast=e.decode=e.encode=void 0;const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i=64,o={};let r,s=0,a=0;function c(t){let e="";do{e=n[t%i]+e,t=Math.floor(t/i)}while(t>0);return e}for(e.encode=c,e.decode=function(t){let e=0;for(a=0;a<t.length;a++)e=e*i+o[t.charAt(a)];return e},e.yeast=function(){const t=c(+new Date);return t!==r?(s=0,r=t):t+"."+c(s++)};a<i;a++)o[n[a]]=a},6242:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.globalThisShim=void 0,e.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},4679:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const i=n(3481);Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return i.Socket}}),e.protocol=i.Socket.protocol;var o=n(9870);Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return o.Transport}});var r=n(7385);Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var s=n(9622);Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var a=n(5222);Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return a.parse}});var c=n(5552);Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return c.nextTick}})},3481:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Socket=void 0;const o=n(7385),r=n(9622),s=n(5754),a=n(5222),c=i(n(1227)),l=n(5260),d=n(1373),u=(0,c.default)("engine.io-client:socket");class h extends l.Emitter{constructor(t,e={}){super(),this.writeBuffer=[],t&&"object"==typeof t&&(e=t,t=null),t?(t=(0,a.parse)(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=(0,a.parse)(e.host).host),(0,r.installTimerFunctions)(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){u('creating transport "%s"',t);const e=Object.assign({},this.opts.query);e.EIO=d.protocol,e.transport=t,this.id&&(e.sid=this.id);const n=Object.assign({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return u("options: %j",n),new o.transports[t](n)}open(){let t;if(this.opts.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return u("error while creating transport: %s",t),this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){u("setting transport %s",t.name),this.transport&&(u("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){u('probing transport "%s"',t);let e=this.createTransport(t),n=!1;h.priorWebsocketSuccess=!1;const i=()=>{n||(u('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(i=>{if(!n)if("pong"===i.type&&"probe"===i.data){if(u('probe transport "%s" pong',t),this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;h.priorWebsocketSuccess="websocket"===e.name,u('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{n||"closed"!==this.readyState&&(u("changing transport and sending upgrade packet"),l(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{u('probe transport "%s" failed',t);const n=new Error("probe error");n.transport=e.name,this.emitReserved("upgradeError",n)}})))};function o(){n||(n=!0,l(),e.close(),e=null)}const r=n=>{const i=new Error("probe error: "+n);i.transport=e.name,o(),u('probe transport "%s" failed because of error: %s',t,n),this.emitReserved("upgradeError",i)};function s(){r("transport closed")}function a(){r("socket closed")}function c(t){e&&t.name!==e.name&&(u('"%s" works - aborting "%s"',t.name,e.name),o())}const l=()=>{e.removeListener("open",i),e.removeListener("error",r),e.removeListener("close",s),this.off("close",a),this.off("upgrading",c)};e.once("open",i),e.once("error",r),e.once("close",s),this.once("close",a),this.once("upgrading",c),e.open()}onOpen(){if(u("socket open"),this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){u("starting upgrade probes");let t=0;const e=this.upgrades.length;for(;t<e;t++)this.probe(this.upgrades[t])}}onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(u('socket receive: type "%s", data "%s"',t.type,t.data),this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}else u('packet received with socket readyState "%s"',this.readyState)}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();u("flushing %d packets in socket",t.length),this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){const n=this.writeBuffer[e].data;if(n&&(t+=(0,r.byteLength)(n)),e>0&&t>this.maxPayload)return u("only send %d out of %d packets",e,this.writeBuffer.length),this.writeBuffer.slice(0,e);t+=2}return u("payload size is %d (max: %d)",t,this.maxPayload),this.writeBuffer}write(t,e,n){return this.sendPacket("message",t,e,n),this}send(t,e,n){return this.sendPacket("message",t,e,n),this}sendPacket(t,e,n,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof n&&(i=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:t,data:e,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),u("socket closing - telling transport to close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():t()})):this.upgrading?n():t()),this}onError(t){u("socket error %j",t),h.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(u('socket close with reason: "%s"',t),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let n=0;const i=t.length;for(;n<i;n++)~this.transports.indexOf(t[n])&&e.push(t[n]);return e}}e.Socket=h,h.protocol=d.protocol},9870:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transport=void 0;const o=n(1373),r=n(5260),s=n(9622),a=(0,i(n(1227)).default)("engine.io-client:transport");class c extends Error{constructor(t,e,n){super(t),this.description=e,this.context=n,this.type="TransportError"}}class l extends r.Emitter{constructor(t){super(),this.writable=!1,(0,s.installTimerFunctions)(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,e,n){return super.emitReserved("error",new c(t,e,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState?this.write(t):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=(0,o.decodePacket)(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}e.Transport=l},7385:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transports=void 0;const i=n(484),o=n(1308);e.transports={websocket:o.WS,polling:i.Polling}},484:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Request=e.Polling=void 0;const o=n(9870),r=i(n(1227)),s=n(8726),a=n(5754),c=n(1373),l=n(6666),d=n(5260),u=n(9622),h=n(6242),m=(0,r.default)("engine.io-client:polling");function g(){}const p=null!=new l.XHR({xdomain:!1}).responseType;class f extends o.Transport{constructor(t){if(super(t),this.polling=!1,"undefined"!=typeof location){const e="https:"===location.protocol;let n=location.port;n||(n=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}const e=t&&t.forceBase64;this.supportsBinary=p&&!e}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{m("paused"),this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(m("we are currently polling - waiting to pause"),t++,this.once("pollComplete",(function(){m("pre-pause polling complete"),--t||e()}))),this.writable||(m("we are currently writing - waiting to pause"),t++,this.once("drain",(function(){m("pre-pause writing complete"),--t||e()})))}else e()}poll(){m("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){m("polling got data %s",t);(0,c.decodePayload)(t,this.socket.binaryType).forEach((t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():m('ignoring poll - transport state "%s"',this.readyState))}doClose(){const t=()=>{m("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(m("transport open - closing"),t()):(m("transport not open - deferring close"),this.once("open",t))}write(t){this.writable=!1,(0,c.encodePayload)(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let t=this.query||{};const e=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.opts.port&&("https"===e&&443!==Number(this.opts.port)||"http"===e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);const i=(0,a.encode)(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new x(this.uri(),t)}doWrite(t,e){const n=this.request({method:"POST",data:t});n.on("success",e),n.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){m("xhr poll");const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}e.Polling=f;class x extends d.Emitter{constructor(t,e){super(),(0,u.installTimerFunctions)(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.create()}create(){const t=(0,u.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const e=this.xhr=new l.XHR(t);try{m("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&e.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(t){}if("POST"===this.method)try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(e.timeout=this.opts.requestTimeout),e.onreadystatechange=()=>{4===e.readyState&&(200===e.status||1223===e.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof e.status?e.status:0)}),0))},m("xhr data %s",this.data),e.send(this.data)}catch(t){return void this.setTimeoutFn((()=>{this.onError(t)}),0)}"undefined"!=typeof document&&(this.index=x.requestsCount++,x.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=g,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete x.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(e.Request=x,x.requestsCount=0,x.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",b);else if("function"==typeof addEventListener){const t="onpagehide"in h.globalThisShim?"pagehide":"unload";addEventListener(t,b,!1)}function b(){for(let t in x.requests)x.requests.hasOwnProperty(t)&&x.requests[t].abort()}},5552:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultBinaryType=e.usingBrowserWebSocket=e.WebSocket=e.nextTick=void 0;const i=n(6242);e.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),e.WebSocket=i.globalThisShim.WebSocket||i.globalThisShim.MozWebSocket,e.usingBrowserWebSocket=!0,e.defaultBinaryType="arraybuffer"},1308:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WS=void 0;const o=n(9870),r=n(5754),s=n(8726),a=n(9622),c=n(5552),l=i(n(1227)),d=n(1373),u=(0,l.default)("engine.io-client:websocket"),h="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class m extends o.Transport{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,n=h?{}:(0,a.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!h?e?new c.WebSocket(t,e):new c.WebSocket(t):new c.WebSocket(t,e,n)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType||c.defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const n=t[e],i=e===t.length-1;(0,d.encodePacket)(n,this.supportsBinary,(t=>{const e={};if(!c.usingBrowserWebSocket&&(n.options&&(e.compress=n.options.compress),this.opts.perMessageDeflate)){("string"==typeof t?Buffer.byteLength(t):t.length)<this.opts.perMessageDeflate.threshold&&(e.compress=!1)}try{c.usingBrowserWebSocket?this.ws.send(t):this.ws.send(t,e)}catch(t){u("websocket closed before onclose event")}i&&(0,c.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const e=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===e&&443!==Number(this.opts.port)||"ws"===e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(t.b64=1);const i=(0,r.encode)(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(i.length?"?"+i:"")}check(){return!!c.WebSocket}}e.WS=m},6666:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHR=void 0;const i=n(8419),o=n(6242);e.XHR=function(t){const e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||i.hasCORS))return new XMLHttpRequest}catch(t){}if(!e)try{return new(o.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},9622:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.byteLength=e.installTimerFunctions=e.pick=void 0;const i=n(6242);e.pick=function(t,...e){return e.reduce(((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e)),{})};const o=i.globalThisShim.setTimeout,r=i.globalThisShim.clearTimeout;e.installTimerFunctions=function(t,e){e.useNativeTimers?(t.setTimeoutFn=o.bind(i.globalThisShim),t.clearTimeoutFn=r.bind(i.globalThisShim)):(t.setTimeoutFn=i.globalThisShim.setTimeout.bind(i.globalThisShim),t.clearTimeoutFn=i.globalThisShim.clearTimeout.bind(i.globalThisShim))};e.byteLength=function(t){return"string"==typeof t?function(t){let e=0,n=0;for(let i=0,o=t.length;i<o;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))}},3087:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ERROR_PACKET=e.PACKET_TYPES_REVERSE=e.PACKET_TYPES=void 0;const n=Object.create(null);e.PACKET_TYPES=n,n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const i=Object.create(null);e.PACKET_TYPES_REVERSE=i,Object.keys(n).forEach((t=>{i[n[t]]=t}));e.ERROR_PACKET={type:"error",data:"parser error"}},2469:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decode=e.encode=void 0;const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<64;t++)i[n.charCodeAt(t)]=t;e.encode=t=>{let e,i=new Uint8Array(t),o=i.length,r="";for(e=0;e<o;e+=3)r+=n[i[e]>>2],r+=n[(3&i[e])<<4|i[e+1]>>4],r+=n[(15&i[e+1])<<2|i[e+2]>>6],r+=n[63&i[e+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r};e.decode=t=>{let e,n,o,r,s,a=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);const d=new ArrayBuffer(a),u=new Uint8Array(d);for(e=0;e<c;e+=4)n=i[t.charCodeAt(e)],o=i[t.charCodeAt(e+1)],r=i[t.charCodeAt(e+2)],s=i[t.charCodeAt(e+3)],u[l++]=n<<2|o>>4,u[l++]=(15&o)<<4|r>>2,u[l++]=(3&r)<<6|63&s;return d}},7572:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3087),o=n(2469),r="function"==typeof ArrayBuffer,s=(t,e)=>{if(r){const n=(0,o.decode)(t);return a(n,e)}return{base64:!0,data:t}},a=(t,e)=>"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t;e.default=(t,e)=>{if("string"!=typeof t)return{type:"message",data:a(t,e)};const n=t.charAt(0);if("b"===n)return{type:"message",data:s(t.substring(1),e)};return i.PACKET_TYPES_REVERSE[n]?t.length>1?{type:i.PACKET_TYPES_REVERSE[n],data:t.substring(1)}:{type:i.PACKET_TYPES_REVERSE[n]}:i.ERROR_PACKET}},3908:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3087),o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(t,e)=>{const n=new FileReader;return n.onload=function(){const t=n.result.split(",")[1];e("b"+(t||""))},n.readAsDataURL(t)};e.default=({type:t,data:e},n,a)=>{return o&&e instanceof Blob?n?a(e):s(e,a):r&&(e instanceof ArrayBuffer||(c=e,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?n?a(e):s(new Blob([e]),a):a(i.PACKET_TYPES[t]+(e||""));var c}},1373:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=void 0;const i=n(3908);e.encodePacket=i.default;const o=n(7572);e.decodePacket=o.default;const r=String.fromCharCode(30);e.encodePayload=(t,e)=>{const n=t.length,o=new Array(n);let s=0;t.forEach(((t,a)=>{(0,i.default)(t,!1,(t=>{o[a]=t,++s===n&&e(o.join(r))}))}))};e.decodePayload=(t,e)=>{const n=t.split(r),i=[];for(let t=0;t<n.length;t++){const r=(0,o.default)(n[t],e);if(i.push(r),"error"===r.type)break}return i},e.protocol=4},5159:(t,e)=>{"use strict";function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Object.defineProperty(e,"__esModule",{value:!0}),e.Backoff=void 0,e.Backoff=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},7046:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.connect=e.io=e.Socket=e.Manager=e.protocol=void 0;const o=n(3084),r=n(4168);Object.defineProperty(e,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=n(8312);Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return s.Socket}});const a=i(n(1227)).default("socket.io-client"),c={};function l(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};const n=o.url(t,e.path||"/socket.io"),i=n.source,s=n.id,l=n.path,d=c[s]&&l in c[s].nsps;let u;return e.forceNew||e["force new connection"]||!1===e.multiplex||d?(a("ignoring socket cache for %s",i),u=new r.Manager(i,e)):(c[s]||(a("new io instance for %s",i),c[s]=new r.Manager(i,e)),u=c[s]),n.query&&!e.query&&(e.query=n.queryKey),u.socket(n.path,e)}e.io=l,e.connect=l,e.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var d=n(7116);Object.defineProperty(e,"protocol",{enumerable:!0,get:function(){return d.protocol}}),t.exports=l},4168:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Manager=void 0;const a=n(4679),c=n(8312),l=r(n(7116)),d=n(7149),u=n(5159),h=n(5260),m=s(n(1227)).default("socket.io-client:manager");class g extends h.Emitter{constructor(t,e){var n;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,a.installTimerFunctions(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=e.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new u.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||l;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(m("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;m("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const i=d.on(e,"open",(function(){n.onopen(),t&&t()})),o=d.on(e,"error",(e=>{m("error"),n.cleanup(),n._readyState="closed",this.emitReserved("error",e),t?t(e):n.maybeReconnectOnOpen()}));if(!1!==this._timeout){const t=this._timeout;m("connect attempt will timeout after %d",t),0===t&&i();const n=this.setTimeoutFn((()=>{m("connect attempt timed out after %d",t),i(),e.close(),e.emit("error",new Error("timeout"))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){m("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(d.on(t,"ping",this.onping.bind(this)),d.on(t,"data",this.ondata.bind(this)),d.on(t,"error",this.onerror.bind(this)),d.on(t,"close",this.onclose.bind(this)),d.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){a.nextTick((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){m("error",t),this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new c.Socket(this,t,e),this.nsps[t]=n),n}_destroy(t){const e=Object.keys(this.nsps);for(const t of e){if(this.nsps[t].active)return void m("socket %s is still active, skipping close",t)}this._close()}_packet(t){m("writing packet %j",t);const e=this.encoder.encode(t);for(let n=0;n<e.length;n++)this.engine.write(e[n],t.options)}cleanup(){m("cleanup"),this.subs.forEach((t=>t())),this.subs.length=0,this.decoder.destroy()}_close(){m("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){m("closed due to %s",t),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)m("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();m("will wait %dms before reconnect attempt",e),this._reconnecting=!0;const n=this.setTimeoutFn((()=>{t.skipReconnect||(m("attempting reconnect"),this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(m("reconnect attempt error"),t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):(m("reconnect success"),t.onreconnect())})))}),e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}e.Manager=g},7149:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.on=void 0,e.on=function(t,e,n){return t.on(e,n),function(){t.off(e,n)}}},8312:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Socket=void 0;const o=n(7116),r=n(7149),s=n(5260),a=i(n(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(t,e,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[r.on(t,"open",this.onopen.bind(this)),r.on(t,"packet",this.onpacket.bind(this)),r.on(t,"error",this.onerror.bind(this)),r.on(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){if(c.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const n={type:o.PacketType.EVENT,data:e,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){const t=this.ids++;a("emitting packet with ack id %d",t);const i=e.pop();this._registerAckCallback(t,i),n.id=t}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)?a("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n),this.flags={},this}_registerAckCallback(t,e){var n;const i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===i)return void(this.acks[t]=e);const o=this.io.setTimeoutFn((()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&(a("removing packet with ack id %d from the buffer",t),this.sendBuffer.splice(e,1));a("event with ack id %d has timed out after %d ms",t,i),e.call(this,new Error("operation has timed out"))}),i);this.acks[t]=(...t)=>{this.io.clearTimeoutFn(o),e.apply(this,[null,...t])}}emitWithAck(t,...e){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((i,o)=>{e.push(((t,e)=>n?t?o(t):i(e):i(t))),this.emit(t,...e)}))}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...i)=>{if(n!==this._queue[0])return;return null!==t?n.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",n.id,n.tryCount),this._queue.shift(),e&&e(t)):(a("packet [%d] was successfully sent",n.id),this._queue.shift(),e&&e(null,...i)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const e=this._queue[0];!e.pending||t?(e.pending=!0,e.tryCount++,a("sending packet [%d] (try n°%d)",e.id,e.tryCount),this.flags=e.flags,this.emit.apply(this,e.args)):a("packet [%d] has already been sent and is waiting for an ack",e.id)}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth((t=>{this._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:o.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){a("close (%s)",t),this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case o.PacketType.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.PacketType.EVENT:case o.PacketType.BINARY_EVENT:this.onevent(t);break;case o.PacketType.ACK:case o.PacketType.BINARY_ACK:this.onack(t);break;case o.PacketType.DISCONNECT:this.ondisconnect();break;case o.PacketType.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];a("emitting event %j",e),null!=t.id&&(a("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const n of e)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let n=!1;return function(...i){n||(n=!0,a("sending ack %j",i),e.packet({type:o.PacketType.ACK,id:t,data:i}))}}onack(t){const e=this.acks[t.id];"function"==typeof e?(a("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):a("bad ack %s",t.id)}onconnect(t,e){a("socket connected with id %s",t),this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:o.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const n of e)n.apply(this,t.data)}}}e.Socket=l},3084:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.url=void 0;const o=n(4679),r=i(n(1227)).default("socket.io-client:url");e.url=function(t,e="",n){let i=t;n=n||"undefined"!=typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(r("protocol-less url %s",t),t=void 0!==n?n.protocol+"//"+t:"https://"+t),r("parse %s",t),i=o.parse(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const s=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+e,i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port),i}},3155:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reconstructPacket=e.deconstructPacket=void 0;const i=n(790);function o(t,e){if(!t)return t;if((0,i.isBinary)(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=o(t[i],e);return n}if("object"==typeof t&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=o(t[i],e));return n}return t}function r(t,e){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=r(t[n],e);else if("object"==typeof t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=r(t[n],e));return t}e.deconstructPacket=function(t){const e=[],n=t.data,i=t;return i.data=o(n,e),i.attachments=e.length,{packet:i,buffers:e}},e.reconstructPacket=function(t,e){return t.data=r(t.data,e),delete t.attachments,t}},7116:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const i=n(5260),o=n(3155),r=n(790),s=(0,n(1227).default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var c;e.protocol=5,function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(c=e.PacketType||(e.PacketType={}));function l(t){return"[object Object]"===Object.prototype.toString.call(t)}e.Encoder=class{constructor(t){this.replacer=t}encode(t){return s("encoding packet %j",t),t.type!==c.EVENT&&t.type!==c.ACK||!(0,r.hasBinary)(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let e=""+t.type;return t.type!==c.BINARY_EVENT&&t.type!==c.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),s("encoded %j as %s",t,e),e}encodeAsBinary(t){const e=(0,o.deconstructPacket)(t),n=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(n),i}};class d extends i.Emitter{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const n=e.type===c.BINARY_EVENT;n||e.type===c.BINARY_ACK?(e.type=n?c.EVENT:c.ACK,this.reconstructor=new u(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else{if(!(0,r.isBinary)(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e))}}decodeString(t){let e=0;const n={type:Number(t.charAt(0))};if(void 0===c[n.type])throw new Error("unknown packet type "+n.type);if(n.type===c.BINARY_EVENT||n.type===c.BINARY_ACK){const i=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);const o=t.substring(i,e);if(o!=Number(o)||"-"!==t.charAt(e))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===t.charAt(e+1)){const i=e+1;for(;++e;){if(","===t.charAt(e))break;if(e===t.length)break}n.nsp=t.substring(i,e)}else n.nsp="/";const i=t.charAt(e+1);if(""!==i&&Number(i)==i){const i=e+1;for(;++e;){const n=t.charAt(e);if(null==n||Number(n)!=n){--e;break}if(e===t.length)break}n.id=Number(t.substring(i,e+1))}if(t.charAt(++e)){const i=this.tryParse(t.substr(e));if(!d.isPayloadValid(n.type,i))throw new Error("invalid payload");n.data=i}return s("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case c.CONNECT:return l(e);case c.DISCONNECT:return void 0===e;case c.CONNECT_ERROR:return"string"==typeof e||l(e);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===a.indexOf(e[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=d;class u{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const t=(0,o.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},790:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasBinary=e.isBinary=void 0;const n="function"==typeof ArrayBuffer,i=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,o=Object.prototype.toString,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function a(t){return n&&(t instanceof ArrayBuffer||i(t))||r&&t instanceof Blob||s&&t instanceof File}e.isBinary=a,e.hasBinary=function t(e,n){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(t(e[n]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return!0;return!1}},4880:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reconstructPacket=e.deconstructPacket=void 0;const i=n(665);function o(t,e){if(!t)return t;if((0,i.isBinary)(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=o(t[i],e);return n}if("object"==typeof t&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=o(t[i],e));return n}return t}function r(t,e){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=r(t[n],e);else if("object"==typeof t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=r(t[n],e));return t}e.deconstructPacket=function(t){const e=[],n=t.data,i=t;return i.data=o(n,e),i.attachments=e.length,{packet:i,buffers:e}},e.reconstructPacket=function(t,e){return t.data=r(t.data,e),delete t.attachments,t}},4514:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const i=n(5260),o=n(4880),r=n(665),s=(0,n(1227).default)("socket.io-parser");var a;e.protocol=5,function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(a=e.PacketType||(e.PacketType={}));e.Encoder=class{constructor(t){this.replacer=t}encode(t){return s("encoding packet %j",t),t.type!==a.EVENT&&t.type!==a.ACK||!(0,r.hasBinary)(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let e=""+t.type;return t.type!==a.BINARY_EVENT&&t.type!==a.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),s("encoded %j as %s",t,e),e}encodeAsBinary(t){const e=(0,o.deconstructPacket)(t),n=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(n),i}};class c extends i.Emitter{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const n=e.type===a.BINARY_EVENT;n||e.type===a.BINARY_ACK?(e.type=n?a.EVENT:a.ACK,this.reconstructor=new l(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else{if(!(0,r.isBinary)(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e))}}decodeString(t){let e=0;const n={type:Number(t.charAt(0))};if(void 0===a[n.type])throw new Error("unknown packet type "+n.type);if(n.type===a.BINARY_EVENT||n.type===a.BINARY_ACK){const i=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);const o=t.substring(i,e);if(o!=Number(o)||"-"!==t.charAt(e))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===t.charAt(e+1)){const i=e+1;for(;++e;){if(","===t.charAt(e))break;if(e===t.length)break}n.nsp=t.substring(i,e)}else n.nsp="/";const i=t.charAt(e+1);if(""!==i&&Number(i)==i){const i=e+1;for(;++e;){const n=t.charAt(e);if(null==n||Number(n)!=n){--e;break}if(e===t.length)break}n.id=Number(t.substring(i,e+1))}if(t.charAt(++e)){const i=this.tryParse(t.substr(e));if(!c.isPayloadValid(n.type,i))throw new Error("invalid payload");n.data=i}return s("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case a.CONNECT:return"object"==typeof e;case a.DISCONNECT:return void 0===e;case a.CONNECT_ERROR:return"string"==typeof e||"object"==typeof e;case a.EVENT:case a.BINARY_EVENT:return Array.isArray(e)&&("string"==typeof e[0]||"number"==typeof e[0]);case a.ACK:case a.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class l{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const t=(0,o.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},665:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasBinary=e.isBinary=void 0;const n="function"==typeof ArrayBuffer,i=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,o=Object.prototype.toString,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function a(t){return n&&(t instanceof ArrayBuffer||i(t))||r&&t instanceof Blob||s&&t instanceof File}e.isBinary=a,e.hasBinary=function t(e,n){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(t(e[n]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return!0;return!1}},5260:(t,e,n)=>{"use strict";function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}n.r(e),n.d(e,{Emitter:()=>i}),i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<i.length;o++)if((n=i[o])===e||n.fn===e){i.splice(o,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){i=0;for(var o=(n=n.slice(0)).length;i<o;++i)n[i].apply(this,e)}return this},i.prototype.emitReserved=i.prototype.emit,i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},2536:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});const i=function(){this.__data__=[],this.size=0};var o=n(9651);const r=function(t,e){for(var n=t.length;n--;)if((0,o.Z)(t[n][0],e))return n;return-1};var s=Array.prototype.splice;const a=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)};const c=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]};const l=function(t){return r(this.__data__,t)>-1};const d=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=c,u.prototype.has=l,u.prototype.set=d;const h=u},6183:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(2119),o=n(6092);const r=(0,i.Z)(o.Z,"Map")},520:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});const i=(0,n(2119).Z)(Object,"create");const o=function(){this.__data__=i?i(null):{},this.size=0};const r=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var s=Object.prototype.hasOwnProperty;const a=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0};var c=Object.prototype.hasOwnProperty;const l=function(t){var e=this.__data__;return i?void 0!==e[t]:c.call(e,t)};const d=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=a,u.prototype.has=l,u.prototype.set=d;const h=u;var m=n(2536),g=n(6183);const p=function(){this.size=0,this.__data__={hash:new h,map:new(g.Z||m.Z),string:new h}};const f=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const x=function(t,e){var n=t.__data__;return f(e)?n["string"==typeof e?"string":"hash"]:n.map};const b=function(t){var e=x(this,t).delete(t);return this.size-=e?1:0,e};const k=function(t){return x(this,t).get(t)};const w=function(t){return x(this,t).has(t)};const A=function(t,e){var n=x(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function _(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}_.prototype.clear=p,_.prototype.delete=b,_.prototype.get=k,_.prototype.has=w,_.prototype.set=A;const v=_},5365:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i=n(2536);const o=function(){this.__data__=new i.Z,this.size=0};const r=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const s=function(t){return this.__data__.get(t)};const a=function(t){return this.__data__.has(t)};var c=n(6183),l=n(520);const d=function(t,e){var n=this.__data__;if(n instanceof i.Z){var o=n.__data__;if(!c.Z||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new l.Z(o)}return n.set(t,e),this.size=n.size,this};function u(t){var e=this.__data__=new i.Z(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=s,u.prototype.has=a,u.prototype.set=d;const h=u},7685:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=n(6092).Z.Symbol},4073:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=n(6092).Z.Uint8Array},9001:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});const i=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};var o=n(4732),r=n(7771),s=n(6706),a=n(6009),c=n(7212),l=Object.prototype.hasOwnProperty;const d=function(t,e){var n=(0,r.Z)(t),d=!n&&(0,o.Z)(t),u=!n&&!d&&(0,s.Z)(t),h=!n&&!d&&!u&&(0,c.Z)(t),m=n||d||u||h,g=m?i(t.length,String):[],p=g.length;for(var f in t)!e&&!l.call(t,f)||m&&("length"==f||u&&("offset"==f||"parent"==f)||h&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||(0,a.Z)(f,p))||g.push(f);return g}},8694:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t,e){for(var n=-1,i=e.length,o=t.length;++n<i;)t[o+n]=e[n];return t}},2954:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(4752),o=n(9651),r=Object.prototype.hasOwnProperty;const s=function(t,e,n){var s=t[e];r.call(t,e)&&(0,o.Z)(s,n)&&(void 0!==n||e in t)||(0,i.Z)(t,e,n)}},4752:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(7904);const o=function(t,e,n){"__proto__"==e&&i.Z?(0,i.Z)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2390:(t,e,n)=>{"use strict";n.d(e,{Z:()=>Y});var i=n(5365);const o=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};var r=n(2954),s=n(1899),a=n(703);const c=function(t,e){return t&&(0,s.Z)(e,(0,a.Z)(e),t)};var l=n(7590);const d=function(t,e){return t&&(0,s.Z)(e,(0,l.Z)(e),t)};var u=n(1050),h=n(7215),m=n(3573);const g=function(t,e){return(0,s.Z)(t,(0,m.Z)(t),e)};var p=n(7502);const f=function(t,e){return(0,s.Z)(t,(0,p.Z)(t),e)};var x=n(1808),b=n(4403),k=n(4158),w=Object.prototype.hasOwnProperty;const A=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&w.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var _=n(1884);const v=function(t,e){var n=e?(0,_.Z)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var C=/\w*$/;const y=function(t){var e=new t.constructor(t.source,C.exec(t));return e.lastIndex=t.lastIndex,e};var E=n(7685),I=E.Z?E.Z.prototype:void 0,S=I?I.valueOf:void 0;const T=function(t){return S?Object(S.call(t)):{}};var D=n(2701);const M=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return(0,_.Z)(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return v(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(0,D.Z)(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return y(t);case"[object Symbol]":return T(t)}};var B=n(5418),O=n(7771),N=n(6706),P=n(8533);const R=function(t){return(0,P.Z)(t)&&"[object Map]"==(0,k.Z)(t)};var L=n(1162),j=n(8351),z=j.Z&&j.Z.isMap;const V=z?(0,L.Z)(z):R;var F=n(7226);const U=function(t){return(0,P.Z)(t)&&"[object Set]"==(0,k.Z)(t)};var H=j.Z&&j.Z.isSet;const G=H?(0,L.Z)(H):U;var q="[object Arguments]",W="[object Function]",K="[object Object]",Z={};Z[q]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object DataView]"]=Z["[object Boolean]"]=Z["[object Date]"]=Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Map]"]=Z["[object Number]"]=Z[K]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object Symbol]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Error]"]=Z[W]=Z["[object WeakMap]"]=!1;const Y=function t(e,n,s,m,p,w){var _,v=1&n,C=2&n,y=4&n;if(s&&(_=p?s(e,m,p,w):s(e)),void 0!==_)return _;if(!(0,F.Z)(e))return e;var E=(0,O.Z)(e);if(E){if(_=A(e),!v)return(0,h.Z)(e,_)}else{var I=(0,k.Z)(e),S=I==W||"[object GeneratorFunction]"==I;if((0,N.Z)(e))return(0,u.Z)(e,v);if(I==K||I==q||S&&!p){if(_=C||S?{}:(0,B.Z)(e),!v)return C?f(e,d(_,e)):g(e,c(_,e))}else{if(!Z[I])return p?e:{};_=M(e,I,v)}}w||(w=new i.Z);var T=w.get(e);if(T)return T;w.set(e,_),G(e)?e.forEach((function(i){_.add(t(i,n,s,i,e,w))})):V(e)&&e.forEach((function(i,o){_.set(o,t(i,n,s,o,e,w))}));var D=y?C?b.Z:x.Z:C?l.Z:a.Z,P=E?void 0:D(e);return o(P||e,(function(i,o){P&&(i=e[o=i]),(0,r.Z)(_,o,t(i,n,s,o,e,w))})),_}},3327:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(8694),o=n(7771);const r=function(t,e,n){var r=e(t);return(0,o.Z)(t)?r:(0,i.Z)(r,n(t))}},3243:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i=n(7685),o=Object.prototype,r=o.hasOwnProperty,s=o.toString,a=i.Z?i.Z.toStringTag:void 0;const c=function(t){var e=r.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var o=s.call(t);return i&&(e?t[a]=n:delete t[a]),o};var l=Object.prototype.toString;const d=function(t){return l.call(t)};var u=i.Z?i.Z.toStringTag:void 0;const h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?c(t):d(t)}},1162:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){return function(e){return t(e)}}},1884:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(4073);const o=function(t){var e=new t.constructor(t.byteLength);return new i.Z(e).set(new i.Z(t)),e}},1050:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(6092),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=r&&r.exports===o?i.Z.Buffer:void 0,a=s?s.allocUnsafe:void 0;const c=function(t,e){if(e)return t.slice();var n=t.length,i=a?a(n):new t.constructor(n);return t.copy(i),i}},2701:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(1884);const o=function(t,e){var n=e?(0,i.Z)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},7215:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},1899:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(2954),o=n(4752);const r=function(t,e,n,r){var s=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var l=e[a],d=r?r(n[l],t[l],l,n,t):void 0;void 0===d&&(d=t[l]),s?(0,o.Z)(n,l,d):(0,i.Z)(n,l,d)}return n}},7904:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(2119);const o=function(){try{var t=(0,i.Z)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},3413:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="object"==typeof global&&global&&global.Object===Object&&global},1808:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(3327),o=n(3573),r=n(703);const s=function(t){return(0,i.Z)(t,r.Z,o.Z)}},4403:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(3327),o=n(7502),r=n(7590);const s=function(t){return(0,i.Z)(t,r.Z,o.Z)}},2119:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var i=n(3234);const o=n(6092).Z["__core-js_shared__"];var r=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const s=function(t){return!!r&&r in t};var a=n(7226),c=n(19),l=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,h=d.toString,m=u.hasOwnProperty,g=RegExp("^"+h.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const p=function(t){return!(!(0,a.Z)(t)||s(t))&&((0,i.Z)(t)?g:l).test((0,c.Z)(t))};const f=function(t,e){return null==t?void 0:t[e]};const x=function(t,e){var n=f(t,e);return p(n)?n:void 0}},2513:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=(0,n(1851).Z)(Object.getPrototypeOf,Object)},3573:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});const i=function(t,e){for(var n=-1,i=null==t?0:t.length,o=0,r=[];++n<i;){var s=t[n];e(s,n,t)&&(r[o++]=s)}return r};var o=n(532),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),i(s(t),(function(e){return r.call(t,e)})))}:o.Z},7502:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(8694),o=n(2513),r=n(3573),s=n(532);const a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,i.Z)(e,(0,r.Z)(t)),t=(0,o.Z)(t);return e}:s.Z},4158:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i=n(2119),o=n(6092);const r=(0,i.Z)(o.Z,"DataView");var s=n(6183);const a=(0,i.Z)(o.Z,"Promise");const c=(0,i.Z)(o.Z,"Set");const l=(0,i.Z)(o.Z,"WeakMap");var d=n(3243),u=n(19),h="[object Map]",m="[object Promise]",g="[object Set]",p="[object WeakMap]",f="[object DataView]",x=(0,u.Z)(r),b=(0,u.Z)(s.Z),k=(0,u.Z)(a),w=(0,u.Z)(c),A=(0,u.Z)(l),_=d.Z;(r&&_(new r(new ArrayBuffer(1)))!=f||s.Z&&_(new s.Z)!=h||a&&_(a.resolve())!=m||c&&_(new c)!=g||l&&_(new l)!=p)&&(_=function(t){var e=(0,d.Z)(t),n="[object Object]"==e?t.constructor:void 0,i=n?(0,u.Z)(n):"";if(i)switch(i){case x:return f;case b:return h;case k:return m;case w:return g;case A:return p}return e});const v=_},5418:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(7226),o=Object.create;const r=function(){function t(){}return function(e){if(!(0,i.Z)(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var s=n(2513),a=n(2764);const c=function(t){return"function"!=typeof t.constructor||(0,a.Z)(t)?{}:r((0,s.Z)(t))}},6009:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}},2764:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},8351:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(3413),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=r&&r.exports===o&&i.Z.process;const a=function(){try{var t=r&&r.require&&r.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}()},1851:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t,e){return function(n){return t(e(n))}}},6092:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(3413),o="object"==typeof self&&self&&self.Object===Object&&self;const r=i.Z||o||Function("return this")()},19:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=Function.prototype.toString;const o=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},4612:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(2390);const o=function(t,e){return e="function"==typeof e?e:void 0,(0,i.Z)(t,5,e)}},9651:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t,e){return t===e||t!=t&&e!=e}},4732:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(3243),o=n(8533);const r=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,i.Z)(t)};var s=Object.prototype,a=s.hasOwnProperty,c=s.propertyIsEnumerable;const l=r(function(){return arguments}())?r:function(t){return(0,o.Z)(t)&&a.call(t,"callee")&&!c.call(t,"callee")}},7771:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=Array.isArray},585:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(3234),o=n(1656);const r=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,i.Z)(t)}},6706:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(6092);const o=function(){return!1};var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===r?i.Z.Buffer:void 0;const c=(a?a.isBuffer:void 0)||o},3251:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(8533),o=n(7514);const r=function(t){return(0,i.Z)(t)&&1===t.nodeType&&!(0,o.Z)(t)}},3234:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(3243),o=n(7226);const r=function(t){if(!(0,o.Z)(t))return!1;var e=(0,i.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1656:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7226:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},8533:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){return null!=t&&"object"==typeof t}},7514:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(3243),o=n(2513),r=n(8533),s=Function.prototype,a=Object.prototype,c=s.toString,l=a.hasOwnProperty,d=c.call(Object);const u=function(t){if(!(0,r.Z)(t)||"[object Object]"!=(0,i.Z)(t))return!1;var e=(0,o.Z)(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},7212:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(3243),o=n(1656),r=n(8533),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,r.Z)(t)&&(0,o.Z)(t.length)&&!!s[(0,i.Z)(t)]};var c=n(1162),l=n(8351),d=l.Z&&l.Z.isTypedArray;const u=d?(0,c.Z)(d):a},703:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(9001),o=n(2764);const r=(0,n(1851).Z)(Object.keys,Object);var s=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,o.Z)(t))return r(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e};var c=n(585);const l=function(t){return(0,c.Z)(t)?(0,i.Z)(t):a(t)}},7590:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i=n(9001),o=n(7226),r=n(2764);const s=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var a=Object.prototype.hasOwnProperty;const c=function(t){if(!(0,o.Z)(t))return s(t);var e=(0,r.Z)(t),n=[];for(var i in t)("constructor"!=i||!e&&a.call(t,i))&&n.push(i);return n};var l=n(585);const d=function(t){return(0,l.Z)(t)?(0,i.Z)(t,!0):c(t)}},532:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(){return[]}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nc=void 0;var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>J7});var t={};function e({emitter:t,activator:e,callback:n,contextElements:i}){t.listenTo(document,"mousedown",((t,o)=>{if(!e())return;const r="function"==typeof o.composedPath?o.composedPath():[],s="function"==typeof i?i():i;for(const t of s)if(t.contains(o.target)||r.includes(t))return;n()}))}function n(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 i({view:t}){t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}function o({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:i,uiLanguageDirection:o}){const r="number"==typeof i?()=>i:i;function s(t){return i=>{const o=n.find((t=>t.element===e.focusedElement)),r=n.getIndex(o),s=t(r,n);n.get(s).focus(),i.stopPropagation(),i.preventDefault()}}function a(t,e){return t===e-1?0:t+1}function c(t,e){return 0===t?e-1:t-1}t.set("arrowright",s(((t,e)=>"rtl"===o?c(t,e.length):a(t,e.length)))),t.set("arrowleft",s(((t,e)=>"rtl"===o?a(t,e.length):c(t,e.length)))),t.set("arrowup",s(((t,e)=>{let n=t-r();return n<0&&(n=t+r()*Math.floor(e.length/r()),n>e.length-1&&(n-=r())),n}))),t.set("arrowdown",s(((t,e)=>{let n=t+r();return n>e.length-1&&(n=t%r()),n})))}__webpack_require__.r(t),__webpack_require__.d(t,{AttributeOperation:()=>Mj,Element:()=>Uj,InsertOperation:()=>Bj,MarkerOperation:()=>Oj,MergeOperation:()=>Nj,MoveOperation:()=>Pj,Position:()=>Vj,Range:()=>Fj,RenameOperation:()=>Rj,RootAttributeOperation:()=>Lj,RootOperation:()=>jj,SplitOperation:()=>zj,default:()=>Dj});var r=__webpack_require__(3324);class s extends r.FE{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 r.Bb("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const i of t)n.delegate(i).to(e);this.on("add",((n,i)=>{for(const n of t)i.delegate(n).to(e)})),this.on("remove",((n,i)=>{for(const n of t)i.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)}}var a=__webpack_require__(3379),c=__webpack_require__.n(a),l=__webpack_require__(6150),d={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(l.Z,d);l.Z.locals;class u extends((0,r.Xu)((0,r.Re)())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new r.FE,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=g.bind(this,this)}createCollection(t){const e=new s(t);return this._viewCollections.add(e),e}registerChild(t){(0,r.TW)(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){(0,r.TW)(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new g(t)}extendTemplate(t){g.extend(this.template,t)}render(){if(this.isRendered)throw new r.Bb("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}var h=__webpack_require__(4612),m=__webpack_require__(7226);class g extends((0,r.ln)()){constructor(t){super(),Object.assign(this,C(v(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 r.Bb("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)D(n)?yield n:M(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,i)=>new f({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i}),if:(n,i,o)=>new x({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:o})}}static extend(t,e){if(t._isRendered)throw new r.Bb("template-extend-render",[this,t]);S(t,C(v(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new r.Bb("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(""),b(this.text)?this._bindToObservable({schema:this.text,updater:w(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const i in this.attributes){const o=e.getAttribute(i),r=this.attributes[i];n&&(n.attributes[i]=o);const s=O(r)?r[0].ns:null;if(b(r)){const a=O(r)?r[0].value:r;n&&N(i)&&a.unshift(o),this._bindToObservable({schema:a,updater:A(e,i,s),data:t})}else if("style"==i&&"string"!=typeof r[0])this._renderStyleAttribute(r[0],t);else{n&&o&&N(i)&&r.unshift(o);const t=r.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(E,"");T(t)||e.setAttributeNS(s,i,t)}}}_renderStyleAttribute(t,e){const n=e.node;for(const i in t){const o=t[i];b(o)?this._bindToObservable({schema:[o],updater:_(n,i),data:e}):n.style[i]=o}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,i=t.isApplying;let o=0;for(const s of this.children)if(B(s)){if(!i){s.setParent(e);for(const t of s)n.appendChild(t.element)}}else if(D(s))i||(s.isRendered||s.render(),n.appendChild(s.element));else if((0,r.UG)(s))n.appendChild(s);else if(i){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),s._renderNode({intoFragment:!1,node:n.childNodes[o++],isApplying:!0,revertData:e})}else n.appendChild(s.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[i,o]=e.split("@");return n.activateDomEventListener(i,o,t)}));t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const i=n.revertData;k(t,e,n);const o=t.filter((t=>!T(t))).filter((t=>t.observable)).map((i=>i.activateAttributeListener(t,e,n)));i&&i.bindings.push(o)}_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 i=e.attributes[t];null===i?n.removeAttribute(t):n.setAttribute(t,i)}for(let t=0;t<e.children.length;++t)this._revertTemplateFromNode(n.childNodes[t],e.children[t])}}class p{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 i=()=>k(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class f extends p{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const i=(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,i),()=>{this.emitter.stopListening(n.node,t,i)}}}class x extends p{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!T(super.getValue(t))&&(this.valueIfTrue||!0)}}function b(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(b):t instanceof p)}function k(t,e,{node:n}){const i=function(t,e){return t.map((t=>t instanceof p?t.getValue(e):t))}(t,n);let o;o=1==t.length&&t[0]instanceof x?i[0]:i.reduce(E,""),T(o)?e.remove():e.set(o)}function w(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function A(t,e,n){return{set(i){t.setAttributeNS(n,e,i)},remove(){t.removeAttributeNS(n,e)}}}function _(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function v(t){return(0,h.Z)(t,(t=>{if(t&&(t instanceof p||M(t)||D(t)||B(t)))return t}))}function C(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=(0,r.qo)(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)y(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=(0,r.qo)(t[e].value)),y(t,e)}(t.attributes);const e=[];if(t.children)if(B(t.children))e.push(t.children);else for(const n of t.children)M(n)||D(n)||(0,r.UG)(n)?e.push(n):e.push(new g(n));t.children=e}return t}function y(t,e){t[e]=(0,r.qo)(t[e])}function E(t,e){return T(e)?t:T(t)?e:`${t} ${e}`}function I(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function S(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),I(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),I(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 r.Bb("ui-template-extend-children-mismatch",t);let n=0;for(const i of e.children)S(t.children[n++],i)}}function T(t){return!t&&0!==t}function D(t){return t instanceof u}function M(t){return t instanceof g}function B(t){return t instanceof s}function O(t){return(0,m.Z)(t[0])&&t[0].ns}function N(t){return"class"==t||"style"==t}class P extends s{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new g({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=(0,r.az)(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 R=__webpack_require__(1174),L={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(R.Z,L);R.Z.locals;class j extends u{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))j.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}))}}j.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"];class z extends u{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 V=__webpack_require__(4499),F={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(V.Z,F);V.Z.locals;class U extends u{constructor(t,e=new z){super(t),this._focusDelayed=null;const n=this.bindTemplate,i=(0,r.hQ)();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${i}`),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 j,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const o={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",(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-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,(t=>!t)),"aria-pressed":n.to("isOn",(t=>!!this.isToggleable&&String(!!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()}))}};r.OB.isSafari&&(this._focusDelayed||(this._focusDelayed=(0,r.gw)((()=>this.focus()),0)),o.on.mousedown=n.to((()=>{this._focusDelayed()})),o.on.mouseup=n.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(o)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}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 u;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(t=>(0,r.XU)(t)))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=(0,r.XU)(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var H=__webpack_require__(9681),G={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(H.Z,G);H.Z.locals;class q extends U{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 u;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}function W(t,e){const n=t.t,i={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return e.map((t=>{const e=i[t.label];return e&&e!=t.label&&(t.label=e),t}))}function K(t){return t.map(Z).filter((t=>!!t))}function Z(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 Y extends U{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")},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 J=__webpack_require__(4923),$={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(J.Z,$);J.Z.locals;class Q extends u{constructor(t,e){super(t);const n=e&&e.colorDefinitions?e.colorDefinitions:[];this.columns=e&&e.columns?e.columns:5;const i={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new r.Rh,this.keystrokes=new r.VD,this.items.on("add",((t,e)=>{e.isOn=e.color===this.selectedColor})),n.forEach((t=>{const e=new Y;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:i}}),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),o({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 X=__webpack_require__(8874);const tt=function(t){var e,n,i=[],o=1;if("string"==typeof t)if(X[t])i=X[t].slice(),n="rgb";else if("transparent"===t)o=0,n="rgb",i=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var r=t.slice(1);o=1,(c=r.length)<=4?(i=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],4===c&&(o=parseInt(r[3]+r[3],16)/255)):(i=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],8===c&&(o=parseInt(r[6]+r[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[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=r=s.replace(/a$/,"");var c="cmyk"===r?4:"gray"===r?1:3;i=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(t,e){if(/%$/.test(t))return e===c?parseFloat(t)/100:"rgb"===r?255*parseFloat(t)/100:parseFloat(t);if("h"===r[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==et[t])return et[t]}return parseFloat(t)})),s===r&&i.push(1),o=a||void 0===i[c]?1:i[c],i=i.slice(0,c)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(i=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?(i=[t[0],t[1],t[2]],n="rgb",o=4===t.length?t[3]:1):t instanceof Object&&(null!=t.r||null!=t.red||null!=t.R?(n="rgb",i=[t.r||t.red||t.R||0,t.g||t.green||t.G||0,t.b||t.blue||t.B||0]):(n="hsl",i=[t.h||t.hue||t.H||0,t.s||t.saturation||t.S||0,t.l||t.lightness||t.L||t.b||t.brightness]),o=t.a||t.alpha||t.opacity||1,null!=t.opacity&&(o/=100)):(n="rgb",i=[t>>>16,(65280&t)>>>8,255&t]);return{space:n,values:i,alpha:o}};var et={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};var nt=__webpack_require__(2085);function it(t,e){if(!t)return"";const n=ot(t);if(!n)return"";if(n.space===e)return t;if(i=n,!Object.keys(nt).includes(i.space))return"";var i;const o=nt[n.space][e];if(!o)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""}}(o("hex"===n.space?n.hexValue:n.values),e)}function ot(t){if(t.startsWith("#")){const e=tt(t);return{space:"hex",values:e.values,hexValue:t,alpha:e.alpha}}const e=tt(t);return e.space?e:null}var rt=__webpack_require__(6092);const st=function(){return rt.Z.Date.now()};var at=/\s/;const ct=function(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e};var lt=/^\s+/;const dt=function(t){return t?t.slice(0,ct(t)+1).replace(lt,""):t};var ut=__webpack_require__(3243),ht=__webpack_require__(8533);const mt=function(t){return"symbol"==typeof t||(0,ht.Z)(t)&&"[object Symbol]"==(0,ut.Z)(t)};var gt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,ft=/^0o[0-7]+$/i,xt=parseInt;const bt=function(t){if("number"==typeof t)return t;if(mt(t))return NaN;if((0,m.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,m.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=dt(t);var n=pt.test(t);return n||ft.test(t)?xt(t.slice(2),n?2:8):gt.test(t)?NaN:+t};var kt=Math.max,wt=Math.min;const At=function(t,e,n){var i,o,r,s,a,c,l=0,d=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=i,r=o;return i=o=void 0,l=e,s=t.apply(r,n)}function p(t){var n=t-c;return void 0===c||n>=e||n<0||u&&t-l>=r}function f(){var t=st();if(p(t))return x(t);a=setTimeout(f,function(t){var n=e-(t-c);return u?wt(n,r-(t-l)):n}(t))}function x(t){return a=void 0,h&&i?g(t):(i=o=void 0,s)}function b(){var t=st(),n=p(t);if(i=arguments,o=this,c=t,n){if(void 0===a)return function(t){return l=t,a=setTimeout(f,e),d?g(t):s}(c);if(u)return clearTimeout(a),a=setTimeout(f,e),g(c)}return void 0===a&&(a=setTimeout(f,e)),s}return e=bt(e)||0,(0,m.Z)(n)&&(d=!!n.leading,r=(u="maxWait"in n)?kt(bt(n.maxWait)||0,e):r,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=o=a=void 0},b.flush=function(){return void 0===a?s:x(st())},b};var _t=__webpack_require__(2751),vt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(_t.Z,vt);_t.Z.locals;class Ct extends u{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${(0,r.hQ)()}`;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 yt=__webpack_require__(8111),Et={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(yt.Z,Et);yt.Z.locals;class It extends u{constructor(t,e){super(t);const n=`ck-labeled-field-view-${(0,r.hQ)()}`,i=`ck-labeled-field-view-status-${(0,r.hQ)()}`;this.fieldView=e(this,n,i),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(i),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((t,e)=>t||e));const o=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",o.to("class"),o.if("isEnabled","ck-disabled",(t=>!t)),o.if("isEmpty","ck-labeled-field-view_empty"),o.if("isFocused","ck-labeled-field-view_focused"),o.if("placeholder","ck-labeled-field-view_placeholder"),o.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new Ct(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new u(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 St extends u{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new r.Rh,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"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},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 Tt=__webpack_require__(6985),Dt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Tt.Z,Dt);Tt.Z.locals;class Mt extends St{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class Bt extends Mt{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class Ot extends Mt{constructor(t,{min:e,max:n,step:i}={}){super(t);const o=this.bindTemplate;this.set("min",e),this.set("max",n),this.set("step",i),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:o.to("min"),max:o.to("max"),step:o.to("step")}})}}var Nt=__webpack_require__(3175),Pt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Nt.Z,Pt);Nt.Z.locals;class Rt extends St{constructor(t){super(t);const e=(0,r.nn)("px");this.set("minRows",2),this.set("maxRows",5),this.set("_height",null),this.set("resize","none"),this.on("change:minRows",this._validateMinMaxRows.bind(this)),this.on("change:maxRows",this._validateMinMaxRows.bind(this));const n=this.bindTemplate;this.template.tag="textarea",this.extendTemplate({attributes:{class:["ck-textarea"],style:{height:n.to("_height",(t=>t?e(t):null)),resize:n.to("resize")},rows:n.to("minRows")}})}render(){super.render(),this.on("input",(()=>{this._updateAutoGrowHeight(!0),this.fire("update")})),this.on("change:value",(()=>{r.global.window.requestAnimationFrame((()=>{(0,r.pn)(this.element)&&(this._updateAutoGrowHeight(),this.fire("update"))}))}))}reset(){super.reset(),this._updateAutoGrowHeight(),this.fire("update")}_updateAutoGrowHeight(t){const e=this.element,n=Lt(e,"1"),i=Lt(e,e.value),o=n.ownerDocument.defaultView.getComputedStyle(n),s=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=(0,r.lo)(n),c=parseFloat(o.lineHeight),l=a.top+a.bottom,d=new r.UL(n).height,u=Math.round((i.scrollHeight-s)/c),h=this.maxRows*c+s+l,m=1===u?d:this.minRows*c+s+l;this._height=Math.min(Math.max(Math.max(u,this.minRows)*c+s+l,m),h),t&&(e.scrollTop=e.scrollHeight),n.remove(),i.remove()}_validateMinMaxRows(){if(this.minRows>this.maxRows)throw new r.Bb("ui-textarea-view-min-rows-greater-than-max-rows",{textareaView:this,minRows:this.minRows,maxRows:this.maxRows})}}function Lt(t,e){const n=t.cloneNode();return n.style.position="absolute",n.style.top="-99999px",n.style.left="-99999px",n.style.height="auto",n.style.overflow="hidden",n.style.width=t.ownerDocument.defaultView.getComputedStyle(t).width,n.tabIndex=-1,n.rows=1,n.value=e,t.parentNode.insertBefore(n,t),n}class jt extends u{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():(0,r.KE)("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 zt=__webpack_require__(3488),Vt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(zt.Z,Vt);zt.Z.locals;class Ft extends u{constructor(t,e,n){super(t);const i=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 r.VD,this.focusTracker=new r.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",i.to("class"),i.if("isEnabled","ck-disabled",(t=>!t))],id:i.to("id"),"aria-describedby":i.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":i.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=Ft._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:i,northEast:o,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=Ft.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,i,s,a,t,o,r,c,l,e]:[i,n,a,s,t,r,o,l,c,e]}}Ft.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"})},Ft._getOptimalPosition=r.xZ;const Ut='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class Ht extends U{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 j;return t.content=Ut,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class Gt extends((0,r.ln)()){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 i of n)t.keystrokeHandler.set(i,((t,n)=>{this[e](),n()}))}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(qt)||null}get last(){return this.focusables.filter(qt).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((e,n)=>{const i=e.element===this.focusTracker.focusedElement;return i&&(t=n),i})),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))}_focus(t,e){t&&t.focus(e)}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let i=(e+n+t)%n;do{const e=this.focusables.get(i);if(qt(e))return e;i=(i+n+t)%n}while(i!==e);return null}}function qt(t){return!(!("focus"in t)||!(0,r.pn)(t.element))}class Wt extends u{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Kt extends u{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Zt(t){if(Array.isArray(t))return{items:t,removeItems:[]};const e={items:[],removeItems:[]};return t?{...e,...t}:e}class Yt extends((0,r.Re)()){constructor(t){super(),this._disableStack=new Set,this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Jt,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Jt),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Jt(t){t.return=!1,t.stop()}class $t extends((0,r.Re)()){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,i=!("$graveyard"==n.getFirstPosition().root.rootName)&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!i)&&(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",Qt,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Qt),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function Qt(t){t.return=!1,t.stop()}class Xt extends $t{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){(0,r.VG)(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 te extends((0,r.ln)()){constructor(t,e=[],n=[]){super(),this._plugins=new Map,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 r.Bb("plugincollection-plugin-not-loaded",this._context,{plugin:e})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const i=this,o=this._context;!function t(e,n=new Set){e.forEach((e=>{c(e)&&(n.has(e)||(n.add(e),e.pluginName&&!i._availablePlugins.has(e.pluginName)&&i._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),h(t);const s=[...function t(e,n=new Set){return e.map((t=>c(t)?t:i._availablePlugins.get(t))).reduce(((e,i)=>n.has(i)?e:(n.add(i),i.requires&&(h(i.requires,i),t(i.requires,n).forEach((t=>e.add(t)))),e.add(i))),new Set)}(t.filter((t=>!d(t,e))))];!function(t,e){for(const n of e){if("function"!=typeof n)throw new r.Bb("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const e=n.pluginName;if(!e)throw new r.Bb("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new r.Bb("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:e});const o=i._availablePlugins.get(e);if(!o)throw new r.Bb("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:e});const s=t.indexOf(o);if(-1===s){if(i._contextPlugins.has(o))return;throw new r.Bb("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:e})}if(o.requires&&o.requires.length)throw new r.Bb("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:e});t.splice(s,1,n),i._availablePlugins.set(e,n)}}(s,n);const a=function(t){return t.map((t=>{let e=i._contextPlugins.get(t);return e=e||new t(o),i._add(t,e),e}))}(s);return m(a,"init").then((()=>m(a,"afterInit"))).then((()=>a));function c(t){return"function"==typeof t}function l(t){return c(t)&&!!t.isContextPlugin}function d(t,e){return e.some((e=>e===t||(u(t)===e||u(e)===t)))}function u(t){return c(t)?t.pluginName||t.name:t}function h(t,n=null){t.map((t=>c(t)?t:i._availablePlugins.get(t)||t)).forEach((t=>{!function(t,e){if(c(t))return;if(e)throw new r.Bb("plugincollection-soft-required",o,{missingPlugin:t,requiredBy:u(e)});throw new r.Bb("plugincollection-plugin-not-found",o,{plugin:t})}(t,n),function(t,e){if(!l(e))return;if(l(t))return;throw new r.Bb("plugincollection-context-required",o,{plugin:u(t),requiredBy:u(e)})}(t,n),function(t,n){if(!n)return;if(!d(t,e))return;throw new r.Bb("plugincollection-required",o,{plugin:u(t),requiredBy:u(n)})}(t,n)}))}function m(t,e){return t.reduce(((t,n)=>n[e]?i._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 r.Bb("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class ee{constructor(t){this._contextOwner=null,this.config=new r.De(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new te(this,e);const n=this.config.get("language")||{};this.locale=new r.go({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new r.FE}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 r.Bb("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new r.Bb("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 r.Bb("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 ne extends((0,r.Re)()){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var ie=__webpack_require__(8894),oe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(ie.Z,oe);ie.Z.locals;const re=new WeakMap;let se=!1;function ae({view:t,element:e,text:n,isDirectHost:i=!0,keepOnFocus:o=!1}){const s=t.document;function a(n){re.get(s).set(e,{text:n,isDirectHost:i,keepOnFocus:o,hostElement:i?e:null}),t.change((t=>le(s,t)))}re.has(s)||(re.set(s,new Map),s.registerPostFixer((t=>le(s,t))),s.on("change:isComposing",(()=>{t.change((t=>le(s,t)))}),{priority:"high"})),e.is("editableElement")&&e.on("change:placeholder",((t,e,n)=>{a(n)})),e.placeholder?a(e.placeholder):n&&a(n),n&&function(){se||(0,r.KE)("enableplaceholder-deprecated-text-option");se=!0}()}function ce(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function le(t,e){const n=re.get(t),i=[];let o=!1;for(const[t,r]of n)r.isDirectHost&&(i.push(t),de(e,t,r)&&(o=!0));for(const[t,r]of n){if(r.isDirectHost)continue;const n=ue(t);n&&(i.includes(n)||(r.hostElement=n,de(e,t,r)&&(o=!0)))}return o}function de(t,e,n){const{text:i,isDirectHost:o,hostElement:r}=n;let s=!1;r.getAttribute("data-placeholder")!==i&&(t.setAttribute("data-placeholder",i,r),s=!0);return(o||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;const n=Array.from(t.getChildren()).some((t=>!t.is("uiElement")));if(n)return!1;const i=t.document,o=i.selection.anchor;return!(i.isComposing&&o&&o.parent===t||!e&&i.isFocused&&(!o||o.parent===t))}(r,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,r)&&(s=!0):ce(t,r)&&(s=!0),s}function ue(t){if(t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}class he{is(){throw new Error("is() method is abstract")}}var me=__webpack_require__(2390);const ge=function(t){return(0,me.Z)(t,4)};__webpack_require__(9807);class pe extends((0,r.ln)(he)){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 r.Bb("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),i=t.getAncestors(e);let o=0;for(;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=(0,r.Rt)(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}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=ge(this);return delete t.parent,t}}pe.prototype.is=function(t){return"node"===t||"view:node"===t};class fe extends pe{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 fe&&(this===t||this.data===t.data)}_clone(){return new fe(this.document,this.data)}}fe.prototype.is=function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t};class xe extends he{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new r.Bb("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new r.Bb("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}}xe.prototype.is=function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t};var be=__webpack_require__(7514);class ke{constructor(...t){this._patterns=[],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=we(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 i=we(n,t);i&&e.push({element:n,pattern:t,match:i})}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 we(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());(0,be.Z)(t)?(void 0!==t.style&&(0,r.KE)("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&(0,r.KE)("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class"));return Ae(t,n,(t=>e.getAttribute(t)))}(e.attributes,t),!n.attributes)||e.classes&&(n.classes=function(t,e){return Ae(t,e.getClassNames(),(()=>{}))}(e.classes,t),!n.classes)||e.styles&&(n.styles=function(t,e){return Ae(t,e.getStyleNames(!0),(t=>e.getStyle(t)))}(e.styles,t),!n.styles)?null:n}function Ae(t,e,n){const i=function(t){if(Array.isArray(t))return t.map((t=>(0,be.Z)(t)?(void 0!==t.key&&void 0!==t.value||(0,r.KE)("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]));if((0,be.Z)(t))return Object.entries(t);return[[t,!0]]}(t),o=Array.from(e),s=[];if(i.forEach((([t,e])=>{o.forEach((i=>{(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(t,i)&&function(t,e,n){if(!0===t)return!0;const i=n(e);return t===i||t instanceof RegExp&&!!String(i).match(t)}(e,i,n)&&s.push(i)}))})),i.length&&!(s.length<i.length))return s}var _e=__webpack_require__(7771),ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/;const ye=function(t,e){if((0,_e.Z)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!mt(t))||(Ce.test(t)||!ve.test(t)||null!=e&&t in Object(e))};var Ee=__webpack_require__(520);function Ie(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,o=e?e.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=t.apply(this,i);return n.cache=r.set(o,s)||r,s};return n.cache=new(Ie.Cache||Ee.Z),n}Ie.Cache=Ee.Z;const Se=Ie;const Te=function(t){var e=Se(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e};var De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Me=/\\(\\)?/g,Be=Te((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(De,(function(t,n,i,o){e.push(i?o.replace(Me,"$1"):n||t)})),e}));const Oe=Be;var Ne=__webpack_require__(7685);const Pe=function(t,e){for(var n=-1,i=null==t?0:t.length,o=Array(i);++n<i;)o[n]=e(t[n],n,t);return o};var Re=Ne.Z?Ne.Z.prototype:void 0,Le=Re?Re.toString:void 0;const je=function t(e){if("string"==typeof e)return e;if((0,_e.Z)(e))return Pe(e,t)+"";if(mt(e))return Le?Le.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ze=function(t){return null==t?"":je(t)};const Ve=function(t,e){return(0,_e.Z)(t)?t:ye(t,e)?[t]:Oe(ze(t))};const Fe=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ue=function(t){if("string"==typeof t||mt(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const He=function(t,e){for(var n=0,i=(e=Ve(e,t)).length;null!=t&&n<i;)t=t[Ue(e[n++])];return n&&n==i?t:void 0};const Ge=function(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(o);++i<o;)r[i]=t[i+e];return r};const qe=function(t,e){return e.length<2?t:He(t,Ge(e,0,-1))};const We=function(t,e){return e=Ve(e,t),null==(t=qe(t,e))||delete t[Ue(Fe(e))]};const Ke=function(t,e){return null==t||We(t,e)};const Ze=function(t,e,n){var i=null==t?void 0:He(t,e);return void 0===i?n:i};var Ye=__webpack_require__(5365),Je=__webpack_require__(4752),$e=__webpack_require__(9651);const Qe=function(t,e,n){(void 0!==n&&!(0,$e.Z)(t[e],n)||void 0===n&&!(e in t))&&(0,Je.Z)(t,e,n)};const Xe=function(t){return function(e,n,i){for(var o=-1,r=Object(e),s=i(e),a=s.length;a--;){var c=s[t?a:++o];if(!1===n(r[c],c,r))break}return e}}();var tn=__webpack_require__(1050),en=__webpack_require__(2701),nn=__webpack_require__(7215),on=__webpack_require__(5418),rn=__webpack_require__(4732),sn=__webpack_require__(585);const an=function(t){return(0,ht.Z)(t)&&(0,sn.Z)(t)};var cn=__webpack_require__(6706),ln=__webpack_require__(3234),dn=__webpack_require__(7212);const un=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var hn=__webpack_require__(1899),mn=__webpack_require__(7590);const gn=function(t){return(0,hn.Z)(t,(0,mn.Z)(t))};const pn=function(t,e,n,i,o,r,s){var a=un(t,n),c=un(e,n),l=s.get(c);if(l)Qe(t,n,l);else{var d=r?r(a,c,n+"",t,e,s):void 0,u=void 0===d;if(u){var h=(0,_e.Z)(c),g=!h&&(0,cn.Z)(c),p=!h&&!g&&(0,dn.Z)(c);d=c,h||g||p?(0,_e.Z)(a)?d=a:an(a)?d=(0,nn.Z)(a):g?(u=!1,d=(0,tn.Z)(c,!0)):p?(u=!1,d=(0,en.Z)(c,!0)):d=[]:(0,be.Z)(c)||(0,rn.Z)(c)?(d=a,(0,rn.Z)(a)?d=gn(a):(0,m.Z)(a)&&!(0,ln.Z)(a)||(d=(0,on.Z)(c))):u=!1}u&&(s.set(c,d),o(d,c,i,r,s),s.delete(c)),Qe(t,n,d)}};const fn=function t(e,n,i,o,r){e!==n&&Xe(n,(function(s,a){if(r||(r=new Ye.Z),(0,m.Z)(s))pn(e,n,a,i,t,o,r);else{var c=o?o(un(e,a),s,a+"",e,n,r):void 0;void 0===c&&(c=s),Qe(e,a,c)}}),mn.Z)};const xn=function(t){return t};const bn=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 kn=Math.max;const wn=function(t,e,n){return e=kn(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,r=kn(i.length-e,0),s=Array(r);++o<r;)s[o]=i[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=i[o];return a[e]=n(s),bn(t,this,a)}};const An=function(t){return function(){return t}};var _n=__webpack_require__(7904);const vn=_n.Z?function(t,e){return(0,_n.Z)(t,"toString",{configurable:!0,enumerable:!1,value:An(e),writable:!0})}:xn;var Cn=Date.now;const yn=function(t){var e=0,n=0;return function(){var i=Cn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(vn);const En=function(t,e){return yn(wn(t,e,xn),t+"")};var In=__webpack_require__(6009);const Sn=function(t,e,n){if(!(0,m.Z)(n))return!1;var i=typeof e;return!!("number"==i?(0,sn.Z)(n)&&(0,In.Z)(e,n.length):"string"==i&&e in n)&&(0,$e.Z)(n[e],t)};const Tn=function(t){return En((function(e,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(o--,r):void 0,s&&Sn(n[0],n[1],s)&&(r=o<3?void 0:r,o=1),e=Object(e);++i<o;){var a=n[i];a&&t(e,a,i,r)}return e}))};const Dn=Tn((function(t,e,n){fn(t,e,n)}));var Mn=__webpack_require__(2954);const Bn=function(t,e,n,i){if(!(0,m.Z)(t))return t;for(var o=-1,r=(e=Ve(e,t)).length,s=r-1,a=t;null!=a&&++o<r;){var c=Ue(e[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var d=a[c];void 0===(l=i?i(d,c,a):void 0)&&(l=(0,m.Z)(d)?d:(0,In.Z)(e[o+1])?[]:{})}(0,Mn.Z)(a,c,l),a=a[c]}return t};const On=function(t,e,n){return null==t?t:Bn(t,e,n)};class Nn{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,i=0,o=null;const r=new Map;if(""===t)return r;";"!=t.charAt(t.length-1)&&(t+=";");for(let s=0;s<t.length;s++){const a=t.charAt(s);if(null===e)switch(a){case":":o||(o=t.substr(n,s-n),i=s+1);break;case'"':case"'":e=a;break;case";":{const e=t.substr(i,s-i);o&&r.set(o.trim(),e.trim()),o=null,n=s+1;break}}else a===e&&(e=null)}return r}(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((0,m.Z)(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=Rn(t);Ke(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]&&!(0,m.Z)(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("."),i=Ze(this._styles,n);if(!i)return;!Object.keys(i).length&&this.remove(n)}}class Pn{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if((0,m.Z)(e))Ln(n,Rn(t),e);else if(this._normalizers.has(t)){const i=this._normalizers.get(t),{path:o,value:r}=i(e);Ln(n,o,r)}else Ln(n,t,e)}getNormalized(t,e){if(!t)return Dn({},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 Ze(e,n);const i=n(t,e);if(i)return i}return Ze(e,Rn(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=Array.from(this._consumables.keys()).filter((e=>{const n=this.getNormalized(e,t);return n&&"object"==typeof n?Object.keys(n).length:n})),n=new Set([...e,...Object.keys(t)]);return Array.from(n)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function Rn(t){return t.replace("-",".")}function Ln(t,e,n){let i=n;(0,m.Z)(n)&&(i=Dn({},Ze(t,e),n)),On(t,e,i)}class jn extends pe{constructor(t,e,n,i){if(super(t),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=e,this._attrs=function(t){const e=(0,r.qL)(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=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");zn(this._classes,t),this._attrs.delete("class")}this._styles=new Nn(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 jn))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 ke(...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 i=function(t,e){if("string"==typeof e)return[new fe(t,e)];(0,r.TW)(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new fe(t,e):e instanceof xe?new fe(t,e.data):e))}(this.document,e);for(const e of i)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?zn(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(0,r.qo)(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of(0,r.qo)(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(0,r.qo)(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function zn(t,e){const n=e.split(/\s+/);t.clear(),n.forEach((e=>t.add(e)))}jn.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 Vn extends jn{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=Fn}}function Fn(){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}Vn.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 Un extends((0,r.Re)(Vn)){constructor(t,e,n,i){super(t,e,n,i),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()}}Un.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 Hn=Symbol("rootName");class Gn extends Un{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(Hn)}set rootName(t){this._setCustomProperty(Hn,t)}set _name(t){this.name=t}}Gn.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 qn{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new r.Bb("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new r.Bb("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=Wn._createAt(t.startPosition):this._position=Wn._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 i;if(n instanceof fe){if(t.isAtEnd)return this._position=Wn._createAfter(n),this._next();i=n.data[t.offset]}else i=n.getChild(t.offset);if(i instanceof jn){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new Wn(i,0);return this._position=t,this._formatReturnValue("elementStart",i,e,t,1)}if(i instanceof fe){if(this.singleCharacters)return t=new Wn(i,0),this._position=t,this._next();let n,o=i.data.length;return i==this._boundaryEndParent?(o=this.boundaries.end.offset,n=new xe(i,0,o),t=Wn._createAfter(n)):(n=new xe(i,0,i.data.length),t.offset++),this._position=t,this._formatReturnValue("text",n,e,t,o)}if("string"==typeof i){let i;if(this.singleCharacters)i=1;else{i=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset}const o=new xe(n,t.offset,i);return t.offset+=i,this._position=t,this._formatReturnValue("text",o,e,t,i)}return t=Wn._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 i;if(n instanceof fe){if(t.isAtStart)return this._position=Wn._createBefore(n),this._previous();i=n.data[t.offset-1]}else i=n.getChild(t.offset-1);if(i instanceof jn)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",i,e,t,1)):(t=new Wn(i,i.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,e,t));if(i instanceof fe){if(this.singleCharacters)return t=new Wn(i,i.data.length),this._position=t,this._previous();let n,o=i.data.length;if(i==this._boundaryStartParent){const e=this.boundaries.start.offset;n=new xe(i,e,i.data.length-e),o=n.data.length,t=Wn._createBefore(n)}else n=new xe(i,0,i.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",n,e,t,o)}if("string"==typeof i){let i;if(this.singleCharacters)i=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;i=t.offset-e}t.offset-=i;const o=new xe(n,t.offset,i);return this._position=t,this._formatReturnValue("text",o,e,t,i)}return t=Wn._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,i,o){return e instanceof xe&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Wn._createAfter(e.textNode):(i=Wn._createAfter(e.textNode),this._position=i)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Wn._createBefore(e.textNode):(i=Wn._createBefore(e.textNode),this._position=i))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:o}}}}class Wn extends he{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 Un);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=Wn._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new qn(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 i=0;for(;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-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 i=(0,r.Rt)(e,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return e[i]<n[i]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new qn(t)}clone(){return new Wn(this.parent,this.offset)}static _createAt(t,e){if(t instanceof Wn)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 r.Bb("view-createpositionat-offset-required",n)}return new Wn(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new Wn(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new r.Bb("view-position-after-root",t,{root:t});return new Wn(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new Wn(t.textNode,t.offsetInText);if(!t.parent)throw new r.Bb("view-position-before-root",t,{root:t});return new Wn(t.parent,t.index)}}Wn.prototype.is=function(t){return"position"===t||"view:position"===t};class Kn extends he{constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new qn({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(Zn,{direction:"backward"}),e=this.end.getLastMatchingPosition(Zn);return t.parent.is("$text")&&t.isAtStart&&(t=Wn._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=Wn._createAfter(e.parent)),new Kn(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(Zn);if(t.isAfter(this.end)||t.isEqual(this.end))return new Kn(t,t);let e=this.end.getLastMatchingPosition(Zn,{direction:"backward"});const n=t.nodeAfter,i=e.nodeBefore;return n&&n.is("$text")&&(t=new Wn(n,0)),i&&i.is("$text")&&(e=new Wn(i,i.data.length)),new Kn(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),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Kn(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Kn(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 Kn(e,n)}return null}getWalker(t={}){return t.boundaries=this,new qn(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 Kn(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new qn(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new qn(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,i){return new this(new Wn(t,e),new Wn(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,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(Wn._createBefore(t),e)}}function Zn(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}Kn.prototype.is=function(t){return"range"===t||"view:range"===t};class Yn extends((0,r.ln)(he)){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 i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=(0,r.QX)(this.getRanges());if(e!=(0,r.QX)(t.getRanges()))return!1;if(0==e)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let i of t.getRanges())if(i=i.getTrimmed(),e.start.isEqual(i.start)&&e.end.isEqual(i.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,i]=t;if("object"==typeof n&&(i=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(i);else if(e instanceof Yn||e instanceof Jn)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Kn)this._setRanges([e],i&&i.backward),this._setFakeOptions(i);else if(e instanceof Wn)this._setRanges([new Kn(e)]),this._setFakeOptions(i);else if(e instanceof pe){const t=!!i&&!!i.backward;let o;if(void 0===n)throw new r.Bb("view-selection-setto-required-second-parameter",this);o="in"==n?Kn._createIn(e):"on"==n?Kn._createOn(e):new Kn(Wn._createAt(e,n)),this._setRanges([o],t),this._setFakeOptions(i)}else{if(!(0,r.TW)(e))throw new r.Bb("view-selection-setto-not-selectable",this);this._setRanges(e,i&&i.backward),this._setFakeOptions(i)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new r.Bb("view-selection-setfocus-no-ranges",this);const n=Wn._createAt(t,e);if("same"==n.compareWith(this.focus))return;const i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new Kn(n,i),!0):this._addRange(new Kn(i,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 Kn))throw new r.Bb("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 r.Bb("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Kn(t.start,t.end))}}Yn.prototype.is=function(t){return"selection"===t||"view:selection"===t};class Jn extends((0,r.ln)(he)){constructor(...t){super(),this._selection=new Yn,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)}}Jn.prototype.is=function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t};class $n extends r.M3{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 Qn=Symbol("bubbling contexts");function Xn(t){return class extends t{fire(t,...e){try{const n=t instanceof r.M3?t:new r.M3(this,t),i=ii(this);if(!i.size)return;if(ti(n,"capturing",this),ei(i,"$capture",n,...e))return n.return;const o=n.startRange||this.selection.getFirstRange(),s=o?o.getContainedElement():null,a=!!s&&Boolean(ni(i,s));let c=s||function(t){if(!t)return null;const e=t.start.parent,n=t.end.parent,i=e.getPath(),o=n.getPath();return i.length>o.length?e:n}(o);if(ti(n,"atTarget",c),!a){if(ei(i,"$text",n,...e))return n.return;ti(n,"bubbling",c)}for(;c;){if(c.is("rootElement")){if(ei(i,"$root",n,...e))return n.return}else if(c.is("element")&&ei(i,c.name,n,...e))return n.return;if(ei(i,c,n,...e))return n.return;c=c.parent,ti(n,"bubbling",c)}return ti(n,"bubbling",this),ei(i,"$document",n,...e),n.return}catch(t){r.Bb.rethrowUnexpectedError(t,this)}}_addEventListener(t,e,n){const i=(0,r.qo)(n.context||"$document"),o=ii(this);for(const s of i){let i=o.get(s);i||(i=new((0,r.ln)()),o.set(s,i)),this.listenTo(i,t,e,n)}}_removeEventListener(t,e){const n=ii(this);for(const i of n.values())this.stopListening(i,t,e)}}}{const t=Xn(Object);["fire","_addEventListener","_removeEventListener"].forEach((e=>{Xn[e]=t.prototype[e]}))}function ti(t,e,n){t instanceof $n&&(t._eventPhase=e,t._currentTarget=n)}function ei(t,e,n,...i){const o="string"==typeof e?t.get(e):ni(t,e);return!!o&&(o.fire(n,...i),n.stop.called)}function ni(t,e){for(const[n,i]of t)if("function"==typeof n&&n(e))return i;return null}function ii(t){return t[Qn]||(t[Qn]=new Map),t[Qn]}class oi extends(Xn((0,r.Re)())){constructor(t){super(),this._postFixers=new Set,this.selection=new Jn,this.roots=new r.FE({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 ri extends jn{constructor(t,e,n,i){super(t,e,n,i),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=si}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new r.Bb("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 si(){if(ai(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(ai(t)>1)return null;t=t.parent}return!t||ai(t)>1?null:this.childCount}function ai(t){return Array.from(t.getChildren()).filter((t=>!t.is("uiElement"))).length}ri.DEFAULT_PRIORITY=10,ri.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 ci extends jn{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=li}_insertChild(t,e){if(e&&(e instanceof pe||Array.from(e).length>0))throw new r.Bb("view-emptyelement-cannot-add",[this,e]);return 0}}function li(){return null}ci.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 di extends jn{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=hi}_insertChild(t,e){if(e&&(e instanceof pe||Array.from(e).length>0))throw new r.Bb("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 ui(t){t.document.on("arrowKey",((e,n)=>function(t,e,n){if(e.keyCode==r.Do.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),i=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(i||e.shiftKey){const e=t.focusNode,o=t.focusOffset,r=n.domPositionToView(e,o);if(null===r)return;let s=!1;const a=r.getLastMatchingPosition((t=>(t.item.is("uiElement")&&(s=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement")))));if(s){const e=n.viewPositionToDom(a);i?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}}(0,n,t.domConverter)),{priority:"low"})}function hi(){return null}di.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 mi extends jn{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=gi}_insertChild(t,e){if(e&&(e instanceof pe||Array.from(e).length>0))throw new r.Bb("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function gi(){return null}mi.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 pi extends((0,r.ln)(he)){constructor(t,e){super(),this._children=[],this._customProperties=new Map,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 i=function(t,e){if("string"==typeof e)return[new fe(t,e)];(0,r.TW)(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new fe(t,e):e instanceof xe?new fe(t,e.data):e))}(this.document,e);for(const e of i)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)}}pi.prototype.is=function(t){return"documentFragment"===t||"view:documentFragment"===t};class fi{constructor(t){this._cloneGroups=new Map,this._slotFactory=null,this.document=t}setSelection(...t){this.document.selection._setTo(...t)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createDocumentFragment(t){return new pi(this.document,t)}createText(t){return new fe(this.document,t)}createAttributeElement(t,e,n={}){const i=new ri(this.document,t,e);return"number"==typeof n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createContainerElement(t,e,n={},i={}){let o=null;(0,be.Z)(n)?i=n:o=n;const r=new Vn(this.document,t,e,o);return i.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),r}createEditableElement(t,e,n={}){const i=new Un(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(t,e,n={}){const i=new ci(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(t,e,n){const i=new di(this.document,t,e);return n&&(i.render=n),i}createRawElement(t,e,n,i={}){const o=new mi(this.document,t,e);return n&&(o.render=n),i.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),o}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){(0,be.Z)(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 Wn?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new r.Bb("view-writer-break-non-container-element",this.document);if(!e.parent)throw new r.Bb("view-writer-break-root",this.document);if(t.isAtStart)return Wn._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(Wn._createAfter(e),n);const i=new Kn(t,Wn._createAt(e,"end")),o=new Wn(n,0);this.move(i,o)}return Wn._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 Wn(t,e))}const i=n.getChild(e-1),o=n.getChild(e);if(!i||!o)return t;if(i.is("$text")&&o.is("$text"))return Ai(i,o);if(i.is("attributeElement")&&o.is("attributeElement")&&i.isSimilar(o)){const t=i.childCount;return i._appendChild(o.getChildren()),o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new Wn(i,t))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new r.Bb("view-writer-merge-containers-invalid-position",this.document);const i=e.getChild(e.childCount-1),o=i instanceof fe?Wn._createAt(i,"end"):Wn._createAt(e,"end");return this.move(Kn._createIn(n),Wn._createAt(e,"end")),this.remove(Kn._createOn(n)),o}insert(t,e){vi(e=(0,r.TW)(e)?[...e]:[e],this.document);const n=e.reduce(((t,e)=>{const n=t[t.length-1],i=!e.is("uiElement");return n&&n.breakAttributes==i?n.nodes.push(e):t.push({breakAttributes:i,nodes:[e]}),t}),[]);let i=null,o=t;for(const{nodes:t,breakAttributes:e}of n){const n=this._insertNodes(o,t,e);i||(i=n.start),o=n.end}return i?new Kn(i,o):new Kn(t)}remove(t){const e=t instanceof Kn?t:Kn._createOn(t);if(yi(e,this.document),e.isCollapsed)return new pi(this.document);const{start:n,end:i}=this._breakAttributesRange(e,!0),o=n.parent,r=i.offset-n.offset,s=o._removeChildren(n.offset,r);for(const t of s)this._removeFromClonedElementsGroup(t);const a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new pi(this.document,s)}clear(t,e){yi(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const i of n){const n=i.item;let o;if(n.is("element")&&e.isSimilar(n))o=Kn._createOn(n);else if(!i.nextPosition.isAfter(t.start)&&n.is("$textProxy")){const t=n.getAncestors().find((t=>t.is("element")&&e.isSimilar(t)));t&&(o=Kn._createIn(t))}o&&(o.end.isAfter(t.end)&&(o.end=t.end),o.start.isBefore(t.start)&&(o.start=t.start),this.remove(o))}}move(t,e){let n;if(e.isAfter(t.end)){const i=(e=this._breakAttributes(e,!0)).parent,o=i.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=i.childCount-o}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof ri))throw new r.Bb("view-writer-wrap-invalid-attribute",this.document);if(yi(t,this.document),t.isCollapsed){let i=t.start;i.parent.is("element")&&(n=i.parent,!Array.from(n.getChildren()).some((t=>!t.is("uiElement"))))&&(i=i.getLastMatchingPosition((t=>t.item.is("uiElement")))),i=this._wrapPosition(i,e);const o=this.document.selection;return o.isCollapsed&&o.getFirstPosition().isEqual(t.start)&&this.setSelection(i),new Kn(i)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof ri))throw new r.Bb("view-writer-unwrap-invalid-attribute",this.document);if(yi(t,this.document),t.isCollapsed)return t;const{start:n,end:i}=this._breakAttributesRange(t,!0),o=n.parent,s=this._unwrapChildren(o,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new Kn(a,c)}rename(t,e){const n=new Vn(this.document,t,e.getAttributes());return this.insert(Wn._createAfter(e),n),this.move(Kn._createIn(e),Wn._createAt(n,0)),this.remove(Kn._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return Wn._createAt(t,e)}createPositionAfter(t){return Wn._createAfter(t)}createPositionBefore(t){return Wn._createBefore(t)}createRange(t,e){return new Kn(t,e)}createRangeOn(t){return Kn._createOn(t)}createRangeIn(t){return Kn._createIn(t)}createSelection(...t){return new Yn(...t)}createSlot(t="children"){if(!this._slotFactory)throw new r.Bb("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 i,o;if(i=n?xi(t):t.parent.is("$text")?t.parent.parent:t.parent,!i)throw new r.Bb("view-writer-invalid-position-container",this.document);o=n?this._breakAttributes(t,!0):t.parent.is("$text")?wi(t):t;const s=i._insertChild(o.offset,e);for(const t of e)this._addToClonedElementsGroup(t);const a=o.getShiftedBy(s),c=this.mergeAttributes(o);c.isEqual(o)||a.offset--;const l=this.mergeAttributes(a);return new Kn(c,l)}_wrapChildren(t,e,n,i){let o=e;const r=[];for(;o<n;){const e=t.getChild(o),n=e.is("$text"),s=e.is("attributeElement");if(s&&this._wrapAttributeElement(i,e))r.push(new Wn(t,o));else if(n||!s||bi(i,e)){const n=i._clone();e._remove(),n._appendChild(e),t._insertChild(o,n),this._addToClonedElementsGroup(n),r.push(new Wn(t,o))}else this._wrapChildren(e,0,e.childCount,i);o++}let s=0;for(const t of r){if(t.offset-=s,t.offset==e)continue;this.mergeAttributes(t).isEqual(t)||(s++,n--)}return Kn._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,i){let o=e;const r=[];for(;o<n;){const e=t.getChild(o);if(e.is("attributeElement"))if(e.isSimilar(i)){const i=e.getChildren(),s=e.childCount;e._remove(),t._insertChild(o,i),this._removeFromClonedElementsGroup(e),r.push(new Wn(t,o),new Wn(t,o+s)),o+=s,n+=s-1}else this._unwrapAttributeElement(i,e)?(r.push(new Wn(t,o),new Wn(t,o+1)),o++):(this._unwrapChildren(e,0,e.childCount,i),o++);else o++}let s=0;for(const t of r){if(t.offset-=s,t.offset==e||t.offset==n)continue;this.mergeAttributes(t).isEqual(t)||(s++,n--)}return Kn._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:i}=this._breakAttributesRange(t,!0),o=n.parent,r=this._wrapChildren(o,n.offset,i.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new Kn(s,a)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return ki(t.clone());t.parent.is("$text")&&(t=wi(t));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const i=new Kn(t,t.getShiftedBy(1));this.wrap(i,e);const o=new Wn(n.parent,n.index);n._remove();const r=o.nodeBefore,s=o.nodeAfter;return r instanceof fe&&s instanceof fe?Ai(r,s):ki(o)}_wrapAttributeElement(t,e){if(!Ei(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(!Ei(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,i=t.end;if(yi(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new Kn(n,n)}const o=this._breakAttributes(i,e),r=o.parent.childCount,s=this._breakAttributes(n,e);return o.offset+=o.parent.childCount-r,new Kn(s,o)}_breakAttributes(t,e=!1){const n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new r.Bb("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new r.Bb("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new r.Bb("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&Ci(i.parent))return t.clone();if(Ci(i))return t.clone();if(i.is("$text"))return this._breakAttributes(wi(t),e);if(n==i.childCount){const t=new Wn(i.parent,i.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new Wn(i.parent,i.index);return this._breakAttributes(t,e)}{const t=i.index+1,o=i._clone();i.parent._insertChild(t,o),this._addToClonedElementsGroup(o);const r=i.childCount-n,s=i._removeChildren(n,r);o._appendChild(s);const a=new Wn(i.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 xi(t){let e=t.parent;for(;!Ci(e);){if(!e)return;e=e.parent}return e}function bi(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function ki(t){const e=t.nodeBefore;if(e&&e.is("$text"))return new Wn(e,e.data.length);const n=t.nodeAfter;return n&&n.is("$text")?new Wn(n,0):t}function wi(t){if(t.offset==t.parent.data.length)return new Wn(t.parent.parent,t.parent.index+1);if(0===t.offset)return new Wn(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 fe(t.root.document,e)),new Wn(t.parent.parent,t.parent.index+1)}function Ai(t,e){const n=t.data.length;return t._data+=e.data,e._remove(),new Wn(t,n)}const _i=[fe,ri,Vn,ci,mi,di];function vi(t,e){for(const n of t){if(!_i.some((t=>n instanceof t)))throw new r.Bb("view-writer-insert-invalid-node-type",e);n.is("$text")||vi(n.getChildren(),e)}}function Ci(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function yi(t,e){const n=xi(t.start),i=xi(t.end);if(!n||!i||n!==i)throw new r.Bb("view-writer-invalid-range-container",e)}function Ei(t,e){return null===t.id&&null===e.id}const Ii=t=>t.createTextNode(" "),Si=t=>{const e=t.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e},Ti=t=>{const e=t.createElement("br");return e.dataset.ckeFiller="true",e},Di=7,Mi="⁠".repeat(Di);function Bi(t){return"string"==typeof t?t.substr(0,Di)===Mi:(0,r.Gs)(t)&&t.data.substr(0,Di)===Mi}function Oi(t){return t.data.length==Di&&Bi(t)}function Ni(t){const e="string"==typeof t?t:t.data;return Bi(t)?e.slice(Di):e}function Pi(t,e){if(e.keyCode==r.Do.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;Bi(e)&&n<=Di&&t.collapse(e,0)}}}var Ri=__webpack_require__(4401),Li={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Ri.Z,Li);Ri.Z.locals;class ji extends((0,r.Re)()){constructor(t,e){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),r.OB.isBlink&&!r.OB.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this.set("isComposing",!1),this.on("change:isComposing",(()=>{this.isComposing||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 r.Bb("view-renderer-unknown-type",this)}this.markedChildren.add(e)}}}render(){if(this.isComposing&&!r.OB.isAndroid)return;let t=null;const e=!(r.OB.isBlink&&!r.OB.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=Wn._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;Bi(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=zi(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),i=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),o=this._diffNodeLists(n,i),s=this._findUpdateActions(o,n,i,Vi);if(-1!==s.indexOf("update")){const e={equal:0,insert:0,delete:0};for(const o of s)if("update"===o){const o=e.equal+e.insert,s=e.equal+e.delete,a=t.getChild(o);!a||a.is("uiElement")||a.is("rawElement")||this._updateElementMappings(a,n[s]),(0,r.Od)(i[o]),e.equal++}else e[o]++}}_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")?Wn._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&&(0,r.Gs)(e.parent)&&Bi(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Bi(t))throw new r.Bb("view-renderer-filler-was-lost",this);Oi(t)?t.remove():t.data=t.data.substr(Di),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor((t=>t.hasAttribute("contenteditable")));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;const i=t.nodeBefore,o=t.nodeAfter;return!(i instanceof fe||o instanceof fe)&&(!r.OB.isAndroid||!i&&!o)}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let i=this.domConverter.viewToDom(t).data;const o=e.inlineFillerPosition;o&&o.parent==t.parent&&o.offset==t.index&&(i=Mi+i),Hi(n,i)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map((t=>t.name)),i=t.getAttributeKeys();for(const n of i)this.domConverter.setDomElementAttribute(e,n,t.getAttribute(n),t);for(const i of n)t.hasAttribute(i)||this.domConverter.removeDomElementAttribute(e,i)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(r.OB.isAndroid){let t=null;for(const e of Array.from(n.childNodes)){if(t&&(0,r.Gs)(t)&&(0,r.Gs)(e)){n.normalize();break}t=e}}const i=e.inlineFillerPosition,o=n.childNodes,s=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));i&&i.parent===t&&zi(n.ownerDocument,s,i.offset);const a=this._diffNodeLists(o,s),c=this._findUpdateActions(a,o,s,Fi);let l=0;const d=new Set;for(const t of c)"delete"===t?(d.add(o[l]),(0,r.Od)(o[l])):"equal"!==t&&"update"!==t||l++;l=0;for(const t of c)"insert"===t?((0,r.ZQ)(n,l,s[l]),l++):"update"===t?(Hi(o[l],s[l].data),l++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(s[l])),l++);for(const t of d)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 i=n[n.length-1];i==e&&n.pop();return n}(t,this._fakeSelectionContainer),(0,r.Hg)(t,e,Ui.bind(null,this.domConverter))}_findUpdateActions(t,e,n,i){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let o=[],s=[],a=[];const c={equal:0,insert:0,delete:0};for(const l of t)"insert"===l?a.push(n[c.equal+c.insert]):"delete"===l?s.push(e[c.equal+c.delete]):(o=o.concat((0,r.Hg)(s,a,i).map((t=>"equal"===t?"update":t))),o.push("equal"),s=[],a=[]),c[l]++;return o.concat((0,r.Hg)(s,a,i).map((t=>"equal"===t?"update":t)))}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(r.OB.isBlink&&!r.OB.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&&r.OB.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 i=e.getSelection(),o=e.createRange();i.removeAllRanges(),o.selectNodeContents(n),i.addRange(o)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,i.parent,i.offset),r.OB.isGecko&&function(t,e){const n=t.parent;if(n.nodeType!=Node.ELEMENT_NODE||t.offset!=n.childNodes.length-1)return;const i=n.childNodes[t.offset];i&&"BR"==i.tagName&&e.addRange(e.getRangeAt(0))}(i,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,i=this.domConverter.mapDomToView(n);n&&i&&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 zi(t,e,n){const i=e instanceof Array?e:e.childNodes,o=i[n];if((0,r.Gs)(o))return o.data=Mi+o.data,o;{const o=t.createTextNode(Mi);return Array.isArray(e)?i.splice(n,0,o):(0,r.ZQ)(e,n,o),o}}function Vi(t,e){return(0,r.UG)(t)&&(0,r.UG)(e)&&!(0,r.Gs)(t)&&!(0,r.Gs)(e)&&!(0,r.C3)(t)&&!(0,r.C3)(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function Fi(t,e){return(0,r.UG)(t)&&(0,r.UG)(e)&&(0,r.Gs)(t)&&(0,r.Gs)(e)}function Ui(t,e,n){return e===n||((0,r.Gs)(e)&&(0,r.Gs)(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}function Hi(t,e){const n=t.data;if(n==e)return;const i=(0,r.HZ)(n,e);for(const e of i)"insert"===e.type?t.insertData(e.index,e.values.join("")):t.deleteData(e.index,e.howMany)}const Gi=Ti(r.global.document),qi=Ii(r.global.document),Wi=Si(r.global.document),Ki="data-ck-unsafe-attribute-",Zi="data-ck-unsafe-element";class Yi{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ke,this._inlineObjectElementMatcher=new ke,this._elementsWithTemporaryCustomProperties=new Set,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?r.global.document:r.global.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new Yn(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 Array.from(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"),i=n.createDocumentFragment(),o=n.body.childNodes;for(;o.length>0;)i.appendChild(o[0]);const r=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT),s=[];let a;for(;a=r.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)&&(Xi(e),t.replaceWith(this._createReplacementDomElement(e,t)))}for(;t.firstChild;)t.firstChild.remove();t.append(i)}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 i;if(n.is("documentFragment"))i=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(i,n);else{if(n.is("uiElement"))return i="$comment"===n.name?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),e.bind&&this.bindElements(i,n),i;this._shouldRenameElement(n.name)?(Xi(n.name),i=this._createReplacementDomElement(n.name)):i=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(i,this),e.bind&&this.bindElements(i,n);for(const t of n.getAttributeKeys())this.setDomElementAttribute(i,t,n.getAttribute(t),n)}if(!1!==e.withChildren)for(const t of this.viewChildrenToDom(n,e))i.appendChild(t);return i}}setDomElementAttribute(t,e,n,i){const o=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);o||(0,r.KE)("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),(0,r.$b)(e)?(t.hasAttribute(e)&&!o?t.removeAttribute(e):t.hasAttribute(Ki+e)&&o&&t.removeAttribute(Ki+e),t.setAttribute(o?e:Ki+e,n)):(0,r.KE)("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=Zi&&(t.removeAttribute(e),t.removeAttribute(Ki+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let i=0;for(const o of t.getChildren()){n===i&&(yield this._getBlockFiller());const t=o.is("element")&&!!o.getCustomProperty("dataPipeline:transparentRendering")&&!(0,r.Ps)(o.getAttributes());t&&"data"==this.renderingMode?yield*this.viewChildrenToDom(o,e):(t&&(0,r.KE)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:o}),yield this.viewToDom(o,e)),i++}n===i&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),i=this._domDocument.createRange();return i.setStart(e.parent,e.offset),i.setEnd(n.parent,n.offset),i}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let i=t.offset;return Bi(n)&&(i+=Di),{parent:n,offset:i}}{let n,i,o;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;o=n.childNodes[0]}else{const e=t.nodeBefore;if(i=e.is("$text")?this.findCorrespondingDomText(e):this.mapViewToDom(e),!i)return null;n=i.parentNode,o=i.nextSibling}if((0,r.Gs)(o)&&Bi(o))return{parent:o,offset:Di};return{parent:n,offset:i?(0,r.cq)(i)+1:0}}}domToView(t,e={}){const n=[],i=this._domToView(t,e,n),o=i.next().value;return o?(i.next(),this._processDomInlineNodes(null,n,e),o.is("$text")&&0==o.data.length?null:o):null}*domChildrenToView(t,e={},n=[]){for(let i=0;i<t.childNodes.length;i++){const o=t.childNodes[i],r=this._domToView(o,e,n),s=r.next().value;null!==s&&(this._isBlockViewElement(s)&&this._processDomInlineNodes(t,n,e),yield s,r.next())}this._processDomInlineNodes(t,n,e)}domSelectionToView(t){if(function(t){if(!r.OB.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 Yn([]);if(1===t.rangeCount){let e=t.getRangeAt(0).startContainer;(0,r.Gs)(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 i=t.getRangeAt(e),o=this.domRangeToView(i);o&&n.push(o)}return new Yn(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Kn(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,(0,r.cq)(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return Wn._createBefore(n);if((0,r.Gs)(t)){if(Oi(t))return this.domPositionToView(t.parentNode,(0,r.cq)(t));const n=this.findCorrespondingViewText(t);let i=e;return n?(Bi(t)&&(i-=Di,i=i<0?0:i),new Wn(n,i)):null}if(0===e){const e=this.mapDomToView(t);if(e)return new Wn(e,0)}else{const n=t.childNodes[e-1];if((0,r.Gs)(n)&&Oi(n)||n&&this.isBlockFiller(n))return this.domPositionToView(n.parentNode,(0,r.cq)(n));const i=(0,r.Gs)(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(i&&i.parent)return new Wn(i.parent,i.index+1)}return null}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(Oi(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 fe?e:null}}else{const e=this.mapDomToView(t.parentNode);if(e){const t=e.getChild(0);return t instanceof fe?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}=r.global.window,i=[];$i(e,(t=>{const{scrollLeft:e,scrollTop:n}=t;i.push([e,n])})),e.focus(),$i(e,(t=>{const[e,n]=i.shift();t.scrollLeft=e,t.scrollTop=n})),r.global.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(Gi):!("BR"!==t.tagName||!Qi(t,this.blockElements)||1!==t.parentNode.childNodes.length)||(t.isEqualNode(Wi)||function(t,e){const n=t.isEqualNode(qi);return n&&Qi(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=(0,r.dk)(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 Ii(this._domDocument);case"markedNbsp":return Si(this._domDocument);case"br":return Ti(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if((0,r.Gs)(t)&&Bi(t)&&e<Di)return!1;if(this.isElement(t)&&Bi(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 i=this.getHostViewElement(t);if(i)return i;if((0,r.C3)(t)&&e.skipComments)return null;if((0,r.Gs)(t)){if(Oi(t))return null;{const e=t.data;if(""===e)return null;const i=new fe(this.document,e);return n.push(i),i}}{let i=this.mapDomToView(t);if(i)return this._isInlineObjectElement(i)&&n.push(i),i;if(this.isDocumentFragment(t))i=new pi(this.document),e.bind&&this.bindDocumentFragments(t,i);else{i=this._createViewElement(t,e),e.bind&&this.bindElements(t,i);const o=t.attributes;if(o)for(let t=o.length,e=0;e<t;e++)i._setAttribute(o[e].name,o[e].value);if(this._isViewElementWithRawContent(i,e))return i._setCustomProperty("$rawContent",t.innerHTML),this._isBlockViewElement(i)||n.push(i),i;if((0,r.C3)(t))return i._setCustomProperty("$rawContent",t.data),i}yield i;const o=[];if(!1!==e.withChildren)for(const n of this.domChildrenToView(t,e,o))i._appendChild(n);if(this._isInlineObjectElement(i))n.push(i);else for(const t of o)n.push(t)}}_processDomInlineNodes(t,e,n){if(!e.length)return;if(t&&!this.isDocumentFragment(t)&&!this._isBlockDomElement(t))return;let i=!1;for(let t=0;t<e.length;t++){const o=e[t];if(!o.is("$text")){i=!1;continue}let r,s=!1;if(Ji(o,this.preElements))r=Ni(o.data);else{r=o.data.replace(/[ \n\t\r]{1,}/g," "),s=/[^\S\u00A0]/.test(r.charAt(r.length-1));const a=t>0?e[t-1]:null,c=t+1<e.length?e[t+1]:null,l=!a||a.is("element")&&"br"==a.name||i,d=!c&&!Bi(o.data);!1!==n.withChildren&&(l&&(r=r.replace(/^ /,"")),d&&(r=r.replace(/ $/,""))),r=Ni(r),r=r.replace(/ \u00A0/g,"  ");const u=c&&c.is("element")&&"br"!=c.name,h=c&&c.is("$text")&&" "==c.data.charAt(0);(/[ \u00A0]\u00A0$/.test(r)||!c||u||h)&&(r=r.replace(/\u00A0$/," ")),(l||a&&a.is("element")&&"br"!=a.name)&&(r=r.replace(/^\u00A0/," "))}0==r.length&&o.parent?(o._remove(),e.splice(t,1),t--):(o._data=r,i=s)}e.length=0}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return e;if(" "==e.charAt(0)){const n=this._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),i=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!i||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_getTouchingInlineViewNode(t,e){const n=new qn({startPosition:e?Wn._createAfter(t):Wn._createBefore(t),direction:e?"forward":"backward"});for(const t of n){if(t.item.is("element","br"))return null;if(this._isInlineObjectElement(t.item))return t.item;if(t.item.is("containerElement"))return null;if(t.item.is("$textProxy"))return t.item}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((0,r.C3)(t))return new di(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new jn(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(Zi,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const t of e.getAttributeNames())n.setAttribute(t,e.getAttribute(t))}return n}}function Ji(t,e){return t.getAncestors().some((t=>t.is("element")&&e.includes(t.name)))}function $i(t,e){let n=t;for(;n;)e(n),n=n.parentElement}function Qi(t,e){const n=t.parentNode;return!!n&&!!n.tagName&&e.includes(n.tagName.toLowerCase())}function Xi(t){"script"===t&&(0,r.KE)("domconverter-unsafe-script-element-detected"),"style"===t&&(0,r.KE)("domconverter-unsafe-style-element-detected")}class to extends((0,r.Xu)()){constructor(t){super(),this._isEnabled=!1,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 eo=Tn((function(t,e){(0,hn.Z)(e,(0,mn.Z)(e),t)}));class no{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,eo(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class io extends to{constructor(){super(...arguments),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((e=>{this.listenTo(t,e,((t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)}),{useCapture:this.useCapture})}))}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new no(this.view,e,n))}}class oo extends io{constructor(){super(...arguments),this.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(0,r.Cq)(this)}};this.fire(t.type,t,e)}}class ro extends to{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=At((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 Yn(e.getRanges(),{backward:e.isBackward,fake:!1});t!=r.Do.arrowleft&&t!=r.Do.arrowup||n.setTo(n.getFirstPosition()),t!=r.Do.arrowright&&t!=r.Do.arrowdown||n.setTo(n.getLastPosition());const i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}const so=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const ao=function(t){return this.__data__.has(t)};function co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ee.Z;++e<n;)this.add(t[e])}co.prototype.add=co.prototype.push=so,co.prototype.has=ao;const lo=co;const uo=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ho=function(t,e){return t.has(e)};const mo=function(t,e,n,i,o,r){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var l=r.get(t),d=r.get(e);if(l&&d)return l==e&&d==t;var u=-1,h=!0,m=2&n?new lo:void 0;for(r.set(t,e),r.set(e,t);++u<a;){var g=t[u],p=e[u];if(i)var f=s?i(p,g,u,e,t,r):i(g,p,u,t,e,r);if(void 0!==f){if(f)continue;h=!1;break}if(m){if(!uo(e,(function(t,e){if(!ho(m,e)&&(g===t||o(g,t,n,i,r)))return m.push(e)}))){h=!1;break}}else if(g!==p&&!o(g,p,n,i,r)){h=!1;break}}return r.delete(t),r.delete(e),h};var go=__webpack_require__(4073);const po=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const fo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var xo=Ne.Z?Ne.Z.prototype:void 0,bo=xo?xo.valueOf:void 0;const ko=function(t,e,n,i,o,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new go.Z(t),new go.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,$e.Z)(+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=po;case"[object Set]":var c=1&i;if(a||(a=fo),t.size!=e.size&&!c)return!1;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var d=mo(a(t),a(e),i,o,r,s);return s.delete(t),d;case"[object Symbol]":if(bo)return bo.call(t)==bo.call(e)}return!1};var wo=__webpack_require__(1808),Ao=Object.prototype.hasOwnProperty;const _o=function(t,e,n,i,o,r){var s=1&n,a=(0,wo.Z)(t),c=a.length;if(c!=(0,wo.Z)(e).length&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in e:Ao.call(e,d)))return!1}var u=r.get(t),h=r.get(e);if(u&&h)return u==e&&h==t;var m=!0;r.set(t,e),r.set(e,t);for(var g=s;++l<c;){var p=t[d=a[l]],f=e[d];if(i)var x=s?i(f,p,d,e,t,r):i(p,f,d,t,e,r);if(!(void 0===x?p===f||o(p,f,n,i,r):x)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var b=t.constructor,k=e.constructor;b==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k||(m=!1)}return r.delete(t),r.delete(e),m};var vo=__webpack_require__(4158),Co="[object Arguments]",yo="[object Array]",Eo="[object Object]",Io=Object.prototype.hasOwnProperty;const So=function(t,e,n,i,o,r){var s=(0,_e.Z)(t),a=(0,_e.Z)(e),c=s?yo:(0,vo.Z)(t),l=a?yo:(0,vo.Z)(e),d=(c=c==Co?Eo:c)==Eo,u=(l=l==Co?Eo:l)==Eo,h=c==l;if(h&&(0,cn.Z)(t)){if(!(0,cn.Z)(e))return!1;s=!0,d=!1}if(h&&!d)return r||(r=new Ye.Z),s||(0,dn.Z)(t)?mo(t,e,n,i,o,r):ko(t,e,c,n,i,o,r);if(!(1&n)){var m=d&&Io.call(t,"__wrapped__"),g=u&&Io.call(e,"__wrapped__");if(m||g){var p=m?t.value():t,f=g?e.value():e;return r||(r=new Ye.Z),o(p,f,n,i,r)}}return!!h&&(r||(r=new Ye.Z),_o(t,e,n,i,o,r))};const To=function t(e,n,i,o,r){return e===n||(null==e||null==n||!(0,ht.Z)(e)&&!(0,ht.Z)(n)?e!=e&&n!=n:So(e,n,i,o,t,r))};const Do=function(t,e,n){var i=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===i?To(t,e,void 0,n):!!i};class Mo extends to{constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this.renderer=t._renderer,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,i=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)||i.add(t))}for(const o of t){const t=e.mapDomToView(o.target);if((!t||!t.is("uiElement")&&!t.is("rawElement"))&&"characterData"===o.type){const t=e.findCorrespondingViewText(o.target);t&&!i.has(t.parent)?n.add(t):!t&&Bi(o.target)&&i.add(e.mapDomToView(o.target.parentNode))}}let o=!1;for(const t of n)o=!0,this.renderer.markToSync("text",t);for(const t of i){const n=e.mapViewToDom(t),i=Array.from(t.getChildren()),r=Array.from(e.domChildrenToView(n,{withChildren:!1}));Do(i,r,Bo)||(o=!0,this.renderer.markToSync("children",t))}o&&this.view.forceRender()}_isBogusBrMutation(t){let e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}function Bo(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}class Oo extends io{constructor(t){super(t),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",(()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this.flush(),t.change((()=>{}))}),50)})),e.on("blur",((n,i)=>{const o=e.selection.editableElement;null!==o&&o!==i.target||(e.isFocused=!1,this._isFocusChanging=!1,t.change((()=>{})))}))}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class No extends to{constructor(t){super(t),this.mutationObserver=t.getObserver(Mo),this.focusObserver=t.getObserver(Oo),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=At((t=>{this.document.fire("selectionChangeDone",t)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=At((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,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",((t,n)=>{this.document.isComposing&&!r.OB.isAndroid||(this._handleSelectionChange(n,e),this._documentIsSelectingInactivityTimeoutDebounced())})),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const i=this.domConverter.domSelectionToView(n);if(0!=i.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(i)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(i))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Po extends io{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];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 Ro{constructor(t,e={}){this._files=e.cacheFiles?Lo(t):null,this._native=t}get files(){return this._files||(this._files=Lo(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 Lo(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 jo extends io{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(t){const e=t.getTargetRanges(),n=this.view,i=n.document;let o=null,s=null,a=[];if(t.dataTransfer&&(o=new Ro(t.dataTransfer)),null!==t.data?s=t.data:o&&(s=o.getData("text/plain")),i.selection.isFake)a=Array.from(i.selection.getRanges());else if(e.length)a=e.map((t=>{const e=n.domConverter.domPositionToView(t.startContainer,t.startOffset),i=n.domConverter.domPositionToView(t.endContainer,t.endOffset);return e?n.createRange(e,i):i?n.createRange(i):void 0})).filter((t=>!!t));else if(r.OB.isAndroid){const e=t.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(e).getRanges())}if(r.OB.isAndroid&&"insertCompositionText"==t.inputType&&s&&s.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});else if("insertText"==t.inputType&&s&&s.includes("\n")){const e=s.split(/\n{1,2}/g);let n=a;for(let r=0;r<e.length;r++){const s=e[r];""!=s&&(this.fire(t.type,t,{data:s,dataTransfer:o,targetRanges:n,inputType:t.inputType,isComposing:t.isComposing}),n=[i.selection.getFirstRange()]),r+1<e.length&&(this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:n}),n=[i.selection.getFirstRange()])}}else this.fire(t.type,t,{data:s,dataTransfer:o,targetRanges:a,inputType:t.inputType,isComposing:t.isComposing})}}class zo extends to{constructor(t){super(t),this.document.on("keydown",((t,e)=>{if(this.isEnabled&&(0,r.dj)(e.keyCode)){const n=new $n(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,e),n.stop.called&&t.stop()}}))}observe(){}stopObserving(){}}class Vo extends to{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(!this.isEnabled||n.keyCode!=r.Do.tab||n.ctrlKey)return;const i=new $n(e,"tab",e.selection.getFirstRange());e.fire(i,n),i.stop.called&&t.stop()}))}observe(){}stopObserving(){}}const Fo=function(t){return(0,me.Z)(t,5)};class Uo extends((0,r.Re)()){constructor(t){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new oi(t),this.domConverter=new Yi(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new ji(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new fi(this.document),this.addObserver(Mo),this.addObserver(Oo),this.addObserver(No),this.addObserver(oo),this.addObserver(ro),this.addObserver(Po),this.addObserver(zo),this.addObserver(jo),this.addObserver(Vo),this.document.on("arrowKey",Pi,{priority:"low"}),ui(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})),r.OB.isiOS&&this.listenTo(this.document,"blur",((t,e)=>{this.domConverter.mapDomToView(e.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}))}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const i={};for(const{name:e,value:o}of Array.from(t.attributes))i[e]=o,"class"===e?this._writer.addClass(o.split(" "),n):this._writer.setAttribute(e,o,n);this._initialDomRootAttributes.set(t,i);const o=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};o(),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(o))),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:i=20}={}){const o=this.document.selection.getFirstRange();if(!o)return;const s=Fo({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:i});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});const a={target:this.domConverter.viewRangeToDom(o),viewportOffset:n,ancestorOffset:i,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",a,s),(0,r.mR)(a)}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 r.Bb("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){r.Bb.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Oo).flush(),this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return Wn._createAt(t,e)}createPositionAfter(t){return Wn._createAfter(t)}createPositionBefore(t){return Wn._createBefore(t)}createRange(t,e){return new Kn(t,e)}createRangeOn(t){return Kn._createOn(t)}createRangeIn(t){return Kn._createIn(t)}createSelection(...t){return new Yn(...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 Ho{is(){throw new Error("is() method is abstract")}}class Go extends Ho{constructor(t){super(),this.parent=null,this._attrs=(0,r.qL)(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new r.Bb("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 r.Bb("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),i=t.getAncestors(e);let o=0;for(;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=(0,r.Rt)(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}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=(0,r.qL)(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}Go.prototype.is=function(t){return"node"===t||"model:node"===t};class qo{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((t,e)=>t+e.offsetSize),0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce(((t,e)=>t+e.offsetSize),0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new r.Bb("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 r.Bb("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 Go))throw new r.Bb("model-nodelist-insertnodes-not-node",this);this._nodes=(0,r.x)(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 Wo extends Go{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 Wo(this.data,this.getAttributes())}static fromJSON(t){return new Wo(t.data,t.attributes)}}Wo.prototype.is=function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t};class Ko extends Ho{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new r.Bb("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new r.Bb("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()}}Ko.prototype.is=function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t};class Zo extends Go{constructor(t,e,n){super(e),this._children=new qo,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 Zo(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 Wo(t)];(0,r.TW)(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Wo(t):t instanceof Ko?new Wo(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(Zo.fromJSON(n)):e.push(Wo.fromJSON(n))}return new Zo(t.name,t.attributes,e)}}Zo.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 Yo{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new r.Bb("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new r.Bb("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=$o._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,i,o;do{i=this.position,o=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this._position=i,this._visitedParent=o)}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 i=Qo(e,n),o=i||Xo(e,n,i);if(o instanceof Zo){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=o;return this._position=e,Jo("elementStart",o,t,e,1)}if(o instanceof Wo){let i;if(this.singleCharacters)i=1;else{let t=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<t&&(t=this.boundaries.end.offset),i=t-e.offset}const r=e.offset-o.startOffset,s=new Ko(o,r,i);return e.offset+=i,this._position=e,Jo("text",s,t,e,i)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Jo("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 i=e.parent,o=Qo(e,i),r=o||tr(e,i,o);if(r instanceof Zo)return e.offset--,this.shallow?(this._position=e,Jo("elementStart",r,t,e,1)):(e.path.push(r.maxOffset),this._position=e,this._visitedParent=r,this.ignoreElementEnd?this._previous():Jo("elementEnd",r,t,e));if(r instanceof Wo){let i;if(this.singleCharacters)i=1;else{let t=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>t&&(t=this.boundaries.start.offset),i=e.offset-t}const o=e.offset-r.startOffset,s=new Ko(r,o-i,i);return e.offset-=i,this._position=e,Jo("text",s,t,e,i)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,Jo("elementStart",n,t,e,1)}}function Jo(t,e,n,i,o){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:o}}}class $o extends Ho{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new r.Bb("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new r.Bb("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 r.Bb("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new r.Bb("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Qo(this,this.parent)}get nodeAfter(){const t=this.parent;return Xo(this,t,Qo(this,t))}get nodeBefore(){const t=this.parent;return tr(this,t,Qo(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=(0,r.Rt)(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 Yo(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=(0,r.Rt)(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 i=0;for(;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-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 er(t,this,n);if(-1===e)return er(this,t,n)}return this.path.length===t.path.length||(this.path.length>t.path.length?nr(this.path,e):nr(t.path,e))}hasSameParentAs(t){if(this.root!==t.root)return!1;const e=this.getParentPath(),n=t.getParentPath();return"same"==(0,r.Rt)(e,n)}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=$o._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)?$o._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=$o._createAt(this);if(this.root!=t.root)return n;if("same"==(0,r.Rt)(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if("prefix"==(0,r.Rt)(t.getParentPath(),this.getParentPath())){const i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+e>this.path[i])return null;n.path[i]-=e}}return n}_getTransformedByInsertion(t,e){const n=$o._createAt(this);if(this.root!=t.root)return n;if("same"==(0,r.Rt)(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=e);else if("prefix"==(0,r.Rt)(t.getParentPath(),this.getParentPath())){const i=t.path.length-1;t.offset<=this.path[i]&&(n.path[i]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return $o._createAt(this);const i=this._getTransformedByDeletion(t,n);return null===i||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,e):i._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,i=$o._createAt(e);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[n]-t.offset,i.path=[...i.path,...this.path.slice(n+1)],i}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 $o)return new $o(t.root,t.path,t.stickiness);{const i=t;if("end"==e)e=i.maxOffset;else{if("before"==e)return this._createBefore(i,n);if("after"==e)return this._createAfter(i,n);if(0!==e&&!e)throw new r.Bb("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new r.Bb("model-position-parent-incorrect",[this,t]);const o=i.getPath();return o.push(e),new this(i.root,o,n)}}static _createAfter(t,e){if(!t.parent)throw new r.Bb("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 r.Bb("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 $o(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new r.Bb("model-position-fromjson-no-root",e,{rootName:t.root});return new $o(e.getRoot(t.root),t.path,t.stickiness)}}function Qo(t,e){const n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function Xo(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function tr(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}function er(t,e,n){return n+1!==t.path.length&&(!!nr(e.path,n+1)&&!!function(t,e){let n=t.parent,i=t.path.length-1,o=0;for(;i>=e;){if(t.path[i]+o!==n.maxOffset)return!1;o=1,i--,n=n.parent}return!0}(t,n+1))}function nr(t,e){for(;e<t.length;){if(0!==t[e])return!1;e++}return!0}$o.prototype.is=function(t){return"position"===t||"model:position"===t};class ir extends Ho{constructor(t,e){super(),this.start=$o._createAt(t),this.end=e?$o._createAt(e):$o._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Yo({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const t=this.start.getParentPath(),e=this.end.getParentPath();return"same"==(0,r.Rt)(t,e)}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),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}containsItem(t){const e=$o._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 ir(this.start,t.start)),this.containsPosition(t.end)&&e.push(new ir(t.end,this.end))):e.push(new ir(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 ir(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 i=this.start,o=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(o)&&(o=t.end),new ir(i,o)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=$o._createAt(this.start);let i=n.parent;for(;n.path.length>e+1;){const e=i.maxOffset-n.offset;0!==e&&t.push(new ir(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],i=e-n.offset;0!==i&&t.push(new ir(n,n.getShiftedBy(i))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Yo(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Yo(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new Yo(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 ir(this.start,this.end)]}getTransformedByOperations(t){const e=[new ir(this.start,this.end)];for(const n of t)for(let t=0;t<e.length;t++){const i=e[t].getTransformedByOperation(n);e.splice(t,1,...i),t+=i.length-1}for(let t=0;t<e.length;t++){const n=e[t];for(let i=t+1;i<e.length;i++){const t=e[i];(n.containsRange(t)||t.containsRange(n)||n.isEqual(t))&&e.splice(i,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,i=t.howMany,o=t.targetPosition;return this._getTransformedByMove(n,o,i,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 ir(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new ir(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=$o._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new ir(e,n)):new ir(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new ir(this.start,t),new ir(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const n=new ir(this.start,this.end);return n.start=n.start._getTransformedByInsertion(t,e),n.end=n.end._getTransformedByInsertion(t,e),[n]}}_getTransformedByMove(t,e,n,i=!1){if(this.isCollapsed){const i=this.start._getTransformedByMove(t,e,n);return[new ir(i)]}const o=ir._createFromPositionAndShift(t,n),r=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!i&&(o.containsPosition(this.start)||o.containsPosition(this.end))){const i=this.start._getTransformedByMove(t,e,n),o=this.end._getTransformedByMove(t,e,n);return[new ir(i,o)]}let s;const a=this.getDifference(o);let c=null;const l=this.getIntersection(o);if(1==a.length?c=new ir(a[0].start._getTransformedByDeletion(t,n),a[0].end._getTransformedByDeletion(t,n)):2==a.length&&(c=new ir(this.start,this.end._getTransformedByDeletion(t,n))),s=c?c._getTransformedByInsertion(r,n,null!==l||i):[],l){const t=new ir(l.start._getCombined(o.start,r),l.end._getCombined(o.start,r));2==s.length?s.splice(1,0,t):s.push(t)}return s}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),i=this.end._getTransformedByDeletion(t,e);return null==n&&null==i?null:(null==n&&(n=t),null==i&&(i=t),new ir(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return new this($o._createAt(t,0),$o._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift($o._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new r.Bb("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),i=new this(e.start,e.end);if(n>0)for(let e=n-1;t[e].end.isEqual(i.start);e++)i.start=$o._createAt(t[e].start);for(let e=n+1;e<t.length&&t[e].start.isEqual(i.end);e++)i.end=$o._createAt(t[e].end);return i}static fromJSON(t,e){return new this($o.fromJSON(t.start,e),$o.fromJSON(t.end,e))}}ir.prototype.is=function(t){return"range"===t||"model:range"===t};class or extends((0,r.ln)()){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",((t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new r.Bb("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),i=this._viewToModelMapping.get(n),o=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=$o._createAt(i,o)}),{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 i=this._elementToMarkerNames.get(t)||new Set;i.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,i)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const i=this._elementToMarkerNames.get(t);i&&(i.delete(e),0==i.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 ir(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Kn(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 i=0;for(let n=0;n<e;n++)i+=this.getModelLength(t.getChild(n));return i}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,i=0,o=0,r=0;if(t.is("$text"))return new Wn(t,e);for(;o<e;)n=t.getChild(r),i=this.getModelLength(n),o+=i,r++;return o==e?this._moveViewPositionToTextNode(new Wn(t,r)):this.findPositionIn(n,e-(o-i))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof fe?new Wn(e,e.data.length):n instanceof fe?new Wn(n,0):t}}class rr{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=sr(e),t instanceof Ko&&(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=sr(e),t instanceof Ko&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=sr(e),t instanceof Ko&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(void 0===n)return null;const i=n.get(e);return void 0===i?null:i}revert(t,e){e=sr(e),t instanceof Ko&&(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,i]of this._consumable)for(const[o,r]of i){const i=o.split(":")[0];r&&t==i&&e.push({event:o,item:n.name||n.description})}if(e.length)throw new r.Bb("conversion-model-consumable-not-consumed",null,{items:e})}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const i=n.get(t.endOffset);i&&(e=i.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}_addSymbolForTextProxy(t){const e=t.startOffset,n=t.endOffset,i=t.parent,o=Symbol("$textProxy:"+t.data);let r,s;return r=this._textProxyRegistry.get(e),r||(r=new Map,this._textProxyRegistry.set(e,r)),s=r.get(n),s||(s=new Map,r.set(n,s)),s.set(i,o),o}}function sr(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 ar extends((0,r.ln)()){constructor(t){super(),this._conversionApi={dispatcher:this,...t},this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const i=this._createConversionApi(n,t.getRefreshedItems());for(const e of t.getMarkersToRemove())this._convertMarkerRemove(e.name,e.range,i);const o=this._reduceChanges(t.getChanges());for(const t of o)"insert"===t.type?this._convertInsert(ir._createFromPositionAndShift(t.position,t.length),i):"reinsert"===t.type?this._convertReinsert(ir._createFromPositionAndShift(t.position,t.length),i):"remove"===t.type?this._convertRemove(t.position,t.length,t.name,i):this._convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,i);i.mapper.flushDeferredBindings();for(const t of i.mapper.flushUnboundMarkerNames()){const n=e.get(t).getRange();this._convertMarkerRemove(t,n,i),this._convertMarkerAdd(t,n,i)}for(const e of t.getMarkersToAdd())this._convertMarkerAdd(e.name,e.range,i);i.consumable.verifyAllConsumed("insert")}convert(t,e,n,i={}){const o=this._createConversionApi(n,void 0,i);this._convertInsert(t,o);for(const[t,n]of e)this._convertMarkerAdd(t,n,o);o.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const i=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},i);const o=t.getFirstPosition().root;if(!i.mapper.toViewElement(o))return;const r=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(i.consumable,t,r),this.fire("selection",{selection:t},i),t.isCollapsed){for(const e of r)if(i.consumable.test(t,"addMarker:"+e.name)){const n=e.getRange();if(!cr(t.getFirstPosition(),e,i.mapper))continue;const o={item:t,markerName:e.name,markerRange:n};this.fire(`addMarker:${e.name}`,o,i)}for(const e of t.getAttributeKeys())if(i.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,i)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const n of Array.from(t.getWalker({shallow:!0})).map(lr))this._testAndFire("insert",n,e)}_convertRemove(t,e,n,i){this.fire(`remove:${n}`,{position:t,length:e},i)}_convertAttribute(t,e,n,i,o){this._addConsumablesForRange(o.consumable,t,`attribute:${e}`);for(const r of t){const t={item:r.item,range:ir._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:e,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${e}`,t,o)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const t of n.map(lr))this._testAndFire("insert",{...t,reconversion:!0},e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const i=`addMarker:${t}`;if(n.consumable.add(e,i),this.fire(i,{markerName:t,markerRange:e},n),n.consumable.consume(e,i)){this._addConsumablesForRange(n.consumable,e,i);for(const o of e.getItems()){if(!n.consumable.test(o,i))continue;const r={item:o,range:ir._createOn(o),markerName:t,markerRange:e};this.fire(i,r,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 i of e.getItems())t.add(i,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const i of n)t.add(e,"addMarker:"+i.name);for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n);return t}_testAndFire(t,e,n){const i=function(t,e){const n=e.item.is("element")?e.item.name:"$text";return`${t}:${n}`}(t,e),o=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,r=this._firedEventsMap.get(n),s=r.get(o);if(s){if(s.has(i))return;s.add(i)}else r.set(o,new Set([i]));this.fire(i,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:ir._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 i={...this._conversionApi,consumable:new rr,writer:t,options:n,convertItem:t=>this._convertInsert(ir._createOn(t),i),convertChildren:t=>this._convertInsert(ir._createIn(t),i,{doNotAddConsumables:!0}),convertAttributes:t=>this._testAndFireAddAttributes(t,i),canReuseView:t=>!e.has(i.mapper.toModelElement(t))};return this._firedEventsMap.set(i,new Map),i}}function cr(t,e,n){const i=e.getRange(),o=Array.from(t.getAncestors());o.shift(),o.reverse();return!o.some((t=>{if(i.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight")}}))}function lr(t){return{item:t.item,range:ir._createFromPositionAndShift(t.previousPosition,t.length)}}class dr extends((0,r.ln)(Ho)){constructor(...t){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],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 i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new ir(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 ir(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 ir(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,i]=t;if("object"==typeof n&&(i=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof dr)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof ir)this._setRanges([e],!!i&&!!i.backward);else if(e instanceof $o)this._setRanges([new ir(e)]);else if(e instanceof Go){const t=!!i&&!!i.backward;let o;if("in"==n)o=ir._createIn(e);else if("on"==n)o=ir._createOn(e);else{if(void 0===n)throw new r.Bb("model-selection-setto-required-second-parameter",[this,e]);o=new ir($o._createAt(e,n))}this._setRanges([o],t)}else{if(!(0,r.TW)(e))throw new r.Bb("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,i&&!!i.backward)}}_setRanges(t,e=!1){const n=Array.from(t),i=n.some((e=>{if(!(e instanceof ir))throw new r.Bb("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every((t=>!t.isEqual(e)))}));(n.length!==this._ranges.length||i)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(null===this.anchor)throw new r.Bb("model-selection-setfocus-no-ranges",[this,t]);const n=$o._createAt(t,e);if("same"==n.compareWith(this.focus))return;const i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new ir(n,i)),this._lastRangeBackward=!0):(this._pushRange(new ir(i,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=mr(e.start,t);pr(n,e)&&(yield n);for(const n of e.getWalker()){const i=n.item;"elementEnd"==n.type&&hr(i,t,e)&&(yield i)}const i=mr(e.end,t);fr(i,e)&&(yield i)}}containsEntireContent(t=this.anchor.root){const e=$o._createAt(t,0),n=$o._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new ir(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new r.Bb("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 ur(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&!!t.parent)}function hr(t,e,n){return ur(t,e)&&gr(t,n)}function mr(t,e){const n=t.parent.root.document.model.schema,i=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let o=!1;const r=i.find((t=>!o&&(o=n.isLimit(t),!o&&ur(t,e))));return i.forEach((t=>e.add(t))),r}function gr(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(ir._createOn(n),!0)}function pr(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.start.isTouching($o._createAt(t,t.maxOffset))&&gr(t,e))}function fr(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.end.isTouching($o._createAt(t,0))&&gr(t,e))}dr.prototype.is=function(t){return"selection"===t||"model:selection"===t};class xr extends((0,r.ln)(ir)){constructor(t,e){super(t,e),br.call(this)}detach(){this.stopListening()}toRange(){return new ir(this.start,this.end)}static fromRange(t){return new xr(t.start,t.end)}}function br(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&kr.call(this,n)}),{priority:"low"})}function kr(t){const e=this.getTransformedByOperation(t),n=ir._createFromRanges(e),i=!n.isEqual(this),o=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let r=null;if(i){"$graveyard"==n.root.rootName&&(r="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:r})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:r})}xr.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t};const wr="selection:";class Ar extends((0,r.ln)(Ho)){constructor(t){super(),this._selection=new _r(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 wr+t}static _isStoreAttributeKey(t){return t.startsWith(wr)}}Ar.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t};class _r extends dr{constructor(t){super(),this.markers=new r.FE({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,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,i)=>{this._updateMarker(e,i)})),this.listenTo(this._document,"change",((t,e)=>{!function(t,e){const n=t.document.differ;for(const i of n.getChanges()){if("insert"!=i.type)continue;const n=i.position.parent;i.length===n.maxOffset&&t.enqueueChange(e,(t=>{const e=Array.from(n.getAttributeKeys()).filter((t=>t.startsWith(wr)));for(const i of e)t.removeAttribute(i,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=(0,r.hQ)();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new r.Bb("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 r.Bb("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=xr.fromRange(t);return e.on("change:range",((t,n,i)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=i.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 i=e.getRange();for(const n of this.getRanges())i.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 i=!1;const o=Array.from(this.markers),r=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!r?(this.markers.add(t),i=!0):!n&&r&&(this.markers.remove(t),i=!0)}else r&&(this.markers.remove(t),i=!0);i&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateAttributes(t){const e=(0,r.qL)(this._getSurroundingAttributes()),n=(0,r.qL)(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 i=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||i.push(t);for(const[t]of n)this.hasAttribute(t)||i.push(t);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(t,e,n=!0){const i=n?"normal":"low";if("low"==i&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,i),!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,i]of t){this._setAttribute(n,i,!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(wr)){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 i=t.textNode?t.textNode:t.nodeBefore,o=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=vr(i,e)),n||(n=vr(o,e)),!this.isGravityOverridden&&!n){let t=i;for(;t&&!n;)t=t.previousSibling,n=vr(t,e)}if(!n){let t=o;for(;t&&!n;)t=t.nextSibling,n=vr(t,e)}n||(n=this.getStoredAttributes())}else{const t=this.getFirstRange();for(const i of t){if(i.item.is("element")&&e.isObject(i.item)){n=vr(i.item,e);break}if("text"==i.type){n=i.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function vr(t,e){if(!t)return null;if(t instanceof Ko||t instanceof Wo)return t.getAttributes();if(!e.isInline(t))return null;if(!e.isObject(t))return[];const n=[];for(const[i,o]of t.getAttributes())e.checkAttribute("$text",i)&&!1!==e.getAttributeProperties(i).copyFromObject&&n.push([i,o]);return n}class Cr{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class yr extends Cr{elementToElement(t){return this.add(function(t){const e=Sr(t.model),n=Tr(t.view,"container");e.attributes.length&&(e.children=!0);return i=>{i.on(`insert:${e.name}`,function(t,e=Lr){return(n,i,o)=>{if(!e(i.item,o.consumable,{preflight:!0}))return;const r=t(i.item,o,i);if(!r)return;e(i.item,o.consumable);const s=o.mapper.toViewPosition(i.range.start);o.mapper.bindElements(i.item,r),o.writer.insert(s,r),o.convertAttributes(i.item),Pr(r,i.item.getChildren(),o,{reconversion:i.reconversion})}}(n,Nr(e)),{priority:t.converterPriority||"normal"}),(e.children||e.attributes.length)&&i.on("reduceChanges",Or(e),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(t){const e=Sr(t.model),n=Tr(t.view,"container");return e.children=!0,i=>{if(i._conversionApi.schema.checkChild(e.name,"$text"))throw new r.Bb("conversion-element-to-structure-disallowed-text",i,{elementName:e.name});var o,s;i.on(`insert:${e.name}`,(o=n,s=Nr(e),(t,e,n)=>{if(!s(e.item,n.consumable,{preflight:!0}))return;const i=new Map;n.writer._registerSlotFactory(function(t,e,n){return(i,o)=>{const s=i.createContainerElement("$slot");let a=null;if("children"===o)a=Array.from(t.getChildren());else{if("function"!=typeof o)throw new r.Bb("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:o});a=Array.from(t.getChildren()).filter((t=>o(t)))}return e.set(s,a),s}}(e.item,i,n));const a=o(e.item,n,e);if(n.writer._clearSlotFactory(),!a)return;!function(t,e,n){const i=Array.from(e.values()).flat(),o=new Set(i);if(o.size!=i.length)throw new r.Bb("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(o.size!=t.childCount)throw new r.Bb("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,i,n),s(e.item,n.consumable);const c=n.mapper.toViewPosition(e.range.start);n.mapper.bindElements(e.item,a),n.writer.insert(c,a),n.convertAttributes(e.item),function(t,e,n,i){n.mapper.on("modelToViewPosition",s,{priority:"highest"});let o=null,r=null;for([o,r]of e)Pr(t,r,n,i),n.writer.move(n.writer.createRangeIn(o),n.writer.createPositionBefore(o)),n.writer.remove(o);function s(t,e){const n=e.modelPosition.nodeAfter,i=r.indexOf(n);i<0||(e.viewPosition=e.mapper.findPositionIn(o,i))}n.mapper.off("modelToViewPosition",s)}(a,i,n,{reconversion:e.reconversion})}),{priority:t.converterPriority||"normal"}),i.on("reduceChanges",Or(e),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(t){t=Fo(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]=Tr(t.view[n],"attribute");else t.view=Tr(t.view,"attribute");const i=Dr(t);return e=>{e.on(n,function(t){return(e,n,i)=>{if(!i.consumable.test(n.item,e.name))return;const o=t(n.attributeOldValue,i,n),r=t(n.attributeNewValue,i,n);if(!o&&!r)return;i.consumable.consume(n.item,e.name);const s=i.writer,a=s.document.selection;if(n.item instanceof dr||n.item instanceof Ar)s.wrap(a.getFirstRange(),r);else{let t=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&o&&(t=s.unwrap(t,o)),null!==n.attributeNewValue&&r&&s.wrap(t,r)}}}(i),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Fo(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]=Mr(t.view[n]);else t.view=Mr(t.view);const i=Dr(t);return e=>{var o;e.on(n,(o=i,(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const i=o(e.attributeOldValue,n,e),s=o(e.attributeNewValue,n,e);if(!i&&!s)return;n.consumable.consume(e.item,t.name);const a=n.mapper.toViewElement(e.item),c=n.writer;if(!a)throw new r.Bb("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&i)if("class"==i.key){const t=(0,r.qo)(i.value);for(const e of t)c.removeClass(e,a)}else if("style"==i.key){const t=Object.keys(i.value);for(const e of t)c.removeStyle(e,a)}else c.removeAttribute(i.key,a);if(null!==e.attributeNewValue&&s)if("class"==s.key){const t=(0,r.qo)(s.value);for(const e of t)c.addClass(e,a)}else if("style"==s.key){const t=Object.keys(s.value);for(const e of t)c.setStyle(e,s.value[e],a)}else c.setAttribute(s.key,s.value,a)}),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){const e=Tr(t.view,"ui");return n=>{var i;n.on(`addMarker:${t.model}`,(i=e,(t,e,n)=>{e.isOpening=!0;const o=i(e,n);e.isOpening=!1;const r=i(e,n);if(!o||!r)return;const s=e.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,t.name))return;for(const e of s)if(!n.consumable.consume(e.item,t.name))return;const a=n.mapper,c=n.writer;c.insert(a.toViewPosition(s.start),o),n.mapper.bindElementToMarker(o,e.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,e.markerName)),t.stop()}),{priority:t.converterPriority||"normal"}),n.on(`removeMarker:${t.model}`,((t,e,n)=>{const i=n.mapper.markerNameToElements(e.markerName);if(i){for(const t of i)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,i)=>{if(!e.item)return;if(!(e.item instanceof dr||e.item instanceof Ar||e.item.is("$textProxy")))return;const o=Br(n,e,i);if(!o)return;if(!i.consumable.consume(e.item,t.name))return;const r=i.writer,s=Er(r,o),a=r.document.selection;if(e.item instanceof dr||e.item instanceof Ar)r.wrap(a.getFirstRange(),s);else{const t=i.mapper.toViewRange(e.range),n=r.wrap(t,s);for(const t of n.getItems())if(t.is("attributeElement")&&t.isSimilar(s)){i.mapper.bindElementToMarker(t,e.markerName);break}}}),{priority:t.converterPriority||"normal"}),e.on(`addMarker:${t.model}`,function(t){return(e,n,i)=>{if(!n.item)return;if(!(n.item instanceof Zo))return;const o=Br(t,n,i);if(!o)return;if(!i.consumable.test(n.item,e.name))return;const r=i.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){i.consumable.consume(n.item,e.name);for(const t of ir._createIn(n.item))i.consumable.consume(t.item,e.name);r.getCustomProperty("addHighlight")(r,o,i.writer),i.mapper.bindElementToMarker(r,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on(`removeMarker:${t.model}`,function(t){return(e,n,i)=>{if(n.markerRange.isCollapsed)return;const o=Br(t,n,i);if(!o)return;const r=Er(i.writer,o),s=i.mapper.markerNameToElements(n.markerName);if(s){for(const t of s)if(i.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("attributeElement"))i.writer.unwrap(i.writer.createRangeOn(t),r);else{t.getCustomProperty("removeHighlight")(t,o.id,i.writer)}i.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(t){t=Fo(t);const e=t.model;let n=t.view;n||(n=n=>({group:e,name:n.substr(t.model.length+1)}));return i=>{var o;i.on(`addMarker:${e}`,(o=n,(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=e.markerRange;n.consumable.consume(r,t.name)&&(Ir(r,!1,n,e,i),Ir(r,!0,n,e,i),t.stop())}),{priority:t.converterPriority||"normal"}),i.on(`removeMarker:${e}`,function(t){return(e,n,i)=>{const o=t(n.markerName,i);if(!o)return;const r=i.mapper.markerNameToElements(n.markerName);if(r){for(const t of r)i.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("containerElement")?(s(`data-${o.group}-start-before`,t),s(`data-${o.group}-start-after`,t),s(`data-${o.group}-end-before`,t),s(`data-${o.group}-end-after`,t)):i.writer.clear(i.writer.createRangeOn(t),t);i.writer.clearClonedElementsGroup(n.markerName),e.stop()}function s(t,e){if(e.hasAttribute(t)){const n=new Set(e.getAttribute(t).split(","));n.delete(o.name),0==n.size?i.writer.removeAttribute(t,e):i.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(n),{priority:t.converterPriority||"normal"})}}(t))}}function Er(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 Ir(t,e,n,i,o){const r=e?t.start:t.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let t,r;e&&s||!e&&!a?(t=s,r=!0):(t=a,r=!1);const c=n.mapper.toViewElement(t);if(c)return void function(t,e,n,i,o,r){const s=`data-${r.group}-${e?"start":"end"}-${n?"before":"after"}`,a=t.hasAttribute(s)?t.getAttribute(s).split(","):[];a.unshift(r.name),i.writer.setAttribute(s,a.join(","),t),i.mapper.bindElementToMarker(t,o.markerName)}(c,e,r,n,i,o)}!function(t,e,n,i,o){const r=`${o.group}-${e?"start":"end"}`,s=o.name?{name:o.name}:null,a=n.writer.createUIElement(r,s);n.writer.insert(t,a),n.mapper.bindElementToMarker(a,i.markerName)}(n.mapper.toViewPosition(r),e,n,i,o)}function Sr(t){return"string"==typeof t&&(t={name:t}),{name:t.name,attributes:t.attributes?(0,r.qo)(t.attributes):[],children:!!t.children}}function Tr(t,e){return"function"==typeof t?t:(n,i)=>function(t,e,n){"string"==typeof t&&(t={name:t});let i;const o=e.writer,r=Object.assign({},t.attributes);if("container"==n)i=o.createContainerElement(t.name,r);else if("attribute"==n){const e={priority:t.priority||ri.DEFAULT_PRIORITY};i=o.createAttributeElement(t.name,r,e)}else i=o.createUIElement(t.name,r);if(t.styles){const e=Object.keys(t.styles);for(const n of e)o.setStyle(n,t.styles[n],i)}if(t.classes){const e=t.classes;if("string"==typeof e)o.addClass(e,i);else for(const t of e)o.addClass(t,i)}return i}(t,i,e)}function Dr(t){return t.model.values?(e,n,i)=>{const o=t.view[e];return o?o(e,n,i):null}:t.view}function Mr(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function Br(t,e,n){const i="function"==typeof t?t(e,n):t;return i?(i.priority||(i.priority=10),i.id||(i.id=e.markerName),i):null}function Or(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 i=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const t of n.changes){const o="attribute"==t.type?t.range.start.nodeAfter:t.position.parent;if(o&&e(o,t)){if(!n.reconvertedElements.has(o)){n.reconvertedElements.add(o);const t=$o._createBefore(o);let e=i.length;for(let n=i.length-1;n>=0;n--){const o=i[n],r=("attribute"==o.type?o.range.start:o.position).compareWith(t);if("before"==r||"remove"==o.type&&"same"==r)break;e=n}i.splice(e,0,{type:"remove",name:o.name,position:t,length:1},{type:"reinsert",name:o.name,position:t,length:1})}}else i.push(t)}n.changes=i}}function Nr(t){return(e,n,i={})=>{const o=["insert"];for(const n of t.attributes)e.hasAttribute(n)&&o.push(`attribute:${n}`);return!!o.every((t=>n.test(e,t)))&&(i.preflight||o.forEach((t=>n.consume(e,t))),!0)}}function Pr(t,e,n,i){for(const o of e)Rr(t.root,o,n,i)||n.convertItem(o)}function Rr(t,e,n,i){const{writer:o,mapper:r}=n;if(!i.reconversion)return!1;const s=r.toViewElement(e);return!(!s||s.root==t)&&(!!n.canReuseView(s)&&(o.move(o.createRangeOn(s),r.toViewPosition($o._createBefore(e))),!0))}function Lr(t,e,{preflight:n}={}){return n?e.test(t,"insert"):e.consume(t,"insert")}function jr(t){const{schema:e,document:n}=t.model;for(const i of n.getRoots())if(i.isEmpty&&!e.checkChild(i,"$text")&&e.checkChild(i,"paragraph"))return t.insertElement("paragraph",i),!0;return!1}function zr(t,e,n){const i=n.createContext(t);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),e)}function Vr(t,e){const n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}class Fr extends Cr{elementToElement(t){return this.add(Ur(t))}elementToAttribute(t){return this.add(function(t){t=Fo(t),qr(t);const e=Wr(t,!1),n=Hr(t.view),i=n?`element:${n}`:"element";return n=>{n.on(i,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Fo(t);let e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key;let n;if("class"==e||"style"==e){n={["class"==e?"classes":"styles"]:t.view.value}}else{n={attributes:{[e]:void 0===t.view.value?/[\s\S]*/:t.view.value}}}t.view.name&&(n.name=t.view.name);return t.view=n,e}(t));qr(t,e);const n=Wr(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 i="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":i})}}(t.model);return Ur({...t,model:e})}(t))}dataToMarker(t){return this.add(function(t){t=Fo(t),t.model||(t.model=e=>e?t.view+":"+e:t.view);const e={view:t.view,model:t.model},n=Gr(Kr(e,"start")),i=Gr(Kr(e,"end"));return o=>{o.on(`element:${t.view}-start`,n,{priority:t.converterPriority||"normal"}),o.on(`element:${t.view}-end`,i,{priority:t.converterPriority||"normal"});const s=r.tA.low,a=r.tA.highest,c=r.tA.get(t.converterPriority)/a;o.on("element",function(t){return(e,n,i)=>{const o=`data-${t.view}`;function r(e,o){for(const r of o){const o=t.model(r,i),s=i.writer.createElement("$marker",{"data-name":o});i.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]}}(i.consumable.test(n.viewItem,{attributes:o+"-end-after"})||i.consumable.test(n.viewItem,{attributes:o+"-start-after"})||i.consumable.test(n.viewItem,{attributes:o+"-end-before"})||i.consumable.test(n.viewItem,{attributes:o+"-start-before"}))&&(n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor)),i.consumable.consume(n.viewItem,{attributes:o+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(o+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(o+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(o+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(o+"-start-before").split(",")))}}(e),{priority:s+c})}}(t))}}function Ur(t){const e=Gr(t=Fo(t)),n=Hr(t.view),i=n?`element:${n}`:"element";return n=>{n.on(i,e,{priority:t.converterPriority||"normal"})}}function Hr(t){return"string"==typeof t?t:"object"==typeof t&&"string"==typeof t.name?t.name:null}function Gr(t){const e=new ke(t.view);return(n,i,o)=>{const r=e.match(i.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!o.consumable.test(i.viewItem,s))return;const a=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,i.viewItem,o);a&&o.safeInsert(a,i.modelCursor)&&(o.consumable.consume(i.viewItem,s),o.convertChildren(i.viewItem,a),o.updateConversionResult(a,i))}}function qr(t,e=null){const n=null===e||(t=>t.getAttribute(e)),i="object"!=typeof t.model?t.model:t.model.key,o="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:i,value:o}}function Wr(t,e){const n=new ke(t.view);return(i,o,r)=>{if(!o.modelRange&&e)return;const s=n.match(o.viewItem);if(!s)return;if(!function(t,e){const n="function"==typeof t?t(e):t;if("object"==typeof n&&!Hr(n))return!1;return!n.classes&&!n.attributes&&!n.styles}(t.view,o.viewItem)?delete s.match.name:s.match.name=!0,!r.consumable.test(o.viewItem,s.match))return;const a=t.model.key,c="function"==typeof t.model.value?t.model.value(o.viewItem,r):t.model.value;if(null===c)return;o.modelRange||Object.assign(o,r.convertChildren(o.viewItem,o.modelCursor));const l=function(t,e,n,i){let o=!1;for(const r of Array.from(t.getItems({shallow:n})))i.schema.checkAttribute(r,e.key)&&(o=!0,r.hasAttribute(e.key)||i.writer.setAttribute(e.key,e.value,r));return o}(o.modelRange,{key:a,value:c},e,r);l&&(r.consumable.test(o.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(o.viewItem,s.match))}}function Kr(t,e){return{view:`${t.view}-${e}`,model:(e,n)=>{const i=e.getAttribute("name"),o=t.model(i,n);return n.writer.createElement("$marker",{"data-name":o})}}}function Zr(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.selection,i=e.schema,o=[];let r=!1;for(const t of n.getRanges()){const e=Yr(t,i);e&&!e.isEqual(t)?(o.push(e),r=!0):o.push(t)}r&&t.setSelection(function(t){const e=[...t],n=new Set;let i=1;for(;i<e.length;){const t=e[i],o=e.slice(0,i);for(const[r,s]of o.entries())if(!n.has(r))if(t.isEqual(s))n.add(r);else if(t.isIntersecting(s)){n.add(r),n.add(i);const o=t.getJoined(s);e.push(o)}i++}return e.filter(((t,e)=>!n.has(e)))}(o),{backward:n.isBackward});return!1}(e,t)))}function Yr(t,e){return t.isCollapsed?function(t,e){const n=t.start,i=e.getNearestSelectionRange(n);if(!i){const t=n.getAncestors().reverse().find((t=>e.isObject(t)));return t?ir._createOn(t):null}if(!i.isCollapsed)return i;const o=i.start;if(n.isEqual(o))return null;return new ir(o)}(t,e):function(t,e){const{start:n,end:i}=t,o=e.checkChild(n,"$text"),r=e.checkChild(i,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(i);if(s===a){if(o&&r)return null;if(function(t,e,n){const i=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),o=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return i||o}(n,i,e)){const t=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),o=i.nodeBefore&&e.isSelectable(i.nodeBefore)?null:e.getNearestSelectionRange(i,"backward"),r=t?t.start:n,s=o?o.end:i;return new ir(r,s)}}const c=s&&!s.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const t=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,o=c&&(!t||!$r(n.nodeAfter,e)),r=l&&(!t||!$r(i.nodeBefore,e));let d=n,u=i;return o&&(d=$o._createBefore(Jr(s,e))),r&&(u=$o._createAfter(Jr(a,e))),new ir(d,u)}return null}(t,e)}function Jr(t,e){let n=t,i=n;for(;e.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function $r(t,e){return t&&e.isSelectable(t)}class Qr extends((0,r.Re)()){constructor(t,e){super(),this.model=t,this.view=new Uo(e),this.mapper=new or,this.downcastDispatcher=new ar({mapper:this.mapper,schema:t.schema});const n=this.model.document,i=n.selection,o=this.model.markers;var s,a,c;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,o,t),this.downcastDispatcher.convertSelection(i,o,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,i)=>{const o=i.newSelection,r=[];for(const t of o.getRanges())r.push(e.toModelRange(t));const s=t.createSelection(r,{backward:o.isBackward});s.isEqual(t.document.selection)||t.change((t=>{t.setSelection(s)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(s=this.mapper,a=this.model.schema,c=this.view,(t,e)=>{if(!c.document.isComposing||r.OB.isAndroid)for(let t=0;t<e.targetRanges.length;t++){const n=e.targetRanges[t],i=s.toModelRange(n),o=Yr(i,a);o&&!o.isEqual(i)&&(e.targetRanges[t]=s.toViewRange(o))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=n.writer,o=n.mapper.toViewPosition(e.range.start),r=i.createText(e.item.data);i.insert(o,r)}),{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 i=n.mapper.toViewPosition(e.position),o=e.position.getShiftedBy(e.length),r=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(i,r),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 i=n.writer,o=i.document.selection;for(const t of o.getRanges())t.isCollapsed&&t.end.parent.isAttached()&&n.writer.mergeAttributes(t.start);i.setSelection(null)})),this.downcastDispatcher.on("selection",((t,e,n)=>{const i=e.selection;if(i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const o=[];for(const t of i.getRanges())o.push(n.mapper.toViewRange(t));n.writer.setSelection(o,{backward:i.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const i=e.selection;if(!i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const o=n.writer,r=i.getFirstPosition(),s=n.mapper.toViewPosition(r),a=o.breakAttributes(s);o.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((t=>{if("$graveyard"==t.rootName)return null;const e=new Gn(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 r.Bb("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 Xr{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new es(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 i=t.getClassNames();for(const t of i)e.classes.push(t);const o=t.getStyleNames();for(const t of o)e.styles.push(t);return e}static createFrom(t,e){if(e||(e=new Xr),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Xr.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Xr.createFrom(n,e);return e}}const ts=["attributes","classes","styles"];class es{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 ts)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of ts)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 ts)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of ts)e in t&&this._revert(e,t[e])}_add(t,e){const n=(0,_e.Z)(e)?e:[e],i=this._consumables[t];for(const e of n){if("attributes"===t&&("class"===e||"style"===e))throw new r.Bb("viewconsumable-invalid-attribute",this);if(i.set(e,!0),"styles"===t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))i.set(t,!0)}}_test(t,e){const n=(0,_e.Z)(e)?e:[e],i=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){const t=i.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=(0,_e.Z)(e)?e:[e],i=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){if(i.set(e,!1),"styles"==t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))i.set(t,!1)}else{const t="class"==e?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=(0,_e.Z)(e)?e:[e],i=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){!1===i.get(e)&&i.set(e,!0)}else{const t="class"==e?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class ns extends((0,r.Re)()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new is(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new is(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new r.Bb("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 r.Bb("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(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof $o){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof Zo))throw new r.Bb("schema-check-merge-no-element-before",this);if(!(n instanceof Zo))throw new r.Bb("schema-check-merge-no-element-after",this);return this.checkMerge(e,n)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",((e,[n,i])=>{if(!i)return;const o=t(n,i);"boolean"==typeof o&&(e.stop(),e.return=o)}),{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",((e,[n,i])=>{const o=t(n,i);"boolean"==typeof o&&(e.stop(),e.return=o)}),{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;if(t instanceof $o)e=t.parent;else{e=(t instanceof ir?[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 Wo("",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 ir(t);let n,i;const o=t.getAncestors().reverse().find((t=>this.isLimit(t)))||t.root;"both"!=e&&"backward"!=e||(n=new Yo({boundaries:ir._createIn(o),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(i=new Yo({boundaries:ir._createIn(o),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,i)){const e=t.walker==n?"elementEnd":"elementStart",i=t.value;if(i.type==e&&this.isObject(i.item))return ir._createOn(i.item);if(this.checkChild(i.nextPosition,"$text"))return new ir(i.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 i=n.model;for(const[o,r]of Object.entries(e))i.schema.checkAttribute(t,o)&&n.setAttribute(o,r,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))fs(this,n,e);else{const t=ir._createIn(n).getPositions();for(const n of t){fs(this,n.nodeBefore||n.parent,e)}}}getAttributesWithProperty(t,e,n){const i={};for(const[o,r]of t.getAttributes()){const t=this.getAttributeProperties(o);void 0!==t[e]&&(void 0!==n&&n!==t[e]||(i[o]=r))}return i}createContext(t){return new is(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const i of n)t[i]=os(e[i],i);for(const e of n)rs(t,e);for(const e of n)ss(t,e);for(const e of n)as(t,e);for(const e of n)cs(t,e),ls(t,e);for(const e of n)ds(t,e),us(t,e),hs(t,e);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const i=e.getItem(n);if(t.allowIn.includes(i.name)){if(0==n)return!0;{const t=this.getDefinition(i);return this._checkContextMatch(t,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,i=t.start;for(const o of t.getItems({shallow:!0}))o.is("element")&&(yield*this._getValidRangesForRange(ir._createIn(o),e)),this.checkAttribute(o,e)||(n.isEqual(i)||(yield new ir(n,i)),n=$o._createAfter(o)),i=$o._createAfter(o);n.isEqual(i)||(yield new ir(n,i))}}class is{constructor(t){if(t instanceof is)return t;let e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(ps)}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 is([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function os(t,e){const n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(t,e){for(const n of t){const t=Object.keys(n).filter((t=>t.startsWith("is")));for(const i of t)e[i]=!!n[i]}}(t,n),ms(t,n,"allowIn"),ms(t,n,"allowContentOf"),ms(t,n,"allowWhere"),ms(t,n,"allowAttributes"),ms(t,n,"allowAttributesOf"),ms(t,n,"allowChildren"),ms(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.push(t),e.allowWhere.push(t),e.allowAttributesOf.push(t),e.inheritTypesFrom.push(t))}}(t,n),n}function rs(t,e){const n=t[e];for(const i of n.allowChildren){const n=t[i];n&&n.allowIn.push(e)}n.allowChildren.length=0}function ss(t,e){for(const n of t[e].allowContentOf)if(t[n]){gs(t,n).forEach((t=>{t.allowIn.push(e)}))}delete t[e].allowContentOf}function as(t,e){for(const n of t[e].allowWhere){const i=t[n];if(i){const n=i.allowIn;t[e].allowIn.push(...n)}}delete t[e].allowWhere}function cs(t,e){for(const n of t[e].allowAttributesOf){const i=t[n];if(i){const n=i.allowAttributes;t[e].allowAttributes.push(...n)}}delete t[e].allowAttributesOf}function ls(t,e){const n=t[e];for(const e of n.inheritTypesFrom){const i=t[e];if(i){const t=Object.keys(i).filter((t=>t.startsWith("is")));for(const e of t)e in n||(n[e]=i[e])}}delete n.inheritTypesFrom}function ds(t,e){const n=t[e],i=n.allowIn.filter((e=>t[e]));n.allowIn=Array.from(new Set(i))}function us(t,e){const n=t[e];for(const i of n.allowIn){t[i].allowChildren.push(e)}}function hs(t,e){const n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function ms(t,e,n){for(const i of t){const t=i[n];"string"==typeof t?e[n].push(t):Array.isArray(t)&&e[n].push(...t)}}function gs(t,e){const n=t[e];return(i=t,Object.keys(i).map((t=>i[t]))).filter((t=>t.allowIn.includes(n.name)));var i}function ps(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 fs(t,e,n){for(const i of e.getAttributeKeys())t.checkAttribute(e,i)||n.removeAttribute(i,e)}class xs extends((0,r.ln)()){constructor(t){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,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 i of new is(t)){const t={};for(const e of i.getAttributeKeys())t[e]=i.getAttribute(e);const o=e.createElement(i.name,t);n&&e.insert(o,n),n=$o._createAt(o,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Xr.createFrom(t),this.conversionApi.store={};const{modelRange:i}=this._convertItem(t,this._modelCursor),o=e.createDocumentFragment();if(i){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,o);o.markers=function(t,e){const n=new Set,i=new Map,o=ir._createIn(t).getItems();for(const t of o)t.is("element","$marker")&&n.add(t);for(const t of n){const n=t.getAttribute("data-name"),o=e.createPositionBefore(t);i.has(n)?i.get(n).end=o.clone():i.set(n,new ir(o.clone())),e.remove(t)}return i}(o,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}_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 ir))throw new r.Bb("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:$o._createAt(e,0);const i=new ir(n);for(const e of Array.from(t.getChildren())){const t=this._convertItem(e,n);t.modelRange instanceof ir&&(i.end=t.modelRange.end,n=t.modelCursor)}return{modelRange:i,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),i=this.conversionApi.writer;e.modelRange||(e.modelRange=i.createRange(i.createPositionBefore(t),i.createPositionAfter(n[n.length-1])));const o=this._cursorParents.get(t);e.modelCursor=o?i.createPositionAt(o,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:i}=this.conversionApi;let o=n.findAllowedParent(e,t);if(o){if(o===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return zr(e,t,n)?{position:Vr(e,i)}:null;const r=this.conversionApi.writer.split(e,o),s=[];for(const t of r.range.getWalker())if("elementEnd"==t.type)s.push(t.item);else{const e=s.pop(),n=t.item;this._registerSplitPair(e,n)}const a=r.range.end.parent;return this._cursorParents.set(t,a),{position:r.position,cursorParent:a}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_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 bs{getHtml(t){const e=r.global.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class ks{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Yi(t,{renderingMode:"data"}),this.htmlWriter=new bs}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){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class ws extends((0,r.ln)()){constructor(t,e){super(),this.model=t,this.mapper=new or,this.downcastDispatcher=new ar({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=n.writer,o=n.mapper.toViewPosition(e.range.start),r=i.createText(e.item.data);i.insert(o,r)}),{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 xs({schema:t.schema}),this.viewDocument=new oi(e),this.stylesProcessor=e,this.htmlProcessor=new ks(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new fi(this.viewDocument),this.upcastDispatcher.on("text",((t,e,{schema:n,consumable:i,writer:o})=>{let r=e.modelCursor;if(!i.test(e.viewItem))return;if(!n.checkChild(r,"$text")){if(!zr(r,"$text",n))return;if(0==e.viewItem.data.trim().length)return;const t=r.nodeBefore;r=Vr(r,o),t&&t.is("element","$marker")&&(o.move(o.createRangeOn(t),r),r=o.createPositionAfter(t))}i.consume(e.viewItem);const s=o.createText(e.viewItem.data);o.insert(s,r),e.modelRange=o.createRange(r,r.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=i}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=i}}),{priority:"lowest"}),(0,r.Re)().prototype.decorate.call(this,"init"),(0,r.Re)().prototype.decorate.call(this,"set"),(0,r.Re)().prototype.decorate.call(this,"get"),(0,r.Re)().prototype.decorate.call(this,"toView"),(0,r.Re)().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},jr)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new r.Bb("datacontroller-get-non-existent-root",this);const i=this.model.document.getRoot(e);return i.isAttached()||(0,r.KE)("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(i,{ignoreWhitespaces:!0})?this.stringify(i,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();const o=ir._createIn(t),r=new pi(n);this.mapper.bindElements(t,r);const s=t.is("documentFragment")?t.markers:function(t){const e=[],n=t.root.document;if(!n)return new Map;const i=ir._createIn(t);for(const t of n.model.markers){const n=t.getRange(),o=n.isCollapsed,r=n.start.isEqual(i.start)||n.end.isEqual(i.end);if(o&&r)e.push([t.name,n]);else{const o=i.getIntersection(n);o&&e.push([t.name,o])}}return e.sort((([t,e],[n,i])=>{if("after"!==e.end.compareWith(i.start))return 1;if("before"!==e.start.compareWith(i.end))return-1;switch(e.start.compareWith(i.start)){case"before":return 1;case"after":return-1;default:switch(e.end.compareWith(i.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(t)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(o,s,i,e),r}init(t){if(this.model.document.version)throw new r.Bb("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new r.Bb("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(t=>{for(const n of Object.keys(e)){const i=this.model.document.getRoot(n);t.insert(this.parse(e[n],i),i,0)}})),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new r.Bb("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 i=this.model.document.getRoot(e);t.remove(t.createRangeIn(i)),t.insert(this.parse(n[e],i),i,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 As{constructor(t,e){this._helpers=new Map,this._downcast=(0,r.qo)(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=(0,r.qo)(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 r.Bb("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new r.Bb("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of _s(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 _s(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 _s(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new r.Bb("conversion-group-exists",this);const i=n?new yr(e):new Fr(e);this._helpers.set(t,i)}}function*_s(t){if(t.model.values)for(const e of t.model.values){const n={key:t.model.key,value:e},i=t.view[e],o=t.upcastAlso?t.upcastAlso[e]:void 0;yield*vs(n,i,o)}else yield*vs(t.model,t.view,t.upcastAlso)}function*vs(t,e,n){if(yield{model:t,view:e},n)for(const e of(0,r.qo)(n))yield{model:t,view:e}}class Cs{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 ys(t,e){const n=Ss(e),i=n.reduce(((t,e)=>t+e.offsetSize),0),o=t.parent;Ds(t);const r=t.index;return o._insertChild(r,n),Ts(o,r+n.length),Ts(o,r),new ir(t,t.getShiftedBy(i))}function Es(t){if(!t.isFlat)throw new r.Bb("operation-utils-remove-range-not-flat",this);const e=t.start.parent;Ds(t.start),Ds(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Ts(e,t.start.index),n}function Is(t,e){if(!t.isFlat)throw new r.Bb("operation-utils-move-range-not-flat",this);const n=Es(t);return ys(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function Ss(t){const e=[];!function t(n){if("string"==typeof n)e.push(new Wo(n));else if(n instanceof Ko)e.push(new Wo(n.data,n.getAttributes()));else if(n instanceof Go)e.push(n);else if((0,r.TW)(n))for(const e of n)t(e);else{}}(t);for(let t=1;t<e.length;t++){const n=e[t],i=e[t-1];n instanceof Wo&&i instanceof Wo&&Ms(n,i)&&(e.splice(t-1,2,new Wo(i.data+n.data,i.getAttributes())),t--)}return e}function Ts(t,e){const n=t.getChild(e-1),i=t.getChild(e);if(n&&i&&n.is("$text")&&i.is("$text")&&Ms(n,i)){const o=new Wo(n.data+i.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,o)}}function Ds(t){const e=t.textNode,n=t.parent;if(e){const i=t.offset-e.startOffset,o=e.index;n._removeChildren(o,1);const r=new Wo(e.data.substr(0,i),e.getAttributes()),s=new Wo(e.data.substr(i),e.getAttributes());n._insertChild(o,[r,s])}}function Ms(t,e){const n=t.getAttributes(),i=e.getAttributes();for(const t of n){if(t[1]!==e.getAttribute(t[0]))return!1;i.next()}return i.next().done}class Bs extends Cs{constructor(t,e,n,i){super(i),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[ir._createFromPositionAndShift(this.sourcePosition,this.howMany),ir._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Bs(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 Bs(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new r.Bb("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new r.Bb("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==(0,r.Rt)(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 r.Bb("move-operation-node-into-itself",this)}}_execute(){Is(ir._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=$o.fromJSON(t.sourcePosition,e),i=$o.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}class Os extends Cs{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new qo(Ss(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new qo([...this.nodes].map((t=>t._clone(!0)))),e=new Os(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new $o(t,[0]);return new Bs(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new r.Bb("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new qo([...t].map((t=>t._clone(!0)))),ys(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(Zo.fromJSON(e)):n.push(Wo.fromJSON(e));const i=new Os($o.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}class Ns extends Cs{constructor(t,e,n,i,o){super(o),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=i?i.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 $o(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ir(this.splitPosition,t)}get affectedSelectable(){const t=[ir._createFromPositionAndShift(this.splitPosition,0),ir._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(ir._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new Ns(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new $o(t,[0]);return new Ps(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 r.Bb("split-operation-position-invalid",this);if(!t.parent)throw new r.Bb("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new r.Bb("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new r.Bb("split-operation-graveyard-position-invalid",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)Is(ir._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();ys(this.insertionPosition,e)}Is(new ir($o._createAt(t,this.splitPosition.offset),$o._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 $o(t.root,e,"toPrevious")}static fromJSON(t,e){const n=$o.fromJSON(t.splitPosition,e),i=$o.fromJSON(t.insertionPosition,e),o=t.graveyardPosition?$o.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,o,t.baseVersion)}}class Ps extends Cs{constructor(t,e,n,i,o){super(o),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=i.clone()}get type(){return"merge"}get deletionPosition(){return new $o(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ir(this.sourcePosition,t)}get affectedSelectable(){const t=this.sourcePosition.parent;return[ir._createOn(t),ir._createFromPositionAndShift(this.targetPosition,0),ir._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Ps(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 $o(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new Ns(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new r.Bb("merge-operation-source-position-invalid",this);if(!e.parent)throw new r.Bb("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new r.Bb("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;Is(ir._createIn(t),this.targetPosition),Is(ir._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=$o.fromJSON(t.sourcePosition,e),i=$o.fromJSON(t.targetPosition,e),o=$o.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,o,t.baseVersion)}}class Rs extends Cs{constructor(t,e,n,i,o,r){super(r),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=o,this._markers=i}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 Rs(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Rs(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 Rs(t.name,t.oldRange?ir.fromJSON(t.oldRange,e):null,t.newRange?ir.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}const Ls=function(t,e){return To(t,e)};class js extends Cs{constructor(t,e,n,i,o){super(o),this.range=t.clone(),this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===i?null:i}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new js(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new js(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 r.Bb("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Ls(t.getAttribute(this.key),this.oldValue))throw new r.Bb("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 r.Bb("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Ls(this.oldValue,this.newValue)||function(t,e,n){Ds(t.start),Ds(t.end);for(const i of t.getItems({shallow:!0})){const t=i.is("$textProxy")?i.textNode:i;null!==n?t._setAttribute(e,n):t._removeAttribute(e),Ts(t.parent,t.index)}Ts(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new js(ir.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class zs extends Cs{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new zs(this.baseVersion)}getReversed(){return new zs(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Vs extends Cs{constructor(t,e,n,i){super(i),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 Vs(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Vs(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof Zo))throw new r.Bb("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new r.Bb("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 Vs($o.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Fs extends Cs{constructor(t,e,n,i,o){super(o),this.root=t,this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===i?null:i}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new Fs(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Fs(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new r.Bb("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 r.Bb("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 r.Bb("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 r.Bb("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Fs(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Us extends Cs{constructor(t,e,n,i,o){if(super(o),this.rootName=t,this.elementName=e,this.isAdd=n,this._document=i,!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 Us(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Us(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 Us(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const Hs={};Hs[js.className]=js,Hs[Os.className]=Os,Hs[Rs.className]=Rs,Hs[Bs.className]=Bs,Hs[zs.className]=zs,Hs[Cs.className]=Cs,Hs[Vs.className]=Vs,Hs[Fs.className]=Fs,Hs[Us.className]=Us,Hs[Ns.className]=Ns,Hs[Ps.className]=Ps;class Gs{static fromJSON(t,e){return Hs[t.__className].fromJSON(t,e)}}const qs=new Map;function Ws(t,e,n){let i=qs.get(t);i||(i=new Map,qs.set(t,i)),i.set(e,n)}function Ks(t){return[t]}function Zs(t,e,n={}){const i=function(t,e){const n=qs.get(t);return n&&n.has(e)?n.get(e):Ks}(t.constructor,e.constructor);try{return i(t=t.clone(),e,n)}catch(t){throw t}}function Ys(t,e,n){t=t.slice(),e=e.slice();const i=new Js(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(t),i.setOriginalOperations(e);const o=i.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:o};const r=new WeakMap;for(const e of t)r.set(e,0);const s={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};let a=0;for(;a<t.length;){const n=t[a],o=r.get(n);if(o==e.length){a++;continue}const s=e[o],c=Zs(n,s,i.getContext(n,s,!0)),l=Zs(s,n,i.getContext(s,n,!1));i.updateRelation(n,s),i.setOriginalOperations(c,n),i.setOriginalOperations(l,s);for(const t of c)r.set(t,o+l.length);t.splice(a,1,...c),e.splice(o,1,...l)}if(n.padWithNoOps){const n=t.length-s.originalOperationsACount,i=e.length-s.originalOperationsBCount;Qs(t,i-n),Qs(e,n-i)}return $s(t,s.nextBaseVersionB),$s(e,s.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:o}}class Js{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 Bs)e instanceof Ps?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 Bs&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof Ns){if(e instanceof Ps)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof Bs)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=ir._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){const i=n.end.offset-t.splitPosition.offset,o=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:i,offset:o})}}}else if(t instanceof Ps)e instanceof Ps?(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 Ns&&t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource");else if(t instanceof Rs){const n=t.newRange;if(!n)return;if(e instanceof Bs){const i=ir._createFromPositionAndShift(e.sourcePosition,e.howMany),o=i.containsPosition(n.start)||i.start.isEqual(n.start),r=i.containsPosition(n.end)||i.end.isEqual(n.end);!o&&!r||i.containsRange(n)||this._setRelation(t,e,{side:o?"left":"right",path:o?n.start.path.slice():n.end.path.slice()})}else if(e instanceof Ps){const i=n.start.isEqual(e.targetPosition),o=n.start.isEqual(e.deletionPosition),r=n.end.isEqual(e.deletionPosition),s=n.end.isEqual(e.sourcePosition);(i||o||r||s)&&this._setRelation(t,e,{wasInLeftElement:i,wasStartBeforeMergedElement:o,wasEndBeforeMergedElement:r,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),i=this._history.getUndoneOperation(n);if(!i)return null;const o=this.originalOperations.get(t),r=this._relations.get(o);return r&&r.get(i)||null}_setRelation(t,e,n){const i=this.originalOperations.get(t),o=this.originalOperations.get(e);let r=this._relations.get(i);r||(r=new Map,this._relations.set(i,r)),r.set(o,n)}}function $s(t,e){for(const n of t)n.baseVersion=e++}function Qs(t,e){for(let n=0;n<e;n++)t.push(new zs(0))}function Xs(t,e,n){const i=t.nodes.getNode(0).getAttribute(e);if(i==n)return null;const o=new ir(t.position,t.position.getShiftedBy(t.howMany));return new js(o,e,i,n,0)}function ta(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function ea(t,e){const n=[];for(let i=0;i<t.length;i++){const o=t[i],r=new Bs(o.start,o.end.offset-o.start.offset,e,0);n.push(r);for(let e=i+1;e<t.length;e++)t[e]=t[e]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];e=e._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return n}Ws(js,js,((t,e,n)=>{if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){const i=t.range.getDifference(e.range).map((e=>new js(e,t.key,t.oldValue,t.newValue,0))),o=t.range.getIntersection(e.range);return o&&n.aIsStrong&&i.push(new js(o,e.key,e.newValue,t.newValue,0)),0==i.length?[new zs(0)]:i}return[t]})),Ws(js,Os,((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 js(e,t.key,t.oldValue,t.newValue,t.baseVersion)));if(e.shouldReceiveAttributes){const i=Xs(e,t.key,t.oldValue);i&&n.unshift(i)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),Ws(js,Ps,((t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(ir._createFromPositionAndShift(e.graveyardPosition,1));const i=t.range._getTransformedByMergeOperation(e);return i.isCollapsed||n.push(i),n.map((e=>new js(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),Ws(js,Bs,((t,e)=>function(t,e){const n=ir._createFromPositionAndShift(e.sourcePosition,e.howMany);let i=null,o=[];n.containsRange(t,!0)?i=t:t.start.hasSameParentAs(n.start)?(o=t.getDifference(n),i=t.getIntersection(n)):o=[t];const r=[];for(let t of o){t=t._getTransformedByDeletion(e.sourcePosition,e.howMany);const n=e.getMovedRangeStart(),i=t.start.hasSameParentAs(n),o=t._getTransformedByInsertion(n,e.howMany,i);r.push(...o)}i&&r.push(i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return r}(t.range,e).map((e=>new js(e,t.key,t.oldValue,t.newValue,t.baseVersion))))),Ws(js,Ns,((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 ir(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]})),Ws(Os,js,((t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const i=Xs(t,e.key,e.newValue);i&&n.push(i)}return n})),Ws(Os,Os,((t,e,n)=>(t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]))),Ws(Os,Bs,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),Ws(Os,Ns,((t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t]))),Ws(Os,Ps,((t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t]))),Ws(Rs,Os,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]))),Ws(Rs,Rs,((t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new zs(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),Ws(Rs,Ps,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]))),Ws(Rs,Bs,((t,e,n)=>{if(t.oldRange&&(t.oldRange=ir._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){const i=ir._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.end=i.end,t.newRange.start.path=n.abRelation.path,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=i.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=ir._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),Ws(Rs,Ns,((t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const i=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=$o._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=$o._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=$o._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=$o._createAt(e.insertionPosition):t.newRange.end=i.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),Ws(Ps,Os,((t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]))),Ws(Ps,Ps,((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 $o(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new zs(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const i="$graveyard"==t.targetPosition.root.rootName,o="$graveyard"==e.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),i=t.targetPosition._getTransformedByMergeOperation(e);return[new Bs(n,t.howMany,i,0)]}return[new zs(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]})),Ws(Ps,Bs,((t,e,n)=>{const i=ir._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition)?[new zs(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),Ws(Ps,Ns,((t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){const i=0!=e.howMany,o=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(i||o||"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]})),Ws(Bs,Os,((t,e)=>{const n=ir._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]})),Ws(Bs,Bs,((t,e,n)=>{const i=ir._createFromPositionAndShift(t.sourcePosition,t.howMany),o=ir._createFromPositionAndShift(e.sourcePosition,e.howMany);let s,a=n.aIsStrong,c=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?c=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(c=!1),s=t.targetPosition.isEqual(e.targetPosition)&&c?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),ta(t,e)&&ta(e,t))return[e.getReversed()];if(i.containsPosition(e.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),i.end=i.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),ea([i],s);if(o.containsPosition(t.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),i.end=i.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),ea([i],s);const l=(0,r.Rt)(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return i.start=i.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),i.end=i.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),ea([i],s);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;const d=[],u=i.getDifference(o);for(const t of u){t.start=t.start._getTransformedByDeletion(e.sourcePosition,e.howMany),t.end=t.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const n="same"==(0,r.Rt)(t.start.getParentPath(),e.getMovedRangeStart().getParentPath()),i=t._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,n);d.push(...i)}const h=i.getIntersection(o);return null!==h&&a&&(h.start=h.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),h.end=h.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===d.length?d.push(h):1==d.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?d.unshift(h):d.push(h):d.splice(1,0,h)),0===d.length?[new zs(t.baseVersion)]:ea(d,s)})),Ws(Bs,Ns,((t,e,n)=>{let i=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=t.targetPosition._getTransformedBySplitOperation(e));const o=ir._createFromPositionAndShift(t.sourcePosition,t.howMany);if(o.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=i,[t];if(o.start.hasSameParentAs(e.splitPosition)&&o.containsPosition(e.splitPosition)){let t=new ir(e.splitPosition,o.end);t=t._getTransformedBySplitOperation(e);return ea([new ir(o.start,e.splitPosition),t],i)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(i=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(i=t.targetPosition);const r=[o._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const i=o.start.isEqual(e.graveyardPosition)||o.containsPosition(e.graveyardPosition);t.howMany>1&&i&&!n.aWasUndone&&r.push(ir._createFromPositionAndShift(e.insertionPosition,1))}return ea(r,i)})),Ws(Bs,Ps,((t,e,n)=>{const i=ir._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.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 zs(0)]}else if(!n.aWasUndone){const n=[];let i=e.graveyardPosition.clone(),o=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(n.push(new Bs(t.sourcePosition,t.howMany-1,t.targetPosition,0)),i=i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),o=o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));const r=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),s=new Bs(i,1,r,0),a=s.getMovedRangeStart().path.slice();a.push(0);const c=new $o(s.targetPosition.root,a);o=o._getTransformedByMove(i,r,1);const l=new Bs(o,e.howMany,c,0);return n.push(s),n.push(l),n}const o=ir._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=o.start,t.howMany=o.end.offset-o.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),Ws(Vs,Os,((t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t]))),Ws(Vs,Ps,((t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]))),Ws(Vs,Bs,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),Ws(Vs,Vs,((t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new zs(0)];t.oldName=e.newName}return[t]})),Ws(Vs,Ns,((t,e)=>{const n=t.position.path,i=e.splitPosition.getParentPath();if("same"==(0,r.Rt)(n,i)&&!e.graveyardPosition){const e=new Vs(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,e]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),Ws(Fs,Fs,((t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new zs(0)];t.oldValue=e.newValue}return[t]})),Ws(Us,Us,((t,e)=>t.rootName===e.rootName&&t.isAdd===e.isAdd?[new zs(0)]:[t])),Ws(Ns,Os,((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]))),Ws(Ns,Ps,((t,e,n)=>{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const i=new $o(e.graveyardPosition.root,n),o=Ns.getInsertionPosition(new $o(e.graveyardPosition.root,n)),r=new Ns(i,0,o,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Ns.getInsertionPosition(t.splitPosition),t.graveyardPosition=r.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[r,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Ns.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),Ws(Ns,Bs,((t,e,n)=>{const i=ir._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const o=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&o){const n=t.splitPosition._getTransformedByMoveOperation(e),i=t.graveyardPosition._getTransformedByMoveOperation(e),o=i.path.slice();o.push(0);const r=new $o(i.root,o);return[new Bs(n,t.howMany,r,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}const o=t.splitPosition.isEqual(e.targetPosition);if(o&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Ns.getInsertionPosition(t.splitPosition),[t];if(o&&n.abRelation&&n.abRelation.howMany){const{howMany:e,offset:i}=n.abRelation;return t.howMany+=e,t.splitPosition=t.splitPosition.getShiftedBy(i),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&i.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=Ns.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=Ns.getInsertionPosition(t.splitPosition),[t]})),Ws(Ns,Ns,((t,e,n)=>{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new zs(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new zs(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 i="$graveyard"==t.splitPosition.root.rootName,o="$graveyard"==e.splitPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){const n=[];return e.howMany&&n.push(new Bs(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new Bs(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new zs(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 i=new $o(e.insertionPosition.root,n);return[t,new Bs(t.insertionPosition,1,i,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=Ns.getInsertionPosition(t.splitPosition),[t]}));class na extends((0,r.ln)($o)){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new r.Bb("model-liveposition-root-not-rootelement",t);ia.call(this)}detach(){this.stopListening()}toPosition(){return new $o(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function ia(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&oa.call(this,n)}),{priority:"low"})}function oa(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)}}na.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t};class ra{constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},(0,r.KE)("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:i=!1,isTyping:o=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=i,this.isTyping=o}get type(){return(0,r.KE)("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 sa{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,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);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=ir._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}break}case"split":{const t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{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);const i=e.targetPosition.parent;this._isInInsertedElement(i)||this._markInsert(i,e.targetPosition.offset,t.maxOffset);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 i=this._changedMarkers.get(t);i?i.newMarkerData=n:(i={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,i)),null==i.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._changesInElement.size>0)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,i=!t.range&&e.range,o=t.range&&e.range&&!t.range.isEqual(e.range);if(n||i||o)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)),i=this._elementSnapshots.get(t),o=aa(t.getChildren()),r=ca(i.length,n);let s=0,a=0;for(const n of r)if("i"===n)e.push(this._getInsertDiff(t,s,o[s])),s++;else if("r"===n)e.push(this._getRemoveDiff(t,s,i[a])),a++;else if("a"===n){const n=o[s].attributes,r=i[a].attributes;let c;if("$text"==o[s].name)c=new ir($o._createAt(t,s),$o._createAt(t,s+1));else{const e=t.offsetToIndex(s);c=new ir($o._createAt(t,s),$o._createAt(t.getChild(e),0))}e.push(...this._getAttributesDiff(c,r,n)),s++,a++}else s++,a++}e.sort(((t,e)=>t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1));for(let t=1,n=0;t<e.length;t++){const i=e[n],o=e[t],r="remove"==i.type&&"remove"==o.type&&"$text"==i.name&&"$text"==o.name&&i.position.isEqual(o.position),s="insert"==i.type&&"insert"==o.type&&"$text"==i.name&&"$text"==o.name&&i.position.parent==o.position.parent&&i.position.offset+i.length==o.position.offset,a="attribute"==i.type&&"attribute"==o.type&&i.position.parent==o.position.parent&&i.range.isFlat&&o.range.isFlat&&i.position.offset+i.length==o.position.offset&&i.attributeKey==o.attributeKey&&i.attributeOldValue==o.attributeOldValue&&i.attributeNewValue==o.attributeNewValue;r||s||a?(i.length++,a&&(i.range.end=i.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(la),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._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_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,i){const o=this._changedRoots.get(t)||{name:t},r=o.attributes||{};if(r[e]){const t=r[e];i===t.oldValue?delete r[e]:t.newValue=i}else r[e]={oldValue:n,newValue:i};0===Object.entries(r).length?(delete o.attributes,void 0===o.state&&this._changedRoots.delete(t)):(o.attributes=r,this._changedRoots.set(t,o))}_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);const e=ir._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)}}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),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._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let t=0;t<n.length;t++)n[t].howMany<1&&(n.splice(t,1),t--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,aa(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const i=t.offset+t.howMany,o=n.offset+n.howMany;if("insert"==t.type&&("insert"==n.type&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<o&&(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<o){const o=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:i,howMany:o-n.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==n.type)if(i<=n.offset)n.offset-=t.howMany;else if(i<=o)if(t.offset<n.offset){const e=i-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<o){const e=o-t.offset;n.howMany-=e,t.nodesToHandle-=e}if("remove"==n.type&&(i<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(i<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const e=i-n.offset;n.offset=t.offset,n.howMany-=e}else if(t.offset<o)if(i<=o){const i=n.howMany;n.howMany=t.offset-n.offset;const o=i-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:o,count:this._changeCount++})}else n.howMany-=o-t.offset}if("attribute"==t.type){if("insert"==n.type)if(t.offset<n.offset&&i>n.offset){if(i>o){const t={type:"attribute",offset:o,howMany:i-o,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<o&&(i>o?(t.nodesToHandle=i-o,t.offset=o):t.nodesToHandle=0);if("remove"==n.type&&t.offset<n.offset&&i>n.offset){const o={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(o,e),e.push(o),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&i<=o?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&i>=o&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:$o._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:$o._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const i=[];n=new Map(n);for(const[o,r]of e){const e=n.has(o)?n.get(o):null;e!==r&&i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:o,attributeOldValue:r,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(o)}for(const[e,o]of n)i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:e,attributeOldValue:null,attributeNewValue:o,changeCount:this._changeCount++});return i}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),i=t.startOffset;if(n)for(const t of n)if("insert"==t.type&&i>=t.offset&&i<t.offset+t.howMany)return!0;return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const i=new ir($o._createAt(t,e),$o._createAt(t,e+n));for(const t of i.getItems({shallow:!0}))t.is("element")&&(this._elementSnapshots.delete(t),this._changesInElement.delete(t),this._removeAllNestedChanges(t,0,t.maxOffset))}}function aa(t){const e=[];for(const n of t)if(n.is("$text"))for(let t=0;t<n.data.length;t++)e.push({name:"$text",attributes:new Map(n.getAttributes())});else e.push({name:n.name,attributes:new Map(n.getAttributes())});return e}function ca(t,e){const n=[];let i=0,o=0;for(const t of e){if(t.offset>i){for(let e=0;e<t.offset-i;e++)n.push("e");o+=t.offset-i}if("insert"==t.type){for(let e=0;e<t.howMany;e++)n.push("i");i=t.offset+t.howMany}else if("remove"==t.type){for(let e=0;e<t.howMany;e++)n.push("r");i=t.offset,o+=t.howMany}else n.push(..."a".repeat(t.howMany).split("")),i=t.offset+t.howMany,o+=t.howMany}if(o<t)for(let e=0;e<t-o-i;e++)n.push("e");return n}function la(t){const e="position"in t&&"$graveyard"==t.position.root.rootName,n="range"in t&&"$graveyard"==t.range.root.rootName;return!e&&!n}class da{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._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 r.Bb("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 i=e-1;for(const[e,n]of this._gaps)t>e&&t<n&&(t=n),i>e&&i<n&&(i=e-1);if(i<n.baseVersion||t>this.lastOperation.baseVersion)return[];let o=this._baseVersionToOperationIndex.get(t);void 0===o&&(o=0);let r=this._baseVersionToOperationIndex.get(i);return void 0===r&&(r=this._operations.length-1),this._operations.slice(o,r+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 ua extends Zo{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}ua.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 ha="$graveyard";class ma extends((0,r.ln)()){constructor(t){super(),this.model=t,this.history=new da,this.selection=new Ar(this),this.roots=new r.FE({idProperty:"rootName"}),this.differ=new sa(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",ha),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,i,o)=>{const r={...e.getData(),range:i};this.differ.bufferMarkerChange(e.name,o,r),null===n&&e.on("change",((t,n)=>{const i=e.getData();this.differ.bufferMarkerChange(e.name,{...i,range:n},i)}))})),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(ha)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new r.Bb("model-document-createroot-name-exists",this,{name:e});const n=new ua(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=ge(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,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}_validateSelectionRange(t){return ga(t.start)&&ga(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 ga(t){const e=t.textNode;if(e){const n=e.data,i=t.offset-e.startOffset;return!(0,r.to)(n,i)&&!(0,r.pp)(n,i)}return!0}class pa extends((0,r.ln)()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof fa?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,i=!1){const o=t instanceof fa?t.name:t;if(o.includes(","))throw new r.Bb("markercollection-incorrect-marker-name",this);const s=this._markers.get(o);if(s){const t=s.getData(),r=s.getRange();let a=!1;return r.isEqual(e)||(s._attachLiveRange(xr.fromRange(e)),a=!0),n!=s.managedUsingOperations&&(s._managedUsingOperations=n,a=!0),"boolean"==typeof i&&i!=s.affectsData&&(s._affectsData=i,a=!0),a&&this.fire(`update:${o}`,s,r,e,t),s}const a=xr.fromRange(e),c=new fa(o,a,n,i);return this._markers.set(o,c),this.fire(`update:${o}`,c,null,e,{...c.getData(),range:null}),c}_remove(t){const e=t instanceof fa?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 fa?t.name:t,n=this._markers.get(e);if(!n)throw new r.Bb("markercollection-refresh-marker-not-exists",this);const i=n.getRange();this.fire(`update:${e}`,n,i,i,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 fa extends((0,r.ln)(Ho)){constructor(t,e,n,i){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=i}get managedUsingOperations(){if(!this._liveRange)throw new r.Bb("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new r.Bb("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new r.Bb("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new r.Bb("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new r.Bb("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}}fa.prototype.is=function(t){return"marker"===t||"model:marker"===t};class xa extends Cs{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 r.Bb("detach-operation-on-document-node",this)}_execute(){Es(ir._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class ba extends Ho{constructor(t){super(),this.markers=new Map,this._children=new qo,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(Zo.fromJSON(n)):e.push(Wo.fromJSON(n));return new ba(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Wo(t)];(0,r.TW)(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Wo(t):t instanceof Ko?new Wo(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}}ba.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t};class ka{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new Wo(t,e)}createElement(t,e){return new Zo(t,e)}createDocumentFragment(){return new ba}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof Wo&&""==t.data)return;const i=$o._createAt(e,n);if(t.parent){if(Ca(t.root,i.root))return void this.move(ir._createOn(t),i);if(t.root.document)throw new r.Bb("model-writer-insert-forbidden-move",this);this.remove(t)}const o=i.root.document?i.root.document.version:null,s=new Os(i,t,o);if(t instanceof Wo&&(s.shouldReceiveAttributes=!0),this.batch.addOperation(s),this.model.applyOperation(s),t instanceof ba)for(const[e,n]of t.markers){const t=$o._createAt(n.root,0),o={range:new ir(n.start._getCombined(t,i),n.end._getCombined(t,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(e)?this.updateMarker(e,o):this.addMarker(e,o)}}insertText(t,e,n,i){e instanceof ba||e instanceof Zo||e instanceof $o?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}insertElement(t,e,n,i){e instanceof ba||e instanceof Zo||e instanceof $o?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,i)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof ba||e instanceof Zo?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof ba||e instanceof Zo?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof ir){const i=n.getMinimalFlatRanges();for(const n of i)wa(this,t,e,n)}else Aa(this,t,e,n)}setAttributes(t,e){for(const[n,i]of(0,r.qL)(t))this.setAttribute(n,i,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof ir){const n=e.getMinimalFlatRanges();for(const e of n)wa(this,t,null,e)}else Aa(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=t=>{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof ir)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof ir))throw new r.Bb("writer-move-invalid-range",this);if(!t.isFlat)throw new r.Bb("writer-move-range-not-flat",this);const i=$o._createAt(e,n);if(i.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!Ca(t.root,i.root))throw new r.Bb("writer-move-different-document",this);const o=t.root.document?t.root.document.version:null,s=new Bs(t.start,t.end.offset-t.start.offset,i,o);this.batch.addOperation(s),this.model.applyOperation(s)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof ir?t:ir._createOn(t)).getMinimalFlatRanges().reverse();for(const t of e)this._addOperationForAffectedMarkers("move",t),va(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 Zo))throw new r.Bb("writer-merge-no-element-before",this);if(!(n instanceof Zo))throw new r.Bb("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(ir._createIn(n),$o._createAt(e,"end")),this.remove(n)}_merge(t){const e=$o._createAt(t.nodeBefore,"end"),n=$o._createAt(t.nodeAfter,0),i=t.root.document.graveyard,o=new $o(i,[0]),r=t.root.document.version,s=new Ps(n,t.nodeAfter.maxOffset,e,o,r);this.batch.addOperation(s),this.model.applyOperation(s)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof Zo))throw new r.Bb("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,i=new Vs($o._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(t,e){this._assertWriterUsedCorrectly();let n,i,o=t.parent;if(!o.parent)throw new r.Bb("writer-split-element-no-parent",this);if(e||(e=o.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new r.Bb("writer-split-invalid-limit-element",this);do{const e=o.root.document?o.root.document.version:null,r=o.maxOffset-t.offset,s=Ns.getInsertionPosition(t),a=new Ns(t,r,s,null,e);this.batch.addOperation(a),this.model.applyOperation(a),n||i||(n=o,i=t.parent.nextSibling),o=(t=this.createPositionAfter(t.parent)).parent}while(o!==e);return{position:t,range:new ir($o._createAt(n,"end"),$o._createAt(i,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new r.Bb("writer-wrap-range-not-flat",this);const n=e instanceof Zo?e:new Zo(e);if(n.childCount>0)throw new r.Bb("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new r.Bb("writer-wrap-element-attached",this);this.insert(n,t.start);const i=new ir(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,$o._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new r.Bb("writer-unwrap-element-no-parent",this);this.move(ir._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new r.Bb("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,i=e.range,o=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new r.Bb("writer-addmarker-marker-exists",this);if(!i)throw new r.Bb("writer-addmarker-no-range",this);return n?(_a(this,t,null,i,o),this.model.markers.get(t)):this.model.markers._set(t,i,n,o)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,i=this.model.markers.get(n);if(!i)throw new r.Bb("writer-updatemarker-marker-not-exists",this);if(!e)return(0,r.KE)("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(i);const o="boolean"==typeof e.usingOperation,s="boolean"==typeof e.affectsData,a=s?e.affectsData:i.affectsData;if(!o&&!e.range&&!s)throw new r.Bb("writer-updatemarker-wrong-options",this);const c=i.getRange(),l=e.range?e.range:c;o&&e.usingOperation!==i.managedUsingOperations?e.usingOperation?_a(this,n,null,l,a):(_a(this,n,c,null,a),this.model.markers._set(n,l,void 0,a)):i.managedUsingOperations?_a(this,n,c,l,a):this.model.markers._set(n,l,void 0,a)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new r.Bb("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);_a(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 r.Bb("writer-addroot-root-exists",this);const i=this.model.document,o=new Us(t,e,!0,i,i.version);return this.batch.addOperation(o),this.model.applyOperation(o),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 r.Bb("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,i=new Us(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(i),this.model.applyOperation(i)}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(0,r.qL)(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 i=Ar._getStoreAttributeKey(t);this.setAttribute(i,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=Ar._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new r.Bb("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const i=n.getRange();let o=!1;if("move"===t){const t=e;o=t.containsPosition(i.start)||t.start.isEqual(i.start)||t.containsPosition(i.end)||t.end.isEqual(i.end)}else{const t=e,n=t.nodeBefore,r=t.nodeAfter,s=i.start.parent==n&&i.start.isAtEnd,a=i.end.parent==r&&0==i.end.offset,c=i.end.nodeAfter==r,l=i.start.nodeAfter==r;o=s||a||c||l}o&&this.updateMarker(n.name,{range:i})}}}function wa(t,e,n,i){const o=t.model,r=o.document;let s,a,c,l=i.start;for(const t of i.getWalker({shallow:!0}))c=t.item.getAttribute(e),s&&a!=c&&(a!=n&&d(),l=s),s=t.nextPosition,a=c;function d(){const i=new ir(l,s),c=i.root.document?r.version:null,d=new js(i,e,a,n,c);t.batch.addOperation(d),o.applyOperation(d)}s instanceof $o&&s!=l&&a!=n&&d()}function Aa(t,e,n,i){const o=t.model,r=o.document,s=i.getAttribute(e);let a,c;if(s!=n){if(i.root===i){const t=i.document?r.version:null;c=new Fs(i,e,s,n,t)}else{a=new ir($o._createBefore(i),t.createPositionAfter(i));const o=a.root.document?r.version:null;c=new js(a,e,s,n,o)}t.batch.addOperation(c),o.applyOperation(c)}}function _a(t,e,n,i,o){const r=t.model,s=r.document,a=new Rs(e,n,i,r.markers,!!o,s.version);t.batch.addOperation(a),r.applyOperation(a)}function va(t,e,n,i){let o;if(t.root.document){const n=i.document,r=new $o(n.graveyard,[0]);o=new Bs(t,e,r,n.version)}else o=new xa(t,e);n.addOperation(o),i.applyOperation(o)}function Ca(t,e){return t===e||t instanceof ua&&e instanceof ua}function ya(t,e,n={}){if(e.isCollapsed)return;const i=e.getFirstRange();if("$graveyard"==i.root.rootName)return;const o=t.schema;t.change((t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const i=e.getFirstRange();if(i.start.parent==i.end.parent)return!1;return t.checkChild(n,"paragraph")}(o,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Ta(t,t.createPositionAt(n,0),e)}(t,e);const r={};if(!n.doNotAutoparagraph){const t=e.getSelectedElement();t&&Object.assign(r,o.getAttributesWithProperty(t,"copyOnReplace",!0))}const[s,a]=function(t){const e=t.root.document.model,n=t.start;let i=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){const n=function(t){const e=t.parent,n=e.root.document.model.schema,i=e.getAncestors({parentFirst:!0,includeSelf:!0});for(const t of i){if(n.isLimit(t))return null;if(n.isBlock(t))return t}}(i);if(n&&i.isTouching(e.createPositionAt(n,0))){const n=e.createSelection(t);e.modifySelection(n,{direction:"backward"});const o=n.getLastPosition(),r=e.createRange(o,i);e.hasContent(r,{ignoreMarkers:!0})||(i=o)}}return[na.fromPosition(n,"toPrevious"),na.fromPosition(i,"toNext")]}(i);s.isTouching(a)||t.remove(t.createRange(s,a)),n.leaveUnmerged||(!function(t,e,n){const i=t.model;if(!Sa(t.model.schema,e,n))return;const[o,r]=function(t,e){const n=t.getAncestors(),i=e.getAncestors();let o=0;for(;n[o]&&n[o]==i[o];)o++;return[n[o],i[o]]}(e,n);if(!o||!r)return;!i.hasContent(o,{ignoreMarkers:!0})&&i.hasContent(r,{ignoreMarkers:!0})?Ia(t,e,n,o.parent):Ea(t,e,n,o.parent)}(t,s,a),o.removeDisallowedAttributes(s.parent.getChildren(),t)),Da(t,e,s),!n.doNotAutoparagraph&&function(t,e){const n=t.checkChild(e,"$text"),i=t.checkChild(e,"paragraph");return!n&&i}(o,s)&&Ta(t,s,e,r),s.detach(),a.detach()}))}function Ea(t,e,n,i){const o=e.parent,r=n.parent;if(o!=i&&r!=i){for(e=t.createPositionAfter(o),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(r,e),t.merge(e);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}Sa(t.model.schema,e,n)&&Ea(t,e,n,i)}}function Ia(t,e,n,i){const o=e.parent,r=n.parent;if(o!=i&&r!=i){for(e=t.createPositionAfter(o),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(o,n);e.parent.isEmpty;){const n=e.parent;e=t.createPositionBefore(n),t.remove(n)}n=t.createPositionBefore(r),function(t,e){const n=e.nodeBefore,i=e.nodeAfter;n.name!=i.name&&t.rename(n,i.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(i.getAttributes()),n),t.merge(e)}(t,n),Sa(t.model.schema,e,n)&&Ia(t,e,n,i)}}function Sa(t,e,n){const i=e.parent,o=n.parent;return i!=o&&(!t.isLimit(i)&&!t.isLimit(o)&&function(t,e,n){const i=new ir(t,e);for(const t of i.getWalker())if(n.isLimit(t.item))return!1;return!0}(e,n,t))}function Ta(t,e,n,i={}){const o=t.createElement("paragraph");t.model.schema.setAllowedAttributes(o,i,t),t.insert(o,e),Da(t,n,t.createPositionAt(o,0))}function Da(t,e,n){e instanceof Ar?t.setSelection(n):e.setTo(n)}function Ma(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 Ba{constructor(t,e,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,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 r.Bb("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?ir._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new ir(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=na.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new r.Bb("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=na.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=na.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof Zo))return;if(!this._canMergeLeft(t))return;const e=na._createBefore(t);e.stickiness="toNext";const n=na.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=na._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=na._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 Zo))return;if(!this._canMergeRight(t))return;const e=na._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new r.Bb("insertcontent-invalid-insertion-position",this);this.position=$o._createAt(e.nodeBefore,"end");const n=na.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=na._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=na._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 Zo&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof Zo&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(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!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function Oa(t,e,n="auto"){const i=t.getSelectedElement();if(i&&e.schema.isObject(i)&&!e.schema.isInline(i))return"before"==n||"after"==n?e.createRange(e.createPositionAt(i,n)):e.createRangeOn(i);const o=(0,r.Ps)(t.getSelectedBlocks());if(!o)return e.createRange(t.focus);if(o.isEmpty)return e.createRange(e.createPositionAt(o,0));const s=e.createPositionAfter(o);return t.focus.isTouching(s)?e.createRange(s):e.createRange(e.createPositionBefore(o))}function Na(t,e,n,i={}){if(!t.schema.isObject(e))throw new r.Bb("insertobject-element-not-an-object",t,{object:e});const o=n||t.document.selection;let s=o;i.findOptimalPosition&&t.schema.isBlock(e)&&(s=t.createSelection(Oa(o,t,i.findOptimalPosition)));const a=(0,r.Ps)(o.getSelectedBlocks()),c={};return a&&Object.assign(c,t.schema.getAttributesWithProperty(a,"copyOnReplace",!0)),t.change((n=>{s.isCollapsed||t.deleteContent(s,{doNotAutoparagraph:!0});let o=e;const a=s.anchor.parent;!t.schema.checkChild(a,e)&&t.schema.checkChild(a,"paragraph")&&t.schema.checkChild("paragraph",e)&&(o=n.createElement("paragraph"),n.insert(e,o)),t.schema.setAllowedAttributes(o,c,n);const l=t.insertContent(o,s);return l.isCollapsed||i.setSelection&&function(t,e,n,i){const o=t.model;if("on"==n)return void t.setSelection(e,"on");if("after"!=n)throw new r.Bb("insertobject-invalid-place-parameter-value",o);let s=e.nextSibling;if(o.schema.isInline(e))return void t.setSelection(e,"after");const a=s&&o.schema.checkChild(s,"$text");!a&&o.schema.checkChild(e.parent,"paragraph")&&(s=t.createElement("paragraph"),o.schema.setAllowedAttributes(s,i,t),o.insertContent(s,t.createPositionAfter(e)));s&&t.setSelection(s,0)}(n,e,i.setSelection,c),l}))}const Pa=' ,.?!:;"-()';function Ra(t,e){const{isForward:n,walker:i,unit:o,schema:s,treatEmojiAsSingleUnit:a}=t,{type:c,item:l,nextPosition:d}=e;if("text"==c)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 i=t.position.offset-n.startOffset;if(za(n,i,e))n=e?t.position.nodeAfter:t.position.nodeBefore;else{if(ja(n.data,i,e))break;t.next()}}return t.position}(i,n):function(t,e,n){const i=t.position.textNode;if(i){const o=i.data;let s=t.position.offset-i.startOffset;for(;(0,r.to)(o,s)||"character"==e&&(0,r.pp)(o,s)||n&&(0,r.YK)(o,s);)t.next(),s=t.position.offset-i.startOffset}return t.position}(i,o,a);if(c==(n?"elementStart":"elementEnd")){if(s.isSelectable(l))return $o._createAt(l,n?"after":"before");if(s.checkChild(d,"$text"))return d}else{if(s.isLimit(l))return void i.skip((()=>!0));if(s.checkChild(d,"$text"))return d}}function La(t,e){const n=t.root,i=$o._createAt(n,e?"end":0);return e?new ir(t,i):new ir(i,t)}function ja(t,e,n){const i=e+(n?0:-1);return Pa.includes(t.charAt(i))}function za(t,e,n){return e===(n?t.offsetSize:0)}class Va extends((0,r.Re)()){constructor(){super(),this.markers=new pa,this.document=new ma(this),this.schema=new ns,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(((t,e)=>{if("$marker"===e.name)return!0})),Zr(this),this.document.registerPostFixer(jr),this.on("insertContent",((t,[e,n])=>{t.return=function(t,e,n){return t.change((i=>{const o=n||t.document.selection;o.isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0});const r=new Ba(t,i,o.anchor),s=[];let a;if(e.is("documentFragment")){if(e.markers.size){const t=[];for(const[n,i]of e.markers){const{start:e,end:o}=i,r=e.isEqual(o);t.push({position:e,name:n,isCollapsed:r},{position:o,name:n,isCollapsed:r})}t.sort((({position:t},{position:e})=>t.isBefore(e)?1:-1));for(const{position:n,name:o,isCollapsed:r}of t){let t=null,a=null;const c=n.parent===e&&n.isAtStart,l=n.parent===e&&n.isAtEnd;c||l?r&&(a=c?"start":"end"):(t=i.createElement("$marker"),i.insert(t,n)),s.push({name:o,element:t,collapsed:a})}}a=e.getChildren()}else a=[e];r.handleNodes(a);let c=r.getSelectionRange();if(e.is("documentFragment")&&s.length){const t=c?xr.fromRange(c):null,e={};for(let t=s.length-1;t>=0;t--){const{name:n,element:o,collapsed:a}=s[t],c=!e[n];if(c&&(e[n]=[]),o){const t=i.createPositionAt(o,"before");e[n].push(t),i.remove(o)}else{const t=r.getAffectedRange();if(!t){a&&e[n].push(r.position);continue}a?e[n].push(t[a]):e[n].push(c?t.start:t.end)}}for(const[t,[n,o]]of Object.entries(e))n&&o&&n.root===o.root&&i.addMarker(t,{usingOperation:!0,affectsData:!0,range:new ir(n,o)});t&&(c=t.toRange(),t.detach())}c&&(o instanceof Ar?i.setSelection(c):o.setTo(c));const l=r.getAffectedRange()||t.createRange(o.anchor);return r.destroy(),l}))}(this,e,n)})),this.on("insertObject",((t,[e,n,i])=>{t.return=Na(this,e,n,i)})),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 ra,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){r.Bb.rethrowUnexpectedError(t,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new ra):t instanceof ra||(t=new ra(t)):t=new ra,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){r.Bb.rethrowUnexpectedError(t,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...i){const o=Fa(e,n);return this.fire("insertContent",[t,o,n,...i])}insertObject(t,e,n,i,...o){const r=Fa(e,n);return this.fire("insertObject",[t,r,i,i,...o])}deleteContent(t,e){ya(this,t,e)}modifySelection(t,e){!function(t,e,n={}){const i=t.schema,o="backward"!=n.direction,r=n.unit?n.unit:"character",s=!!n.treatEmojiAsSingleUnit,a=e.focus,c=new Yo({boundaries:La(a,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:c,schema:i,isForward:o,unit:r,treatEmojiAsSingleUnit:s};let d;for(;d=c.next();){if(d.done)return;const n=Ra(l,d.value);if(n)return void(e instanceof Ar?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(),i=e.getFirstRange();if(!i||i.isCollapsed)return n;const o=i.start.root,r=i.start.getCommonPath(i.end),s=o.getNodeByPath(r);let a;a=i.start.parent==i.end.parent?i:t.createRange(t.createPositionAt(s,i.start.path[r.length]),t.createPositionAt(s,i.end.path[r.length]+1));const c=a.end.offset-a.start.offset;for(const e of a.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(a!=i){const e=i._getTransformedByMove(a.start,t.createPositionAt(n,0),c)[0],o=t.createRange(t.createPositionAt(n,0),e.start);Ma(t.createRange(e.end,t.createPositionAt(n,"end")),t),Ma(o,t)}return n}))}(this,t)}hasContent(t,e={}){const n=t instanceof ir?t:ir._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:i=!1,ignoreMarkers:o=!1}=e;if(!o)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(!i)return!0;if(-1!==t.data.search(/\S/))return!0}return!1}canEditAt(t){const e=Fa(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new $o(t,e,n)}createPositionAt(t,e){return $o._createAt(t,e)}createPositionAfter(t){return $o._createAfter(t)}createPositionBefore(t){return $o._createBefore(t)}createRange(t,e){return new ir(t,e)}createRangeIn(t){return ir._createIn(t)}createRangeOn(t){return ir._createOn(t)}createSelection(...t){return new dr(...t)}createBatch(t){return new ra(t)}createOperationFromJSON(t){return Gs.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 ka(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 Fa(t,e){if(t)return t instanceof dr||t instanceof Ar?t:t instanceof Go?e||0===e?new dr(t,e):t.is("rootElement")?new dr(t,"in"):new dr(t,"on"):new dr(t)}class Ua extends io{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class Ha extends io{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class Ga{constructor(t){this.document=t}createDocumentFragment(t){return new pi(this.document,t)}createElement(t,e,n){return new jn(this.document,t,e,n)}createText(t){return new fe(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 i=n.getChildIndex(t);return this.removeChildren(i,1,n),this.insertChild(i,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 jn(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){(0,be.Z)(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 Wn._createAt(t,e)}createPositionAfter(t){return Wn._createAfter(t)}createPositionBefore(t){return Wn._createBefore(t)}createRange(t,e){return new Kn(t,e)}createRangeOn(t){return Kn._createOn(t)}createRangeIn(t){return Kn._createIn(t)}createSelection(...t){return new Yn(...t)}}const qa=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Wa=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,Ka=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Za=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Ya=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Ja=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,$a=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 Qa(t){return t.startsWith("#")?qa.test(t):t.startsWith("rgb")?Wa.test(t)||Ka.test(t):t.startsWith("hsl")?Za.test(t)||Ya.test(t):$a.has(t.toLowerCase())}const Xa=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function tc(t){return Xa.includes(t)}const ec=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function nc(t){return ec.test(t)}const ic=/^[+-]?[0-9]*([.][0-9]+)?%$/;function oc(t){return ic.test(t)}const rc=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function sc(t){return rc.includes(t)}const ac=["center","top","bottom","left","right"];function cc(t){return ac.includes(t)}const lc=["fixed","scroll","local"];function dc(t){return lc.includes(t)}const uc=/^url\(/;function hc(t){return uc.test(t)}function mc(t=""){if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const e=xc(t),n=e[0],i=e[2]||n,o=e[1]||n;return{top:n,bottom:i,right:o,left:e[3]||o}}function gc(t){return e=>{const{top:n,right:i,bottom:o,left:r}=e,s=[];return[n,i,r,o].every((t=>!!t))?s.push([t,pc(e)]):(n&&s.push([t+"-top",n]),i&&s.push([t+"-right",i]),o&&s.push([t+"-bottom",o]),r&&s.push([t+"-left",r])),s}}function pc({top:t,right:e,bottom:n,left:i}){const o=[];return i!==e?o.push(t,e,n,i):n!==t?o.push(t,e,n):e!==t?o.push(t,e):o.push(t),o.join(" ")}function fc(t){return e=>({path:t,value:mc(e)})}function xc(t){const e=t.matchAll(Ja);return Array.from(e).map((t=>t[0]))}function bc(t){t.setNormalizer("background",(t=>{const e={},n=xc(t);for(const t of n)sc(t)?(e.repeat=e.repeat||[],e.repeat.push(t)):cc(t)?(e.position=e.position||[],e.position.push(t)):dc(t)?e.attachment=t:Qa(t)?e.color=t:hc(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 kc(t){t.setNormalizer("border",(t=>{const{color:e,style:n,width:i}=Ec(t);return{path:"border",value:{color:mc(e),style:mc(n),width:mc(i)}}})),t.setNormalizer("border-top",wc("top")),t.setNormalizer("border-right",wc("right")),t.setNormalizer("border-bottom",wc("bottom")),t.setNormalizer("border-left",wc("left")),t.setNormalizer("border-color",Ac("color")),t.setNormalizer("border-width",Ac("width")),t.setNormalizer("border-style",Ac("style")),t.setNormalizer("border-top-color",vc("color","top")),t.setNormalizer("border-top-style",vc("style","top")),t.setNormalizer("border-top-width",vc("width","top")),t.setNormalizer("border-right-color",vc("color","right")),t.setNormalizer("border-right-style",vc("style","right")),t.setNormalizer("border-right-width",vc("width","right")),t.setNormalizer("border-bottom-color",vc("color","bottom")),t.setNormalizer("border-bottom-style",vc("style","bottom")),t.setNormalizer("border-bottom-width",vc("width","bottom")),t.setNormalizer("border-left-color",vc("color","left")),t.setNormalizer("border-left-style",vc("style","left")),t.setNormalizer("border-left-width",vc("width","left")),t.setExtractor("border-top",Cc("top")),t.setExtractor("border-right",Cc("right")),t.setExtractor("border-bottom",Cc("bottom")),t.setExtractor("border-left",Cc("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",gc("border-color")),t.setReducer("border-style",gc("border-style")),t.setReducer("border-width",gc("border-width")),t.setReducer("border-top",Ic("top")),t.setReducer("border-right",Ic("right")),t.setReducer("border-bottom",Ic("bottom")),t.setReducer("border-left",Ic("left")),t.setReducer("border",function(){return e=>{const n=yc(e,"top"),i=yc(e,"right"),o=yc(e,"bottom"),r=yc(e,"left"),s=[n,i,o,r],a={width:t(s,"width"),style:t(s,"style"),color:t(s,"color")},c=Sc(a,"all");if(c.length)return c;const l=Object.entries(a).reduce(((t,[e,n])=>(n&&(t.push([`border-${e}`,n]),s.forEach((t=>delete t[e]))),t)),[]);return[...l,...Sc(n,"top"),...Sc(i,"right"),...Sc(o,"bottom"),...Sc(r,"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 wc(t){return e=>{const{color:n,style:i,width:o}=Ec(e),r={};return void 0!==n&&(r.color={[t]:n}),void 0!==i&&(r.style={[t]:i}),void 0!==o&&(r.width={[t]:o}),{path:"border",value:r}}}function Ac(t){return e=>({path:"border",value:_c(e,t)})}function _c(t,e){return{[e]:mc(t)}}function vc(t,e){return n=>({path:"border",value:{[t]:{[e]:n}}})}function Cc(t){return(e,n)=>{if(n.border)return yc(n.border,t)}}function yc(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 Ec(t){const e={},n=xc(t);for(const t of n)nc(t)||/thin|medium|thick/.test(t)?e.width=t:tc(t)?e.style=t:e.color=t;return e}function Ic(t){return e=>Sc(e,t)}function Sc(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 i=n.map((e=>t[e])).join(" ");return["all"==e?["border",i]:[`border-${e}`,i]]}return"all"==e?[]:n.map((n=>[`border-${e}-${n}`,t[n]]))}function Tc(t){t.setNormalizer("margin",fc("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",gc("margin")),t.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function Dc(t){t.setNormalizer("padding",fc("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",gc("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}class Mc{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 r.Bb("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class Bc extends r.VD{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=(e,n)=>{this.editor.execute(t),n()}}super.set(t,e,n)}}class Oc extends((0,r.Re)()){constructor(t={}){super();const e=this.constructor,n=t.language||e.defaultConfig&&e.defaultConfig.language;this._context=t.context||new ee({language:n}),this._context._addEditor(this,!t.context);const i=Array.from(e.builtinPlugins||[]);this.config=new r.De(t,e.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new te(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new Mc,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Va,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const o=new Pn;this.data=new ws(this.model,o),this.editing=new Qr(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new As([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 Bc(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new r.Bb("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new r.Bb("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 r.Bb("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))}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],i=t.get("extraPlugins")||[],o=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(i),n,o)}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){r.Bb.rethrowUnexpectedError(t,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function Nc(t){if(!(0,ln.Z)(t.updateSourceElement))throw new r.Bb("attachtoform-missing-elementapi-interface",t);const e=t.sourceElement;if(function(t){return!!t&&"textarea"===t.tagName.toLowerCase()}(e)&&e.form){let n;const i=e.form,o=()=>t.updateSourceElement();(0,ln.Z)(i.submit)&&(n=i.submit,i.submit=()=>{o(),n.apply(i)}),i.addEventListener("submit",o),t.on("destroy",(()=>{i.removeEventListener("submit",o),n&&(i.submit=n)}))}}function Pc(t){return class extends t{setData(t){this.data.set(t)}getData(t){return this.data.get(t)}}}{const t=Pc(Object);Pc.setData=t.prototype.setData,Pc.getData=t.prototype.getData}function Rc(t){return class extends t{updateSourceElement(t){if(!this.sourceElement)throw new r.Bb("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void(0,r.jS)(this.sourceElement,"");const i="string"==typeof t?t:this.data.get();(0,r.jS)(this.sourceElement,i)}}}function Lc(t,e){if(e.ckeditorInstance)throw new r.Bb("editor-source-element-already-used",t);e.ckeditorInstance=t,t.once("destroy",(()=>{delete e.ckeditorInstance}))}Rc.updateSourceElement=Rc(Object).prototype.updateSourceElement;class jc extends ne{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new r.FE({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new r.Bb("pendingactions-add-invalid-message",this);const e=new((0,r.Re)());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 zc='<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>',Vc='<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>',Fc='<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>',Uc={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:zc,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:Vc,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>',eraser:Fc,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.1v12.862c0 .64-.532 1.038-1.184 1.038H2.184C1.532 16 1 15.603 1 14.962V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.129 2.129 0 0 1 .157-2.364 2.133 2.133 0 1 1-.157 2.363Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.2 1C.536 1 0 1.47 0 2.1v12.863C0 15.603.547 16 1.199 16h6.3c.908-1.19 1.892-2.41 2.8-3.6L6.615 9.15a.694.694 0 0 0-.957-.033L1.5 13.5v-11h15v6c.6.6 1.012.857 1.5 1.5V2.1c0-.63-.55-1.1-1.201-1.1h-15.6Zm11.724 2.805a2.133 2.133 0 0 0-.998.283 2.129 2.129 0 0 0-.992 1.295c-.074.27-.095.55-.057.828a2.136 2.136 0 0 0 1.56 1.783 2.13 2.13 0 0 0 2.612-1.506 2.129 2.129 0 0 0-2.125-2.683Z"/><path d="M15.208 19.011c.436 0 .79-.327.79-.763v-5.4l2.059 2.455a.79.79 0 0 0 1.212-1.015l-3.352-3.995a.79.79 0 0 0-.996-.179.786.786 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017L14.5 12.9v5.3c0 .437.272.811.709.811Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.54 1 0 1.47 0 2.1v12.86c0 .64.448 1.029 1.1 1.039h6.4v-6l-.885-.85a.692.692 0 0 0-.955-.033L1.5 13.5v-11h15V10H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.129 2.129 0 0 0-1.621.832A2.125 2.125 0 0 0 11.146 7a2.13 2.13 0 0 0 3.905-.512 2.135 2.135 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.367-.44Z"/><path clip-rule="evenodd" d="M19.5 12.5v6.156c0 .224-.192.439-.35.597a.844.844 0 0 1-.597.247H9.834a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.532c.223 0 .476.049.634.207l1 .793h4.5c.224 0 .491.214.65.372.158.158.35.404.35.628ZM18 13h-4.5l-1-1h-2v6H18v-5Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_355_284)"><path d="M1.201 1C.54 1 0 1.47 0 2.1v12.863C0 15.603.548 16 1.2 16H8c.022-1.034.222-1.961.783-2.9L9.5 12 6.617 9.15a.694.694 0 0 0-.957-.033L1.5 13.5v-11h15v5.8c.58.188 1.012.43 1.5.8v-7c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.133 2.133 0 0 0-.996.283 2.131 2.131 0 0 0-.994 1.295 2.136 2.136 0 0 0 1.506 2.611 2.13 2.13 0 0 0 2.61-1.505 2.128 2.128 0 0 0-2.126-2.684Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.649.649 0 0 0-.096.493.665.665 0 0 0 .278.417.7.7 0 0 0 .944-.233 1.741 1.741 0 0 1 2.478-.464 1.869 1.869 0 0 1 .476 2.55.634.634 0 0 0-.071.5.648.648 0 0 0 .309.397.628.628 0 0 0 .869-.19l.027-.042a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.781-.044.065a3.228 3.228 0 0 0 .82 4.404 3.005 3.005 0 0 0 4.275-.799l.13-.196a.626.626 0 0 0 .092-.475.642.642 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.028a1.742 1.742 0 0 1-2.477.462 1.87 1.87 0 0 1-.476-2.551l.03-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.407l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.837-.19-1.067-.346-.229-.82-.123-1.059.237l-1.268 1.907c-.239.36-.153.837.192 1.066.345.23.818.124 1.057-.236l1.268-1.907Z"/></g><defs><clipPath id="clip0_355_284"><rect width="20" height="20"/></clipPath></defs></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>\n',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M.91 10.488A.909.909 0 0 0 0 11.4v6.877c0 .505.405.91.91.91h18.178a.909.909 0 0 0 .912-.91V11.4a.91.91 0 0 0-.912-.912H.91Zm2.758 1.5h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516l2.152-5.7Zm4.947 0h1.801v4.3h2.7v1.4h-4.5v-5.7Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9v-1.4Zm-8.517 1.457-.614 2.059h1.262l-.648-2.06Z"/><path d="M3.035 0C2.446 0 2 .54 2 1.098V9.5h1.5v-8h13v8H18V1.098C18 .539 17.48 0 16.9 0H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.894 1.894 0 0 0-.376 1.396 1.89 1.89 0 0 0 1.387 1.58c.485.13 1.004.063 1.439-.187a1.887 1.887 0 0 0-1.008-3.526ZM7.463 7.163a.611.611 0 0 0-.432.154L5.071 9.5h5.119L7.88 7.348a.627.627 0 0 0-.417-.184Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 9.5h2.969l-.92-1.113a.617.617 0 0 0-.42-.164Z"/></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>',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>',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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',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>'};var Hc=__webpack_require__(5571),Gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Hc.Z,Gc);Hc.Z.locals;const{threeVerticalDots:qc}=Uc,Wc={alignLeft:Uc.alignLeft,bold:Uc.bold,importExport:Uc.importExport,paragraph:Uc.paragraph,plus:Uc.plus,text:Uc.text,threeVerticalDots:Uc.threeVerticalDots,pilcrow:Uc.pilcrow,dragIndicator:Uc.dragIndicator};class Kc extends u{constructor(t,e){super(t);const n=this.bindTemplate,i=this.t;this.options=e||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new r.Rh,this.keystrokes=new r.VD,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Zc(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const o="rtl"===t.uiLanguageDirection;this._focusCycler=new Gt({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[o?"arrowright":"arrowleft","arrowup"],focusNext:[o?"arrowleft":"arrowright","arrowdown"]}});const s=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var a;this.options.shouldGroupWhenFull&&this.options.isFloating&&s.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(a=this,a.bindTemplate.to((t=>{t.target===a.element&&t.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Jc(this):new Yc(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 i=Zt(t),o=n||i.removeItems;return this._cleanItemsConfiguration(i.items,e,o).map((t=>(0,m.Z)(t)?this._createNestedToolbarDropdown(t,e,o):"|"===t?new Wt:"-"===t?new Kt:e.create(t))).filter((t=>!!t))}_cleanItemsConfiguration(t,e,n){const i=t.filter(((t,i,o)=>"|"===t||-1===n.indexOf(t)&&("-"===t?!this.options.shouldGroupWhenFull||((0,r.KE)("toolbarview-line-break-ignored-when-grouping-items",o),!1):!(!(0,m.Z)(t)&&!e.has(t))||((0,r.KE)("toolbarview-item-unavailable",{item:t}),!1))));return this._cleanSeparatorsAndLineBreaks(i)}_cleanSeparatorsAndLineBreaks(t){const e=t=>"-"!==t&&"|"!==t,n=t.length,i=t.findIndex(e);if(-1===i)return[];const o=n-t.slice().reverse().findIndex(e);return t.slice(i,o).filter(((t,n,i)=>{if(e(t))return!0;return!(n>0&&i[n-1]===t)}))}_createNestedToolbarDropdown(t,e,n){let{label:i,icon:o,items:s,tooltip:a=!0,withText:c=!1}=t;if(s=this._cleanItemsConfiguration(s,e,n),!s.length)return null;const l=dl(this.locale);return i||(0,r.KE)("toolbarview-nested-toolbar-dropdown-missing-label",t),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:i,tooltip:a,withText:!!c}),!1!==o?l.buttonView.icon=Wc[o]||o||qc:l.buttonView.withText=!0,ul(l,(()=>l.toolbarView._buildItemsFromConfig(s,e,n))),l}}class Zc extends u{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Yc{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((t=>t)),t.focusables.bindTo(t.items).using((t=>t)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Jc{constructor(t){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,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._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.bind(this)),t.items.on("change",((t,e)=>{const n=e.index,i=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+i.length;t++){const e=i[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(!(0,r.pn)(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 r.UL(t.lastChild),i=new r.UL(t);if(!this.cachedPadding){const n=r.global.window.getComputedStyle(t),i="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[i])}return"ltr"===e?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}_enableGroupingOnResize(){let t;this.resizeObserver=new r.do(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 Wt),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=dl(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",ul(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:qc}),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class $c extends u{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 Qc extends u{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Xc extends u{constructor(t,e=new Ct){super(t);const n=this.bindTemplate,i=new nl(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,i]),i.set({role:"group",ariaLabelledBy:e.id}),i.focusTracker.destroy(),i.keystrokes.destroy(),this.items=i.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 Qc)));t&&t.focus()}}}var tl=__webpack_require__(5869),el={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(tl.Z,el);tl.Z.locals;class nl extends u{constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new s,this.items=this.createCollection(),this.focusTracker=new r.Rh,this.keystrokes=new r.VD,this._focusCycler=new Gt({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 Xc?this._registerFocusableItemsGroup(t):t instanceof $c&&this._registerFocusableListItem(t);this.items.on("change",((t,e)=>{for(const t of e.removed)t instanceof Xc?this._deregisterFocusableItemsGroup(t):this._deregisterFocusableListItem(t);for(const t of Array.from(e.added).reverse())t instanceof Xc?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 i=void 0!==e?e+n:void 0;this._registerFocusableListItem(t,i)}));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 il=__webpack_require__(66),ol={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(il.Z,ol);il.Z.locals;class rl extends u{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 r.VD,this.focusTracker=new r.Rh,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 U;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 U,e=t.bindTemplate;return t.icon=Ut,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 sl=__webpack_require__(5075),al={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(sl.Z,al);sl.Z.locals;var cl=__webpack_require__(6875),ll={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(cl.Z,ll);cl.Z.locals;function dl(t,n=Ht){const i="function"==typeof n?new n(t):n,o=new jt(t),s=new Ft(t,i,o);return i.bind("isEnabled").to(s),i instanceof rl?i.arrowView.bind("isOn").to(s,"isOpen"):i.bind("isOn").to(s,"isOpen"),function(t){(function(t){t.on("render",(()=>{e({emitter:t,activator:()=>t.isOpen,callback:()=>{t.isOpen=!1},contextElements:()=>[t.element,...t.focusTracker._elements]})}))})(t),function(t){t.on("execute",(e=>{e.source instanceof q||(t.isOpen=!1)}))}(t),function(t){t.focusTracker.on("change:isFocused",((e,n,i)=>{t.isOpen&&!i&&(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,i)=>{if(i)return;const o=t.panelView.element;o&&o.contains(r.global.document.activeElement)&&t.buttonView.focus()}))}(t),function(t){t.on("change:isOpen",((e,n,i)=>{i&&t.panelView.focus()}),{priority:"low"})}(t)}(s),s}function ul(t,e,n={}){t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.isOpen?hl(t,e,n):t.once("change:isOpen",(()=>hl(t,e,n)),{priority:"highest"}),n.enableActiveItemFocusOnDropdownOpen&&pl(t,(()=>t.toolbarView.items.find((t=>t.isOn))))}function hl(t,e,n){const i=t.locale,o=i.t,r=t.toolbarView=new Kc(i),a="function"==typeof e?e():e;r.ariaLabel=n.ariaLabel||o("Dropdown toolbar"),n.maxWidth&&(r.maxWidth=n.maxWidth),n.class&&(r.class=n.class),n.isCompact&&(r.isCompact=n.isCompact),n.isVertical&&(r.isVertical=!0),a instanceof s?r.items.bindTo(a).using((t=>t)):r.items.addMany(a),t.panelView.children.add(r),r.items.delegate("execute").to(t)}function ml(t,e,n={}){t.isOpen?gl(t,e,n):t.once("change:isOpen",(()=>gl(t,e,n)),{priority:"highest"}),pl(t,(()=>t.listView.items.find((t=>t instanceof $c&&t.children.first.isOn))))}function gl(t,e,n){const i=t.locale,o=t.listView=new nl(i),r="function"==typeof e?e():e;o.ariaLabel=n.ariaLabel,o.role=n.role,fl(t,o.items,r,i),t.panelView.children.add(o),o.items.delegate("execute").to(t)}function pl(t,e){t.on("change:isOpen",(()=>{if(!t.isOpen)return;const n=e();n&&("function"==typeof n.focus?n.focus():(0,r.KE)("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}),{priority:r.tA.low-10})}function fl(t,e,n,i){e.bindTo(n).using((e=>{if("separator"===e.type)return new Qc(i);if("group"===e.type){const n=new Xc(i);return n.set({label:e.label}),fl(t,n.items,e.items,i),n.items.delegate("execute").to(t),n}if("button"===e.type||"switchbutton"===e.type){const t=new $c(i);let n;return"button"===e.type?(n=new U(i),n.extendTemplate({attributes:{"aria-checked":n.bindTemplate.to("isOn")}})):n=new q(i),n.bind(...Object.keys(e.model)).to(e.model),n.delegate("execute").to(t),t.children.add(n),t}return null}))}const xl=(t,e,n)=>{const i=new Bt(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),i.bind("hasError").to(t,"errorText",(t=>!!t)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i},bl=(t,e,n)=>{const i=new Ot(t.locale);return i.set({id:e,ariaDescribedById:n,inputMode:"numeric"}),i.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),i.bind("hasError").to(t,"errorText",(t=>!!t)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i},kl=(t,e,n)=>{const i=new Rt(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),i.bind("hasError").to(t,"errorText",(t=>!!t)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i},wl=(t,e,n)=>{const i=dl(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isEnabled").to(t),i},Al=(t,e=0,n=1)=>t>n?n:t<e?e:t,_l=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,vl=(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?_l(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?_l(parseInt(t.substring(6,8),16)/255,2):1})),Cl=({h:t,s:e,v:n,a:i})=>{const o=(200-e)*n/100;return{h:_l(t),s:_l(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:_l(o/2),a:_l(i,2)}},yl=t=>{const{h:e,s:n,l:i}=Cl(t);return`hsl(${e}, ${n}%, ${i}%)`},El=({h:t,s:e,v:n,a:i})=>{t=t/360*6,e/=100,n/=100;const o=Math.floor(t),r=n*(1-e),s=n*(1-(t-o)*e),a=n*(1-(1-t+o)*e),c=o%6;return{r:_l(255*[n,s,r,r,a,n][c]),g:_l(255*[a,n,n,s,r,r][c]),b:_l(255*[r,r,a,n,n,s][c]),a:_l(i,2)}},Il=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},Sl=({r:t,g:e,b:n,a:i})=>{const o=i<1?Il(_l(255*i)):"";return"#"+Il(t)+Il(e)+Il(n)+o},Tl=({r:t,g:e,b:n,a:i})=>{const o=Math.max(t,e,n),r=o-Math.min(t,e,n),s=r?o===t?(e-n)/r:o===e?2+(n-t)/r:4+(t-e)/r:0;return{h:_l(60*(s<0?s+6:s)),s:_l(o?r/o*100:0),v:_l(o/255*100),a:i}},Dl=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},Ml={},Bl=t=>{let e=Ml[t];return e||(e=document.createElement("template"),e.innerHTML=t,Ml[t]=e),e},Ol=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Nl=!1;const Pl=t=>"touches"in t,Rl=(t,e)=>{const n=Pl(e)?e.touches[0]:e,i=t.el.getBoundingClientRect();Ol(t.el,"move",t.getMove({x:Al((n.pageX-(i.left+window.pageXOffset))/i.width),y:Al((n.pageY-(i.top+window.pageYOffset))/i.height)}))};class Ll{constructor(t,e,n,i){const o=Bl(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(o.content.cloneNode(!0));const r=t.querySelector(`[part=${e}]`);r.addEventListener("mousedown",this),r.addEventListener("touchstart",this),r.addEventListener("keydown",this),this.el=r,this.xy=i,this.nodes=[r.firstChild,r]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Nl?"touchmove":"mousemove",this),e(Nl?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!(t=>!(Nl&&!Pl(t)||(Nl||(Nl=Pl(t)),0)))(t)||!Nl&&0!=t.button)return;this.el.focus(),Rl(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Rl(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(),Ol(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 jl extends Ll{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:yl({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${_l(t)}`)}getMove(t,e){return{h:e?Al(this.h+360*t.x,0,360):360*t.x}}}class zl extends Ll{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:100-t.v+"%",left:`${t.s}%`,color:yl(t)},{"background-color":yl({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${_l(t.s)}%, Brightness ${_l(t.v)}%`)}getMove(t,e){return{s:e?Al(this.hsva.s+100*t.x,0,100):100*t.x,v:e?Al(this.hsva.v-100*t.y,0,100):Math.round(100-100*t.y)}}}const Vl=Symbol("same"),Fl=Symbol("color"),Ul=Symbol("hsva"),Hl=Symbol("update"),Gl=Symbol("parts"),ql=Symbol("css"),Wl=Symbol("sliders");class Kl extends HTMLElement{static get observedAttributes(){return["color"]}get[ql](){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[Wl](){return[zl,jl]}get color(){return this[Fl]}set color(t){if(!this[Vl](t)){const e=this.colorModel.toHsva(t);this[Hl](e),this[Fl]=t}}constructor(){super();const t=Bl(`<style>${this[ql].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[Gl]=this[Wl].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 i=this.colorModel.fromAttr(n);this[Vl](i)||(this.color=i)}handleEvent(t){const e=this[Ul],n={...e,...t.detail};let i;this[Hl](n),Dl(n,e)||this[Vl](i=this.colorModel.fromHsva(n))||(this[Fl]=i,Ol(this,"color-changed",{value:i}))}[Vl](t){return this.color&&this.colorModel.equal(t,this.color)}[Hl](t){this[Ul]=t,this[Gl].forEach((e=>e.update(t)))}}const Zl={defaultColor:"#000",toHsva:t=>Tl(vl(t)),fromHsva:({h:t,s:e,v:n})=>Sl(El({h:t,s:e,v:n,a:1})),equal:(t,e)=>t.toLowerCase()===e.toLowerCase()||Dl(vl(t),vl(e)),fromAttr:t=>t};class Yl extends Kl{get colorModel(){return Zl}}customElements.define("hex-color-picker",class extends Yl{});var Jl=__webpack_require__(2191),$l={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Jl.Z,$l);Jl.Z.locals;class Ql extends u{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=At((t=>{this.set("color",t),this.fire("colorSelected",{color:this.color})}),150,{leading:!0}),this.on("set:color",((t,e,n)=>{t.return=it(n,this._config.format||"hsl")})),this.on("change:color",(()=>{this._hexColor=Xl(this.color)})),this.on("change:_hexColor",(()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),Xl(this.color)!=Xl(this._hexColor)&&(this.color=this._hexColor)}))}render(){if(super.render(),this.picker=r.global.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&&(r.OB.isGecko||r.OB.isiOS||r.OB.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 td(t)));this.slidersView=this.createCollection(),t.forEach((t=>{this.slidersView.add(t)}))}_createInputRow(){const t=new ed,e=this._createColorInput();return new nd(this.locale,[t,e])}_createColorInput(){const t=new It(this.locale,xl),{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=e.trim(),n=t.startsWith("#")?t.substring(1):t;[3,4,6,8].includes(n.length)&&/(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(n)&&this._debounceColorPickerEvent("#"+n)}})),t}}function Xl(t){let e=function(t){if(!t)return"";const e=ot(t);return e?"hex"===e.space?e.hexValue:it(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 td extends u{constructor(t){super(),this.element=t}focus(){this.element.focus()}}class ed extends u{constructor(t){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class nd extends u{constructor(t,e){super(t),this.children=this.createCollection(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}}class id extends((0,r.Re)(r.FE)){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))}}const od='<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>';class rd extends u{constructor(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:r,colorPickerLabel:s,focusTracker:a,focusables:c}){super(t);const l=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=a,this.items=this.createCollection(),this.colorDefinitions=e,this.columns=n,this.documentColors=new id,this.documentColorsCount=r,this._focusables=c,this._removeButtonLabel=i,this._colorPickerLabel=s,this._documentColorsLabel=o,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",l.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,i=this.documentColorsCount;this.documentColors.clear();for(const o of n.getRoots()){const n=t.createRangeIn(o);for(const t of n.getItems())if(t.is("$textProxy")&&t.hasAttribute(e)&&(this._addColorToDocumentColors(t.getAttribute(e)),this.documentColors.length>=i))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=g.bind(this.documentColors,this.documentColors),e=new Ct(this.locale);e.text=this._documentColorsLabel,e.extendTemplate({attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]}}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker(),this.focus()}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 U,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:od,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",(()=>{this.fire("colorPicker:show")}))}_createRemoveColorButton(){const t=new U;return t.set({withText:!0,icon:Fc,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 Q(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=g.bind(this.documentColors,this.documentColors),e=new Q(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 Y;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,i)=>{i&&(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 sd extends u{constructor(t,{focusTracker:e,focusables:n,keystrokes:i,colorPickerViewConfig:o}){super(t),this.items=this.createCollection(),this.focusTracker=e,this.keystrokes=i,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=n,this._colorPickerViewConfig=o;const r=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",r.if("isVisible","ck-hidden",(t=>!t))]},children:this.items})}render(){super.render();const t=new Ql(this.locale,{...this._colorPickerViewConfig});this.colorPickerView=t,this.colorPickerView.render(),this.selectedColor&&(t.color=this.selectedColor),this.listenTo(this,"change:selectedColor",((e,n,i)=>{t.color=i})),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()}_executeOnEnterPress(){this.keystrokes.set("enter",(t=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&(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 u,i=this.createCollection();return i.add(t),i.add(e),n.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:i}),n}_createActionButtons(){const t=this.locale,e=t.t,n=new U(t),i=new U(t);return n.set({icon:Vc,class:"ck-button-save",type:"button",withText:!1,label:e("Accept")}),i.set({icon:zc,class:"ck-button-cancel",type:"button",withText:!1,label:e("Cancel")}),n.on("execute",(()=>{this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})})),i.on("execute",(()=>{this.fire("colorPicker:cancel")})),{saveButtonView:n,cancelButtonView:i}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",((t,e)=>{this.fire("execute",{value:e.color,source:"colorPicker"}),this.set("selectedColor",e.color)}))}}var ad=__webpack_require__(4240),cd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(ad.Z,cd);ad.Z.locals;class ld extends u{constructor(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:a,colorPickerLabel:c,colorPickerViewConfig:l}){super(t),this.items=this.createCollection(),this.focusTracker=new r.Rh,this.keystrokes=new r.VD,this._focusables=new s,this._colorPickerViewConfig=l,this._focusCycler=new Gt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new rd(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:a,colorPickerLabel:c,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new sd(t,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:l}),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._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 dd{constructor(t){this._components=new Map,this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(ud(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new r.Bb("componentfactory-item-missing",this,{name:t});return this._components.get(ud(t)).callback(this.editor.locale)}has(t){return this._components.has(ud(t))}}function ud(t){return String(t).toLowerCase()}var hd=__webpack_require__(3251),md=__webpack_require__(8245),gd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(md.Z,gd);md.Z.locals;const pd=(0,r.nn)("px"),fd=r.global.document.body,xd={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class bd extends u{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.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",pd),left:e.to("left",pd)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=bd.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:fd,fitInViewport:!0},t),i=bd._getOptimalPosition(n)||xd,o=parseInt(i.left),r=parseInt(i.top),s=i.name,a=i.config||{},{withArrow:c=!0}=a;this.top=r,this.left=o,this.position=s,this.withArrow=c}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=kd(t.target),n=t.limiter?kd(t.limiter):fd;this.listenTo(r.global.document,"scroll",((i,o)=>{const r=o.target,s=e&&r.contains(e),a=n&&r.contains(n);!s&&!a&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(r.global.window,"resize",(()=>{this.attachTo(t)}))}_stopPinning(){this.stopListening(r.global.document,"scroll"),this.stopListening(r.global.window,"resize")}}function kd(t){return(0,hd.Z)(t)?t:(0,r.bR)(t)?t.commonAncestorContainer:"function"==typeof t?kd(t()):null}function wd(t={}){const{sideOffset:e=bd.arrowSideOffset,heightOffset:n=bd.arrowHeightOffset,stickyVerticalOffset:i=bd.stickyVerticalOffset,config:o}=t;return{northWestArrowSouthWest:(t,n)=>({top:r(t,n),left:t.left-e,name:"arrow_sw",...o&&{config:o}}),northWestArrowSouthMiddleWest:(t,n)=>({top:r(t,n),left:t.left-.25*n.width-e,name:"arrow_smw",...o&&{config:o}}),northWestArrowSouth:(t,e)=>({top:r(t,e),left:t.left-e.width/2,name:"arrow_s",...o&&{config:o}}),northWestArrowSouthMiddleEast:(t,n)=>({top:r(t,n),left:t.left-.75*n.width+e,name:"arrow_sme",...o&&{config:o}}),northWestArrowSouthEast:(t,n)=>({top:r(t,n),left:t.left-n.width+e,name:"arrow_se",...o&&{config:o}}),northArrowSouthWest:(t,n)=>({top:r(t,n),left:t.left+t.width/2-e,name:"arrow_sw",...o&&{config:o}}),northArrowSouthMiddleWest:(t,n)=>({top:r(t,n),left:t.left+t.width/2-.25*n.width-e,name:"arrow_smw",...o&&{config:o}}),northArrowSouth:(t,e)=>({top:r(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s",...o&&{config:o}}),northArrowSouthMiddleEast:(t,n)=>({top:r(t,n),left:t.left+t.width/2-.75*n.width+e,name:"arrow_sme",...o&&{config:o}}),northArrowSouthEast:(t,n)=>({top:r(t,n),left:t.left+t.width/2-n.width+e,name:"arrow_se",...o&&{config:o}}),northEastArrowSouthWest:(t,n)=>({top:r(t,n),left:t.right-e,name:"arrow_sw",...o&&{config:o}}),northEastArrowSouthMiddleWest:(t,n)=>({top:r(t,n),left:t.right-.25*n.width-e,name:"arrow_smw",...o&&{config:o}}),northEastArrowSouth:(t,e)=>({top:r(t,e),left:t.right-e.width/2,name:"arrow_s",...o&&{config:o}}),northEastArrowSouthMiddleEast:(t,n)=>({top:r(t,n),left:t.right-.75*n.width+e,name:"arrow_sme",...o&&{config:o}}),northEastArrowSouthEast:(t,n)=>({top:r(t,n),left:t.right-n.width+e,name:"arrow_se",...o&&{config:o}}),southWestArrowNorthWest:t=>({top:s(t),left:t.left-e,name:"arrow_nw",...o&&{config:o}}),southWestArrowNorthMiddleWest:(t,n)=>({top:s(t),left:t.left-.25*n.width-e,name:"arrow_nmw",...o&&{config:o}}),southWestArrowNorth:(t,e)=>({top:s(t),left:t.left-e.width/2,name:"arrow_n",...o&&{config:o}}),southWestArrowNorthMiddleEast:(t,n)=>({top:s(t),left:t.left-.75*n.width+e,name:"arrow_nme",...o&&{config:o}}),southWestArrowNorthEast:(t,n)=>({top:s(t),left:t.left-n.width+e,name:"arrow_ne",...o&&{config:o}}),southArrowNorthWest:t=>({top:s(t),left:t.left+t.width/2-e,name:"arrow_nw",...o&&{config:o}}),southArrowNorthMiddleWest:(t,n)=>({top:s(t),left:t.left+t.width/2-.25*n.width-e,name:"arrow_nmw",...o&&{config:o}}),southArrowNorth:(t,e)=>({top:s(t),left:t.left+t.width/2-e.width/2,name:"arrow_n",...o&&{config:o}}),southArrowNorthMiddleEast:(t,n)=>({top:s(t),left:t.left+t.width/2-.75*n.width+e,name:"arrow_nme",...o&&{config:o}}),southArrowNorthEast:(t,n)=>({top:s(t),left:t.left+t.width/2-n.width+e,name:"arrow_ne",...o&&{config:o}}),southEastArrowNorthWest:t=>({top:s(t),left:t.right-e,name:"arrow_nw",...o&&{config:o}}),southEastArrowNorthMiddleWest:(t,n)=>({top:s(t),left:t.right-.25*n.width-e,name:"arrow_nmw",...o&&{config:o}}),southEastArrowNorth:(t,e)=>({top:s(t),left:t.right-e.width/2,name:"arrow_n",...o&&{config:o}}),southEastArrowNorthMiddleEast:(t,n)=>({top:s(t),left:t.right-.75*n.width+e,name:"arrow_nme",...o&&{config:o}}),southEastArrowNorthEast:(t,n)=>({top:s(t),left:t.right-n.width+e,name:"arrow_ne",...o&&{config:o}}),westArrowEast:(t,e)=>({top:t.top+t.height/2-e.height/2,left:t.left-e.width-n,name:"arrow_e",...o&&{config:o}}),eastArrowWest:(t,e)=>({top:t.top+t.height/2-e.height/2,left:t.right+n,name:"arrow_w",...o&&{config:o}}),viewportStickyNorth:(t,e,n,r)=>{const s=r||n;return t.getIntersection(s)?s.height-t.height>i?null:{top:s.top+i,left:t.left+t.width/2-e.width/2,name:"arrowless",config:{withArrow:!1,...o}}:null}};function r(t,e){return t.top-e.height-n}function s(t){return t.bottom+n}}bd.arrowSideOffset=25,bd.arrowHeightOffset=10,bd.stickyVerticalOffset=20,bd._getOptimalPosition=r.xZ,bd.defaultPositions=wd();var Ad=__webpack_require__(9948),_d={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Ad.Z,_d);Ad.Z.locals;const vd="ck-tooltip";class Cd extends((0,r.Xu)()){constructor(t){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,Cd._editors.add(t),Cd._instance)return Cd._instance;Cd._instance=this,this.tooltipTextView=new u(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 bd(t.locale),this.balloonPanelView.class=vd,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=At(this._pinTooltip,600),this.listenTo(r.global.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(r.global.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(r.global.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(r.global.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(r.global.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;Cd._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),Cd._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Cd._instance=null)}static getPositioningFunctions(t){const e=Cd.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]}_onEnterOrFocus(t,{target:e}){const n=yd(e);var i;n&&(n!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(n,{text:(i=n).dataset.ckeTooltipText,position:i.dataset.ckeTooltipPosition||"s",cssClass:i.dataset.ckeTooltipClass||""})))}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if("mouseleave"===t.name){if(!(0,hd.Z)(e))return;if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const t=yd(e),i=yd(n);t&&t!==i&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:i}){const o=(0,r.Ps)(Cd._editors.values()).ui.view.body;o.has(this.balloonPanelView)||o.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.pin({target:t,positions:Cd.getPositioningFunctions(n)}),this._resizeObserver=new r.do(t,(()=>{(0,r.pn)(t)||this._unpinTooltip()})),this.balloonPanelView.class=[vd,i].filter((t=>t)).join(" ");for(const t of Cd._editors)this.listenTo(t.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of Cd._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){(0,r.pn)(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Cd.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}function yd(t){return(0,hd.Z)(t)?t.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Cd.defaultBalloonPositions=wd({heightOffset:5,sideOffset:13}),Cd._editors=new Set,Cd._instance=null;const Ed=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return(0,m.Z)(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),At(t,e,{leading:i,maxWait:e,trailing:o})},Id=50,Sd=350,Td="Powered by";class Dd extends((0,r.Xu)()){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Ed(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"!==(0,r.Tx)(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 bd,n=Od(t),i=new Md(t.locale,n.label);e.content.add(i),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(t,e){const n=Od(t),i="right"===n.side?function(t,e){return Bd(t,e,((t,n)=>t.left+t.width-n.width-e.horizontalOffset))}(e,n):function(t,e){return Bd(t,e,(t=>t.left+e.horizontalOffset))}(e,n);return{target:e,positions:[i]}}(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 i=Array.from(t.ui.getEditableElementsNames()).map((e=>t.ui.getEditableElement(e)));i.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=i[0]}}class Md extends u{constructor(t,e){super(t);const n=new j,i=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>\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/?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:i.to((t=>t.preventDefault()))}}]})}}function Bd(t,e,n){return(i,o)=>{const s=new r.UL(t);if(s.width<Sd||s.height<Id)return null;let a;a="inside"===e.position?s.bottom-o.height:s.bottom-o.height/2,a-=e.verticalOffset;const c=n(s,o),l=i.clone().moveTo(c,a).getIntersection(o.clone().moveTo(c,a)).getVisible();return!l||l.getArea()<o.getArea()?null:{top:a,left:c,name:`position_${e.position}-side_${e.side}`,config:{withArrow:!1}}}}function Od(t){const e=t.config.get("ui.poweredBy"),n=e&&e.position||"border";return{position:n,label:Td,verticalOffset:"inside"===n?5:0,horizontalOffset:5,side:"ltr"===t.locale.contentLanguageDirection?"right":"left",...e}}var Nd=__webpack_require__(5063),Pd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Nd.Z,Pd);Nd.Z.locals;var Rd;!function(t){t.POLITE="polite",t.ASSERTIVE="assertive"}(Rd||(Rd={}));class Ld{constructor(t){this.editor=t}announce(t,e,n=Rd.POLITE){const i=this.editor;this.view||(this.view=new jd(i.locale),i.ui.view.body.add(this.view));let o=this.view.regionViews.find((e=>e.regionName===t));o||(o=new zd(this.view.locale),this.view.regionViews.add(o)),o.set({regionName:t,text:e,politeness:n})}}class jd extends u{constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class zd extends u{constructor(t){super(t);const e=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness",Rd.POLITE),this.setTemplate({tag:"div",attributes:{role:"region","data-region":e.to("regionName"),"aria-live":e.to("politeness")},children:[{text:e.to("text")}]})}}class Vd extends((0,r.Re)()){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new dd(t),this.focusTracker=new r.Rh,this.tooltipManager=new Cd(t),this.poweredBy=new Dd(t),this.ariaLiveAnnouncer=new Ld(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{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})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const 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,e=t.editing.view;let n,i;t.keystrokes.set("Alt+F10",((t,o)=>{const r=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(r)&&!Array.from(e.domRoots.values()).includes(r)&&(n=r);const s=this._getCurrentFocusedToolbarDefinition();s&&i||(i=this._getFocusableCandidateToolbarDefinitions());for(let t=0;t<i.length;t++){const t=i.shift();if(i.push(t),t!==s&&this._focusFocusableCandidateToolbar(t)){s&&s.options.afterBlur&&s.options.afterBlur();break}}o()})),t.keystrokes.set("Esc",((e,i)=>{const o=this._getCurrentFocusedToolbarDefinition();o&&(n?(n.focus(),n=null):t.editing.view.focus(),o.options.afterBlur&&o.options.afterBlur(),i())}))}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:i}=e;((0,r.pn)(n.element)||i.beforeFocus)&&t.push(e)}return t.sort(((t,e)=>Fd(t)-Fd(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(),!!(0,r.pn)(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}}function Fd(t){const{toolbarView:e,options:n}=t;let i=10;return(0,r.pn)(e.element)&&i--,n.isContextual&&i--,i}var Ud=__webpack_require__(4547),Hd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Ud.Z,Hd);Ud.Z.locals;class Gd extends u{constructor(t){super(t),this.body=new P(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class qd extends Gd{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new Ct;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class Wd extends u{constructor(t,e,n){super(t),this.name=null,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 i=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",i)}))}t.isRenderingInProgress?function n(i){t.once("change:isRenderingInProgress",((t,o,r)=>{r?n(i):e(i)}))}(this):e(this)}}class Kd extends Wd{constructor(t,e,n,i={}){super(t,e,n);const o=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=i.label||(()=>o("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change((e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)}))}}var Zd=__webpack_require__(5523),Yd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Zd.Z,Yd);Zd.Z.locals;class Jd extends u{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 j,this.iconView.content=e.icon,this.children.add(this.iconView));const i=new u(t);i.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"]},children:[{text:n.to("label")}]}),this.children.add(i)}}class $d extends ne{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 Qd extends((0,r.Re)()){constructor(t,e){super(),e&&eo(this,e),t&&this.set(t)}}const Xd='<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>';var tu=__webpack_require__(1757),eu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(tu.Z,eu);tu.Z.locals;var nu=__webpack_require__(3553),iu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(nu.Z,iu);nu.Z.locals;const ou=(0,r.nn)("px");class ru extends Yt{static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},this.set("visibleView",null),this.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 r.Bb("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 r.Bb("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new r.Bb("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new bd(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),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 su(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 i=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[i,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 au(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:i=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class su extends u{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new r.Rh,this.buttonPrevView=this._createButtonView(e("Previous"),Xd),this.buttonNextView=this._createButtonView(e("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(t=>t?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new U(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class au extends u{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",ou),left:n.to("left",ou),width:n.to("width",ou),height:n.to("height",ou)}},children:this.content}),this.on("change:numberOfPanels",((t,e,n,i)=>{n>i?this._addPanels(n-i):this._removePanels(i-n),this.updatePosition()}))}_addPanels(t){for(;t--;){const t=new u;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:i}=new r.UL(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:i})}}}var cu=__webpack_require__(3609),lu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(cu.Z,lu);cu.Z.locals;const du=(0,r.nn)("px");class uu extends u{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new g({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",(t=>t?"block":"none")),height:e.to("isSticky",(t=>t?du(this._contentPanelRect.height):null))}}}).render(),this._contentPanel=new g({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",(t=>t?du(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:e.to("_stickyTopOffset",(t=>t?du(t):t)),bottom:e.to("_stickyBottomOffset",(t=>t?du(t):t)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(r.global.document,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const t=new r.UL(this.limiterElement);let e=t.getVisible();if(e){const t=new r.UL(r.global.window);t.top+=this.viewportTopOffset,t.height-=this.viewportTopOffset,e=e.getIntersection(t)}if(e&&t.top<e.top){const n=e.top;if(n+this._contentPanelRect.height+this.limiterBottomOffset>e.bottom){const n=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-n>t.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(n):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<t.height?this._stickToTopOfAncestors(n):this._unstick()}else this._unstick()}_stickToTopOfAncestors(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=t,this._stickyBottomOffset=null,this._marginLeft=du(-r.global.window.scrollX)}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=du(-r.global.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new r.UL(this._contentPanel)}}class hu extends It{constructor(t,e){const n=t.t,i=Object.assign({},{showResetButton:!0,showIcon:!0,creator:xl},e);super(t,i.creator),this.label=e.label,this._viewConfig=i,this._viewConfig.showIcon&&(this.iconView=new j,this.iconView.content=Uc.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new U(t),this.resetButtonView.set({label:n("Clear"),icon:Uc.cancel,class:"ck-search__reset",isVisible:!1,tooltip:!0}),this.resetButtonView.on("execute",(()=>{this.reset(),this.focus(),this.fire("reset")})),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",(t=>!t)),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class mu extends u{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",t.if("isVisible","ck-hidden",(t=>!t))],tabindex:-1},children:[{tag:"span",children:[{text:[t.to("primaryText")]}]},{tag:"span",children:[{text:[t.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class gu extends u{constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new r.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new Gt({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var pu=/[\\^$.*+?()[\]{}|]/g,fu=RegExp(pu.source);const xu=function(t){return(t=ze(t))&&fu.test(t)?t.replace(pu,"\\$&"):t};var bu=__webpack_require__(9815),ku={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(bu.Z,ku);bu.Z.locals;class wu extends u{constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new r.Rh,this.keystrokes=new r.VD,this.resultsView=new gu(t),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),e.infoView&&e.infoView.instance?this.infoView=e.infoView.instance:(this.infoView=new mu,this._enableDefaultInfoViewBehavior(),this.on("render",(()=>{this.search("")}))),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new Gt({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",((t,{resultsCount:e,totalItemsCount:n})=>{this.resultsCount=e,this.totalItemsCount=n})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",e.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=t=>t.stopPropagation();for(const t of this.focusableChildren)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(t){const e=t?new RegExp(xu(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",{query:t,...n})}_createSearchTextQueryView(){const t=new hu(this.locale,this._config.queryView);return this.listenTo(t.fieldView,"input",(()=>{this.search(t.fieldView.element.value)})),t.on("reset",(()=>this.reset())),t.bind("isEnabled").to(this),t}_enableDefaultInfoViewBehavior(){const t=this.locale.t,e=this.infoView;function n(t,{query:e,resultsCount:n,totalItemsCount:i}){return"function"==typeof t?t(e,n,i):t}this.on("search",((i,o)=>{if(o.resultsCount)e.set({isVisible:!1});else{const i=this._config.infoView&&this._config.infoView.text;let r,s;o.totalItemsCount?i&&i.notFound?(r=i.notFound.primary,s=i.notFound.secondary):(r=t("No results found"),s=""):i&&i.noSearchableItems?(r=i.noSearchableItems.primary,s=i.noSearchableItems.secondary):(r=t("No searchable items"),s=""),e.set({primaryText:n(r,o),secondaryText:n(s,o),isVisible:!0})}}))}}var Au=__webpack_require__(6168),_u={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Au.Z,_u);Au.Z.locals;class vu extends wu{constructor(t,e){super(t,e),this._config=e;const n=(0,r.nn)("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const i=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[i.if("isVisible","ck-hidden",(t=>!t)),i.to("_position",(t=>`ck-search__results_${t}`))],style:{width:i.to("_width",n)}}}),this.focusTracker.on("change:isFocused",((t,n,i)=>{this._updateResultsVisibility(),i?this.resultsView.element.scrollTop=0:e.resetOnBlur&&this.queryView.reset()})),this.on("search",(()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()})),this.keystrokes.set("esc",((t,e)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,e())})),this.listenTo(r.global.document,"scroll",(()=>{this._updateResultsViewWidthAndPosition()})),this.on("change:isEnabled",(()=>{this._updateResultsVisibility()})),this.filteredView.on("execute",((t,{value:e})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=e,this.resultsView.isVisible=!1})),this.resultsView.on("change:isVisible",(()=>{this._updateResultsViewWidthAndPosition()}))}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new r.UL(this.queryView.fieldView.element).width;const t=vu._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:vu.defaultResultsPositions});this.resultsView._position=t?t.name:"s"}_updateResultsVisibility(){const t=void 0===this._config.queryMinChars?0:this._config.queryMinChars,e=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&e>=t}}vu.defaultResultsPositions=[t=>({top:t.bottom,left:t.left,name:"s"}),(t,e)=>({top:t.top-e.height,left:t.left,name:"n"})],vu._getOptimalPosition=r.xZ;const Cu=function(t){return function(e){return null==t?void 0:t[e]}};const yu=Cu({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var Eu=/[&<>"']/g,Iu=RegExp(Eu.source);const Su=function(t){return(t=ze(t))&&Iu.test(t)?t.replace(Eu,yu):t};var Tu=__webpack_require__(1361),Du={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Tu.Z,Du);Tu.Z.locals;class Mu extends u{constructor(){super(),this.set("text",void 0),this.setTemplate({tag:"span",attributes:{class:["ck","ck-highlighted-text"]}}),this.on("render",(()=>{this.on("change:text",(()=>{this._updateInnerHTML(this.text)})),this._updateInnerHTML(this.text)}))}highlightText(t){this._updateInnerHTML(function(t,e){if(!e)return Su(t);const n=[];let i=0,o=e.exec(t);for(;null!==o;){const r=o.index;r!==i&&n.push({text:t.substring(i,r),isMatch:!1}),n.push({text:o[0],isMatch:!0}),i=e.lastIndex,o=e.exec(t)}i!==t.length&&n.push({text:t.substring(i),isMatch:!1});return n.map((t=>(t.text=Su(t.text),t))).map((t=>t.isMatch?`<mark>${t.text}</mark>`:t.text)).join("")}(this.text||"",t))}_updateInnerHTML(t){this.element.innerHTML=t||""}}var Bu=__webpack_require__(7217),Ou={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Bu.Z,Ou);Bu.Z.locals;class Nu extends u{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 U(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Ut}),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}}var Pu=__webpack_require__(9832),Ru={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Pu.Z,Ru);Pu.Z.locals;class Lu extends u{constructor(){super(),this.set("isVisible",!1);const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-spinner-container",t.if("isVisible","ck-hidden",(t=>!t))]},children:[{tag:"span",attributes:{class:["ck","ck-spinner"]}}]})}}const ju=(0,r.nn)("px");class zu extends Yt{static get pluginName(){return"BalloonToolbar"}static get requires(){return[ru]}constructor(t){super(t),this._resizeObserver=null,this._balloonConfig=Zt(t.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new r.Rh,t.ui.once("ready",(()=>{this.focusTracker.add(t.ui.getEditableElement()),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(ru),this._fireSelectionChangeDebounced=At((()=>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 i=this._balloon.visibleView===this.toolbarView;!n&&i?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 r.do(e,(t=>{this.toolbarView.maxWidth=ju(.9*t.contentRect.width)}))})),this.listenTo(this.toolbarView,"groupedItemsUpdate",(()=>{this._updatePosition()}))}afterInit(){const t=this.editor.ui.componentFactory;this.toolbarView.fillFromConfig(this._balloonConfig,t)}_createToolbarView(){const t=this.editor.locale.t,e=!this._balloonConfig.shouldNotGroupWhenFull,n=new Kc(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,i=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,i)||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))}_getBalloonPositionData(){const t=this.editor.editing.view,e=t.document,n=e.selection,i=e.selection.isBackward;return{target:()=>{const e=i?n.getFirstRange():n.getLastRange(),o=r.UL.getDomRangeRects(t.domConverter.viewRangeToDom(e));return i?o[0]:(o.length>1&&0===o[o.length-1].width&&o.pop(),o[o.length-1])},positions:this._getBalloonPositions(i)}}_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=r.OB.isSafari&&r.OB.isiOS?wd({heightOffset:Math.max(bd.arrowHeightOffset,Math.round(20/r.global.window.visualViewport.scale))}):bd.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 Vu=__webpack_require__(4779),Fu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Vu.Z,Fu);Vu.Z.locals,(0,r.nn)("px");(0,r.nn)("px");var Uu=__webpack_require__(6553);class Hu extends Vd{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Zt(t.config.get("toolbar")),this._elementReplacer=new Uu.ElementReplacer,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const e=this.editor,n=this.view,i=e.editing.view,o=n.editable,r=i.document.getRoot();o.name=r.rootName,n.render();const s=o.element;this.setEditableElement(o.name,s),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:t})=>t||0)),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.sourceElement;let o;const r=t.config.get("placeholder");r&&(o="string"==typeof r?r:r[this.view.editable.name]),!o&&i&&"textarea"===i.tagName.toLowerCase()&&(o=i.getAttribute("placeholder")),o&&(n.placeholder=o),ae({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const i=this.view.stickyPanel;if(i.isSticky){const t=new Uu.Rect(i.element).height;e.viewportOffset.top+=t}else{const t=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(i,"change:isSticky",t),setTimeout((()=>{this.stopListening(i,"change:isSticky",t)}),20)}}}var Gu=__webpack_require__(3638),qu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Gu.Z,qu);Gu.Z.locals;class Wu extends qd{constructor(t,e,n={}){super(t),this.stickyPanel=new uu(t),this.toolbar=new Kc(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new Kd(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Ku{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,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 Zu(t,e=new Set){const n=[t],i=new Set;let o=0;for(;n.length>o;){const t=n[o++];if(!i.has(t)&&Yu(t)&&!e.has(t))if(i.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 i}function Yu(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 Ju(t,e,n=new Set){if(t===e&&("object"==typeof(i=t)&&null!==i))return!0;var i;const o=Zu(t,n),r=Zu(e,n);for(const t of o)if(r.has(t))return!0;return!1}class $u extends Ku{constructor(t,e={}){super(e),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Ed(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||{},i={};for(const[o,r]of Object.entries(this._data.roots))r.isLoaded?(t[o]="",i[o]=n[o]||{}):e.push(o);const o={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:i,_watchdogInitialData:this._data};return delete o.initialData,o.extraPlugins.push(Qu),this._initUsingData?this.create(t,o,o.context):(0,hd.Z)(this._elementOrData)?this.create(this._elementOrData,o,o.context):this.create(this._editables,o,o.context)})).then((()=>{this._fire("restart")}))}create(t=this._elementOrData,e=this._config,n){return Promise.resolve().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")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_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,i=n.has("CommentsRepository")&&n.get("CommentsRepository"),o=n.has("TrackChanges")&&n.get("TrackChanges"),r={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach((t=>{r.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&&(r.markers[e.name]={rangeJSON:e.getRange().toJSON(),usingOperation:e._managedUsingOperations,affectsData:e._affectsData});return i&&(r.commentThreads=JSON.stringify(i.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),o&&(r.suggestions=JSON.stringify(o.getSuggestions({toJSON:!0,skipNotAttached:!0}))),r}_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 Ju(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return(0,h.Z)(t,((t,e)=>(0,hd.Z)(t)||"context"===e?t:void 0))}}class Qu{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 i of e.children)n._appendChild(this._createNode(t,i));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach((([n,{content:i,attributes:o}])=>{const r=JSON.parse(i),s=JSON.parse(o),a=e.model.document.getRoot(n);for(const[e,n]of s)t.setAttribute(e,n,a);for(const e of r){const n=this._createNode(t,e);t.insert(n,a,"end")}})),Object.entries(this._data.markers).forEach((([n,i])=>{const{document:o}=e.model,{rangeJSON:{start:r,end:s},...a}=i,c=o.getRoot(r.root),l=t.createPositionFromPath(c,r.path,r.stickiness),d=t.createPositionFromPath(c,s.path,s.stickiness),u=t.createRange(l,d);t.addMarker(n,{range:u,...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 Xu=Symbol("MainQueueId");class th extends Ku{constructor(t,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new eh,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(Xu,(()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=nh(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 $u(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:i,causesRestart:o})=>{this._fire("itemError",{itemId:t.id,error:i}),o&&this._actionQueues.enqueue(t.id,(()=>new Promise((n=>{const i=()=>{e.off("restart",i),this._fire("itemRestart",{itemId:t.id}),n()};e.on("restart",i)}))))})),e.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))))}remove(t){const e=nh(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(Xu,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(Xu,(()=>(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=Zu(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 Ju(this._context,t.context)}}class eh{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===Xu;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const i=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(Xu),this._queues.get(t)])).then(e),o=i.catch((()=>{}));return this._queues.set(t,o),i.finally((()=>{this._activeActions--,this._queues.get(t)===o&&0===this._activeActions&&this._onEmptyCallbacks.forEach((t=>t()))}))}}function nh(t){return Array.isArray(t)?t:[t]}class ih extends(Pc(Rc(Oc))){constructor(t,e={}){if(!oh(t)&&void 0!==e.initialData)throw new Uu.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return oh(t)?(0,Uu.getDataFromElement)(t):t}(t)),oh(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new Wu(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new Hu(this,i),Nc(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((n=>{const i=new this(t,e);n(i.initPlugins().then((()=>i.ui.init(oh(t)?t:null))).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function oh(t){return(0,hd.Z)(t)}ih.Context=ee,ih.EditorWatchdog=$u,ih.ContextWatchdog=th;class rh extends Vd{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Zt(t.config.get("toolbar"))}get element(){return this.view.editable.element}init(){const t=this.editor,e=this.view,n=t.editing.view,i=e.editable,o=n.document.getRoot();i.name=o.rootName,e.render();const r=i.element;this.setEditableElement(i.name,r),i.bind("isFocused").to(this.focusTracker),n.attachDomRoot(r),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view;this.editor.editing.view.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.editor,e=this.view,n=e.editable.element,i=e.toolbar;e.panel.bind("isVisible").to(this.focusTracker,"isFocused"),e.bind("viewportTopOffset").to(this,"viewportOffset",(({top:t})=>t||0)),e.listenTo(t.ui,"update",(()=>{e.panel.isVisible&&e.panel.pin({target:n,positions:e.panelPositions})})),i.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(i)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.config.get("placeholder");if(i){const t="string"==typeof i?i:i[n.rootName];t&&(n.placeholder=t)}ae({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}const sh=(0,Uu.toUnit)("px");class ah extends Gd{constructor(t,e,n,i={}){super(t);const o=t.t;this.toolbar=new Kc(t,{shouldGroupWhenFull:i.shouldToolbarGroupWhenFull,isFloating:!0}),this.set("viewportTopOffset",0),this.panel=new bd(t),this.panelPositions=this._getPanelPositions(),this.panel.extendTemplate({attributes:{class:"ck-toolbar-container"}}),this.editable=new Kd(t,e,n,{label:t=>o("Rich Text Editor. Editing area: %0",t.name)}),this._resizeObserver=null}render(){super.render(),this.body.add(this.panel),this.registerChild(this.editable),this.panel.content.add(this.toolbar);if(this.toolbar.options.shouldGroupWhenFull){const t=this.editable.element;this._resizeObserver=new Uu.ResizeObserver(t,(()=>{this.toolbar.maxWidth=sh(new Uu.Rect(t).width)}))}}destroy(){super.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getPanelPositionTop(t,e){let n;return n=t.top>e.height+this.viewportTopOffset?t.top-e.height:t.bottom>e.height+this.viewportTopOffset+50?this.viewportTopOffset:t.bottom,n}_getPanelPositions(){const t=[(t,e)=>({top:this._getPanelPositionTop(t,e),left:t.left,name:"toolbar_west",config:{withArrow:!1}}),(t,e)=>({top:this._getPanelPositionTop(t,e),left:t.left+t.width-e.width,name:"toolbar_east",config:{withArrow:!1}})];return"ltr"===this.locale.uiLanguageDirection?t:t.reverse()}}class ch extends(Pc(Rc(Oc))){constructor(t,e={}){if(!lh(t)&&void 0!==e.initialData)throw new Uu.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return lh(t)?(0,Uu.getDataFromElement)(t):t}(t)),this.model.document.createRoot(),lh(t)&&(this.sourceElement=t,Lc(this,t));const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new ah(this.locale,this.editing.view,this.sourceElement,{shouldToolbarGroupWhenFull:n});this.ui=new rh(this,i),Nc(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(lh(t)&&"TEXTAREA"===t.tagName)throw new Uu.CKEditorError("editor-wrong-element",null);const i=new this(t,e);n(i.initPlugins().then((()=>i.ui.init())).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function lh(t){return(0,hd.Z)(t)}ch.Context=ee,ch.EditorWatchdog=$u,ch.ContextWatchdog=th;class dh extends Vd{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,i=e.editable,o=n.document.getRoot();i.name=o.rootName,e.render();const r=i.element;this.setEditableElement(i.name,r),i.bind("isFocused").to(this.focusTracker),n.attachDomRoot(r),this._initPlaceholder(),this.fire("ready")}destroy(){super.destroy();const t=this.view;this.editor.editing.view.detachDomRoot(t.editable.name),t.destroy()}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.config.get("placeholder");if(i){const t="string"==typeof i?i:i[n.rootName];t&&(n.placeholder=t)}ae({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}class uh extends Gd{constructor(t,e,n){super(t);const i=t.t;this.editable=new Kd(t,e,n,{label:t=>i("Rich Text Editor. Editing area: %0",t.name)})}render(){super.render(),this.registerChild(this.editable)}}class hh extends(Pc(Rc(Oc))){constructor(t,e={}){if(!mh(t)&&void 0!==e.initialData)throw new Uu.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return mh(t)?(0,Uu.getDataFromElement)(t):t}(t)),mh(t)&&(this.sourceElement=t,Lc(this,t));const n=this.config.get("plugins");n.push(zu),this.config.set("plugins",n),this.config.define("balloonToolbar",this.config.get("toolbar")),this.model.document.createRoot();const i=new uh(this.locale,this.editing.view,this.sourceElement);this.ui=new dh(this,i),Nc(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(mh(t)&&"TEXTAREA"===t.tagName)throw new Uu.CKEditorError("editor-wrong-element",null);const i=new this(t,e);n(i.initPlugins().then((()=>i.ui.init())).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function mh(t){return(0,hd.Z)(t)}hh.Context=ee,hh.EditorWatchdog=$u,hh.ContextWatchdog=th;class gh extends Vd{constructor(t,e){super(t),this.view=e}init(){const t=this.editor,e=this.view,n=t.editing.view,i=e.editable,o=n.document.getRoot();i.name=o.rootName,e.render();const r=i.element;this.setEditableElement(i.name,r),e.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(r),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view;this.editor.editing.view.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(),i=t.config.get("placeholder");if(i){const t="string"==typeof i?i:i[n.rootName];t&&(n.placeholder=t)}ae({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}class ph extends Gd{constructor(t,e,n={}){super(t);const i=t.t;this.toolbar=new Kc(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new Kd(t,e,n.editableElement,{label:t=>i("Rich Text Editor. Editing area: %0",t.name)}),this.toolbar.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}})}render(){super.render(),this.registerChild([this.toolbar,this.editable])}}class fh extends(Pc(Rc(Oc))){constructor(t,e={}){if(!xh(t)&&void 0!==e.initialData)throw new Uu.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return xh(t)?(0,Uu.getDataFromElement)(t):t}(t)),xh(t)&&(this.sourceElement=t,Lc(this,t)),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new ph(this.locale,this.editing.view,{editableElement:this.sourceElement,shouldToolbarGroupWhenFull:n});this.ui=new gh(this,i)}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(xh(t)&&"TEXTAREA"===t.tagName)throw new Uu.CKEditorError("editor-wrong-element",null);const i=new this(t,e);n(i.initPlugins().then((()=>i.ui.init())).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function xh(t){return(0,hd.Z)(t)}fh.Context=ee,fh.EditorWatchdog=$u,fh.ContextWatchdog=th;class bh extends((0,r.Re)()){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 this.total=t.size,new Promise(((n,i)=>{e.onload=()=>{const t=e.result;this._data=t,n(t)},e.onerror=()=>{i("error")},e.onabort=()=>{i("aborted")},this._reader.readAsDataURL(t)}))}abort(){this._reader.abort()}}class kh extends Yt{constructor(){super(...arguments),this.loaders=new r.FE,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[jc]}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(0,r.KE)("filerepository-no-upload-adapter"),null;const e=new wh(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 wh?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(jc);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 wh extends((0,r.Re)()){constructor(t,e){super(),this.id=(0,r.hQ)(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new bh,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 r.Bb("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 r.Bb("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,i)=>{e.rejecter=i,e.isFulfilled=!1,t.then((t=>{e.isFulfilled=!0,n(t)})).catch((t=>{e.isFulfilled=!0,i(t)}))})),e}}class Ah extends U{constructor(t){super(t),this.buttonView=this,this._fileInputView=new _h(t),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 _h extends u{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()}}class vh extends Yt{static get requires(){return[kh]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(kh).createUploadAdapter=t=>new Ch(t)}}class Ch{constructor(t){this.loader=t}upload(){return new Promise(((t,e)=>{const n=this.reader=new window.FileReader;n.addEventListener("load",(()=>{t({default:n.result})})),n.addEventListener("error",(t=>{e(t)})),n.addEventListener("abort",(()=>{e()})),this.loader.file.then((t=>{n.readAsDataURL(t)}))}))}abort(){this.reader.abort()}}const yh="ckCsrfToken",Eh="abcdefghijklmnopqrstuvwxyz0123456789";function Ih(){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}(yh);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 i=Eh.charAt(n[t]%Eh.length);e+=Math.random()>.5?i.toUpperCase():i}return e}(40),e=yh,n=t,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+";path=/"),t}class Sh extends Yt{static get requires(){return[kh]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(kh).createUploadAdapter=e=>new Th(e,t,this.editor.t))}}class Th{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 i=this.xhr,o=this.loader,r=(0,this.t)("Cannot upload file:")+` ${n.name}.`;i.addEventListener("error",(()=>e(r))),i.addEventListener("abort",(()=>e())),i.addEventListener("load",(()=>{const n=i.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:r);t({default:n.url})})),i.upload&&i.upload.addEventListener("progress",(t=>{t.lengthComputable&&(o.uploadTotal=t.total,o.uploaded=t.loaded)}))}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",Ih()),this.xhr.send(e)}}const Dh=["isAtEnd","processor","document","AIAssistantEditing","editingDowncast","pop","ck-fake-ai-selection_collapsed","markers","addMarker","model","markerToElement","selection","conversion","updateMarker","createRange","ai-ui","hideFakeVisualSelection","getSelectedBlocks","span","data","getLastMatchingPosition","createPositionAfter","schema","pluginName","end","removeMarker","for","toView","getFirstRange","has","toModel","editor","insertContent","change","start","length","setSelection","showFakeVisualSelection","from"];var Mh,Bh;Mh=Dh,Bh=326,function(t){for(;--t;)Mh.push(Mh.shift())}(++Bh);const Oh=function(t,e){return Dh[t-=0]},Nh=Oh("0x1");class Ph extends Yt{static get[Oh("0x9")](){return Oh("0x1c")}init(){const{editor:t}=this;t[Oh("0x25")][Oh("0xc")](Oh("0x1d")).markerToHighlight({model:Nh,view:{classes:["ck-fake-ai-selection"]}}),t[Oh("0x25")][Oh("0xc")](Oh("0x1d"))[Oh("0x23")]({model:Nh,view:{name:Oh("0x4"),classes:["ck-fake-ai-selection",Oh("0x1f")]}})}[Oh("0x17")](){const t=this[Oh("0x11")][Oh("0x22")];t[Oh("0x13")]((e=>{const n=t[Oh("0x1b")][Oh("0x24")][Oh("0xe")]();if(t[Oh("0x20")][Oh("0xf")](Nh))e[Oh("0x26")](Nh,{range:n});else if(n.start[Oh("0x19")]){const i=n[Oh("0x14")][Oh("0x6")]((({item:e})=>!t[Oh("0x8")].isContent(e)),{boundaries:n});e.addMarker(Nh,{usingOperation:!1,affectsData:!1,range:e[Oh("0x0")](i,n[Oh("0xa")])})}else e[Oh("0x21")](Nh,{usingOperation:!1,affectsData:!1,range:n})}))}[Oh("0x2")](){const t=this[Oh("0x11")].model;t[Oh("0x20")][Oh("0xf")](Nh)&&t.change((t=>{t[Oh("0xb")](Nh)}))}[Oh("0x12")](t,e){const n=e||this[Oh("0x11")][Oh("0x22")][Oh("0x1b")][Oh("0x24")];if(!this[Oh("0x11")][Oh("0x22")].canEditAt(n))return;const i=this[Oh("0x11")][Oh("0x5")][Oh("0x1a")][Oh("0xd")](t),o=this[Oh("0x11")][Oh("0x5")][Oh("0x10")](i);this[Oh("0x11")][Oh("0x22")][Oh("0x13")]((t=>{const e=this[Oh("0x11")][Oh("0x22")].insertContent(o,n);e&&t[Oh("0x16")](e)}))}insertContentBelow(t){const{model:e}=this[Oh("0x11")],n=Array[Oh("0x18")](e[Oh("0x1b")].selection[Oh("0x3")]()),i=n[Oh("0x15")]?e[Oh("0x7")](n[Oh("0x1e")]()):e[Oh("0x1b")][Oh("0x24")].getLastPosition();this[Oh("0x12")](t,i)}}var Rh,Lh,jh=["name","textAdapter","AIRequestError","aiadapter-text-adapter-not-set","afterInit","AIAdapter","pluginName"];Rh=jh,Lh=200,function(t){for(;--t;)Rh.push(Rh.shift())}(++Lh);var zh=function(t,e){return jh[t-=0]};class Vh extends Yt{static get[zh("0x2")](){return zh("0x1")}[zh("0x0")](){if(!this[zh("0x4")])throw new Uu.CKEditorError(zh("0x6"),null)}}class Fh extends Error{constructor(t){super(t),this[zh("0x3")]=zh("0x5")}}function Uh(t,e,n){const i=t.t;switch(e){case"Edit or review":return i("Edit or review");case"Improve writing":return i("Improve writing");case"Make shorter":return i("Make shorter");case"Make longer":return i("Make longer");case"Simplify language":return i("Simplify language");case"Generate from selection":return i("Generate from selection");case"Summarize":return i("Summarize");case"Continue":return i("Continue");case"Change tone":return i("Change tone");case"Professional":return i("Professional");case"Casual":return i("Casual");case"Direct":return i("Direct");case"Confident":return i("Confident");case"Friendly":return i("Friendly");case"Change style":return i("Change style");case"Business":return i("Business");case"Legal":return i("Legal");case"Journalism":return i("Journalism");case"Poetic":return i("Poetic");case"Translate":return i("Translate");case"Translate to %0":return i("Translate to %0",n);case"English":return i("English");case"Spanish":return i("Spanish");case"German":return i("German");case"Portuguese":return i("Portuguese");case"French":return i("French");case"Simplified Chinese":return i("Simplified Chinese");case"Hindi":return i("Hindi");case"Arabic":return i("Arabic");case"AI Assistant":return i("AI Assistant");case"AI Commands":return i("AI Commands");case"Ask AI to edit or generate":return i("Ask AI to edit or generate");case"Ask AI to improve generated text":return i("Ask AI to improve generated text");case"Copy":return i("Copy");case"Submit":return i("Submit");case"Insert below":return i("Insert below");case"Try again":return i("Try again");case"Stop":return i("Stop");case"AI is writing...":return i("AI is writing...");case"History":return i("History");case"Empty history":return i("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return i("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return i("Prompt history");case"Search AI command":return i("Search AI command");case"No commands found":return i("No commands found");case"No commands available":return i("No commands available");case"Clear":return i("Clear");case"AI_REPLACE_CONTENT":return i({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return i({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return i({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return i({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return i({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},n);case"AI_ERROR_CONTEXT_LENGTH":return i({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return i({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return i({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return e}}const Hh=["model","showUI","getRanges","get","selection","editor","element","ai.aiAssistant.disabledElements","getItems","custom","plugins","isEnabled","includes","document"];var Gh,qh;Gh=Hh,qh=417,function(t){for(;--t;)Gh.push(Gh.shift())}(++qh);const Wh=function(t,e){return Hh[t-=0]};class Kh extends $t{refresh(){const t=this.editor[Wh("0x3")][Wh("0x2")][Wh("0x7")],e=this[Wh("0x8")].config[Wh("0x6")](Wh("0xa"));for(const n of t[Wh("0x5")]())for(const t of n[Wh("0xb")]())if(t.is(Wh("0x9"))&&e[Wh("0x1")](t.name))return void(this[Wh("0x0")]=!1);this[Wh("0x0")]=!0}execute(t="",e="",n=Wh("0xc")){this[Wh("0x8")][Wh("0xd")].get(vg)[Wh("0x4")](t,e,n)}}const Zh=["startProcessing","_normalizeResponseHeadings","isProcessing","textAdapter","rename","bind","push","domConverter","text/html","_xmlSerializer","currentContext","_domParser","_parseAndNormalizeContent","substring","isRendered","stopProcessing","handleError","previousQuery","updateView","stringify","editing","listenTo","length","childNodes","body","previousLabel","_handleQuery","processor","prompt","reset","makeRequest","element","finally","match","custom","_sanitizationContainer","toModel","tryAgainEvent","set","mainAction","finishProcessing","currentResponse","remove","innerHTML","exec","createElement","view","previousActionId","destroy","abort","editor","initialContext","data","previousContext","parseFromString","serializeToString","document","ELEMENT_NODE","div","nodeType","then","_sanitizeHTML"];var Yh,Jh;Yh=Zh,Jh=388,function(t){for(;--t;)Yh.push(Yh.shift())}(++Jh);const $h=function(t,e){return Zh[t-=0]},Qh=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");class Xh extends((0,Uu.ObservableMixin)()){constructor(t,e,n){super(),this[$h("0x22")]=t,this[$h("0x31")]=e,this[$h("0x13")]=document[$h("0x1d")]($h("0x2a")),this[$h("0x39")]=new DOMParser,this[$h("0x37")]=new XMLSerializer,this[$h("0x1e")]=n,this[$h("0x16")]({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this.view[$h("0x33")]("value").to(this,$h("0x38"),this._sanitizeHTML[$h("0x33")](this)),this[$h("0x5")](this[$h("0x1e")],"submitPrompt",((t,e)=>{const n=this[$h("0x38")]||this[$h("0x23")];this[$h("0xa")](e,n,$h("0x12"))})),this[$h("0x5")](this.view,$h("0x15"),(()=>{this.view[$h("0xc")]=this[$h("0x9")],this._handleQuery(this.previousQuery,this.previousContext,this.previousActionId,this.previousLabel)})),this[$h("0x5")](this[$h("0x1e")],$h("0x3d"),(()=>{this[$h("0x3d")]()}))}[$h("0x20")](){this.stopListening()}async[$h("0x2")]({actionId:t,query:e,htmlContent:n,label:i,mainActionLabel:o}){this[$h("0x1e")][$h("0xc")]=i,this[$h("0x1e")][$h("0x17")]=o,this[$h("0x23")]=n,e&&(this[$h("0x1e")][$h("0x3c")]?this[$h("0xa")](e,n,t,i):this.view.once("render",(()=>{this[$h("0xa")](e,n,t,i)})))}[$h("0x3d")](){this.isProcessing&&(this[$h("0x30")]=!1,this[$h("0x1e")][$h("0x18")](),this[$h("0x31")][$h("0x21")]())}reset(){this.initialContext="",this[$h("0x38")]="",this[$h("0x19")]="",this[$h("0x25")]="",this[$h("0x1")]="",this[$h("0x9")]="",this.previousActionId=void 0,this[$h("0x1e")][$h("0xd")](),this[$h("0x3d")]()}async[$h("0xa")](t,e,n,i){return this[$h("0x30")]=!0,this[$h("0x1e")][$h("0x2e")](),this[$h("0x25")]=e,this.previousQuery=t,this[$h("0x9")]=i||t,this[$h("0x1f")]=n,new Promise((i=>{this[$h("0x31")][$h("0xe")]({query:t,context:e,onData:t=>{this[$h("0x19")]=t,this.currentContext=this[$h("0x3a")](this[$h("0x19")])},actionId:n})[$h("0x2c")]((()=>{!this[$h("0x38")]&&this[$h("0x19")]&&(this[$h("0x38")]=this._parseAndNormalizeContent(this[$h("0x19")],!0))})).catch((t=>{t instanceof Fh?this[$h("0x1e")][$h("0x0")](t.message):this.view[$h("0x0")](),i()}))[$h("0x10")]((()=>{this[$h("0x3d")](),i()}))}))}[$h("0x3a")](t,e=!1){const n=Qh[$h("0x1c")](t);n?t=t[$h("0x3b")](n[1][$h("0x6")]):t.length<100&&!e&&(t="");const i=this[$h("0x39")][$h("0x26")](t,$h("0x36"));if(n)for(const t of i[$h("0x8")][$h("0x7")])t[$h("0x2b")]!=Node[$h("0x29")]&&t[$h("0x1a")]();const o=this[$h("0x22")].data[$h("0xb")].toView(this[$h("0x37")][$h("0x27")](i[$h("0x8")]));return this[$h("0x2f")](o),this.editor.data[$h("0x3")](this[$h("0x22")][$h("0x24")][$h("0x14")](o))}[$h("0x2f")](t){const e=new Ga(this.editor[$h("0x4")][$h("0x1e")][$h("0x28")]),n=new ke({name:/^h[1-5]$/}),i=[];let o=!1;for(const e of t)e.is($h("0xf"))&&n[$h("0x11")](e)&&(i[$h("0x34")](e),"h1"==e.name&&(o=!0));if(o)for(const t of i)e[$h("0x32")]("h"+(parseInt(t.name[1])+1),t)}[$h("0x2d")](t){return this[$h("0x22")][$h("0x4")].view[$h("0x35")].setContentOf(this._sanitizationContainer,t),this[$h("0x13")][$h("0x1b")]}}const tm=["Stop","bindTemplate","stopButton","ck-button-action","insertButton","extendTemplate","ck-ai-form__toolbar","_CONTENT","bind","items","addMany","tryAgainButton","replaceButton","REPLACE","mainAction","Insert below","toUpperCase","_createButton","set","INSERT","isVisible","insert"];var em,nm;em=tm,nm=277,function(t){for(;--t;)em.push(em.shift())}(++nm);const im=function(t,e){return tm[t-=0]};var om,rm;(rm=om||(om={}))[im("0x0")]="replace",rm[im("0x6")]=im("0x8");class sm extends Kc{constructor(t){super(t),this[im("0x5")]("isVisible",!1),this[im("0x5")]("mainAction",om[im("0x0")]),this[im("0x15")]=this[im("0x4")]("",im("0xc")),this[im("0x15")][im("0x11")]("label").to(this,im("0x1"),(e=>Uh(t,"AI_"+e[im("0x3")]()+im("0x10")))),this[im("0xd")]=this._createButton(Uh(t,im("0x2"))),this[im("0x14")]=this[im("0x4")](Uh(t,"Try again")),this[im("0xb")]=this[im("0x4")](Uh(t,im("0x9")));const e=this[im("0xa")];this[im("0xe")]({attributes:{class:[im("0xf"),e.if(im("0x7"),"ck-hidden",(t=>!t))]}}),this[im("0x12")][im("0x13")]([this[im("0x15")],this.insertButton,this[im("0x14")],this.stopButton])}[im("0x4")](t,e){const n=new U(this.locale);return n[im("0x5")]({label:t,class:e||"",isVisible:!0,withText:!0}),n}}const am='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',cm=["set","execCommand"," ck-ai-form__copy-button--copied",".ck-ai-form__loader","setStartAfter","mousedown","addRange","icon","ck-ai-form__loader","firstElementChild","setEndBefore","render","querySelector","change:value","ck-ai-form__content-area-wrapper","body","textContent","appendChild","value","ck-ai-form__content-area--processing","style","innerHTML","absolute","focus","-9999px","ck-reset_all-excluded","listenTo","write","left","_copyHTMLToClipboard","createElement","element","bind","class","isVisible","position","_createCopyButton","ck-hidden","locale","wheel","_createLoader","<span>[</span>","smooth","ClipboardItem","setContent","ck-ai-form__content-area","copy","lastElementChild","ck-ai-form__copy-button-wrapper","check","scrollTo","<span>]</span>","loaderView","isProcessing","clipboard","div","copyButtonView","AI is writing...","appendLoader","contentFieldView","setTemplate"];var lm,dm;lm=cm,dm=239,function(t){for(;--t;)lm.push(lm.shift())}(++dm);const um=function(t,e){return cm[t-=0]};class hm extends u{constructor(t,e=""){super(t),this[um("0x5")]({value:null,isVisible:!1,isProcessing:!1});const n=this.bindTemplate;this[um("0x3")]=new mm(t,e),this[um("0x0")]=this[um("0x29")](),this[um("0x4")]({tag:um("0x3c"),attributes:{class:["ck",um("0x13"),n.if(um("0x27"),um("0x2a"),(t=>!t))],tabindex:"-1"},children:[{tag:um("0x3c"),attributes:{class:["ck",um("0x32"),n.if(um("0x3a"),um("0x18"))]},children:[this[um("0x3")],{tag:"div",attributes:{class:["ck",um("0x35")]},children:[this[um("0x0")]]}]}]})}render(){super[um("0x10")](),this[um("0x17")]&&this.contentFieldView[um("0x31")](this[um("0x17")]);let t=!1;this.on(um("0x12"),((e,n,i)=>{const o=!this[um("0x3")].element[um("0x11")](um("0x8"));this.contentFieldView[um("0x31")](i),this.isProcessing&&o&&!t&&this[um("0x24")][um("0x37")]({top:this.element.scrollHeight,behavior:um("0x2f")})})),this.on("change:isProcessing",((e,n,i)=>{t=!1,i?(this.value=null,this[um("0x3")][um("0x2")]()):this[um("0x17")]||this[um("0x3")][um("0x31")]("")})),this[um("0x1f")](this[um("0x24")],um("0x2c"),(()=>{t=!0})),this[um("0x1f")](this[um("0x24")],um("0xa"),(()=>{t=!0}))}[um("0x1c")](){this.element[um("0x1c")]()}[um("0x29")](){const t=this[um("0x2b")],e=new U(this[um("0x2b")]),n="ck-ai-form__copy-button";return e[um("0x5")]({label:Uh(t,"Copy"),icon:am,class:n,tooltip:!0}),e[um("0x25")](um("0x27")).to(this,um("0x17"),(t=>!!t)),e[um("0x25")]("isEnabled").to(this,um("0x3a"),(t=>!t)),e.on("execute",(()=>{this[um("0x22")](this[um("0x3")][um("0x24")]),e[um("0xc")]=Uc[um("0x36")],e[um("0x26")]=n+um("0x7"),this[um("0x1c")](),setTimeout((()=>{e.icon=am,e[um("0x26")]=n}),1e3)})),e}_copyHTMLToClipboard(t){const{window:e,document:n}=Uu.global;if(e[um("0x30")]){const{Blob:n,ClipboardItem:i}=e,o=[new i({"text/html":new n([t.innerHTML],{type:"text/html"}),"text/plain":new n([t[um("0x15")]||""],{type:"text/plain"})})];navigator[um("0x3b")][um("0x20")](o)}else{const i=n[um("0x23")](um("0x3c"));i[um("0x19")][um("0x28")]=um("0x1b"),i[um("0x19")][um("0x21")]=um("0x1d"),i[um("0x1a")]=um("0x2e")+t[um("0x1a")]+um("0x38"),n[um("0x14")][um("0x16")](i);const o=n.createRange();o[um("0x9")](i[um("0xe")]),o[um("0xf")](i[um("0x34")]);const r=e.getSelection();r.removeAllRanges(),r[um("0xb")](o),n[um("0x6")](um("0x33")),i.remove()}}}class mm extends u{constructor(t,e=""){super(t),this[um("0x39")]=this[um("0x2d")](),this[um("0x4")]({tag:um("0x3c"),attributes:{class:["ck","ck-content",e,um("0x1e"),"ck-ai-form__content-field"]}})}setContent(t){this[um("0x24")][um("0x1a")]=t}[um("0x2")](){this[um("0x24")][um("0x16")](this.loaderView[um("0x24")])}_createLoader(){const t=new u,e=this[um("0x2b")],n=new Lu;return n.isVisible=!0,t.setTemplate({tag:um("0x3c"),attributes:{class:["ck",um("0xd")]},children:[n,{text:Uh(e,um("0x1"))}]}),t[um("0x10")](),t}}const gm=["setTemplate","content","bindTemplate","text"];var pm,fm;pm=gm,fm=496,function(t){for(;--t;)pm.push(pm.shift())}(++fm);const xm=function(t,e){return gm[t-=0]};class bm extends u{constructor(t,e=""){super(t);const n=new j,i=this[xm("0x2")];this.set(xm("0x3"),e),n[xm("0x1")]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[xm("0x0")]({tag:"div",attributes:{class:["ck","ck-ai-form__error"]},children:[n,{text:i.to(xm("0x3"))}]})}}const km=["showHistoryButtonView","_createShowHistoryButton","History","left","execute","locale","minRows","ck-ai-form__submit","maxRows","focus","focusCycler","right","isEnabled","excludeScrollbarsAndBorders","children","set","isEmpty","target","focusableChildren","rtl","add","element","style","keystrokes","value","fieldWrapperChildren","update","submitButtonView","resultsView","filteredView","focusFirst","width","queryView","window","bind","fieldView","Submit","ck-ai-form__toggle-history","_createSubmitButton","render","enter","isVisible","submit"];var wm,Am;wm=km,Am=153,function(t){for(;--t;)wm.push(wm.shift())}(++Am);const _m=function(t,e){return km[t-=0]};class vm extends vu{constructor(t,e){super(t,e),this[_m("0x8")].fieldView[_m("0x19")]=1,this[_m("0x8")][_m("0xb")][_m("0x1b")]=3,this[_m("0x3")]=this[_m("0xe")](),this[_m("0x13")]=this[_m("0x14")](),this[_m("0x25")][_m("0x27")](this[_m("0x13")],1),this[_m("0x25")][_m("0x27")](this[_m("0x3")])}[_m("0xf")](){super[_m("0xf")](),this[_m("0x8")][_m("0x1")][_m("0x27")](this[_m("0x13")]),this[_m("0x21")][_m("0x27")](this[_m("0x3")]),this[_m("0x2a")][_m("0x22")](_m("0x10"),((t,e)=>{t[_m("0x24")]==this.queryView[_m("0xb")][_m("0x28")]&&(this[_m("0x12")](),e())}))}[_m("0xe")](){const t=new U(this.locale),e=this[_m("0x18")];return t.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:Uh(e,_m("0xc")),isVisible:!0,tooltip:!0,class:_m("0x1a")}),t.on("execute",(()=>{this[_m("0x12")]()})),t.bind(_m("0x1f")).to(this[_m("0x8")][_m("0xb")],_m("0x23"),this,_m("0x1f"),((t,e)=>!t&&e)),t}_createShowHistoryButton(){const t=new U(this.locale),e=this[_m("0x4")],n=this[_m("0x18")];t[_m("0x22")]({label:Uh(n,_m("0x15")),withText:!1,icon:Uc.history,tooltip:!0,tooltipPosition:"sw",class:_m("0xd")}),t[_m("0xa")]("isOn").to(e,_m("0x11")),t.bind("isEnabled").to(this,_m("0x1f")),t.on(_m("0x17"),(()=>{e[_m("0x11")]=!e.isVisible,e[_m("0x11")]?this[_m("0x5")][_m("0x1c")]():this[_m("0x1c")]()}));const i=()=>{Uu.global[_m("0x9")].requestAnimationFrame((()=>{if((0,Uu.isVisible)(this[_m("0x28")])){const e=new Uu.Rect(this[_m("0x8")][_m("0xb")].element),i=e[_m("0x7")],o=_m("0x26")===n.uiLanguageDirection?_m("0x16"):_m("0x1e");e[_m("0x20")](),t[_m("0x28")][_m("0x29")][o]=i-e.width+1+"px"}}))};return this[_m("0x8")][_m("0xb")].on(_m("0x2"),i),this.on(_m("0xf"),i),t}[_m("0x12")](){const t=this[_m("0x8")].fieldView[_m("0x28")][_m("0x0")];this.fire(_m("0x12"),t)}focus(t){-1===t?this[_m("0x1d")].focusLast():this[_m("0x1d")][_m("0x6")]()}}const Cm=["locale","add","children","historyGroupView","execute","clearHistory","fire","items","_createClearHistoryButton","delegate","clearHistoryButton","Prompt history","Clear"];var ym,Em;ym=Cm,Em=251,function(t){for(;--t;)ym.push(ym.shift())}(++Em);const Im=function(t,e){return Cm[t-=0]};class Sm extends nl{constructor(t){super(t),this[Im("0x6")]=this[Im("0x4")](),this.historyGroupView=new Xc,this[Im("0xc")][Im("0xb")][Im("0xa")](this[Im("0x6")],1),this[Im("0xc")].label=Uh(t,Im("0x7")),this[Im("0xc")][Im("0x3")][Im("0x5")](Im("0x0")).to(this),this.items.add(this[Im("0xc")])}filter(){let t=0;for(const e of this[Im("0x3")])t+=e[Im("0x3")].length;return{resultsCount:t,totalItemsCount:t}}[Im("0x4")](){const t=this.locale,e=new U(this[Im("0x9")]);return e.set({label:"("+Uh(t,Im("0x8"))+")",withText:!0}),e.on("execute",(()=>this[Im("0x2")](Im("0x1")))),e}}const Tm=["bindTemplate","set","extendTemplate","ck-button__label","style"];var Dm,Mm;Dm=Tm,Mm=127,function(t){for(;--t;)Dm.push(Dm.shift())}(++Mm);const Bm=function(t,e){return Tm[t-=0]};class Om extends Mu{constructor(){super(),this[Bm("0x4")]({style:void 0,text:void 0,id:void 0});const t=this[Bm("0x3")];this[Bm("0x0")]({attributes:{class:[Bm("0x1")],style:t.to(Bm("0x2")),id:t.to("id")}})}}const Nm=Cu({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Pm=/&(?:amp|lt|gt|quot|#39);/g,Rm=RegExp(Pm.source);const Lm=function(t){return(t=ze(t))&&Rm.test(t)?t.replace(Pm,Nm):t},jm=["fire","locale","execute","children","prompt","add","set"];var zm,Vm;zm=jm,Vm=122,function(t){for(;--t;)zm.push(zm.shift())}(++Vm);const Fm=function(t,e){return jm[t-=0]};class Um extends $c{constructor(t){super();const e=new Om,n=new U(this[Fm("0x5")],e);this[Fm("0x0")][Fm("0x2")](n),n[Fm("0x3")]({label:t[Fm("0x1")],withText:!0}),n.on(Fm("0x6"),(()=>{this[Fm("0x4")](Fm("0x6"),{value:Lm(t[Fm("0x1")])})}))}}const Hm=["_loadFromSessionStorage","add","map","last","remove","_saveToSessionStorage","toLowerCase","stringify","CKEditor/AIFormView/PromptHistory","length","addMany","trim","setItem","getItem","prompt"];var Gm,qm;Gm=Hm,qm=258,function(t){for(;--t;)Gm.push(Gm.shift())}(++qm);const Wm=function(t,e){return Hm[t-=0]},Km=Wm("0x5");class Zm extends Uu.Collection{constructor(){super(),this[Wm("0xc")](),this.on(Wm("0xd"),((t,e)=>{const n=Ym(e[Wm("0xb")]);for(const t of this)if(t!=e&&Ym(t[Wm("0xb")])===n){this.remove(t);break}this[Wm("0x6")]>20&&this.remove(this[Wm("0x0")]),this[Wm("0x2")]()})),this.on(Wm("0x1"),(()=>{this[Wm("0x2")]()}))}_loadFromSessionStorage(){const t=sessionStorage[Wm("0xa")](Km)||"[]";this[Wm("0x7")](JSON.parse(t))}[Wm("0x2")](){sessionStorage[Wm("0x9")](Km,JSON[Wm("0x4")](this[Wm("0xe")]((t=>t))))}}function Ym(t){return t[Wm("0x3")]()[Wm("0x8")]()}const Jm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',$m=["backwardCycle","clear","_focusCycler","tryAgainButton","focus","_promptHistory","focusCycler","ck-ai-form-content","submit","stopProcessing","reset","listenTo","isProcessing","replaceContent","focusFirst","value","createCollection","execute","copyButtonView","finishProcessing","replaceButton","clearHistory","Ask AI to edit or generate","focusPrevious","fire","stop","tryAgainEvent","tab","promptView","div","ck-ai-form","search","focusTracker","submitPrompt","REPLACE","toolbar","errorView","Ask AI and your prompts will be listed here for you to use later.","mainAction","bindTo","ck-hidden","keystrokes","text","isEnabled","Empty history","insertButton","locale","contentArea","element","handleError","queryView","_createPromptView","historyGroupView","setTemplate","render","_createToolbar","items","isError","header","add","_focusables","shift + tab","isVisible","set","trim","delegate","bind","startProcessing","stopButton","prompt","label"];var Qm,Xm;Qm=$m,Xm=326,function(t){for(;--t;)Qm.push(Qm.shift())}(++Xm);const tg=function(t,e){return $m[t-=0]};class eg extends u{constructor(t,e,n=""){super(t),this[tg("0x15")](tg("0x1"),!0),this[tg("0x15")]("isProcessing",!1),this[tg("0x15")]("prompt",""),this.set("value",""),this[tg("0x15")](tg("0xf"),!1),this.set(tg("0x43"),om[tg("0x3f")]),this._promptHistory=new Zm,this[tg("0x41")]=new bm(t),this.header=new Jd(t,{label:Uh(t,"AI Assistant"),icon:Jm}),this[tg("0x5")]=new hm(t,n),this[tg("0x5")][tg("0x18")](tg("0x29")).to(this),this[tg("0x5")][tg("0x18")](tg("0x2c")).to(this),this[tg("0x40")]=this[tg("0xd")](),this.toolbar[tg("0x18")](tg("0x43")).to(this),this.promptView=this[tg("0x9")](),this[tg("0x3d")]=new Uu.FocusTracker,this[tg("0x46")]=new Uu.KeystrokeHandler,this[tg("0x12")]=this[tg("0x2d")]([this[tg("0x5")],this[tg("0x5")][tg("0x2f")],this.toolbar,this[tg("0x39")]]),this[tg("0x1f")]=new Gt({focusables:this._focusables,focusTracker:this[tg("0x3d")],keystrokeHandler:this.keystrokes,actions:{focusPrevious:tg("0x13"),focusNext:tg("0x38")}}),this.promptView.focusCycler.on("forwardCycle",(t=>{this[tg("0x1f")].focusNext(),t.stop()})),this[tg("0x39")][tg("0x23")].on(tg("0x1d"),(t=>{this._focusCycler[tg("0x34")](),t[tg("0x36")]()})),this[tg("0x39")][tg("0x8")].fieldView[tg("0x18")](tg("0x2c")).to(this,tg("0x1b"));const i=this.bindTemplate;this[tg("0xb")]({tag:tg("0x3a"),attributes:{class:["ck",tg("0x3b"),e],tabindex:"-1"},children:[this[tg("0x10")],{tag:"div",attributes:{class:["ck",tg("0x24")]},children:[{tag:tg("0x3a"),attributes:{class:[i.if("isError",tg("0x45"),(t=>!t))]},children:[this[tg("0x41")]]},this[tg("0x5")],this[tg("0x40")],this[tg("0x39")]]}]})}[tg("0xc")](){super[tg("0xc")](),this[tg("0x3d")][tg("0x11")](this.contentArea[tg("0x6")]),this[tg("0x3d")][tg("0x11")](this[tg("0x5")][tg("0x2f")].element),this[tg("0x3d")][tg("0x11")](this[tg("0x40")].element),this[tg("0x3d")][tg("0x11")](this[tg("0x39")].element),this.keystrokes.listenTo(this[tg("0x6")])}[tg("0x21")](){this[tg("0x1f")][tg("0x2b")]()}[tg("0x27")](){this.prompt="",this.value="",this[tg("0xf")]=!1,this[tg("0x39")].reset(),this.contentArea[tg("0x14")]=!1,this[tg("0x40")][tg("0x14")]=!1}[tg("0x9")](){const t=this[tg("0x4")],e=new vm(t,{queryView:{label:Uh(t,tg("0x33")),creator:kl,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:Uh(t,tg("0x2")),secondary:Uh(t,tg("0x42"))}}},filteredView:this._createHistoryView(),queryMinChars:1/0,resetOnBlur:!1});return e.bind("isEnabled").to(this,tg("0x1"),this,tg("0x29"),((t,e)=>t&&!e)),this[tg("0x28")](e,tg("0x25"),((t,e)=>{this[tg("0x1b")]=e;const n=Su(e);this[tg("0x35")](tg("0x3e"),n),e[tg("0x16")]()&&this[tg("0x22")][tg("0x11")]({prompt:n},0)}),{priority:"high"}),e}_createHistoryView(){const t=new Sm(this[tg("0x4")]);return t[tg("0xa")][tg("0xe")][tg("0x44")](this[tg("0x22")]).as(Um),t.on(tg("0x32"),(()=>{this[tg("0x22")][tg("0x1e")](),this.promptView[tg("0x3c")](""),this.promptView[tg("0x21")]()})),t}[tg("0xd")](){const t=new sm(this[tg("0x4")]);return t.replaceButton[tg("0x18")](tg("0x1")).to(this,tg("0x1"),this,tg("0x29"),this,tg("0x2c"),((t,e,n)=>t&&!e&&!!n)),t[tg("0x31")][tg("0x17")](tg("0x2e")).to(this,tg("0x2a")),t.insertButton[tg("0x18")]("isEnabled").to(this,"isEnabled",this,tg("0x29"),this,"value",((t,e,n)=>t&&!e&&!!n)),t[tg("0x3")][tg("0x17")](tg("0x2e")).to(this,"insertContentBelow"),t[tg("0x20")][tg("0x18")](tg("0x1")).to(this,"isEnabled",this,tg("0x29"),((t,e)=>t&&!e)),t[tg("0x20")][tg("0x17")]("execute").to(this,tg("0x37")),t[tg("0x1a")].bind(tg("0x1")).to(this,tg("0x29")),t.stopButton[tg("0x17")]("execute").to(this,tg("0x26")),t}[tg("0x19")](){this[tg("0x2c")]="",this[tg("0xf")]=!1,this[tg("0x29")]=!0,this.contentArea[tg("0x14")]=!0,this[tg("0x40")][tg("0x14")]=!0,this[tg("0x5")][tg("0x21")]()}[tg("0x30")](){const t=this.locale;this[tg("0x29")]=!1,this[tg("0x1b")]="",this[tg("0x39")][tg("0x27")](),this[tg("0x2c")]&&(this[tg("0x39")][tg("0x8")][tg("0x1c")]=Uh(t,"Ask AI to improve generated text"))}[tg("0x7")](t){const e=this[tg("0x4")];this[tg("0x30")](),this.isError=!0,this[tg("0x41")][tg("0x0")]=t||Uh(e,"AI_ERROR_FAILED"),this[tg("0x2c")]||(this[tg("0x5")][tg("0x14")]=!1)}}const ng=["children","filter","length","labelView","label","highlightText","isVisible","items","match"];var ig,og;ig=ng,og=485,function(t){for(;--t;)ig.push(ig.shift())}(++og);const rg=function(t,e){return ng[t-=0]};class sg extends nl{[rg("0x2")](t){let e=0,n=0;for(const i of this[rg("0x8")]){const o=i,r=o.items,s=t&&!!o[rg("0x5")][rg("0x0")](t);o[rg("0x4")][rg("0x6")](s?t:null);for(const e of r){const n=e[rg("0x1")].first,i=n[rg("0x4")];if(t){const o=!!n[rg("0x5")].match(t);i[rg("0x6")](o?t:null),e[rg("0x7")]=s||o}else e[rg("0x7")]=!0,i[rg("0x6")](null)}const a=r[rg("0x2")]((t=>t.isVisible))[rg("0x3")];e+=o.items[rg("0x3")],n+=s?o[rg("0x8")][rg("0x3")]:a,o[rg("0x7")]=s||!!a}return{resultsCount:n,totalItemsCount:e}}}const ag=["ck-label","ck-editor__label_","set","bindTemplate","extendTemplate"];var cg,lg;cg=ag,lg=136,function(t){for(;--t;)cg.push(cg.shift())}(++lg);const dg=function(t,e){return ag[t-=0]};class ug extends Mu{constructor(){super(),this[dg("0x1")]("for",void 0);const t=this[dg("0x2")];this.id=dg("0x0")+(0,Uu.uid)(),this[dg("0x3")]({attributes:{class:["ck",dg("0x4")],id:this.id,for:t.to("for")}})}}var hg=__webpack_require__(8172),mg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(hg.Z,mg);hg.Z.locals;var gg=__webpack_require__(9626),pg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(gg.Z,pg);gg.Z.locals;var fg=__webpack_require__(2429),xg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(fg.Z,xg);fg.Z.locals;const bg=["ck-ai-commands-search","define","text/html","toViewRange","REPLACE","ai.aiAssistant.contentAreaCssClass","config","Search AI command","getLimitElement","reset","execute","isCollapsed","isEnabled","updatePosition","prompt","createPositionBefore","AIAssistantUI","_formView","isNaN","bind","locale","copy","AI Assistant","element","fire","No commands found","AI Commands","pluginName","commands","from","_aiAssistantController","hasView","model","scrollTo","ck-ai-assistant-ui","then","media","children","set","insertContent","hideFakeVisualSelection","_isUIVisible","buttonView","_aiAdapter","INSERT","replaceContent","getEarlierVisibleRevision","hideUI","requires","parent","remove","aiAssistant","join","getRanges","label","ai.aiAssistant.commands","custom","showAIAssistant","map","editor","items","get","listenTo","panelView","componentFactory","_balloon","fromCharCode","plugins","change","ck-ai-commands-dropdown ","add","change:isOpen","init","ai.useTheme","selection","end","currentContext","order","aiCommands","keystrokes","_uiCssClasses","requiresContent","splice","context","editing","document","tableOfContents","showUI","isOn","focus","getBoundingRect"," ck-ai-assistant-ui_theme","getRevision","rawHtml","view","showFakeVisualSelection","sort","DataTransfer"];var kg,wg;kg=bg,wg=280,function(t){for(;--t;)kg.push(kg.shift())}(++wg);const Ag=function(t,e){return bg[t-=0]},_g=globalThis[Ag("0xd")];class vg extends Yt{static get[Ag("0x29")](){return Ag("0x1e")}static get[Ag("0x3e")](){return[Ph,Vh,ru]}constructor(t){super(t),this[Ag("0x5e")]="",t[Ag("0x14")][Ag("0xf")]("ai.aiAssistant.disabledElements",[Ag("0x32"),Ag("0x9"),Ag("0x2")]),t[Ag("0x14")][Ag("0xf")](Ag("0x13"),""),t[Ag("0x14")][Ag("0xf")](Ag("0x57"),!0),this[Ag("0x5e")]=Ag("0x30")+(t.config[Ag("0x4b")](Ag("0x57"))?Ag("0x7"):"")}[Ag("0x56")](){const{editor:t}=this;this[Ag("0x39")]=t[Ag("0x51")].get(Vh),this[Ag("0x4f")]=t[Ag("0x51")].get(ru),this[Ag("0x1f")]=null,this[Ag("0x34")]("_isUIVisible",!1),t[Ag("0x2a")][Ag("0x54")](Ag("0x47"),new Kh(t));const e=t[Ag("0x2a")].get(Ag("0x47")),n=t.plugins[Ag("0x4b")](Ph);t.ui[Ag("0x4e")].add(Ag("0x5c"),(i=>{const o=dl(i),r=function(t,e){const n=new sg(t[Ag("0x22")]),i=yg(t,t[Ag("0x14")].get(Ag("0x45")))[Ag("0x48")]((({groupId:n,groupLabel:i,commands:o})=>{const r=yg(t,o)[Ag("0x48")]((n=>function(t,e,n){const i=new $c,o=new Om,r=new U(t,o);return i.children.add(r),r[Ag("0x34")]({label:n.label,withText:!0}),r.on(Ag("0x18"),(()=>{e(n[Ag("0x1c")],n[Ag("0x44")],n.id,void 0===n[Ag("0x5f")]||n.requiresContent)})),i}(t[Ag("0x22")],e,n)));return function(t,e,n){const i=new Xc(t,new ug);return i[Ag("0x44")]=e,i[Ag("0x4a")].addMany(n),i}(t[Ag("0x22")],i||n,r)}));return n.items.addMany(i),n}(t,((n,i,o,r)=>{const s=t.model[Ag("0x1")].selection;if(r&&s[Ag("0x19")]){const e=(0,Uu.first)(s.getSelectedBlocks())||t.model.schema[Ag("0x16")](s);t[Ag("0x2e")][Ag("0x52")]((t=>{t.setSelection(e,"in")}))}e.execute(n,i,"command:"+o)})),s=new wu(i,{filteredView:r,queryView:{label:Uh(i,Ag("0x15"))},class:Ag("0xe"),infoView:{text:{notFound:{primary:Uh(i,Ag("0x27"))},noSearchableItems:{primary:Uh(i,"No commands available")}}}});return o.set({class:Ag("0x53")+this._uiCssClasses}),o[Ag("0x21")](Ag("0x1a")).to(e,Ag("0x1a")),o[Ag("0x4d")][Ag("0x33")].add(s),o[Ag("0x38")][Ag("0x34")]({label:Uh(i,Ag("0x28")),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>',tooltip:!0}),o.on(Ag("0x55"),((t,e,i)=>{i?(s[Ag("0x17")](),n.showFakeVisualSelection(),r[Ag("0x25")][Ag("0x2f")](0,0)):this[Ag("0x1f")]&&this[Ag("0x4f")][Ag("0x2d")](this[Ag("0x1f")])||n[Ag("0x36")]()})),o})),t.ui.componentFactory[Ag("0x54")](Ag("0x41"),(t=>{const n=new U(t);return n[Ag("0x34")]({label:Uh(t,Ag("0x24")),tooltip:Uh(t,"AI Assistant"),icon:Jm,class:"ck-ai-assistant-button "+this[Ag("0x5e")]}),n.bind(Ag("0x1a")).to(e),n[Ag("0x21")](Ag("0x4")).to(this,Ag("0x37")),this[Ag("0x4c")](n,"execute",(()=>e[Ag("0x18")]())),n}))}afterInit(){!function(t){function e(t){return t[Ag("0x48")]((t=>String[Ag("0x50")](t)))[Ag("0x42")]("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[Ag("0x8")](0),r=i[Ag("0x3c")](o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[Ag("0x31")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[Ag("0x20")](Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t[Ag("0x61")]:t[Ag("0x49")],d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l[Ag("0x14")][Ag("0x4b")](e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}[Ag("0x3")](t="",e="",n=Ag("0x46")){const i=this[Ag("0x49")],o=i[Ag("0x0")][Ag("0xa")];i[Ag("0x51")].get(Ph)[Ag("0xb")]();const r=new _g,s=new ClipboardEvent(Ag("0x23"),{clipboardData:r}),a=new Ro(r),c=new no(o,s,{dataTransfer:a});o[Ag("0x1")][Ag("0x26")](Ag("0x23"),c),this[Ag("0x1f")]||(this._initView(),this[Ag("0x2c")]=new Xh(i,this[Ag("0x39")].textAdapter,this[Ag("0x1f")])),this[Ag("0x2c")].updateView({actionId:n,query:t,htmlContent:a.getData(Ag("0x10")),label:e,mainActionLabel:om[i[Ag("0x2e")][Ag("0x1")].selection.isCollapsed?Ag("0x3a"):Ag("0x12")]}),this[Ag("0x4f")][Ag("0x54")]({view:this[Ag("0x1f")],position:{target:()=>{const t=Array[Ag("0x2b")](i.model[Ag("0x1")][Ag("0x58")][Ag("0x43")]())[Ag("0x48")]((t=>!t[Ag("0x19")]&&t.end.isAtStart?i[Ag("0x2e")].createRange(t.start,i[Ag("0x2e")][Ag("0x1d")](t[Ag("0x59")][Ag("0x3f")])):t))[Ag("0x48")]((t=>i[Ag("0x0")].mapper[Ag("0x11")](t))).map((t=>i[Ag("0x0")][Ag("0xa")].domConverter.viewRangeToDom(t))).map((t=>new Uu.Rect(t)));return Uu.Rect[Ag("0x6")](t)}}}),this[Ag("0x1f")].focus(),this[Ag("0x37")]=!0}hideUI(){if(!this[Ag("0x37")])return;const t=this[Ag("0x49")][Ag("0x51")][Ag("0x4b")](Ph);this[Ag("0x2c")][Ag("0x17")](),this._balloon[Ag("0x40")](this._formView),t.hideFakeVisualSelection(),this[Ag("0x49")][Ag("0x0")][Ag("0xa")][Ag("0x5")](),this[Ag("0x37")]=!1}_initView(){const t=this[Ag("0x49")][Ag("0x51")].get(Ph);this[Ag("0x1f")]=new eg(this[Ag("0x49")][Ag("0x22")],this[Ag("0x5e")],this[Ag("0x49")][Ag("0x14")][Ag("0x4b")](Ag("0x13"))),this._enableAIBalloonInteractions(),this[Ag("0x4c")](this[Ag("0x1f")],Ag("0x3b"),(()=>{const e=this[Ag("0x2c")][Ag("0x5a")];this[Ag("0x3d")](),t[Ag("0x35")](e)})),this[Ag("0x4c")](this[Ag("0x1f")],"insertContentBelow",(()=>{const e=this[Ag("0x2c")][Ag("0x5a")];this[Ag("0x3d")](),t.insertContentBelow(e)}))}_enableAIBalloonInteractions(){e({emitter:this[Ag("0x1f")],activator:()=>!!this[Ag("0x1f")],contextElements:()=>[this[Ag("0x4f")][Ag("0xa")][Ag("0x25")]],callback:()=>this[Ag("0x3d")]()}),this[Ag("0x1f")].on("change:value",(()=>{this._balloon[Ag("0x1b")]()})),this._formView[Ag("0x5d")][Ag("0x34")]("Esc",((t,e)=>{this[Ag("0x3d")](),e()}))}}function Cg(t,e){return void 0!==t.order&&void 0===e[Ag("0x5b")]?1:void 0===t.order&&void 0!==e[Ag("0x5b")]?-1:void 0!==t[Ag("0x5b")]&&void 0!==e.order?t[Ag("0x5b")]-e[Ag("0x5b")]:0}function yg(t,e){e[Ag("0xc")](Cg);const n={},i=[];for(const o of e)if(void 0!==o[Ag("0x5b")]){if(o[Ag("0x5b")]in n)throw new Uu.CKEditorError("ai-commands-config-order-collision",t,{conflictingDefinitions:[o,n[o[Ag("0x5b")]]]});n[o[Ag("0x5b")]]=o,i[Ag("0x60")](o.order,0,o)}else i.push(o);return i}const Eg=["Direct","AIAssistant","includes","Improve using compelling, optimistic language to convey confidence in the writing.","French","Summarize","Hindi","You are using the trial version of CKEditor 5 ai plugin with limited usage. Make sure you will not use it in the production environment.","Simplify language","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","init","Change style","ai-trial-license-key-reached-limit-changes","concat","ai.aiAssistant.extraCommandGroups","Friendly","generate","Business","legal","Make longer","Translate the content to Simplified Chinese language.","_licenseKeyCheckInterval","simplifyLanguage","Improve writing","find","ai-invalid-license-key","push","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","aiLicenseKeyTrialLimit:operations","translateChinese","Translate","Professional","Translate the content to Spanish language.","editOrReview","Translate the content to French language.","filter","forEach","Translate the content to English language.","Change tone","locale","aiLicenseKeyValid","continue","Translate the content to Hindi language.","ai.aiAssistant.commands","makeLonger","journalism","destroy","Journalism","pluginName","Improve using polished, formal, and respectful language to convey professional expertise and competence.","editor","Confident","Improve this content by using descriptive language and inserting more information and more detailed explanations.","Simplified Chinese","define","translateEnglish","changeTone","English","Continue","Rewrite this content as a journalist using engaging language to convey the importance of the information.","requires","makeShorter","Improve using direct language, using only the essential information.","config","improveWriting","Rewrite this content as a legal professional using valid legal terminology.","translateHindi","translateGerman","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","licenseKey","translate","ai.aiAssistant.removeCommands","Legal","Portuguese","translatePortuguese","casual","get","poetic","Casual","Spanish","aiLicenseKeyInvalid","commands","changeStyle","Translate to %0","professional","Translate the content to German language.","aiLicenseKeyTrial","Improve using friendly, comforting language, to convey understanding and empathy.","Translate the content to Portuguese language.","Rewrite this content as a poem using poetic techniques without losing the original meaning.","groupId","confident","Make shorter","translateFrench","translateSpanish"];var Ig,Sg;Ig=Eg,Sg=432,function(t){for(;--t;)Ig.push(Ig.shift())}(++Sg);const Tg=function(t,e){return Eg[t-=0]};class Dg extends Yt{static get[Tg("0x8")](){return[vg,Ph]}static get[Tg("0x5b")](){return Tg("0x2c")}constructor(t){super(t);const e=t[Tg("0xb")];var n;e[Tg("0x2")](Tg("0x56"),(n=t[Tg("0x52")],[{groupId:Tg("0x4c"),groupLabel:Uh(n,"Edit or review"),commands:[{id:Tg("0xc"),label:Uh(n,Tg("0x42")),prompt:Tg("0x34")},{id:Tg("0x9"),label:Uh(n,Tg("0x28")),prompt:Tg("0x10")},{id:Tg("0x57"),label:Uh(n,Tg("0x3e")),prompt:Tg("0x0")},{id:Tg("0x41"),label:Uh(n,Tg("0x33")),prompt:"Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand."}]},{groupId:Tg("0x3b"),groupLabel:Uh(n,"Generate from selection"),commands:[{id:"summarize",label:Uh(n,Tg("0x30")),prompt:Tg("0x46")},{id:Tg("0x54"),label:Uh(n,Tg("0x6")),prompt:"Start with the provided content and write at the end of it continuing this topic. Keep the added part short."}]},{groupId:Tg("0x4"),groupLabel:Uh(n,Tg("0x51")),commands:[{id:Tg("0x20"),label:Uh(n,Tg("0x4a")),prompt:Tg("0x5c")},{id:Tg("0x17"),label:Uh(n,Tg("0x1a")),prompt:"Improve using casual, informal language to convey a casual conversation with a real person."},{id:"direct",label:Uh(n,Tg("0x2b")),prompt:Tg("0xa")},{id:Tg("0x27"),label:Uh(n,Tg("0x5e")),prompt:Tg("0x2e")},{id:"friendly",label:Uh(n,Tg("0x3a")),prompt:Tg("0x23")}]},{groupId:Tg("0x1e"),groupLabel:Uh(n,Tg("0x36")),commands:[{id:"business",label:Uh(n,Tg("0x3c")),prompt:"Rewrite this content as a business professional with formal language."},{id:Tg("0x3d"),label:Uh(n,Tg("0x14")),prompt:Tg("0xd")},{id:Tg("0x58"),label:Uh(n,Tg("0x5a")),prompt:Tg("0x7")},{id:Tg("0x19"),label:Uh(n,"Poetic"),prompt:Tg("0x25")}]},{groupId:Tg("0x12"),groupLabel:Uh(n,Tg("0x49")),commands:[{id:Tg("0x3"),label:Uh(n,Tg("0x1f"),[Uh(n,Tg("0x5"))]),prompt:Tg("0x50")},{id:Tg("0x2a"),label:Uh(n,"Translate to %0",[Uh(n,Tg("0x1b"))]),prompt:Tg("0x4b")},{id:Tg("0x16"),label:Uh(n,"Translate to %0",[Uh(n,Tg("0x15"))]),prompt:Tg("0x24")},{id:Tg("0xf"),label:Uh(n,"Translate to %0",[Uh(n,"German")]),prompt:Tg("0x21")},{id:Tg("0x29"),label:Uh(n,Tg("0x1f"),[Uh(n,Tg("0x2f"))]),prompt:Tg("0x4d")},{id:Tg("0x48"),label:Uh(n,Tg("0x1f"),[Uh(n,Tg("0x1"))]),prompt:Tg("0x3f")},{id:Tg("0xe"),label:Uh(n,Tg("0x1f"),[Uh(n,Tg("0x31"))]),prompt:Tg("0x55")},{id:"translateArabic",label:Uh(n,"Translate to %0",[Uh(n,"Arabic")]),prompt:"Translate the content to Arabic language."}]}])),e[Tg("0x2")](Tg("0x39"),[]),e[Tg("0x2")](Tg("0x13"),[]);const i=e[Tg("0x18")]("ai.aiAssistant.commands"),o=e[Tg("0x18")]("ai.aiAssistant.extraCommandGroups"),r=e[Tg("0x18")](Tg("0x13"));o.forEach((t=>{const e=i[Tg("0x43")]((e=>e[Tg("0x26")]===t.groupId));e?e[Tg("0x1d")]=e[Tg("0x1d")][Tg("0x38")](t[Tg("0x1d")]):i[Tg("0x45")](t)})),i[Tg("0x4f")]((t=>{t.commands=t[Tg("0x1d")][Tg("0x4e")]((t=>!r[Tg("0x2d")](t.id)))})),e.set(Tg("0x56"),i)}[Tg("0x35")](){const t=this[Tg("0x5d")];this[Tg("0x11")]=t[Tg("0xb")][Tg("0x18")](Tg("0x11")),this._licenseKeyCheckInterval=setInterval((()=>{let e;for(const n in t){const i=n,o=t[i];if(Tg("0x22")===o||Tg("0x1c")===o||Tg("0x53")===o||Tg("0x47")===o){delete t[i],e=o;break}}if(Tg("0x1c")===e)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError(Tg("0x44"),null);if(Tg("0x22")===e&&console.info(Tg("0x32")),Tg("0x47")===e)throw clearInterval(this[Tg("0x40")]),new Uu.CKEditorError(Tg("0x37"),null);Tg("0x53")===e&&clearInterval(this[Tg("0x40")])}),1e3)}[Tg("0x59")](){this._licenseKeyCheckInterval&&clearInterval(this[Tg("0x40")])}}const Mg=["aitextadapter-send-request-failed","aborted","get","textAdapter","requires","assign","reject","AI_ERROR_GET_PARAMETERS","plugins","editor","locale","catch","object","error","makeRequest","application/json","_prepareRequestParameters","resolve","AI_ERROR_GET_HEADERS","abortController","name","init"];var Bg,Og;Bg=Mg,Og=159,function(t){for(;--t;)Bg.push(Bg.shift())}(++Og);const Ng=function(t,e){return Mg[t-=0]};class Pg extends Yt{static get[Ng("0x15")](){return[Vh]}constructor(t){super(t),this[Ng("0xe")]=new AbortController}[Ng("0x10")](){this[Ng("0x4")][Ng("0x3")][Ng("0x13")](Vh)[Ng("0x14")]=this}abort(){this[Ng("0xe")].signal[Ng("0x12")]||(this[Ng("0xe")].abort(),this.abortController=new AbortController)}async[Ng("0x9")](t){return this.sendRequest(t)[Ng("0x6")]((t=>{if(t instanceof Fh)return Promise[Ng("0x1")](t);if("AbortError"==t[Ng("0xf")])return Promise[Ng("0xc")]();throw console[Ng("0x8")](t),new Uu.CKEditorError(Ng("0x11"),null)}))}async _prepareRequestHeaders(t,e){const n=this[Ng("0x4")][Ng("0x5")],i={"Content-Type":Ng("0xa")};if(Ng("0x7")==typeof t)Object[Ng("0x0")](i,t);else if(t)try{const n=await t(e);Object[Ng("0x0")](i,n)}catch(t){return Promise[Ng("0x1")](new Fh(Uh(n,Ng("0xd"))))}return i}async[Ng("0xb")](t,e){const n=this.editor[Ng("0x5")];if(Ng("0x7")==typeof t)return t;try{return await t(e)}catch(t){return Promise[Ng("0x1")](new Fh(Uh(n,Ng("0x2"))))}}}const Rg=["prepareMessages","ai.openAI.requestHeaders","AI_ERROR_CONTEXT_LENGTH","filter","POST","_prepareRequestHeaders","_cleanUpData","split","length","_requestParameters","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","get","_readStreamableResponse","_apiUrl","_isBufferIncomplete","ai.openAI.requestParameters.top_p","delta","_readStaticResponse","choices","user","getReader","read","signal","reject","ai.openAI.requestParameters.temperature","content","config","includes","context_length_exceeded","sendRequest","[DONE]","</span>","text","resolve","editor","_requestHeaders","stream","define","parse","Instruction:\n","locale","json","gpt-3.5-turbo","pluginName","system","abortController","ai.openAI.apiUrl"];var Lg,jg;Lg=Rg,jg=498,function(t){for(;--t;)Lg.push(Lg.shift())}(++jg);const zg=function(t,e){return Rg[t-=0]};zg("0xf"),zg("0x1"),zg("0x13"),zg("0x1f"),zg("0x24"),zg("0x21"),zg("0x19");var Vg,Fg,Ug,Hg;!function(t){t.HEADER="header",t.QUERY="query"}(Vg||(Vg={})),function(t){t.HEADER="header",t.QUERY="query"}(Fg||(Fg={})),function(t){t.HTTP="http",t.HTTPS="https"}(Ug||(Ug={})),function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"}(Hg||(Hg={}));var Gg;!function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"}(Gg||(Gg={}));var qg,Wg;!function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"}(qg||(qg={})),function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"}(Wg||(Wg={}));__webpack_require__(4079);const Kg={},Zg={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();1===e.length&&(e=`0${e}`),Kg[t]=e,Zg[e]=t}var Yg;!function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"}(Yg||(Yg={}));Symbol.asyncIterator;Symbol.asyncIterator;Symbol.asyncIterator;Symbol.asyncIterator;const Jg="X-Amz-Date",$g="X-Amz-Signature",Qg="X-Amz-Security-Token";Jg.toLowerCase(),$g.toLowerCase(),Qg.toLowerCase();const Xg=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),tp=t=>Xg.test(t)||t.startsWith("[")&&t.endsWith("]"),ep=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),np=(t,e=!1)=>{if(!e)return ep.test(t);const n=t.split(".");for(const t of n)if(!np(t))return!1;return!0},ip={};Error;Ug.HTTP,Ug.HTTPS;const op=(t,e=!1)=>{if(e){for(const e of t.split("."))if(!op(e))return!1;return!0}return!!np(t)&&(!(t.length<3||t.length>63)&&(t===t.toLowerCase()&&!tp(t)))};let rp=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');const sp={isVirtualHostableS3Bucket:op,parseArn:t=>{const e=t.split(":");if(e.length<6)return null;const[n,i,o,r,s,...a]=e;return"arn"!==n||""===i||""===o||""===a[0]?null:{partition:i,service:o,region:r,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:t=>{const{partitions:e}=rp;for(const n of e){const{regions:e,outputs:i}=n;for(const[n,o]of Object.entries(e))if(n===t)return{...i,...o}}for(const n of e){const{regionRegex:e,outputs:i}=n;if(new RegExp(e).test(t))return{...i}}const n=e.find((t=>"aws"===t.id));if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}}};ip.aws=sp;var ap;!function(t){t.ENV="env",t.CONFIG="shared config entry"}(ap||(ap={}));var cp;!function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"}(cp||(cp={}));cp.STANDARD;const lp={},dp=new Array(64);for(let t=0,e="A".charCodeAt(0),n="Z".charCodeAt(0);t+e<=n;t++){const n=String.fromCharCode(t+e);lp[n]=t,dp[t]=n}for(let t=0,e="a".charCodeAt(0),n="z".charCodeAt(0);t+e<=n;t++){const n=String.fromCharCode(t+e),i=t+26;lp[n]=i,dp[i]=n}for(let t=0;t<10;t++){lp[t.toString(10)]=t+52;const e=t.toString(10),n=t+52;lp[e]=n,dp[n]=e}lp["+"]=62,dp[62]="+",lp["/"]=63,dp[63]="/";Uint8Array;Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]"));Math.ceil(2**127*(2-2**-23)),console.warn;class up extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,up.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}}const hp=(t,e={})=>{Object.entries(e).filter((([,t])=>void 0!==t)).forEach((([e,n])=>{null!=t[e]&&""!==t[e]||(t[e]=n)}));const n=t.message||t.Message||"UnknownError";return t.message=n,delete t.Message,t},mp=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),gp=function(){const t=Object.getPrototypeOf(this).constructor,e=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(e,t.prototype),e};gp.prototype=Object.create(String.prototype,{constructor:{value:gp,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(gp,String);var pp=__webpack_require__(2045);__webpack_require__(7643),__webpack_require__(1206);"function"==typeof TextEncoder&&new TextEncoder;class fp extends up{constructor(t){super(t),Object.setPrototypeOf(this,fp.prototype)}}var xp;!function(t){t.visit=(t,e)=>void 0!==t.chunk?e.chunk(t.chunk):void 0!==t.internalServerException?e.internalServerException(t.internalServerException):void 0!==t.modelStreamErrorException?e.modelStreamErrorException(t.modelStreamErrorException):void 0!==t.validationException?e.validationException(t.validationException):void 0!==t.throttlingException?e.throttlingException(t.throttlingException):void 0!==t.modelTimeoutException?e.modelTimeoutException(t.modelTimeoutException):e._(t.$unknown[0],t.$unknown[1])}(xp||(xp={}));bp=fp;var bp;const kp=["signal","ai.aws.requestParameters.anthropic_version","ai.aws.requestParameters.top_k","sendRequest","from","_readStreamableResponse","decode","getReader","_prepareRequestParameters","locale","text","_requestParameters","body","ai.aws.apiUrl","ai21.j2","ai.aws.bedrockClientConfig","_apiUrl","utf-8","\n[/INST]","_requestHeaders","\n\nAssistant:","Human:\n","preparePrompt","editor","send","data","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","cohere.command","_bedrockClientConfig","test","define","_processProxyRequest","bytes","abortController","ai.aws.requestParameters","_cleanUpData","chunk","Instruction:\n","meta.llama","get","bedrock-2023-05-31","_readStaticResponse","ai.aws.requestParameters.model","read","application/json","_processAWSRequest","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","completion","generation","<<SYS>>\n","AWSTextAdapter","utf8","ai.aws.requestParameters.stream","ai.aws.requestHeaders","config","startsWith","completions","parse","generations","ai.aws.requestParameters.max_tokens_to_sample","\n<</SYS>>\n[INST]\n","json","ai.aws.requestParameters.top_p","</span>","<span>","_readAsyncIterableResponse","resolve","getModelFamily","stringify"];var wp,Ap;wp=kp,Ap=426,function(t){for(;--t;)wp.push(wp.shift())}(++Ap);const _p=function(t,e){return kp[t-=0]};_p("0x3c"),_p("0xa"),_p("0x37"),_p("0x13"),_p("0x21"),_p("0x35"),_p("0x3e"),_p("0x17");const vp=["left","right","center","justify"];function Cp(t){return vp.includes(t)}function yp(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t}function Ep(t){const e=t.map((t=>{let e;return e="string"==typeof t?{name:t}:t,e})).filter((t=>{const e=vp.includes(t.name);return e||(0,Uu.logWarning)("alignment-config-name-not-recognized",{option:t}),e})),n=e.filter((t=>Boolean(t.className))).length;if(n&&n<e.length)throw new Uu.CKEditorError("alignment-config-classnames-are-missing",{configuredOptions:t});return e.forEach(((e,n,i)=>{const o=i.slice(n+1);if(o.some((t=>t.name==e.name)))throw new Uu.CKEditorError("alignment-config-name-already-defined",{option:e,configuredOptions:t});if(e.className){if(o.some((t=>t.className==e.className)))throw new Uu.CKEditorError("alignment-config-classname-already-defined",{option:e,configuredOptions:t})}})),e}const Ip="alignment";class Sp extends $t{refresh(){const t=this.editor.locale,e=(0,Uu.first)(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=Boolean(e)&&this._canBeAligned(e),this.isEnabled&&e.hasAttribute("alignment")?this.value=e.getAttribute("alignment"):this.value="rtl"===t.contentLanguageDirection?"right":"left"}execute(t={}){const e=this.editor,n=e.locale,i=e.model,o=i.document,r=t.value;i.change((t=>{const e=Array.from(o.selection.getSelectedBlocks()).filter((t=>this._canBeAligned(t))),i=e[0].getAttribute("alignment");yp(r,n)||i===r||!r?function(t,e){for(const n of t)e.removeAttribute(Ip,n)}(e,t):function(t,e,n){for(const i of t)e.setAttribute(Ip,n,i)}(e,t,r)}))}_canBeAligned(t){return this.editor.model.schema.checkAttribute(t,Ip)}}class Tp extends Yt{static get pluginName(){return"AlignmentEditing"}constructor(t){super(t),t.config.define("alignment",{options:vp.map((t=>({name:t})))})}init(){const t=this.editor,e=t.locale,n=t.model.schema,i=Ep(t.config.get("alignment.options")).filter((t=>Cp(t.name)&&!yp(t.name,e))),o=i.some((t=>!!t.className));n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),o?t.conversion.attributeToAttribute(function(t){const e={};for(const n of t)e[n.name]={key:"class",value:n.className};const n={model:{key:"alignment",values:t.map((t=>t.name))},view:e};return n}(i)):t.conversion.for("downcast").attributeToAttribute(function(t){const e={};for(const{name:n}of t)e[n]={key:"style",value:{"text-align":n}};const n={model:{key:"alignment",values:t.map((t=>t.name))},view:e};return n}(i));const r=function(t){const e=[];for(const{name:n}of t)e.push({view:{key:"style",value:{"text-align":n}},model:{key:"alignment",value:n}});return e}(i);for(const e of r)t.conversion.for("upcast").attributeToAttribute(e);const s=function(t){const e=[];for(const{name:n}of t)e.push({view:{key:"align",value:n},model:{key:"alignment",value:n}});return e}(i);for(const e of s)t.conversion.for("upcast").attributeToAttribute(e);t.commands.add("alignment",new Sp(t))}}const Dp=new Map([["left",Uc.alignLeft],["right",Uc.alignRight],["center",Uc.alignCenter],["justify",Uc.alignJustify]]);class Mp extends Yt{get localizedOptionTitles(){const t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t,i=Ep(t.config.get("alignment.options"));i.map((t=>t.name)).filter(Cp).forEach((t=>this._addButton(t))),e.add("alignment",(o=>{const r=dl(o);ul(r,(()=>i.map((t=>e.create(`alignment:${t.name}`)))),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:n("Text alignment toolbar")}),r.buttonView.set({label:n("Text alignment"),tooltip:!0}),r.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const s="rtl"===o.contentLanguageDirection?Dp.get("right"):Dp.get("left"),a=t.commands.get("alignment");return r.buttonView.bind("icon").to(a,"value",(t=>Dp.get(t)||s)),r.bind("isEnabled").to(a,"isEnabled"),this.listenTo(r,"execute",(()=>{t.editing.view.focus()})),r}))}_addButton(t){const e=this.editor;e.ui.componentFactory.add(`alignment:${t}`,(n=>{const i=e.commands.get("alignment"),o=new U(n);return o.set({label:this.localizedOptionTitles[t],icon:Dp.get(t),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i),o.bind("isOn").to(i,"value",(e=>e===t)),this.listenTo(o,"execute",(()=>{e.execute("alignment",{value:t}),e.editing.view.focus()})),o}))}}class Bp extends Yt{static get requires(){return[Tp,Mp]}static get pluginName(){return"Alignment"}}class Op{constructor(t,e=20){this._batch=null,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 Np extends $t{constructor(t,e){super(t),this._buffer=new Op(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,i=t.text||"",o=i.length;let r=n.selection;if(t.selection?r=t.selection:t.range&&(r=e.createSelection(t.range)),!e.canEditAt(r))return;const s=t.resultRange;e.enqueueChange(this._buffer.batch,(t=>{this._buffer.lock();const a=Array.from(n.selection.getAttributes());e.deleteContent(r),i&&e.insertContent(t.createText(i,a),r),s?t.setSelection(s):r.is("documentSelection")||t.setSelection(r),this._buffer.unlock(),this._buffer.input(o)}))}}const Pp=["insertText","insertReplacementText"];class Rp extends to{constructor(t){super(t),this.focusObserver=t.getObserver(Oo),r.OB.isAndroid&&Pp.push("insertCompositionText");const e=t.document;e.on("beforeinput",((n,i)=>{if(!this.isEnabled)return;const{data:o,targetRanges:s,inputType:a,domEvent:c}=i;if(!Pp.includes(a))return;this.focusObserver.flush();const l=new r.M3(e,"insertText");e.fire(l,new no(t,c,{text:o,selection:t.createSelection(s)})),l.stop.called&&n.stop()})),e.on("compositionend",((n,{data:i,domEvent:o})=>{this.isEnabled&&!r.OB.isAndroid&&i&&e.fire("insertText",new no(t,o,{text:i,selection:e.selection}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class Lp extends Yt{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,i=e.document.selection;n.addObserver(Rp);const o=new Np(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",o),t.commands.add("input",o),this.listenTo(n.document,"insertText",((i,o)=>{n.document.isComposing||o.preventDefault();const{text:s,selection:a,resultRange:c}=o,l=Array.from(a.getRanges()).map((e=>t.editing.mapper.toModelRange(e)));let d=s;if(r.OB.isAndroid){const t=Array.from(l[0].getItems()).reduce(((t,e)=>t+(e.is("$textProxy")?e.data:"")),"");t&&(t.length<=d.length?d.startsWith(t)&&(d=d.substring(t.length),l[0].start=l[0].start.getShiftedBy(t.length)):t.startsWith(d)&&(l[0].start=l[0].start.getShiftedBy(d.length),d=""))}const u={text:d,selection:e.createSelection(l)};c&&(u.resultRange=t.editing.mapper.toModelRange(c)),t.execute("insertText",u),n.scrollToTheSelection()})),r.OB.isAndroid?this.listenTo(n.document,"keydown",((t,r)=>{!i.isCollapsed&&229==r.keyCode&&n.document.isComposing&&jp(e,o)})):this.listenTo(n.document,"compositionstart",(()=>{i.isCollapsed||jp(e,o)}))}}function jp(t,e){if(!e.isEnabled)return;const n=e.buffer;n.lock(),t.enqueueChange(n.batch,(()=>{t.deleteContent(t.document.selection)})),n.unlock()}class zp extends $t{constructor(t,e){super(t),this.direction=e,this._buffer=new Op(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,(i=>{this._buffer.lock();const o=i.createSelection(t.selection||n.selection);if(!e.canEditAt(o))return;const s=t.sequence||1,a=o.isCollapsed;if(o.isCollapsed&&e.modifySelection(o,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(s))return void this._replaceEntireContentWithParagraph(i);if(this._shouldReplaceFirstBlockWithParagraph(o,s))return void this.editor.execute("paragraph",{selection:o});if(o.isCollapsed)return;let c=0;o.getFirstRange().getMinimalFlatRanges().forEach((t=>{c+=(0,r.QX)(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),e.deleteContent(o,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),i.setSelection(o),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(i)))return!1;if(!e.schema.checkChild(i,"paragraph"))return!1;const o=i.getChild(0);return!o||!o.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n),o=t.createElement("paragraph");t.remove(t.createRangeIn(i)),t.insert(o,i),t.setSelection(o,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;const i=t.getFirstPosition(),o=n.schema.getLimitElement(i),r=o.getChild(0);return i.parent==r&&(!!t.containsEntireContent(r)&&(!!n.schema.checkChild(o,"paragraph")&&"paragraph"!=r.name))}}const Vp="word",Fp="selection",Up="backward",Hp="forward",Gp={deleteContent:{unit:Fp,direction:Up},deleteContentBackward:{unit:"codePoint",direction:Up},deleteWordBackward:{unit:Vp,direction:Up},deleteHardLineBackward:{unit:Fp,direction:Up},deleteSoftLineBackward:{unit:Fp,direction:Up},deleteContentForward:{unit:"character",direction:Hp},deleteWordForward:{unit:Vp,direction:Hp},deleteHardLineForward:{unit:Fp,direction:Hp},deleteSoftLineForward:{unit:Fp,direction:Hp}};class qp extends to{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",(()=>{n++})),e.on("keyup",(()=>{n=0})),e.on("beforeinput",((i,o)=>{if(!this.isEnabled)return;const{targetRanges:s,domEvent:a,inputType:c}=o,l=Gp[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==Fp&&(d.selectionToRemove=t.createSelection(s[0])),"deleteContentBackward"===c&&(r.OB.isAndroid&&(d.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}of e){if(t.parent.is("$text")){const e=t.parent.data,i=t.offset;if((0,r.to)(e,i)||(0,r.pp)(e,i)||(0,r.YK)(e,i))continue;n++}else n++;if(n>1)return!0}return!1}(s)&&(d.unit=Fp,d.selectionToRemove=t.createSelection(s)));const u=new $n(e,"delete",s[0]);e.fire(u,new no(t,a,d)),u.stop.called&&i.stop()})),r.OB.isBlink&&function(t){const e=t.view,n=e.document;let i=null,o=!1;function s(t){return t==r.Do.backspace||t==r.Do.delete}function a(t){return t==r.Do.backspace?Up:Hp}n.on("keydown",((t,{keyCode:e})=>{i=e,o=!1})),n.on("keyup",((r,{keyCode:c,domEvent:l})=>{const d=n.selection,u=t.isEnabled&&c==i&&s(c)&&!d.isCollapsed&&!o;if(i=null,u){const t=d.getFirstRange(),i=new $n(n,"delete",t),o={unit:Fp,direction:a(c),selectionToRemove:d};n.fire(i,new no(e,l,o))}})),n.on("beforeinput",((t,{inputType:e})=>{const n=Gp[e];s(i)&&n&&n.direction==a(i)&&(o=!0)}),{priority:"high"}),n.on("beforeinput",((t,{inputType:e,data:n})=>{i==r.Do.delete&&"insertText"==e&&""==n&&t.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class Wp extends Yt{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.model.document;e.addObserver(qp),this._undoOnBackspace=!1;const o=new zp(t,"forward");t.commands.add("deleteForward",o),t.commands.add("forwardDelete",o),t.commands.add("delete",new zp(t,"backward")),this.listenTo(n,"delete",((i,o)=>{n.isComposing||o.preventDefault();const{direction:r,sequence:s,selectionToRemove:a,unit:c}=o,l="forward"===r?"deleteForward":"delete",d={sequence:s};if("selection"==c){const e=Array.from(a.getRanges()).map((e=>t.editing.mapper.toModelRange(e)));d.selection=t.model.createSelection(e)}else d.unit=c;t.execute(l,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(i,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Kp extends Yt{static get requires(){return[Lp,Wp]}static get pluginName(){return"Typing"}}function Zp(t,e){let n=t.start;return{text:Array.from(t.getWalker({ignoreElementEnd:!1})).reduce(((t,{item:i})=>i.is("$text")||i.is("$textProxy")?t+i.data:(n=e.createPositionAfter(i),"")),""),range:e.createRange(n,t.end)}}class Yp extends((0,r.Re)()){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,i=n.document.selection,o=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),{text:r,range:s}=Zp(o,n),a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const n=Object.assign(e,{text:r,range:s});"object"==typeof a&&Object.assign(n,a),this.fire(`matched:${t}`,n)}}}class Jp extends Yt{static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.locale,o=e.document.selection;this.listenTo(n.document,"arrowKey",((t,e)=>{if(!o.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==r.Do.arrowright,s=e.keyCode==r.Do.arrowleft;if(!n&&!s)return;const a=i.contentLanguageDirection;let c=!1;c="ltr"===a&&n||"rtl"===a&&s?this._handleForwardMovement(e):this._handleBackwardMovement(e),!0===c&&t.stop()}),{context:"$text",priority:"highest"}),this.listenTo(o,"change:range",((t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&nf(o.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,i=n.document.selection,o=i.getFirstPosition();return!this._isGravityOverridden&&((!o.isAtStart||!$p(i,e))&&(!!nf(o,e)&&(tf(t),$p(i,e)&&nf(o,e,!0)?Xp(n,e):this._overrideGravity(),!0)))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,o=i.getFirstPosition();return this._isGravityOverridden?(tf(t),this._restoreGravity(),nf(o,e,!0)?Xp(n,e):Qp(n,e,o),!0):o.isAtStart?!!$p(i,e)&&(tf(t),Qp(n,e,o),!0):!$p(i,e)&&nf(o,e,!0)?(tf(t),Qp(n,e,o),!0):!!ef(o,e)&&(o.isAtEnd&&!$p(i,e)&&nf(o,e)?(tf(t),Qp(n,e,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view.document;t.editing.view.addObserver(Ha);let o=!1;this.listenTo(i,"mousedown",(()=>{o=!0})),this.listenTo(i,"selectionChange",(()=>{const t=this.attributes;if(!o)return;if(o=!1,!n.isCollapsed)return;if(!$p(n,t))return;const i=n.getFirstPosition();nf(i,t)&&(i.isAtStart||nf(i,t,!0)?Xp(e,t):this._isGravityOverridden||this._overrideGravity())}))}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",(()=>{const i=e.getFirstPosition();$p(e,n)&&nf(i,n)&&Xp(t,n)}),{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view;let o=!1,r=!1;this.listenTo(i.document,"delete",((t,e)=>{o="backward"===e.direction}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{if(!o)return;const t=n.getFirstPosition();r=$p(n,this.attributes)&&!ef(t,this.attributes)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{o&&(o=!1,r||t.model.enqueueChange((()=>{const t=n.getFirstPosition();$p(n,this.attributes)&&nf(t,this.attributes)&&(t.isAtStart||nf(t,this.attributes,!0)?Xp(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 $p(t,e){for(const n of e)if(t.hasAttribute(n))return!0;return!1}function Qp(t,e,n){const i=n.nodeBefore;t.change((n=>{if(i){const e=[],o=t.schema.isObject(i)&&t.schema.isInline(i);for(const[n,r]of i.getAttributes())!t.schema.checkAttribute("$text",n)||o&&!1===t.schema.getAttributeProperties(n).copyFromObject||e.push([n,r]);n.setSelectionAttribute(e)}else n.removeSelectionAttribute(e)}))}function Xp(t,e){t.change((t=>{t.removeSelectionAttribute(e)}))}function tf(t){t.preventDefault()}function ef(t,e){return nf(t.getShiftedBy(-1),e)}function nf(t,e,n=!1){const{nodeBefore:i,nodeAfter:o}=t;for(const t of e){const e=i?i.getAttribute(t):void 0,r=o?o.getAttribute(t):void 0;if((!n||void 0!==e&&void 0!==r)&&r!==e)return!0}return!1}const of={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:uf('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:uf("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:uf("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:uf('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:uf('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:uf("'"),to:[null,"‚",null,"’"]}},rf={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},sf=["symbols","mathematical","typography","quotes"];class af extends Yt{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(t){super(t),t.config.define("typing",{transformations:{include:sf}})}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"),i=function(t){const e=t.extra||[],n=t.remove||[],i=t=>!n.includes(t);return function(t){const e=new Set;for(const n of t)if("string"==typeof n&&rf[n])for(const t of rf[n])e.add(t);else e.add(n);return Array.from(e)}(t.include.concat(e).filter(i)).filter(i).map((t=>"string"==typeof t&&of[t]?of[t]:t)).filter((t=>"object"==typeof t)).map((t=>({from:cf(t.from),to:lf(t.to)})))}(t.config.get("typing.transformations")),o=new Yp(t.model,(t=>{for(const e of i){if(e.from.test(t))return{normalizedTransformation:e}}}));o.on("matched:data",((t,i)=>{if(!i.batch.isTyping)return;const{from:o,to:r}=i.normalizedTransformation,s=o.exec(i.text),a=r(s.slice(1)),c=i.range;let l=s.index;e.enqueueChange((t=>{for(let n=1;n<s.length;n++){const i=s[n],o=a[n-1];if(null==o){l+=i.length;continue}const r=c.start.getShiftedBy(l),d=e.createRange(r,r.getShiftedBy(i.length)),u=df(r);e.insertContent(t.createText(o,u),d),l+=o.length}e.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))})),o.bind("isEnabled").to(this)}}function cf(t){return"string"==typeof t?new RegExp(`(${xu(t)})$`):t}function lf(t){return"string"==typeof t?()=>[t]:t instanceof Array?()=>t:t}function df(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function uf(t){return new RegExp(`(^|\\s)(${t})([^${t}]*)(${t})$`)}function hf(t,e,n,i){return i.createRange(mf(t,e,n,!0,i),mf(t,e,n,!1,i))}function mf(t,e,n,i,o){let r=t.textNode||(i?t.nodeBefore:t.nodeAfter),s=null;for(;r&&r.getAttribute(e)==n;)s=r,r=i?r.previousSibling:r.nextSibling;return s?o.createPositionAt(s,i?"before":"after"):t}function gf(t,e,n,i){const o=t.editing.view,r=new Set;o.document.registerPostFixer((o=>{const s=t.model.document.selection;let a=!1;if(s.hasAttribute(e)){const c=hf(s.getFirstPosition(),e,s.getAttribute(e),t.model),l=t.editing.mapper.toViewRange(c);for(const t of l.getItems())t.is("element",n)&&!t.hasClass(i)&&(o.addClass(i,t),r.add(t),a=!0)}return a})),t.conversion.for("editingDowncast").add((t=>{function e(){o.change((t=>{for(const e of r.values())t.removeClass(i,e),r.delete(e)}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}function pf(t,e,n,i){let o,r=null;"function"==typeof i?o=i:(r=t.commands.get(i),o=()=>{t.execute(i)}),t.model.document.on("change:data",((s,a)=>{if(r&&!r.isEnabled||!e.isEnabled)return;const c=(0,Uu.first)(t.model.document.selection.getRanges());if(!c.isCollapsed)return;if(a.isUndo||!a.isLocal)return;const l=Array.from(t.model.document.differ.getChanges()),d=l[0];if(1!=l.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof i&&!["numberedList","bulletedList","todoList"].includes(i))return;if(r&&!0===r.value)return;const h=u.getChild(0),m=t.model.createRangeOn(h);if(!m.containsRange(c)&&!c.end.isEqual(m.end))return;const g=n.exec(h.data.substr(0,c.end.offset));g&&t.model.enqueueChange((e=>{const n=e.createPositionAt(u,0),i=e.createPositionAt(u,g[0].length),r=new xr(n,i);if(!1!==o({match:g})){e.remove(r);const n=t.model.document.selection.getFirstRange(),i=e.createRangeIn(u);!u.isEmpty||i.isEqual(n)||i.containsRange(n,!0)||e.remove(u)}r.detach(),t.model.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function ff(t,e,n,i){let o,r;n instanceof RegExp?o=n:r=n,r=r||(t=>{let e;const n=[],i=[];for(;null!==(e=o.exec(t))&&!(e&&e.length<4);){let{index:t,1:o,2:r,3:s}=e;const a=o+r+s;t+=e[0].length-a.length;const c=[t,t+o.length],l=[t+o.length+r.length,t+o.length+r.length+s.length];n.push(c),n.push(l),i.push([t+o.length,t+o.length+r.length])}return{remove:n,format:i}}),t.model.document.on("change:data",((n,o)=>{if(o.isUndo||!o.isLocal||!e.isEnabled)return;const s=t.model,a=s.document.selection;if(!a.isCollapsed)return;const c=Array.from(s.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const d=a.focus,u=d.parent,{text:h,range:m}=function(t,e){let n=t.start;const i=Array.from(t.getItems()).reduce(((t,i)=>!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(n=e.createPositionAfter(i),""):t+i.data),"");return{text:i,range:e.createRange(n,t.end)}}(s.createRange(s.createPositionAt(u,0),d),s),g=r(h),p=xf(m.start,g.format,s),f=xf(m.start,g.remove,s);p.length&&f.length&&s.enqueueChange((e=>{if(!1!==i(e,p)){for(const t of f.reverse())e.remove(t);s.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function xf(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 bf extends Yt{static get requires(){return[Wp]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&pf(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&pf(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&pf(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&pf(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=kf(this.editor,"bold");ff(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),ff(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(t.get("italic")){const t=kf(this.editor,"italic");ff(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),ff(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(t.get("code")){const t=kf(this.editor,"code");ff(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(t.get("strikethrough")){const t=kf(this.editor,"strikethrough");ff(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],i=new RegExp(`^(#{${n}})\\s$`);pf(this.editor,this,i,(()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&pf(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&pf(t,this,/^```$/,(()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&pf(this.editor,this,/^---$/,"horizontalLine")}}function kf(t,e){return(n,i)=>{if(!t.commands.get(e).isEnabled)return!1;const o=t.model.schema.getValidRanges(i,e);for(const t of o)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}class wf extends $t{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,i=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(n.isCollapsed)i?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const o=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of o)i?t.setAttribute(this.attributeKey,i,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 Af="bold";class _f extends Yt{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Af}),t.model.schema.setAttributeProperties(Af,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Af,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(Af,new wf(t,Af)),t.keystrokes.set("CTRL+B",Af)}}const vf="bold";class Cf extends Yt{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(vf,(n=>{const i=t.commands.get(vf),o=new U(n);return o.set({label:e("Bold"),icon:Uc.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(vf),t.editing.view.focus()})),o}))}}class yf extends Yt{static get requires(){return[_f,Cf]}static get pluginName(){return"Bold"}}const Ef="code";class If extends Yt{static get pluginName(){return"CodeEditing"}static get requires(){return[Jp]}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Ef}),t.model.schema.setAttributeProperties(Ef,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:Ef,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),t.commands.add(Ef,new wf(t,Ef)),t.plugins.get(Jp).registerAttribute(Ef),gf(t,Ef,"code","ck-code_selected")}}var Sf=__webpack_require__(8180),Tf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Sf.Z,Tf);Sf.Z.locals;const Df="code";class Mf extends Yt{static get pluginName(){return"CodeUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Df,(n=>{const i=t.commands.get(Df),o=new U(n);return o.set({label:e("Code"),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>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(Df),t.editing.view.focus()})),o}))}}class Bf extends Yt{static get requires(){return[If,Mf]}static get pluginName(){return"Code"}}const Of="italic";class Nf extends Yt{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Of}),t.model.schema.setAttributeProperties(Of,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Of,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Of,new wf(t,Of)),t.keystrokes.set("CTRL+I",Of)}}const Pf="italic";class Rf extends Yt{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Pf,(n=>{const i=t.commands.get(Pf),o=new U(n);return o.set({label:e("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(Pf),t.editing.view.focus()})),o}))}}class Lf extends Yt{static get requires(){return[Nf,Rf]}static get pluginName(){return"Italic"}}const jf="strikethrough";class zf extends Yt{static get pluginName(){return"StrikethroughEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:jf}),t.model.schema.setAttributeProperties(jf,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:jf,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(jf,new wf(t,jf)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}const Vf="strikethrough";class Ff extends Yt{static get pluginName(){return"StrikethroughUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Vf,(n=>{const i=t.commands.get(Vf),o=new U(n);return o.set({label:e("Strikethrough"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(Vf),t.editing.view.focus()})),o}))}}class Uf extends Yt{static get requires(){return[zf,Ff]}static get pluginName(){return"Strikethrough"}}const Hf="subscript";class Gf extends Yt{static get pluginName(){return"SubscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Hf}),t.model.schema.setAttributeProperties(Hf,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Hf,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(Hf,new wf(t,Hf))}}const qf="subscript";class Wf extends Yt{static get pluginName(){return"SubscriptUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(qf,(n=>{const i=t.commands.get(qf),o=new U(n);return o.set({label:e("Subscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(qf),t.editing.view.focus()})),o}))}}class Kf extends Yt{static get requires(){return[Gf,Wf]}static get pluginName(){return"Subscript"}}const Zf="superscript";class Yf extends Yt{static get pluginName(){return"SuperscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Zf}),t.model.schema.setAttributeProperties(Zf,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Zf,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(Zf,new wf(t,Zf))}}const Jf="superscript";class $f extends Yt{static get pluginName(){return"SuperscriptUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Jf,(n=>{const i=t.commands.get(Jf),o=new U(n);return o.set({label:e("Superscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(Jf),t.editing.view.focus()})),o}))}}class Qf extends Yt{static get requires(){return[Yf,$f]}static get pluginName(){return"Superscript"}}const Xf="underline";class tx extends Yt{static get pluginName(){return"UnderlineEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Xf}),t.model.schema.setAttributeProperties(Xf,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Xf,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(Xf,new wf(t,Xf)),t.keystrokes.set("CTRL+U","underline")}}const ex="underline";class nx extends Yt{static get pluginName(){return"UnderlineUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ex,(n=>{const i=t.commands.get(ex),o=new U(n);return o.set({label:e("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(ex),t.editing.view.focus()})),o}))}}class ix extends Yt{static get requires(){return[tx,nx]}static get pluginName(){return"Underline"}}function*ox(t,e){for(const n of e)n&&t.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class rx extends $t{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,i=e.schema,o=n.isCollapsed,r=n.getFirstRange(),s=r.start.parent,a=r.end.parent;if(i.isLimit(s)||i.isLimit(a))return o||s!=a||e.deleteContent(n),!1;if(o){const e=ox(t.model.schema,n.getAttributes());return sx(t,r.start),t.setSelectionAttribute(e),!0}{const i=!(r.start.isAtStart&&r.end.isAtEnd),o=s==a;if(e.deleteContent(n,{leaveUnmerged:i}),i){if(o)return sx(t,n.focus),!0;t.setSelection(a,0)}}return!1}}function sx(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}const ax={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class cx extends to{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",((t,e)=>{n=e.shiftKey})),e.on("beforeinput",((i,o)=>{if(!this.isEnabled)return;let s=o.inputType;r.OB.isSafari&&n&&"insertParagraph"==s&&(s="insertLineBreak");const a=o.domEvent,c=ax[s];if(!c)return;const l=new $n(e,"enter",o.targetRanges[0]);e.fire(l,new no(t,a,{isSoft:c.isSoft})),l.stop.called&&i.stop()}))}observe(){}stopObserving(){}}class lx extends Yt{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(cx),t.commands.add("enter",new rx(t)),this.listenTo(n,"enter",((i,o)=>{n.isComposing||o.preventDefault(),o.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}class dx extends $t{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n){const i=n.isCollapsed,o=n.getFirstRange(),r=o.start.parent,s=o.end.parent,a=r==s;if(i){const i=ox(t.schema,n.getAttributes());ux(t,e,o.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(i)}else{const i=!(o.start.isAtStart&&o.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:i}),a?ux(t,e,n.focus):i&&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 i=e.getFirstRange(),o=i.start.parent,r=i.end.parent;if((hx(o,t)||hx(r,t))&&o!==r)return!1;return!0}(t.schema,e.selection)}}function ux(t,e,n){const i=e.createElement("softBreak");t.insertContent(i,n),e.setSelection(i,"after")}function hx(t,e){return!t.is("rootElement")&&(e.isLimit(t)||hx(t.parent,e))}class mx extends Yt{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,o=i.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,{writer:e})=>e.createEmptyElement("br")}),i.addObserver(cx),t.commands.add("shiftEnter",new dx(t)),this.listenTo(o,"enter",((e,n)=>{o.isComposing||n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())}),{priority:"low"})}}class gx extends $t{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,i=e.document.selection,o=Array.from(i.getSelectedBlocks()),r=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(r){const e=o.filter((t=>px(t)||xx(n,t)));this._applyQuote(t,e)}else this._removeQuote(t,o.filter(px))}))}_getValue(){const t=this.editor.model.document.selection,e=(0,Uu.first)(t.getSelectedBlocks());return!(!e||!px(e))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=(0,Uu.first)(t.getSelectedBlocks());return!!n&&xx(e,n)}_removeQuote(t,e){fx(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=[];fx(t,e).reverse().forEach((e=>{let i=px(e.start);i||(i=t.createElement("blockQuote"),t.wrap(e,i)),n.push(i)})),n.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function px(t){return"blockQuote"==t.parent.name?t.parent:null}function fx(t,e){let n,i=0;const o=[];for(;i<e.length;){const r=e[i],s=e[i+1];n||(n=t.createPositionBefore(r)),s&&r.nextSibling==s||(o.push(t.createRange(n,t.createPositionAfter(r))),n=null),i++}return o}function xx(t,e){const n=t.checkChild(e.parent,"blockQuote"),i=t.checkChild(["$root","blockQuote"],e);return n&&i}class bx extends Yt{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[lx,Wp]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new gx(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer((n=>{const i=t.model.document.differ.getChanges();for(const t of i)if("insert"==t.type){const i=t.position.nodeAfter;if(!i)continue;if(i.is("element","blockQuote")&&i.isEmpty)return n.remove(i),!0;if(i.is("element","blockQuote")&&!e.checkChild(t.position,i))return n.unwrap(i),!0;if(i.is("element")){const t=n.createRangeIn(i);for(const i of t.getItems())if(i.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(i),i))return n.unwrap(i),!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,i=t.model.document.selection,o=t.commands.get("blockQuote");this.listenTo(n,"enter",((e,n)=>{if(!i.isCollapsed||!o.value)return;i.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||!i.isCollapsed||!o.value)return;const r=i.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"})}}var kx=__webpack_require__(636),wx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(kx.Z,wx);kx.Z.locals;class Ax extends Yt{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",(n=>{const i=t.commands.get("blockQuote"),o=new U(n);return o.set({label:e("Block quote"),icon:Uc.quote,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("blockQuote"),t.editing.view.focus()})),o}))}}class _x extends Yt{static get requires(){return[bx,Ax]}static get pluginName(){return"BlockQuote"}}const vx='<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>';class Cx extends Yt{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor,e=t.commands.get("ckbox");if(!e)return;const n=t.t;if(t.ui.componentFactory.add("ckbox",(i=>{const o=new U(i);return o.set({label:n("Open file manager"),icon:vx,tooltip:!0}),o.bind("isOn","isEnabled").to(e,"value","isEnabled"),o.on("execute",(()=>{t.execute("ckbox")})),o})),t.plugins.has("ImageInsertUI")){const i=t.plugins.get("ImageInsertUI");i.registerIntegration({name:"assetManager",observable:e,buttonViewCreator:()=>{const t=this.editor.ui.componentFactory.create("ckbox");return t.icon=Uc.imageAssetManager,t.bind("label").to(i,"isImageSelected",(t=>n(t?"Replace image with file manager":"Insert image with file manager"))),t},formViewCreator:()=>{const t=this.editor.ui.componentFactory.create("ckbox");return t.icon=Uc.imageAssetManager,t.withText=!0,t.bind("label").to(i,"isImageSelected",(t=>n(t?"Replace with file manager":"Insert with file manager"))),t.on("execute",(()=>{i.dropdownView.isOpen=!1})),t}})}}}var yx=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Ex=t=>{let e=0;for(let n=0;n<t.length;n++){let i=t[n];e=83*e+yx.indexOf(i)}return e},Ix=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},Sx=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},Tx=(t,e)=>(t=>t<0?-1:1)(t)*Math.pow(Math.abs(t),e),Dx=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},Mx=t=>{if(!t||t.length<6)throw new Dx("The blurhash string must be at least 6 characters");let e=Ex(t[0]),n=Math.floor(e/9)+1,i=e%9+1;if(t.length!==4+2*i*n)throw new Dx(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*i*n}`)},Bx=t=>{let e=t>>8&255,n=255&t;return[Ix(t>>16),Ix(e),Ix(n)]},Ox=(t,e)=>{let n=Math.floor(t/361),i=Math.floor(t/19)%19,o=t%19;return[Tx((n-9)/9,2)*e,Tx((i-9)/9,2)*e,Tx((o-9)/9,2)*e]},Nx=(t,e,n,i)=>{Mx(t),i|=1;let o=Ex(t[0]),r=Math.floor(o/9)+1,s=o%9+1,a=(Ex(t[1])+1)/166,c=new Array(s*r);for(let e=0;e<c.length;e++)if(0===e){let n=Ex(t.substring(2,6));c[e]=Bx(n)}else{let n=Ex(t.substring(4+2*e,6+2*e));c[e]=Ox(n,a*i)}let l=4*e,d=new Uint8ClampedArray(l*n);for(let t=0;t<n;t++)for(let i=0;i<e;i++){let o=0,a=0,u=0;for(let l=0;l<r;l++)for(let r=0;r<s;r++){let d=Math.cos(Math.PI*i*r/e)*Math.cos(Math.PI*t*l/n),h=c[r+l*s];o+=h[0]*d,a+=h[1]*d,u+=h[2]*d}let h=Sx(o),m=Sx(a),g=Sx(u);d[4*i+0+t*l]=h,d[4*i+1+t*l]=m,d[4*i+2+t*l]=g,d[4*i+3+t*l]=255}return d};function Px(t){const e=[];let n=0;for(const i in t){const o=parseInt(i,10);isNaN(o)||(o>n&&(n=o),e.push(`${t[i]} ${i}w`))}const i=[{srcset:e.join(","),sizes:`(max-width: ${n}px) 100vw, ${n}px`,type:"image/webp"}];return{imageFallbackUrl:t.default,imageSources:i}}const Rx=32;function Lx({url:t,method:e="GET",data:n,onUploadProgress:i,signal:o,authorization:r}){const s=new XMLHttpRequest;s.open(e,t.toString()),s.setRequestHeader("Authorization",r),s.setRequestHeader("CKBox-Version","CKEditor 5"),s.responseType="json";const a=()=>{s.abort()};return new Promise(((t,e)=>{o.throwIfAborted(),o.addEventListener("abort",a),s.addEventListener("loadstart",(()=>{o.addEventListener("abort",a)})),s.addEventListener("loadend",(()=>{o.removeEventListener("abort",a)})),s.addEventListener("error",(()=>{e()})),s.addEventListener("abort",(()=>{e()})),s.addEventListener("load",(()=>{const n=s.response;if(!n||n.statusCode>=400)return e(n&&n.message);t(n)})),i&&s.upload.addEventListener("progress",(t=>{i(t)})),s.send(n)}))}const jx={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};class zx extends $t{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:t=>this.fire("ckbox:choose",t)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",(()=>{this.refresh()}),{priority:"low"}),this.on("ckbox:open",(()=>{this.isEnabled&&!this.value&&(this._wrapper=(0,Uu.createElement)(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))})),this.on("ckbox:close",(()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,t.editing.view.focus())})),this.on("ckbox:choose",((i,o)=>{if(!this.isEnabled)return;const r=t.commands.get("insertImage"),s=t.commands.get("link"),a=function({assets:t,isImageAllowed:e,isLinkAllowed:n}){return t.map((t=>function(t){const e=t.data.metadata;if(!e)return!1;return e.width&&e.height}(t)?{id:t.data.id,type:"image",attributes:Vx(t)}:{id:t.data.id,type:"link",attributes:Fx(t)})).filter((t=>"image"===t.type?e:n))}({assets:o,isImageAllowed:r.isEnabled,isLinkAllowed:s.isEnabled}),c=a.length;0!==c&&(e.change((t=>{for(const e of a){const i=e===a[c-1],o=1===c;this._insertAsset(e,i,t,o),n&&(setTimeout((()=>this._chosenAssets.delete(e)),1e3),this._chosenAssets.add(e))}})),t.editing.view.focus())})),this.listenTo(t,"destroy",(()=>{this.fire("ckbox:close"),this._chosenAssets.clear()}))}_insertAsset(t,e,n,i){const o=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n,i),e||n.setSelection(o.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:i,imageTextAlternative:o,imageWidth:r,imageHeight:s,imagePlaceholder:a}=t.attributes;e.execute("insertImage",{source:{src:n,sources:i,alt:o,width:r,height:s,...a?{placeholder:a}:null}})}_insertLink(t,e,n){const i=this.editor,o=i.model,r=o.document.selection,{linkName:s,linkHref:a}=t.attributes;if(r.isCollapsed){const t=(0,Uu.toMap)(r.getAttributes()),c=e.createText(s,t);if(!n){const t=r.getLastPosition(),n=t.parent;"paragraph"===n.name&&n.isEmpty||i.execute("insertParagraph",{position:t});const s=o.insertContent(c);return e.setSelection(s),void i.execute("link",a)}const l=o.insertContent(c);e.setSelection(l)}i.execute("link",a)}}function Vx(t){const{imageFallbackUrl:e,imageSources:n}=Px(t.data.imageUrls),{description:i,width:o,height:r,blurHash:s}=t.data.metadata,a=function(t){if(t)try{const e=`${Rx}px`,n=document.createElement("canvas");n.setAttribute("width",e),n.setAttribute("height",e);const i=n.getContext("2d");if(!i)return;const o=i.createImageData(Rx,Rx),r=Nx(t,Rx,Rx);return o.data.set(r),i.putImageData(o,0,0),n.toDataURL()}catch(t){return}}(s);return{imageFallbackUrl:e,imageSources:n,imageTextAlternative:i||"",imageWidth:o,imageHeight:r,...a?{imagePlaceholder:a}:null}}function Fx(t){return{linkName:t.data.name,linkHref:Ux(t)}}function Ux(t){const e=new URL(t.data.url);return e.searchParams.set("download","true"),e.toString()}class Hx extends Yt{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}async init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const i=t.plugins.get("CloudServices"),o=t.config.get("cloudServices.tokenUrl"),r=t.config.get("ckbox.tokenUrl");if(!r)throw new Uu.CKEditorError("ckbox-plugin-missing-token-url",this);this._token=r==o?i.token:await i.registerTokenUrl(r)}getToken(){return this._token}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(t,e){const[,n]=t.value.split("."),i=JSON.parse(atob(n)),o=i.auth&&i.auth.ckbox&&i.auth.ckbox.workspaces||[i.aud];return e?"superadmin"==(i.auth&&i.auth.ckbox&&i.auth.ckbox.role)||o.includes(e)?e:null:o[0]}(this._token,e);if(null==n)throw(0,Uu.logError)("ckbox-access-default-workspace-error"),t;return n}async getCategoryIdForFile(t,e){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),i=this.editor.config.get("ckbox.defaultUploadCategories"),o=this._getAvailableCategories(e),r="string"==typeof t?(s=await async function(t,e){try{const n=await fetch(t,{method:"HEAD",cache:"force-cache",...e});return n.ok&&n.headers.get("content-type")||""}catch{return""}}(t,e),jx[s]):t.name.match(/\.(?<ext>[^.]+)$/).groups.ext.toLowerCase();var s;const a=await o;if(!a)throw n;if(i){const t=Object.keys(i).find((t=>i[t].find((t=>t.toLowerCase()==r))));if(t){const e=a.find((e=>e.id===t||e.name===t));if(!e)throw n;return e.id}}const c=a.find((t=>t.extensions.find((t=>t.toLowerCase()==r))));if(!c)throw n;return c.id}async _getAvailableCategories(t){const e=this.editor,n=this._token,{signal:i}=t,o=e.config.get("ckbox.serviceOrigin"),r=this.getWorkspaceId();try{const t=[];let e,n=0;do{const i=await s(n);t.push(...i.items),e=i.totalCount-(n+50),n+=50}while(e>0);return t}catch{return i.throwIfAborted(),void(0,Uu.logError)("ckbox-fetch-category-http-error")}function s(t){const e=new URL("categories",o);return e.searchParams.set("limit",50..toString()),e.searchParams.set("offset",t.toString()),e.searchParams.set("workspaceId",r),Lx({url:e,signal:i,authorization:n.value})}}}class Gx extends Yt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",kh,Wx]}static get pluginName(){return"CKBoxUploadAdapter"}async afterInit(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const i=t.plugins.get(kh),o=t.plugins.get(Hx);i.createUploadAdapter=e=>new qx(e,t,o);const r=!t.config.get("ckbox.ignoreDataId"),s=t.plugins.get("ImageUploadEditing");r&&s.on("uploadComplete",((e,{imageElement:n,data:i})=>{t.model.change((t=>{t.setAttribute("ckboxImageId",i.ckboxImageId,n)}))}))}}class qx{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}async upload(){const t=this.ckboxUtils,e=this.editor.t,n=await this.loader.file,i=await t.getCategoryIdForFile(n,{signal:this.controller.signal}),o=new URL("assets",this.serviceOrigin),r=new FormData;o.searchParams.set("workspaceId",t.getWorkspaceId()),r.append("categoryId",i),r.append("file",n);return Lx({method:"POST",url:o,data:r,onUploadProgress:t=>{t.lengthComputable&&(this.loader.uploadTotal=t.total,this.loader.uploaded=t.loaded)},signal:this.controller.signal,authorization:this.token.value}).then((async t=>{const e=Px(t.imageUrls);return{ckboxImageId:t.id,default:e.imageFallbackUrl,sources:e.imageSources}})).catch((()=>{const t=e("Cannot upload file:")+` ${n.name}.`;return Promise.reject(t)}))}abort(){this.controller.abort()}}class Wx extends Yt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",Gx,Hx]}init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;(e||n)&&(this._checkImagePlugins(),t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new zx(t)))}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||(0,Uu.logError)("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck(((t,e)=>{if(!!!t.last.getAttribute("linkHref")&&"ckboxLinkId"===e)return!1}))}_initConversion(){const t=this.editor;t.conversion.for("downcast").add((t=>{t.on("attribute:ckboxLinkId:imageBlock",((t,e,n)=>{const{writer:i,mapper:o,consumable:r}=n;if(!r.consume(e.item,t.name))return;const s=[...o.toViewElement(e.item).getChildren()].find((t=>"a"===t.name));s&&(e.item.hasAttribute("ckboxLinkId")?i.setAttribute("data-ckbox-resource-id",e.item.getAttribute("ckboxLinkId"),s):i.removeAttribute("data-ckbox-resource-id",s))}),{priority:"low"}),t.on("attribute:ckboxLinkId",((t,e,n)=>{const{writer:i,mapper:o,consumable:r}=n;if(r.consume(e.item,t.name)){if(e.attributeOldValue){const t=Zx(i,e.attributeOldValue);i.unwrap(o.toViewRange(e.range),t)}if(e.attributeNewValue){const t=Zx(i,e.attributeNewValue);if(e.item.is("selection")){const e=i.document.selection;i.wrap(e.getFirstRange(),t)}else i.wrap(o.toViewRange(e.range),t)}}}),{priority:"low"})})),t.conversion.for("upcast").add((t=>{t.on("element:a",((t,e,n)=>{const{writer:i,consumable:o}=n;if(!e.viewItem.getAttribute("href"))return;if(!o.consume(e.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const r=e.viewItem.getAttribute("data-ckbox-resource-id");if(r)if(e.modelRange)for(let t of e.modelRange.getItems())t.is("$textProxy")&&(t=t.textNode),Yx(t)&&i.setAttribute("ckboxLinkId",r,t);else{const t=e.modelCursor.nodeBefore||e.modelCursor.parent;i.setAttribute("ckboxLinkId",r,t)}}),{priority:"low"})})),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:t=>t.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const e=t.commands.get("replaceImageSource");e&&this.listenTo(e,"cleanupImage",((t,[e,n])=>{e.removeAttribute("ckboxImageId",n)}))}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;e.document.registerPostFixer(function(t){return e=>{let n=!1;const i=t.model,o=t.commands.get("ckbox");if(!o)return n;for(const t of i.document.differ.getChanges()){if("insert"!==t.type&&"attribute"!==t.type)continue;const i="insert"===t.type?new ir(t.position,t.position.getShiftedBy(t.length)):t.range,r="attribute"===t.type&&"linkHref"===t.attributeKey&&null===t.attributeNewValue;for(const t of i.getItems()){if(r&&t.hasAttribute("ckboxLinkId")){e.removeAttribute("ckboxLinkId",t),n=!0;continue}const i=Kx(t,o._chosenAssets);for(const o of i){const i="image"===o.type?"ckboxImageId":"ckboxLinkId";o.id!==t.getAttribute(i)&&(e.setAttribute(i,o.id,t),n=!0)}}}return n}}(t)),e.document.registerPostFixer(function(t){return e=>!(t.hasAttribute("linkHref")||!t.hasAttribute("ckboxLinkId"))&&(e.removeSelectionAttribute("ckboxLinkId"),!0)}(n))}}function Kx(t,e){const n=t.is("element","imageInline")||t.is("element","imageBlock"),i=t.hasAttribute("linkHref");return[...e].filter((e=>"image"===e.type&&n?e.attributes.imageFallbackUrl===t.getAttribute("src"):"link"===e.type&&i?e.attributes.linkHref===t.getAttribute("linkHref"):void 0))}function Zx(t,e){const n=t.createAttributeElement("a",{"data-ckbox-resource-id":e},{priority:5});return t.setCustomProperty("link",!0,n),n}function Yx(t){return!!t.is("$text")||!(!t.is("element","imageInline")&&!t.is("element","imageBlock"))}class Jx extends Yt{static get pluginName(){return"CKBox"}static get requires(){return[Wx,Cx]}}function $x(t){if(Array.isArray(t)){const e=t.map($x);return t=>e.some((e=>e(t)))}if("origin"==t){const t=Uu.global.window.location.origin;return e=>new URL(e,Uu.global.document.baseURI).origin==t}if("function"==typeof t)return t;if(t instanceof RegExp)return e=>!(!e.match(t)&&!e.replace(/^https?:\/\//,"").match(t));return()=>!1}class Qx extends $t{constructor(t){super(t),this._wrapper=null,this._processInProgress=new Set,this.value=!1,this._canEdit=function(t){const e=$x(t);return t=>!(!t.is("element","imageInline")&&!t.is("element","imageBlock"))&&(!!t.hasAttribute("ckboxImageId")||!!t.hasAttribute("src")&&e(t.getAttribute("src")))}(t.config.get("ckbox.allowExternalImagesEditing")),this._prepareOptions=(0,Uu.abortableDebounce)(((t,e)=>this._prepareOptionsAbortable(t,e))),this._prepareListeners()}refresh(){const t=this.editor;this.value=this._getValue();const e=t.model.document.selection.getSelectedElement();this.isEnabled=!!e&&this._canEdit(e)&&!this._checkIfElementIsBeingProcessed(e)}execute(){if(this._getValue())return;const t=(0,Uu.createElement)(document,"div",{class:"ck ckbox-wrapper"});this._wrapper=t,this.value=!0,document.body.appendChild(this._wrapper);const e={element:this.editor.model.document.selection.getSelectedElement(),controller:new AbortController};this._prepareOptions(e).then((e=>window.CKBox.mountImageEditor(t,e)),(t=>{const e=this.editor,n=e.t;e.plugins.get($d).showWarning(n("Failed to determine category of edited image."),{namespace:"ckbox"}),console.error(t),this._handleImageEditorClose()}))}destroy(){this._handleImageEditorClose(),this._prepareOptions.abort();for(const t of this._processInProgress.values())t.controller.abort();super.destroy()}_getValue(){return null!==this._wrapper}async _prepareOptionsAbortable(t,e){const n=this.editor,i=n.config.get("ckbox"),o=n.plugins.get(Hx),{element:r}=e;let s;const a=r.getAttribute("ckboxImageId");if(a)s={assetId:a};else{const e=r.getAttribute("src");s={imageUrl:e,uploadCategoryId:await o.getCategoryIdForFile(e,{signal:t})}}return{...s,imageEditing:{allowOverwrite:!1},tokenUrl:i.tokenUrl,onClose:()=>this._handleImageEditorClose(),onSave:t=>this._handleImageEditorSave(e,t)}}_prepareListeners(){this.listenTo(this.editor.model.document,"change:data",(()=>{this._getProcessingStatesOfDeletedImages().forEach((t=>{t.controller.abort()}))}))}_getProcessingStatesOfDeletedImages(){const t=[];for(const e of this._processInProgress.values())"$graveyard"==e.element.root.rootName&&t.push(e);return t}_checkIfElementIsBeingProcessed(t){for(const{element:e}of this._processInProgress)if(Ls(e,t))return!0;return!1}_handleImageEditorClose(){this._wrapper&&(this._wrapper.remove(),this._wrapper=null,this.editor.editing.view.focus(),this.refresh())}_handleImageEditorSave(t,e){const n=this.editor.locale.t,i=this.editor.plugins.get($d),o=this.editor.plugins.get(jc),r=o.add(n("Processing the edited image."));this._processInProgress.add(t),this._showImageProcessingIndicator(t.element,e),this.refresh(),this._waitForAssetProcessed(e.data.id,t.controller.signal).then((e=>{this._replaceImage(t.element,e)}),(e=>{this.editor.editing.reconvertItem(t.element),t.controller.signal.aborted||(!e||e instanceof Uu.CKEditorError?i.showWarning(n("Server failed to process the image."),{namespace:"ckbox"}):console.error(e))})).finally((()=>{this._processInProgress.delete(t),o.remove(r),this.refresh()}))}async _getAssetStatusFromServer(t,e){const n=this.editor.plugins.get(Hx),i=new URL("assets/"+t,this.editor.config.get("ckbox.serviceOrigin")),o=await Lx({url:i,signal:e,authorization:n.getToken().value}),r=o.metadata.metadataProcessingStatus;if(!r||"queued"==r)throw new Uu.CKEditorError("ckbox-image-not-processed");return{data:{...o}}}async _waitForAssetProcessed(t,e){const n=await(0,Uu.retry)((()=>this._getAssetStatusFromServer(t,e)),{signal:e,maxAttempts:5});if("success"!=n.data.metadata.metadataProcessingStatus)throw new Uu.CKEditorError("ckbox-image-processing-failed");return n}_showImageProcessingIndicator(t,e){const n=this.editor;n.editing.view.change((i=>{const o=n.editing.mapper.toViewElement(t),r=this.editor.plugins.get("ImageUtils").findViewImgElement(o);i.removeStyle("aspect-ratio",r),i.setAttribute("width",e.data.metadata.width,r),i.setAttribute("height",e.data.metadata.height,r),i.setStyle("width",`${e.data.metadata.width}px`,r),i.setStyle("height",`${e.data.metadata.height}px`,r),i.addClass("image-processing",o)}))}_replaceImage(t,e){const n=this.editor,{imageFallbackUrl:i,imageSources:o,imageWidth:r,imageHeight:s,imagePlaceholder:a}=Vx(e),c=Array.from(n.model.document.selection.getRanges());n.model.change((l=>{l.setSelection(t,"on"),n.execute("insertImage",{source:{src:i,sources:o,width:r,height:s,...a?{placeholder:a}:null,...t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:null}});const d=t.getChildren();t=n.model.document.selection.getSelectedElement();for(const e of d)l.append(l.cloneElement(e),t);l.setAttribute("ckboxImageId",e.data.id,t),l.setSelection(c)}))}}class Xx extends Yt{static get pluginName(){return"CKBoxImageEditEditing"}static get requires(){return[Wx,Hx,jc,$d,"ImageUtils","ImageEditing"]}init(){const{editor:t}=this;t.commands.add("ckboxImageEdit",new Qx(t))}}class tb extends Yt{static get pluginName(){return"CKBoxImageEditUI"}init(){const t=this.editor;t.ui.componentFactory.add("ckboxImageEdit",(e=>{const n=t.commands.get("ckboxImageEdit"),i=new U(e),o=e.t;return i.set({label:o("Edit image"),icon:'<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.1v12.86C0 15.603.534 16 1.186 16H6.45l3.647-3.596-3.48-3.254a.694.694 0 0 0-.958-.033L1.5 13.6V2.5h15v4.59a3.477 3.477 0 0 1 1.5.15V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.137 2.137 0 0 0-2.045 2.406 2.13 2.13 0 0 0 4.172.277 2.134 2.134 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.367-.44Z"/><path d="M8.1 17.612V20h2.39l7.046-7.046-2.39-2.39L8.1 17.612Zm11.283-6.506a.638.638 0 0 0 .139-.692.603.603 0 0 0-.139-.206L17.892 8.72a.63.63 0 0 0-.898 0l-1.167 1.163 2.391 2.39 1.165-1.167Z"/></svg>',tooltip:!0}),i.bind("isOn").to(n,"value",n,"isEnabled",((t,e)=>t&&e)),i.bind("isEnabled").to(n),this.listenTo(i,"execute",(()=>{t.execute("ckboxImageEdit"),t.editing.view.focus()})),i}))}}var eb=__webpack_require__(944),nb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(eb.Z,nb);eb.Z.locals;class ib extends Yt{static get pluginName(){return"CKBoxImageEdit"}static get requires(){return[Xx,tb]}}const ob='<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>';class rb extends Yt{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t;if(e.add("ckfinder",(e=>{const i=t.commands.get("ckfinder"),o=new U(e);return o.set({label:n("Insert image or file"),icon:ob,tooltip:!0}),o.bind("isEnabled").to(i),o.on("execute",(()=>{t.execute("ckfinder"),t.editing.view.focus()})),o})),t.plugins.has("ImageInsertUI")){const e=t.plugins.get("ImageInsertUI"),i=t.commands.get("ckfinder");e.registerIntegration({name:"assetManager",observable:i,buttonViewCreator:()=>{const t=this.editor.ui.componentFactory.create("ckfinder");return t.icon=Uc.imageAssetManager,t.bind("label").to(e,"isImageSelected",(t=>n(t?"Replace image with file manager":"Insert image with file manager"))),t},formViewCreator:()=>{const t=this.editor.ui.componentFactory.create("ckfinder");return t.icon=Uc.imageAssetManager,t.withText=!0,t.bind("label").to(e,"isImageSelected",(t=>n(t?"Replace with file manager":"Insert with file manager"))),t.on("execute",(()=>{e.dropdownView.isOpen=!1})),t}})}}}class sb extends $t{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new Uu.CKEditorError("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const i=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=e=>{i&&i(e),e.on("files:choose",(n=>{const i=n.data.files.toArray(),o=i.filter((t=>!t.isImage())),r=i.filter((t=>t.isImage()));for(const e of o)t.execute("link",e.getUrl());const s=[];for(const t of r){const n=t.getUrl();s.push(n||e.request("file:getProxyUrl",{file:t}))}s.length&&ab(t,s)})),e.on("file:choose:resizedImage",(e=>{const n=e.data.resizedUrl;if(n)ab(t,[n]);else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[e](n)}}function ab(t,e){if(t.commands.get("insertImage").isEnabled)t.execute("insertImage",{source:e});else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class cb extends Yt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[$d,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new Uu.CKEditorError("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new sb(t))}}class lb extends Yt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",cb,rb]}}const db={autoRefresh:!0},ub=36e5;class hb extends((0,Uu.ObservableMixin)()){constructor(t,e={}){if(super(),!t)throw new Uu.CKEditorError("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),this._refresh="function"==typeof t?t:()=>{return e=t,new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open("GET",e),i.addEventListener("load",(()=>{const e=i.status,o=i.response;return e<200||e>299?n(new Uu.CKEditorError("token-cannot-download-new-token",null)):t(o)})),i.addEventListener("error",(()=>n(new Error("Network Error")))),i.addEventListener("abort",(()=>n(new Error("Abort")))),i.send()}));var e},this._options={...db,...e}}init(){return new Promise(((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)}))}refreshToken(){return this._refresh().then((t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this)))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e="string"==typeof t,n=!/^".*"$/.test(t),i=e&&3===t.split(".").length;if(!n||!i)throw new Uu.CKEditorError("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((()=>{this.refreshToken()}),t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));if(!e)return ub;return Math.floor((1e3*e-Date.now())/2)}catch(t){return ub}}static create(t,e={}){return new hb(t,e).init()}}const mb=/^data:(\S*?);base64,/;class gb extends((0,Uu.EmitterMixin)()){constructor(t,e,n){if(super(),!t)throw new Uu.CKEditorError("fileuploader-missing-file",null);if(!e)throw new Uu.CKEditorError("fileuploader-missing-token",null);if(!n)throw new Uu.CKEditorError("fileuploader-missing-api-address",null);this.file=function(t){if("string"!=typeof t)return!1;const e=t.match(mb);return!(!e||!e.length)}(t)?function(t,e=512){try{const n=t.match(mb)[1],i=atob(t.replace(mb,"")),o=[];for(let t=0;t<i.length;t+=e){const n=i.slice(t,t+e),r=new Array(n.length);for(let t=0;t<n.length;t++)r[t]=n.charCodeAt(t);o.push(new Uint8Array(r))}return new Blob(o,{type:n})}catch(t){throw new Uu.CKEditorError("fileuploader-decoding-image-data-error",null)}}(t):t,this._token=e,this._apiAddress=n}onProgress(t){return this.on("progress",((e,n)=>t(n))),this}onError(t){return this.once("error",((e,n)=>t(n))),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=t=>()=>this.fire("error",t);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",(t=>{t.lengthComputable&&this.fire("progress",{total:t.total,uploaded:t.loaded})})),t.addEventListener("load",(()=>{const e=t.status,n=t.response;if(e<200||e>299)return this.fire("error",n.message||n.error)}))}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise(((n,i)=>{e.addEventListener("load",(()=>{const t=e.status,o=e.response;return t<200||t>299?o.message?i(new Uu.CKEditorError("fileuploader-uploading-data-failed",this,{message:o.message})):i(o.error):n(o)})),e.addEventListener("error",(()=>i(new Error("Network Error")))),e.addEventListener("abort",(()=>i(new Error("Abort")))),e.send(t)}))}}class pb{constructor(t,e){if(!t)throw new Uu.CKEditorError("uploadgateway-missing-token",null);if(!e)throw new Uu.CKEditorError("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new gb(t,this._token,this._apiAddress)}}class fb extends ne{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new hb(t,e)}createUploadGateway(t,e){return new pb(t,e)}}class xb extends ne{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[fb]}async init(){const t=this.context.config.get("cloudServices")||{};for(const[e,n]of Object.entries(t))this[e]=n;if(!this.tokenUrl)return void(this.token=null);const e=this.context.plugins.get("CloudServicesCore");this.token=await e.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)}async registerTokenUrl(t){if(this._tokens.has(t))return this.getTokenFor(t);const e=this.context.plugins.get("CloudServicesCore"),n=await e.createToken(t).init();return this._tokens.set(t,n),n}getTokenFor(t){const e=this._tokens.get(t);if(!e)throw new Uu.CKEditorError("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const t of this._tokens.values())t.destroy()}}function bb(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 kb(t,e,n){const i={};for(const o of t)if("class"===e){i[o[e].split(" ").shift()]=o[n]}else i[o[e]]=o[n];return i}function wb(t){return t.data.match(/^(\s*)/)[0]}function Ab(t){const e=t.document.selection,n=[];if(e.isCollapsed)return[e.anchor];const i=e.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:e}of i){if(!e.is("$textProxy"))continue;const{parent:i,startOffset:o}=e.textNode;if(!i.is("element","codeBlock"))continue;const r=wb(e.textNode),s=t.createPositionAt(i,o+r.length);n.push(s)}return n}function _b(t){const e=(0,Uu.first)(t.getSelectedBlocks());return!!e&&e.is("element","codeBlock")}function vb(t,e){return!e.is("rootElement")&&!t.isLimit(e)&&t.checkChild(e.parent,"codeBlock")}class Cb extends $t{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,i=n.document.selection,o=bb(e)[0],r=Array.from(i.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,o.language);n.change((t=>{s?this._applyCodeBlock(t,r,a):this._removeCodeBlock(t,r)}))}_getValue(){const t=this.editor.model.document.selection,e=(0,Uu.first)(t.getSelectedBlocks());return!!!(!e||!e.is("element","codeBlock"))&&e.getAttribute("language")}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=(0,Uu.first)(t.getSelectedBlocks());return!!n&&vb(e,n)}_applyCodeBlock(t,e,n){this._lastLanguage=n;const i=this.editor.model.schema,o=e.filter((t=>vb(i,t)));for(const e of o)t.rename(e,"codeBlock"),t.setAttribute("language",n,e),i.removeDisallowedAttributes([e],t),Array.from(e.getChildren()).filter((t=>!i.checkChild(e,t))).forEach((e=>t.remove(e)));o.reverse().forEach(((e,n)=>{const i=o[n+1];e.previousSibling===i&&(t.appendElement("softBreak",i),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)),i=n.nodeAfter;t.rename(i,"paragraph"),t.removeAttribute("language",i),t.remove(e)}t.rename(e,"paragraph"),t.removeAttribute("language",e)}}}class yb extends $t{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=Ab(t);for(const i of n){const n=e.createText(this._indentSequence);t.insertContent(n,i)}}))}_checkEnabled(){return!!this._indentSequence&&_b(this.editor.model.document.selection)}}class Eb extends $t{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=Ab(t);for(const n of e){const e=Ib(t,n,this._indentSequence);e&&t.deleteContent(t.createSelection(e))}}))}_checkEnabled(){if(!this._indentSequence)return!1;const t=this.editor.model;return!!_b(t.document.selection)&&Ab(t).some((e=>Ib(t,e,this._indentSequence)))}}function Ib(t,e,n){const i=function(t){let e=t.parent.getChild(t.index);e&&!e.is("element","softBreak")||(e=t.nodeBefore);if(!e||e.is("element","softBreak"))return null;return e}(e);if(!i)return null;const o=wb(i),r=o.lastIndexOf(n);if(r+n.length!==o.length)return null;if(-1===r)return null;const{parent:s,startOffset:a}=i;return t.createRange(t.createPositionAt(s,a+r),t.createPositionAt(s,a+r+n.length))}function Sb(t,e,n=!1){const i=kb(e,"language","class"),o=kb(e,"language","label");return(e,r,s)=>{const{writer:a,mapper:c,consumable:l}=s;if(!l.consume(r.item,"insert"))return;const d=r.item.getAttribute("language"),u=c.toViewPosition(t.createPositionBefore(r.item)),h={};n&&(h["data-language"]=o[d],h.spellcheck="false");const m=i[d]?{class:i[d]}:void 0,g=a.createContainerElement("code",m),p=a.createContainerElement("pre",h,g);a.insert(u,p),c.bindElements(r.item,g)}}const Tb="paragraph";class Db extends Yt{static get pluginName(){return"CodeBlockEditing"}static get requires(){return[mx]}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,i=t.editing.view,o=t.plugins.has("DocumentListEditing")?t.plugins.get("DocumentListEditing"):null,r=bb(t);t.commands.add("codeBlock",new Cb(t)),t.commands.add("indentCodeBlock",new yb(t)),t.commands.add("outdentCodeBlock",new Eb(t)),this.listenTo(i.document,"tab",((e,n)=>{const i=n.shiftKey?"outdentCodeBlock":"indentCodeBlock";t.commands.get(i).isEnabled&&(t.execute(i),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"pre"}),e.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",isBlock:!0,allowAttributes:["language"]}),e.addAttributeCheck(((t,e)=>!!(t.endsWith("codeBlock")&&o&&o.getListAttributeNames().includes(e))||!t.endsWith("codeBlock $text")&&void 0)),t.model.schema.addChildCheck(((t,e)=>{if(t.endsWith("codeBlock")&&e.isObject)return!1})),t.editing.downcastDispatcher.on("insert:codeBlock",Sb(n,r,!0)),t.data.downcastDispatcher.on("insert:codeBlock",Sb(n,r)),t.data.downcastDispatcher.on("insert:softBreak",function(t){return(e,n,i)=>{if("codeBlock"!==n.item.parent.name)return;const{writer:o,mapper:r,consumable:s}=i;if(!s.consume(n.item,"insert"))return;const a=r.toViewPosition(t.createPositionBefore(n.item));o.insert(a,o.createText("\n"))}}(n),{priority:"high"}),t.data.upcastDispatcher.on("element:code",function(t,e){const n=kb(e,"class","language"),i=e[0].language;return(t,e,o)=>{const r=e.viewItem,s=r.parent;if(!s||!s.is("element","pre"))return;if(e.modelCursor.findAncestor("codeBlock"))return;const{consumable:a,writer:c}=o;if(!a.test(r,{name:!0}))return;const l=c.createElement("codeBlock"),d=[...r.getClassNames()];d.length||d.push("");for(const t of d){const e=n[t];if(e){c.setAttribute("language",e,l);break}}l.hasAttribute("language")||c.setAttribute("language",i,l),o.convertChildren(r,l),o.safeInsert(l,e.modelCursor)&&(a.consume(r,{name:!0}),o.updateConversionResult(l,e))}}(0,r)),t.data.upcastDispatcher.on("text",((t,e,{consumable:n,writer:i})=>{let o=e.modelCursor;if(!n.test(e.viewItem))return;if(!o.findAncestor("codeBlock"))return;n.consume(e.viewItem);const r=e.viewItem.data.split("\n").map((t=>i.createText(t))),s=r[r.length-1];for(const t of r)if(i.insert(t,o),o=o.getShiftedBy(t.offsetSize),t!==s){const t=i.createElement("softBreak");i.insert(t,o),o=i.createPositionAfter(t)}e.modelRange=i.createRange(e.modelCursor,o),e.modelCursor=o})),t.data.upcastDispatcher.on("element:pre",((t,e,{consumable:n})=>{const i=e.viewItem;if(i.findAncestor("pre"))return;const o=Array.from(i.getChildren()),r=o.find((t=>t.is("element","code")));if(r)for(const t of o)t!==r&&t.is("$text")&&n.consume(t,{name:!0})}),{priority:"high"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,i)=>{let o=n.createRange(n.document.selection.anchor);if(i.targetRanges&&(o=t.editing.mapper.toModelRange(i.targetRanges[0])),!o.start.parent.is("element","codeBlock"))return;const r=i.dataTransfer.getData("text/plain"),s=new Ga(t.editing.view.document);i.content=function(t,e){const n=t.createDocumentFragment(),i=e.split("\n"),o=i.reduce(((e,n,o)=>(e.push(n),o<i.length-1&&e.push(t.createElement("br")),e)),[]);return t.appendChild(o,n),n}(s,r)})),this.listenTo(n,"getSelectedContent",((t,[i])=>{const o=i.anchor;!i.isCollapsed&&o.parent.is("element","codeBlock")&&o.hasSameParentAs(i.focus)&&n.change((n=>{const r=t.return;if(o.parent.is("element")&&(r.childCount>1||i.containsEntireContent(o.parent))){const e=n.createElement("codeBlock",o.parent.getAttributes());n.append(r,e);const i=n.createDocumentFragment();return n.append(e,i),void(t.return=i)}const s=r.getChild(0);e.checkAttribute(s,"code")&&n.setAttribute("code",!0,s)}))}))}afterInit(){const t=this.editor,e=t.commands,n=e.get("indent"),i=e.get("outdent");n&&n.registerChildCommand(e.get("indentCodeBlock"),{priority:"highest"}),i&&i.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,i=n.document,o=t.editing.view,r=i.selection.getLastPosition(),s=r.nodeAfter;if(e||!i.selection.isCollapsed||!r.isAtStart)return!1;if(!Bb(s))return!1;return t.model.change((e=>{t.execute("enter");const n=i.selection.anchor.parent.previousSibling;e.rename(n,Tb),e.setSelection(n,"in"),t.model.schema.removeDisallowedAttributes([n],e),e.remove(s)})),o.scrollToTheSelection(),!0}(t,n.isSoft)||function(t,e){const n=t.model,i=n.document,o=t.editing.view,r=i.selection.getLastPosition(),s=r.nodeBefore;let a;if(e||!i.selection.isCollapsed||!r.isAtEnd||!s||!s.previousSibling)return!1;if(Bb(s)&&Bb(s.previousSibling))a=n.createRange(n.createPositionBefore(s.previousSibling),n.createPositionAfter(s));else if(Mb(s)&&Bb(s.previousSibling)&&Bb(s.previousSibling.previousSibling))a=n.createRange(n.createPositionBefore(s.previousSibling.previousSibling),n.createPositionAfter(s));else{if(!(Mb(s)&&Bb(s.previousSibling)&&Mb(s.previousSibling.previousSibling)&&s.previousSibling.previousSibling&&Bb(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=i.selection.anchor.parent;e.rename(n,Tb),t.model.schema.removeDisallowedAttributes([n],e)})),o.scrollToTheSelection(),!0}(t,n.isSoft)||function(t){const e=t.model,n=e.document,i=n.selection.getLastPosition(),o=i.nodeBefore||i.textNode;let r;o&&o.is("$text")&&(r=wb(o));t.model.change((e=>{t.execute("shiftEnter"),r&&e.insertText(r,n.selection.anchor)}))}(t),n.preventDefault(),e.stop())}),{context:"pre"})}}function Mb(t){return t&&t.is("$text")&&!t.data.match(/\S/)}function Bb(t){return t&&t.is("element","softBreak")}const Ob='<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>';var Nb=__webpack_require__(9085),Pb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Nb.Z,Pb);Nb.Z.locals;class Rb extends Yt{static get pluginName(){return"CodeBlockUI"}init(){const t=this.editor,e=t.t,n=t.ui.componentFactory,i=bb(t);n.add("codeBlock",(n=>{const o=t.commands.get("codeBlock"),r=dl(n,rl),s=r.buttonView,a=e("Insert code block");return s.set({label:a,tooltip:!0,icon:Ob,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),ml(r,(()=>this._getLanguageListItemDefinitions(i)),{role:"menu",ariaLabel:a}),r}))}_getLanguageListItemDefinitions(t){const e=this.editor.commands.get("codeBlock"),n=new Uu.Collection;for(const i of t){const t={type:"button",model:new Qd({_codeBlockLanguage:i.language,label:i.label,role:"menuitemradio",withText:!0})};t.model.bind("isOn").to(e,"value",(e=>e===t.model._codeBlockLanguage)),n.add(t)}return n}}class Lb extends Yt{static get requires(){return[Db,Rb]}static get pluginName(){return"CodeBlock"}}const jb=["commands","CommentsOnly","setPermissions","get","no-permissions","isEnabled","noPermissions","permissions-set-permissions-invalid-channel-id","enableReadOnlyMode","document:write","CommentsRepository","editors","includes","comment:write","context","collaboration.channelId","pluginName","comment:modify_all","addCommentThread","plugins","Permissions","has","comment:admin","config","clearForceDisabled"];var zb,Vb;zb=jb,Vb=366,function(t){for(;--t;)zb.push(zb.shift())}(++Vb);const Fb=function(t,e){return jb[t-=0]};class Ub extends ne{static get[Fb("0x0")](){return Fb("0x4")}[Fb("0xb")](t,e){let n;if(e||(e=this[Fb("0x17")].config[Fb("0xc")](Fb("0x18"))),this.context.config.get("collaboration.channelId")==e?n=this[Fb("0x17")]:Fb("0x14")in this.context&&this[Fb("0x17")][Fb("0x14")]&&(n=this.context[Fb("0x14")].find((t=>t[Fb("0x7")].get("collaboration.channelId")==e))),!n)throw new Uu.CKEditorError(Fb("0x10"),null);const i=n[Fb("0x3")],o=i[Fb("0x5")]("CommentsRepository")?i.get(Fb("0x13")):void 0,r=i[Fb("0x5")]("CommentsOnly")&&i[Fb("0xc")](Fb("0xa")),s=t[Fb("0x15")](Fb("0x12")),a=t[Fb("0x15")](Fb("0x1")),c=t[Fb("0x15")](Fb("0x6")),l=t[Fb("0x15")](Fb("0x16")),d=l||c,u=d||a,h=s||d;if(r&&(r[Fb("0xe")]=!s&&u),n instanceof Oc&&(s||u&&o?n.disableReadOnlyMode(Fb("0xd")):n[Fb("0x11")]("no-permissions")),o){o.setPermissions({admin:c,modifyAll:a,write:l,resolve:h},e);const t=n instanceof Oc&&n[Fb("0x9")][Fb("0xc")](Fb("0x2"));t&&(d?t[Fb("0x8")](Fb("0xf")):t.forceDisabled("noPermissions"))}}}function Hb(t,e){const n=t.t;switch(e){case"Anonymous":return n("Anonymous");case"Yes":return n("Yes");case"No":return n("No");case"Are you sure?":return n("Are you sure?");default:return""}}var Gb=__webpack_require__(4853),qb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Gb.Z,qb);Gb.Z.locals;const Wb=["split","licenseKeyTrialLimit:operations","pluginName","users.anonymousUserId","licenseKey","licenseKeyTrialLimit:revisions","You are using the trial version of CKEditor 5 collaboration plugin with limited usage. Make sure you will not use it in the production environment.","toUpperCase","locale","trim","_id","init","destroy","users","licenseKeyValid","string","requires","initials","_licenseKeyCheckInterval","_getInitial","includes","ck-user__marker--","add","useAnonymousUser","Anonymous","_locale","context","_getNextColor","anonymous-user","invalid-license-key","config","licenseKeyTrialLimit:time","trial-license-key-reached-limit-time","users-add-duplicated-id","define","name","decorate","getSelectionClass","getUser","avatar","users-me-already-defined","ck-user__selection--","defineMe","users-me-missing-user","trial-license-key-reached-limit-revisions","users.colorsCount","length","info","addUser","isAnonymous","trial-license-key-reached-limit-changes","has","_myId","licenseKeyTrial","_isAnonymous","_lastColor","charAt","get","licenseKeyInvalid","getMarkerClass","getOperationAuthor"];var Kb,Zb;Kb=Wb,Zb=430,function(t){for(;--t;)Kb.push(Kb.shift())}(++Zb);const Yb=function(t,e){return Wb[t-=0]};class Jb extends ne{static get[Yb("0x3c")](){return"Users"}static get[Yb("0xd")](){return[Ub]}constructor(t){super(t),this.context[Yb("0x1b")][Yb("0x1f")](Yb("0x0"),Yb("0x19")),this[Yb("0x17")][Yb("0x1b")][Yb("0x1f")](Yb("0x2a"),8),this[Yb("0xa")]=new Uu.Collection,this[Yb("0x16")]=t[Yb("0x5")],this[Yb("0xf")]=null,this[Yb("0x34")]=0,this[Yb("0x31")]=null,this[Yb("0x21")](Yb("0x39"))}[Yb("0x8")](){const t=this[Yb("0x17")];this.licenseKey=t[Yb("0x1b")].get(Yb("0x1"));const e=[Yb("0x32"),Yb("0x37"),Yb("0xb"),"licenseKeyTrialLimit:operations",Yb("0x1c"),Yb("0x2")];this._licenseKeyCheckInterval=setInterval((()=>{let n;for(const i in t){const o=t[i];if(e[Yb("0x11")](o)){delete t[i],n=o;break}}if(Yb("0x37")===n)throw clearInterval(this[Yb("0xf")]),new Uu.CKEditorError(Yb("0x1a"),null);if(Yb("0x32")===n&&console[Yb("0x2c")](Yb("0x3")),Yb("0x3b")===n)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError(Yb("0x2f"),null);if("licenseKeyTrialLimit:time"===n)throw clearInterval(this[Yb("0xf")]),new Uu.CKEditorError(Yb("0x1d"),null);if(Yb("0x2")===n)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError(Yb("0x29"),null);Yb("0xb")===n&&clearInterval(this[Yb("0xf")])}),1e3),this._addAnonymousUser()}get me(){return null==this[Yb("0x31")]?null:this[Yb("0x23")](this[Yb("0x31")])}[Yb("0x2d")]({id:t,name:e,...n}){if(!t||Yb("0xc")!=typeof t)throw new Uu.CKEditorError("users-add-invalid-id");if(this[Yb("0xa")][Yb("0x30")](t))throw new Uu.CKEditorError(Yb("0x1e"),null,{id:t});const i={...n,id:t,name:Qb(this[Yb("0x16")],e),color:this[Yb("0x18")]()};i[Yb("0x20")]=Qb(this[Yb("0x16")],i[Yb("0x20")]);const o=new $b(i);return this[Yb("0xa")][Yb("0x13")](o),o}[Yb("0x23")](t){return this[Yb("0xa")][Yb("0x36")](t)}[Yb("0x14")](){const t=this.context[Yb("0x1b")].get(Yb("0x0"));this._myId||this[Yb("0x27")](t)}[Yb("0x27")](t){if(this._myId)throw new Uu.CKEditorError(Yb("0x25"),null);if(!this.getUser(t))throw new Uu.CKEditorError(Yb("0x28"),null);this[Yb("0x31")]=t}[Yb("0x39")](){return this.me}[Yb("0x9")](){super.destroy(),clearInterval(this[Yb("0xf")])}[Yb("0x18")](){const t=this[Yb("0x17")][Yb("0x1b")][Yb("0x36")](Yb("0x2a"));return this._lastColor>=t&&(this[Yb("0x34")]=0),new Xb(this[Yb("0x34")]++)}_addAnonymousUser(){const t=this[Yb("0x17")][Yb("0x1b")][Yb("0x36")](Yb("0x0"));this[Yb("0x2d")]({id:t,name:Hb(this[Yb("0x16")],"Anonymous")})[Yb("0x33")]=!0}}class $b{constructor(t){this.id=t.id,this.color=t.color,this[Yb("0x20")]=t[Yb("0x20")],this[Yb("0x24")]=t.avatar,this[Yb("0x33")]=!1}get[Yb("0x2e")](){return this[Yb("0x33")]}get[Yb("0xe")](){const t=this[Yb("0x20")][Yb("0x3a")](" ");return 1===t.length?this._getInitial(t[0]):this._getInitial(t[0])+this[Yb("0x10")](t[t[Yb("0x2b")]-1])}[Yb("0x10")](t){return t[Yb("0x35")](0)[Yb("0x4")]()}}function Qb(t,e=""){return""==(e=e[Yb("0x6")]())?Hb(t,Yb("0x15")):e}class Xb{constructor(t){this[Yb("0x7")]=t}getBackgroundColorClass(){return"ck-user__bg-color--"+this[Yb("0x7")]}[Yb("0x22")](){return Yb("0x26")+this[Yb("0x7")]}[Yb("0x38")](){return Yb("0x12")+this[Yb("0x7")]}}var tk=__webpack_require__(9097),ek={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(tk.Z,ek);tk.Z.locals;const nk=["url('","ck-user__notification","ck-user__avatar","avatar","div","content","ck ck-user__name ck-user__name--hidden","name","extendTemplate","initials","setTemplate","push","ck-user","ck ck-user__name","ck-user__img","isAnonymous","notificationView","ck-user__icon"];var ik,ok;ik=nk,ok=152,function(t){for(;--t;)ik.push(ik.shift())}(++ok);const rk=function(t,e){return nk[t-=0]};class sk extends u{constructor(t,e,n){super(t),this[rk("0x11")]=e[rk("0x11")],this.notificationView=null;const i=["ck",rk("0x6")];if(e[rk("0x7")]&&i[rk("0x3")]("ck-user__anonymous"),e.avatar&&i[rk("0x3")](rk("0xc")),n){const t=new j;t[rk("0x0")]({attributes:{class:[rk("0x9")]}}),t[rk("0xf")]='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z"/></svg>\n',this[rk("0x8")]={tag:"div",attributes:{class:["ck",rk("0xb")],"data-cke-tooltip-position":"n","data-cke-tooltip-text":n},children:[t]}}const o=[{tag:rk("0xe"),attributes:{class:i,style:{"background-image":e[rk("0xd")]?rk("0xa")+e[rk("0xd")]+"')":""}}},{tag:rk("0xe"),attributes:{class:e[rk("0xd")]?rk("0x10"):rk("0x5")},children:[{text:e[rk("0x1")]}]}];this.notificationView&&o[rk("0x3")](this[rk("0x8")]),this[rk("0x2")]({tag:rk("0xe"),attributes:{class:["ck",rk("0x4")],"data-user-id":e.id},children:o})}}function ak(t){return ak="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ak(t)}function ck(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function lk(t){ck(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===ak(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function dk(t){if(ck(1,arguments),!function(t){return ck(1,arguments),t instanceof Date||"object"===ak(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=lk(t);return!isNaN(Number(e))}function uk(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function hk(t,e){return ck(2,arguments),function(t,e){ck(2,arguments);var n=lk(t).getTime(),i=uk(e);return new Date(n+i)}(t,-uk(e))}function mk(t){ck(1,arguments);var e=lk(t),n=e.getUTCDay(),i=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-i),e.setUTCHours(0,0,0,0),e}function gk(t){ck(1,arguments);var e=lk(t),n=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var o=mk(i),r=new Date(0);r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0);var s=mk(r);return e.getTime()>=o.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function pk(t){ck(1,arguments);var e=lk(t),n=mk(e).getTime()-function(t){ck(1,arguments);var e=gk(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),mk(n)}(e).getTime();return Math.round(n/6048e5)+1}var fk={};function xk(){return fk}function bk(t,e){var n,i,o,r,s,a,c,l;ck(1,arguments);var d=xk(),u=uk(null!==(n=null!==(i=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=lk(t),m=h.getUTCDay(),g=(m<u?7:0)+m-u;return h.setUTCDate(h.getUTCDate()-g),h.setUTCHours(0,0,0,0),h}function kk(t,e){var n,i,o,r,s,a,c,l;ck(1,arguments);var d=lk(t),u=d.getUTCFullYear(),h=xk(),m=uk(null!==(n=null!==(i=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:h.firstWeekContainsDate)&&void 0!==i?i:null===(c=h.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(u+1,0,m),g.setUTCHours(0,0,0,0);var p=bk(g,e),f=new Date(0);f.setUTCFullYear(u,0,m),f.setUTCHours(0,0,0,0);var x=bk(f,e);return d.getTime()>=p.getTime()?u+1:d.getTime()>=x.getTime()?u:u-1}function wk(t,e){ck(1,arguments);var n=lk(t),i=bk(n,e).getTime()-function(t,e){var n,i,o,r,s,a,c,l;ck(1,arguments);var d=xk(),u=uk(null!==(n=null!==(i=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),h=kk(t,e),m=new Date(0);return m.setUTCFullYear(h,0,u),m.setUTCHours(0,0,0,0),bk(m,e)}(n,e).getTime();return Math.round(i/6048e5)+1}function Ak(t,e){for(var n=t<0?"-":"",i=Math.abs(t).toString();i.length<e;)i="0"+i;return n+i}const _k={y:function(t,e){var n=t.getUTCFullYear(),i=n>0?n:1-n;return Ak("yy"===e?i%100:i,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):Ak(n+1,2)},d:function(t,e){return Ak(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return Ak(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Ak(t.getUTCHours(),e.length)},m:function(t,e){return Ak(t.getUTCMinutes(),e.length)},s:function(t,e){return Ak(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,i=t.getUTCMilliseconds();return Ak(Math.floor(i*Math.pow(10,n-3)),e.length)}};var vk="midnight",Ck="noon",yk="morning",Ek="afternoon",Ik="evening",Sk="night",Tk={G:function(t,e,n){var i=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return _k.y(t,e)},Y:function(t,e,n,i){var o=kk(t,i),r=o>0?o:1-o;return"YY"===e?Ak(r%100,2):"Yo"===e?n.ordinalNumber(r,{unit:"year"}):Ak(r,e.length)},R:function(t,e){return Ak(gk(t),e.length)},u:function(t,e){return Ak(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ak(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ak(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){var i=t.getUTCMonth();switch(e){case"M":case"MM":return _k.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){var i=t.getUTCMonth();switch(e){case"L":return String(i+1);case"LL":return Ak(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){var o=wk(t,i);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):Ak(o,e.length)},I:function(t,e,n){var i=pk(t);return"Io"===e?n.ordinalNumber(i,{unit:"week"}):Ak(i,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):_k.d(t,e)},D:function(t,e,n){var i=function(t){ck(1,arguments);var e=lk(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=n-e.getTime();return Math.floor(i/864e5)+1}(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):Ak(i,e.length)},E:function(t,e,n){var i=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){var o=t.getUTCDay(),r=(o-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return Ak(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){var o=t.getUTCDay(),r=(o-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return Ak(r,e.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){var i=t.getUTCDay(),o=0===i?7:i;switch(e){case"i":return String(o);case"ii":return Ak(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var i,o=t.getUTCHours();switch(i=12===o?Ck:0===o?vk:o/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){var i,o=t.getUTCHours();switch(i=o>=17?Ik:o>=12?Ek:o>=4?yk:Sk,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var i=t.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return _k.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_k.H(t,e)},K:function(t,e,n){var i=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(i,{unit:"hour"}):Ak(i,e.length)},k:function(t,e,n){var i=t.getUTCHours();return 0===i&&(i=24),"ko"===e?n.ordinalNumber(i,{unit:"hour"}):Ak(i,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_k.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_k.s(t,e)},S:function(t,e){return _k.S(t,e)},X:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Mk(o);case"XXXX":case"XX":return Bk(o);default:return Bk(o,":")}},x:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();switch(e){case"x":return Mk(o);case"xxxx":case"xx":return Bk(o);default:return Bk(o,":")}},O:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Dk(o,":");default:return"GMT"+Bk(o,":")}},z:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Dk(o,":");default:return"GMT"+Bk(o,":")}},t:function(t,e,n,i){var o=i._originalDate||t;return Ak(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,i){return Ak((i._originalDate||t).getTime(),e.length)}};function Dk(t,e){var n=t>0?"-":"+",i=Math.abs(t),o=Math.floor(i/60),r=i%60;if(0===r)return n+String(o);var s=e||"";return n+String(o)+s+Ak(r,2)}function Mk(t,e){return t%60==0?(t>0?"-":"+")+Ak(Math.abs(t)/60,2):Bk(t,e)}function Bk(t,e){var n=e||"",i=t>0?"-":"+",o=Math.abs(t);return i+Ak(Math.floor(o/60),2)+n+Ak(o%60,2)}const Ok=Tk;var Nk=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Pk=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Rk={p:Pk,P:function(t,e){var n,i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return Nk(t,e);switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",Nk(o,e)).replace("{{time}}",Pk(r,e))}};const Lk=Rk;function jk(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var zk=["D","DD"],Vk=["YY","YYYY"];function Fk(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Uk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Hk=function(t,e,n){var i,o=Uk[t];return i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Gk(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const qk={date:Gk({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Gk({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Gk({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Wk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const Kk=function(t,e,n,i){return Wk[t]};function Zk(t){return function(e,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=n&&n.width?String(n.width):o;i=t.formattingValues[r]||t.formattingValues[o]}else{var s=t.defaultWidth,a=null!=n&&n.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[s]}return i[t.argumentCallback?t.argumentCallback(e):e]}}const Yk={ordinalNumber:function(t,e){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Zk({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Zk({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zk({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Zk({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Zk({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Jk(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],r=e.match(o);if(!r)return null;var s,a=r[0],c=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(c)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return}(c,(function(t){return t.test(a)})):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n;return}(c,(function(t){return t.test(a)}));return s=t.valueCallback?t.valueCallback(l):l,{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(a.length)}}}var $k,Qk={ordinalNumber:($k={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match($k.matchPattern);if(!n)return null;var i=n[0],o=t.match($k.parsePattern);if(!o)return null;var r=$k.valueCallback?$k.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(i.length)}}),era:Jk({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Jk({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Jk({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Jk({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Jk({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Xk={code:"en-US",formatDistance:Hk,formatLong:qk,formatRelative:Kk,localize:Yk,match:Qk,options:{weekStartsOn:0,firstWeekContainsDate:1}};var tw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ew=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nw=/^'([^]*?)'?$/,iw=/''/g,ow=/[a-zA-Z]/;function rw(t,e,n){var i,o,r,s,a,c,l,d,u,h,m,g,p,f,x,b,k,w;ck(2,arguments);var A=String(e),_=xk(),v=null!==(i=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==i?i:Xk,C=uk(null!==(r=null!==(s=null!==(a=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:_.firstWeekContainsDate)&&void 0!==s?s:null===(u=_.locale)||void 0===u||null===(h=u.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==r?r:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=uk(null!==(m=null!==(g=null!==(p=null!==(f=null==n?void 0:n.weekStartsOn)&&void 0!==f?f:null==n||null===(x=n.locale)||void 0===x||null===(b=x.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==p?p:_.weekStartsOn)&&void 0!==g?g:null===(k=_.locale)||void 0===k||null===(w=k.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==m?m:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var E=lk(t);if(!dk(E))throw new RangeError("Invalid time value");var I=hk(E,jk(E)),S={firstWeekContainsDate:C,weekStartsOn:y,locale:v,_originalDate:E},T=A.match(ew).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Lk[e])(t,v.formatLong):t})).join("").match(tw).map((function(i){if("''"===i)return"'";var o=i[0];if("'"===o)return function(t){var e=t.match(nw);if(!e)return t;return e[1].replace(iw,"'")}(i);var r,s=Ok[o];if(s)return null!=n&&n.useAdditionalWeekYearTokens||(r=i,-1===Vk.indexOf(r))||Fk(i,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!function(t){return-1!==zk.indexOf(t)}(i)||Fk(i,e,String(t)),s(I,i,v.localize,S);if(o.match(ow))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return i})).join("");return T}Math.pow(10,8);var sw=6e4,aw=36e5;function cw(t,e){var n;ck(1,arguments);var i=uk(null!==(n=null==e?void 0:e.additionalDigits)&&void 0!==n?n:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,n={},i=t.split(lw.dateTimeDelimiter);if(i.length>2)return n;/:/.test(i[0])?e=i[0]:(n.date=i[0],e=i[1],lw.timeZoneDelimiter.test(n.date)&&(n.date=t.split(lw.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length)));if(e){var o=lw.timezone.exec(e);o?(n.time=e.replace(o[1],""),n.timezone=o[1]):n.time=e}return n}(t);if(r.date){var s=function(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(n);if(!i)return{year:NaN,restDateString:""};var o=i[1]?parseInt(i[1]):null,r=i[2]?parseInt(i[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((i[1]||i[2]).length)}}(r.date,i);o=function(t,e){if(null===e)return new Date(NaN);var n=t.match(dw);if(!n)return new Date(NaN);var i=!!n[4],o=mw(n[1]),r=mw(n[2])-1,s=mw(n[3]),a=mw(n[4]),c=mw(n[5])-1;if(i)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,a,c)?function(t,e,n){var i=new Date(0);i.setUTCFullYear(t,0,4);var o=i.getUTCDay()||7,r=7*(e-1)+n+1-o;return i.setUTCDate(i.getUTCDate()+r),i}(e,a,c):new Date(NaN);var l=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(pw[e]||(fw(t)?29:28))}(e,r,s)&&function(t,e){return e>=1&&e<=(fw(t)?366:365)}(e,o)?(l.setUTCFullYear(e,r,Math.max(o,s)),l):new Date(NaN)}(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a,c=o.getTime(),l=0;if(r.time&&(l=function(t){var e=t.match(uw);if(!e)return NaN;var n=gw(e[1]),i=gw(e[2]),o=gw(e[3]);if(!function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,i,o))return NaN;return n*aw+i*sw+1e3*o}(r.time),isNaN(l)))return new Date(NaN);if(!r.timezone){var d=new Date(c+l),u=new Date(0);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return a=function(t){if("Z"===t)return 0;var e=t.match(hw);if(!e)return 0;var n="+"===e[1]?-1:1,i=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,o))return NaN;return n*(i*aw+o*sw)}(r.timezone),isNaN(a)?new Date(NaN):new Date(c+l+a)}var lw={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dw=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uw=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,hw=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mw(t){return t?parseInt(t):1}function gw(t){return t&&parseFloat(t.replace(",","."))||0}var pw=[31,null,31,30,31,30,31,31,30,31,30,31];function fw(t){return t%400==0||t%4==0&&t%100!=0}function xw(t){ck(1,arguments);var e=lk(t);return e.setHours(0,0,0,0),e}var bw=864e5;const kw=["dateTimeFormat","'Last' EEEE hh:mma","MM-dd-yyyy hh:mma","'Today' hh:mma","invalid-date-time-format","string","'Yesterday' hh:mma","function"];var ww,Aw;ww=kw,Aw=288,function(t){for(;--t;)ww.push(ww.shift())}(++Aw);const _w=function(t,e){return kw[t-=0]};function vw(t={}){if(void 0!==t[_w("0x0")]&&_w("0x7")!=typeof t.dateTimeFormat)throw new Uu.CKEditorError(_w("0x4"));return e=>{const n=_w("0x5")==typeof e?cw(e):e,i=function(t,e){ck(2,arguments);var n=xw(t),i=xw(e),o=n.getTime()-jk(n),r=i.getTime()-jk(i);return Math.round((o-r)/bw)}(new Date,n);return t[_w("0x0")]?t[_w("0x0")](n):rw(n,_w(0===i?"0x3":1===i?"0x6":i<7?"0x1":"0x2"))}}const Cw=["domConverter","getClientRects","mapper","name","filter","mapViewToDom","length","sort","values","map","view"];var yw,Ew;yw=Cw,Ew=194,function(t){for(;--t;)yw.push(yw.shift())}(++Ew);const Iw=function(t,e){return Cw[t-=0]};function Sw(t,e){if(0===e[Iw("0xa")])return null;const n=[],i=t[Iw("0x3")].domConverter;for(const o of e){const e=t[Iw("0x6")].markerNameToElements(o[Iw("0x7")]);if(!e)continue;const r=Array.from(e)[Iw("0x2")]((t=>i.mapViewToDom(t)))[Iw("0x8")]((t=>!!t));n.push(...r)}if(0===n[Iw("0xa")])return null;const o=[];for(const t of n){const e=t[Iw("0x5")]().item(0);e&&o.push({x:e.x,y:e.y,domElement:t})}return 0===o.length?null:(o[Iw("0x0")](((t,e)=>t.y-e.y||t.x-e.x)),o.map((t=>t.domElement)))}const Tw=["pop","length","slice","split","...","indexOf","push","match","join","startsWith","replace","substring"];var Dw,Mw;Dw=Tw,Mw=311,function(t){for(;--t;)Dw.push(Dw.shift())}(++Mw);const Bw=function(t,e){return Tw[t-=0]};function Ow(t,{limit:e,suffix:n=Bw("0x5")}){const i=[];let o=0;const r=t[Bw("0xb")](/</g,"\n<")[Bw("0xb")](/>/g,">\n")[Bw("0xb")](/^\n/g,"").replace(/\n$/g,"")[Bw("0x4")]("\n");for(let t=0;t<r.length;t++){let s=r[t];const a=Nw(s);if(s[Bw("0xa")]("<")){if(o>=e){const e=s[Bw("0x8")](/[a-zA-Z]+/);if(!e){r[t]="";continue}const n=e[0];s.startsWith("</")?(i[Bw("0x2")]&&(s=""),i[Bw("0x1")]()):(i[Bw("0x7")](n),s="")}}else if(o>=e)s="";else if(o+a[Bw("0x2")]>=e){let t=e-o;if(" "===a[t-1])t--;else{const e=a[Bw("0x3")](t)[Bw("0x6")](" ");-1!==e?t+=e:t=s.length}s=a[Bw("0x3")](0,t)[Bw("0x9")]("")+n,o=e}else o+=a[Bw("0x2")];r[t]=s}return r.join("\n")[Bw("0xb")](/\n/g,"")}function Nw(t){const e=[];for(let n=0;n<t[Bw("0x2")];n++){const i=t[Bw("0x0")](n)[Bw("0x8")](/^&[a-z0-9#]+;/);if(i){const t=i[0];e[Bw("0x7")](t),n+=t[Bw("0x2")]-1}else e.push(t[n])}return e}const Pw=["bindTemplate","set","submitView","check","submit","cancelView","Are you sure?","extendTemplate","div","cancel","message","setTemplate","ck-thread__remove-confirm-","_createButtonView","Yes"];var Rw,Lw;Rw=Pw,Lw=462,function(t){for(;--t;)Rw.push(Rw.shift())}(++Lw);const jw=function(t,e){return Pw[t-=0]};class zw extends u{constructor(t){super(t);const e=this[jw("0x3")];this[jw("0x5")]=this._createButtonView(t,Hb(t,jw("0x2")),Uc[jw("0x6")],jw("0x7")),this[jw("0x8")]=this[jw("0x1")](t,Hb(t,"No"),Uc[jw("0xc")],jw("0xc")),this[jw("0x4")](jw("0xd"),Hb(t,jw("0x9"))),this[jw("0xe")]({tag:jw("0xb"),attributes:{class:["ck-thread__remove-confirm"]},children:[{tag:jw("0xb"),attributes:{class:"ck-thread__remove-confirm-inner"},children:[{tag:"p",children:[{text:e.to(jw("0xd"))}]},{tag:jw("0xb"),attributes:{class:"ck-thread__remove-confirm-actions"},children:[this.submitView,this[jw("0x8")]]}]}]})}_createButtonView(t,e,n,i){const o=new U(t);return o.label=e,o.icon=n,o[jw("0xa")]({attributes:{class:jw("0x0")+i}}),o.on("execute",(()=>this.fire(i))),o}}var Vw,Fw,Uw=["set","focus","element","isConfirm","appendChild","render","deregisterChild","cancel","submit","cancelConfirm","registerChild","remove","message","confirmView","_removeConfirm","fire","destroy","once"];Vw=Uw,Fw=390,function(t){for(;--t;)Vw.push(Vw.shift())}(++Fw);var Hw=function(t,e){return Uw[t-=0]};function Gw(t){return class extends t{showConfirm(t,e){return this.confirmView=new zw(this.locale),this[Hw("0x1")][Hw("0xb")](),this[Hw("0x1")][Hw("0x0")]=t,this[Hw("0x1")][Hw("0x5")]("cancel",(()=>{this[Hw("0x2")]()})),this[Hw("0x1")].once(Hw("0xe"),(()=>{this[Hw("0x2")]()})),e[Hw("0xa")](this[Hw("0x1")][Hw("0x8")]),this[Hw("0x10")](this[Hw("0x1")]),this.element[Hw("0x7")](),this[Hw("0x6")](Hw("0x9"),!0),new Promise((t=>this[Hw("0x1")].on(Hw("0xe"),t)))}[Hw("0xf")](){this.isConfirm&&this[Hw("0x1")][Hw("0x3")](Hw("0xd"))}_removeConfirm(){this[Hw("0x8")]&&this[Hw("0x1")]&&this[Hw("0x1")][Hw("0x8")]&&(this[Hw("0x8")][Hw("0x7")](),this.confirmView[Hw("0x8")][Hw("0x11")](),this[Hw("0xc")](this[Hw("0x1")]),this[Hw("0x9")]=!1,this[Hw("0x1")][Hw("0x4")](),this.confirmView=void 0)}}}const qw=["toString","keys","sort","boolean","charCodeAt","isArray","number"];var Ww,Kw;Ww=qw,Kw=367,function(t){for(;--t;)Ww.push(Ww.shift())}(++Kw);const Zw=function(t,e){return qw[t-=0]};function Yw(t){let e=0,n=0;for(const i of $w(t))e=(e<<5)-e+i,e&=e,[e,n]=[n,e];return tA(e)+tA(n)}function*Jw(t){t?Zw("0x0")==typeof t?yield 1:Array[Zw("0x2")](t)?yield*function*(t){for(const e of t)yield*Jw(e)}(t):"object"==typeof t?yield*$w(t):"string"==typeof t?yield*Qw(t):Zw("0x3")==typeof t&&(yield t):yield 0}function*$w(t){if(yield Xw("{"),t){const e=Object[Zw("0x5")](t)[Zw("0x6")]();for(const n of e){yield*Qw(n),yield Xw(":");const e=t[n];yield*Jw(e)}}yield Xw("}")}function*Qw(t){yield Xw('"');for(const e of t)yield Xw(e);yield Xw('"')}function Xw(t){return t[Zw("0x1")](0)}function tA(t){return(t*=Math.sign(t))[Zw("0x4")](36)}const eA=["set","WebSocketGateway","WordCount","DocumentOutline","get","Autosave","pluginName","plugins","has","includes","length","rootsAttributes","every","requires","extraPlugins","_context","names","map","from","context","constructor","removePlugins","config","concat","WProofreader"];var nA,iA;nA=eA,iA=292,function(t){for(;--t;)nA.push(nA.shift())}(++iA);const oA=function(t,e){return eA[t-=0]},rA=["initialData",oA("0x2"),"toolbar",oA("0x13")],sA=[oA("0x9"),"RevisionTracker",oA("0xd"),oA("0xa"),oA("0xb"),oA("0x7")];function aA(t,e,n,i=[]){const o="string"==typeof t?n[oA("0xc")](t)[oA("0x3")]:t,r=o[oA("0xe")]||o.name;if(e[oA("0x10")](r))return e.get(r);if(e.set(r,!0),r&&sA[oA("0x6")](i).includes(r))return e[oA("0x8")](r,!1),!1;if(!o[oA("0x15")])return e[oA("0x8")](r,!0),!0;const s=o[oA("0x15")][oA("0x14")]((t=>aA(t,e,n,i)));return e.set(r,s),s}function cA(t,e){const n={};for(const e of t.config[oA("0x18")]())rA.includes(e)||(n[e]=t[oA("0x5")][oA("0xc")](e));const i=n[oA("0xf")]||[],o=t[oA("0x3")].builtinPlugins||[],r=i[oA("0x12")]?i:o,s=n[oA("0x16")]||[];delete n[oA("0x16")];const a=n[oA("0x4")]||[];delete n.removePlugins;const c=t[oA("0x17")][oA("0x5")][oA("0xc")](oA("0xf"))||[],l=r[oA("0x6")](s).concat(c)[oA("0x0")]((t=>"string"==typeof t?o.find((e=>e[oA("0xe")]==t)):t)).filter((t=>!a.includes(t)&&!a[oA("0x11")](t[oA("0xe")]))),d=Array[oA("0x1")](new Set(l)),u=new Map;return n[oA("0xf")]=d.filter((n=>aA(n,u,t.plugins,e))),n}const lA=["start","containsPosition","focus","markers","change:range","push","length","selection","includes","getRange","isEqual"];var dA,uA;dA=lA,uA=254,function(t){for(;--t;)dA.push(dA.shift())}(++uA);const hA=function(t,e){return lA[t-=0]};function mA(t,e){const n=[];t.document[hA("0x6")].on(hA("0x3"),(()=>{const i=function(t,e){const n=[];for(const i of t[hA("0x2")]){const t=i[hA("0x8")]();(t[hA("0x0")](e)||t[hA("0xa")][hA("0x9")](e)||t.end[hA("0x9")](e))&&n.push(i)}return n}(t,t.document[hA("0x6")][hA("0x1")]),o=[],r=[],s=[];for(const t of n)i.includes(t)||o[hA("0x4")](t);for(const t of i)n[hA("0x7")](t)||r.push(t),s[hA("0x4")](t);(o[hA("0x5")]||r.length)&&e({left:o,entered:r}),n[hA("0x5")]=0,n[hA("0x4")](...s)}))}var gA=__webpack_require__(9032),pA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(gA.Z,pA);gA.Z.locals;var fA=__webpack_require__(6533),xA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(fA.Z,xA);fA.Z.locals;var bA=__webpack_require__(8136),kA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(bA.Z,kA);bA.Z.locals;var wA=__webpack_require__(8350),AA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(wA.Z,AA);wA.Z.locals;var _A=__webpack_require__(9224),vA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(_A.Z,vA);_A.Z.locals;var CA=__webpack_require__(2102),yA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(CA.Z,yA);CA.Z.locals;var EA=__webpack_require__(9050),IA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(EA.Z,IA);EA.Z.locals;var SA=__webpack_require__(4807),TA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(SA.Z,TA);SA.Z.locals;var DA,MA,BA=["reopen","removeCommentThread","listenTo","model","reopenCommentThread","addComment","remove","updateComment","getComment","_localUser","removeComment","submit","_isAttached","update","submitCommentThread","resolve","destroy","view","isResolved","stopListening"];DA=BA,MA=289,function(t){for(;--t;)DA.push(DA.shift())}(++MA);var OA=function(t,e){return BA[t-=0]};class NA extends((0,Uu.ObservableMixin)()){constructor(t,e){super(),this.model=t,this[OA("0xe")][OA("0x3")]=!0,this[OA("0x8")]=e,this[OA("0xd")](e,OA("0x5"),(()=>this[OA("0x2")]())),this[OA("0xd")](e,OA("0xc"),(()=>this.remove())),this[OA("0xd")](e,"resolveCommentThread",(()=>this.resolve())),this.listenTo(e,OA("0xf"),(()=>this[OA("0xb")]())),this.listenTo(e,OA("0x10"),((t,e)=>this[OA("0x10")](e))),this[OA("0xd")](e,OA("0x12"),((t,e,n)=>this.updateComment(e,n))),this[OA("0xd")](e,OA("0x1"),((t,e)=>this[OA("0x1")](e)))}[OA("0x2")](){this[OA("0xe")].submit()}[OA("0x11")](){this[OA("0xe")][OA("0x11")]()}[OA("0x6")](){this[OA("0xe")][OA("0x9")]||this[OA("0xe")][OA("0x6")]()}[OA("0xb")](){this.model[OA("0x9")]&&this.model[OA("0xb")]()}addComment(t){this[OA("0xe")][OA("0x10")]({content:t,authorId:this[OA("0x8")][OA("0x0")].id})}updateComment(t,e){this.model.getComment(t)[OA("0x4")]({content:e})}[OA("0x1")](t){this[OA("0xe")][OA("0x13")](t)[OA("0x11")]()}[OA("0x7")](){this[OA("0xa")](),this[OA("0xe")][OA("0x3")]=!1}}function PA(t,e,n){const i=t.t;switch(e){case"PENDING_ACTION_COMMENT_THREAD":return i({string:"Unsaved change in comment thread.",id:"PENDING_ACTION_COMMENT_THREAD"});case"Comment":return i("Comment");case"Reply...":return i("Reply...");case"Reply to reopen discussion...":return i("Reply to reopen discussion...");case"Write a comment...":return i("Write a comment...");case"Comment was made on an element":return i("Comment was made on an element");case"Comment editor":return i("Comment editor");case"Delete comment thread?":return i("Delete comment thread?");case"Delete comment?":return i("Delete comment?");case"Marked as resolved":return i("Marked as resolved");case"Show more items":return i("Show more items");case"Cancel":return i("Cancel");case"Edit":return i("Edit");case"Resolve":return i("Resolve");case"Reopen":return i("Reopen");case"Remove":return i("Remove");case"Reply":return i("Reply");case"Save":return i("Save");case"LEAVE_COMMENT_ANNOUNCEMENT":return i({string:"Leaving a comment.",id:"LEAVE_COMMENT_ANNOUNCEMENT"});case"ENTER_COMMENT_ANNOUNCEMENT":return i({string:"Entering a comment.",id:"ENTER_COMMENT_ANNOUNCEMENT"});case"NUMBER_OF_COMMENTS":return i({string:"%0 Comment",plural:"%0 Comments",id:"NUMBER_OF_COMMENTS"},n);case"TOO_LONG_COMMENT_ALERT":return i({string:"Comment content is too long. Your comment has %0 characters but the limit is %1 characters.",id:"TOO_LONG_COMMENT_ALERT"},n);case"EXTERNAL_COMMENT":return i({string:"This comment comes from an external source.",id:"EXTERNAL_COMMENT"});case"EXTERNAL_IMPORT_WORD_COMMENT":return i({string:"This comment comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_COMMENT"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"COMMENTS_ARCHIVE":return i({string:"Comments archive",id:"COMMENTS_ARCHIVE"});case"EMPTY_COMMENTS_ARCHIVE":return i({string:"There are no archived comment threads.",id:"EMPTY_COMMENTS_ARCHIVE"});default:return""}}const RA=["text","ck-editor__main","ck-editor__aria-label_","ck-reset","presentation","uiLanguageDirection","element","focus","createCollection","Comment editor","_voiceLabelView","main","render","add","editable","extendTemplate","setTemplate","comment","cke-editor__aria-label_","uiLanguage","_createVoiceLabel"];var LA,jA;LA=RA,jA=281,function(t){for(;--t;)LA.push(LA.shift())}(++jA);const zA=function(t,e){return RA[t-=0]};class VA extends Gd{constructor(t,e){super(t);const n=(0,Uu.uid)();this[zA("0x3")]=this[zA("0x0")](),this[zA("0x6")]=new Kd(t,e),this[zA("0x2")]=this[zA("0xc")](n,t),this[zA("0x8")]({tag:"div",attributes:{class:[zA("0x10"),"ck-editor","ck-rounded-corners","ck-comment__input"],role:zA("0x9"),dir:t[zA("0x12")],lang:t[zA("0xb")],"aria-labelledby":zA("0xa")+n},children:[this[zA("0x2")],{tag:"div",attributes:{class:zA("0xe"),role:zA("0x11")},children:this[zA("0x3")]}]})}[zA("0x4")](){super[zA("0x4")](),this[zA("0x3")][zA("0x5")](this[zA("0x6")])}[zA("0x14")](){this[zA("0x6")][zA("0x13")][zA("0x14")]()}[zA("0xc")](t,e){const n=new Ct;return n[zA("0xd")]=PA(e,zA("0x1")),n[zA("0x7")]({attributes:{id:zA("0xf")+t,class:"ck-voice-label"}}),n}}const FA=["view","element","editor","destroy","editing","ready","render","init","rootName","locale","editable","isFocused","focusTracker","attachDomRoot","fire","document"];var UA,HA;UA=FA,HA=415,function(t){for(;--t;)UA.push(UA.shift())}(++HA);const GA=function(t,e){return FA[t-=0]};class qA extends Vd{constructor(t){super(t),this[GA("0x1")]=new VA(t[GA("0xa")],t[GA("0x5")][GA("0x1")])}get[GA("0x2")](){return this[GA("0x1")][GA("0x2")]}[GA("0x8")](){const t=this[GA("0x3")][GA("0x5")][GA("0x1")],e=this.view[GA("0xb")],n=t[GA("0x0")].getRoot();e.name=n[GA("0x9")],this[GA("0x1")][GA("0x7")]();const i=e[GA("0x2")];this.setEditableElement(e.name,i),this[GA("0x1")][GA("0xb")].bind(GA("0xc")).to(this[GA("0xd")]),t[GA("0xe")](i),this[GA("0xf")](GA("0x6"))}[GA("0x4")](){super.destroy(),this[GA("0x1")].destroy()}}class WA extends io{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;function n(t){return(n,i)=>{i.preventDefault();const o=i.dropRange?[i.dropRange]:null,s=new r.M3(e,t);e.fire(s,{dataTransfer:i.dataTransfer,method:n.name,targetRanges:o,target:i.target,domEvent:i.domEvent}),s.stop.called&&i.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,i={dataTransfer:new Ro(e,{cacheFiles:n})};"drop"!=t.type&&"dragover"!=t.type||(i.dropRange=function(t,e){const n=e.target.ownerDocument,i=e.clientX,o=e.clientY;let r;n.caretRangeFromPoint&&n.caretRangeFromPoint(i,o)?r=n.caretRangeFromPoint(i,o):e.rangeParent&&(r=n.createRange(),r.setStart(e.rangeParent,e.rangeOffset),r.collapse(!0));if(r)return t.domConverter.domRangeToView(r);return null}(this.view,t)),this.fire(t.type,t,i)}}const KA=["figcaption","li"],ZA=["ol","ul"];function YA(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 i of t.getChildren())e+=JA(i,n)+YA(i),n=i;return e}function JA(t,e){return e?t.is("element","li")&&!t.isEmpty&&t.getChild(0).is("containerElement")||ZA.includes(t.name)&&ZA.includes(e.name)?"\n\n":t.is("containerElement")||e.is("containerElement")?KA.includes(t.name)||KA.includes(e.name)?"\n":"\n\n":"":""}class $A extends Yt{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(WA),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const i=this.editor.model.getSelectedContent(e);this.fire("outputTransformation",{dataTransfer:t,content:i,method:n})}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document;this.listenTo(i,"clipboardInput",((e,n)=>{"paste"!=n.method||t.model.canEditAt(t.model.document.selection)||e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",((t,e)=>{const i=e.dataTransfer;let o;if(e.content)o=e.content;else{let t="";i.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,"")}(i.getData("text/html")):i.getData("text/plain")&&(((s=(s=i.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>")||s.includes("<br>"))&&(s=`<p>${s}</p>`),t=s),o=this.editor.data.htmlProcessor.toView(t)}var s;const a=new r.M3(this,"inputTransformation");this.fire(a,{content:o,dataTransfer:i,targetRanges:e.targetRanges,method:e.method}),a.stop.called&&t.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((t,n)=>{if(n.content.isEmpty)return;const i=this.editor.data.toModel(n.content,"$clipboardHolder");0!=i.childCount&&(t.stop(),e.change((()=>{this.fire("contentInsertion",{content:i,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((t,n)=>{n.resultRange=e.insertContent(n.content)}),{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,i=(t,n)=>{const i=n.dataTransfer;n.preventDefault(),this._fireOutputTransformationEvent(i,e.selection,t.name)};this.listenTo(n,"copy",i,{priority:"low"}),this.listenTo(n,"cut",((e,n)=>{t.model.canEditAt(t.model.document.selection)?i(e,n):n.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((e,i)=>{const o=t.data.toView(i.content);n.fire("clipboardOutput",{dataTransfer:i.dataTransfer,content:o,method:i.method})}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,i)=>{i.content.isEmpty||(i.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",YA(i.content))),"cut"==i.method&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class QA extends((0,r.ln)()){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,i=n[0];this._insertDescriptor(t);const o=n[0];i===o||XA(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:e})}remove(t,e){const n=this._stack,i=n[0];this._removeDescriptor(t);const o=n[0];i===o||XA(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t.id));if(XA(t,e[n]))return;n>-1&&e.splice(n,1);let i=0;for(;e[i]&&t_(e[i],t);)i++;e.splice(i,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t));n>-1&&e.splice(n,1)}}function XA(t,e){return t&&e&&t.priority==e.priority&&e_(t.classes)==e_(e.classes)}function t_(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&e_(t.classes)>e_(e.classes)}function e_(t){return Array.isArray(t)?t.sort().join(","):t}const n_='<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>',i_="ck-widget",o_="ck-widget_selected";function r_(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function s_(t,e,n={}){if(!t.is("containerElement"))throw new r.Bb("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass(i_,t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=h_,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 j;return n.set("content",n_),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),l_(t,e),t}function a_(t,e,n){if(e.classes&&n.addClass((0,r.qo)(e.classes),t),e.attributes)for(const i in e.attributes)n.setAttribute(i,e.attributes[i],t)}function c_(t,e,n){if(e.classes&&n.removeClass((0,r.qo)(e.classes),t),e.attributes)for(const i in e.attributes)n.removeAttribute(i,t)}function l_(t,e,n=a_,i=c_){const o=new QA;o.on("change:top",((e,o)=>{o.oldDescriptor&&i(t,o.oldDescriptor,o.writer),o.newDescriptor&&n(t,o.newDescriptor,o.writer)}));e.setCustomProperty("addHighlight",((t,e,n)=>o.add(e,n)),t),e.setCustomProperty("removeHighlight",((t,e,n)=>o.remove(e,n)),t)}function d_(t,e,n={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",((n,i,o)=>{e.setAttribute("contenteditable",o?"false":"true",t)})),t.on("change:isFocused",((n,i,o)=>{o?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),l_(t,e),t}function u_(t,e){const n=t.getSelectedElement();if(n){const i=p_(t);if(i)return e.createRange(e.createPositionAt(n,i))}return Oa(t,e)}function h_(){return null}const m_="widget-type-around";function g_(t,e,n){return!!t&&r_(t)&&!n.isInline(e)}function p_(t){return t.getAttribute(m_)}var f_=__webpack_require__(5137),x_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(f_.Z,x_);f_.Z.locals;const b_=["before","after"],k_=(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,w_="ck-widget__type-around_disabled";class A_ extends Yt{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[lx,Wp]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",((n,i,o)=>{e.change((t=>{for(const n of e.document.roots)o?t.removeClass(w_,n):t.addClass(w_,n)})),o||t.model.change((t=>{t.removeSelectionAttribute(m_)}))})),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,i=n.editing.view,o=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:o}),i.focus(),i.scrollToTheSelection()}_listenToIfEnabled(t,e,n,i){this.listenTo(t,e,((...t)=>{this.isEnabled&&n(...t)}),i)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=p_(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,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",((t,o,r)=>{const s=r.mapper.toViewElement(o.item);if(s&&g_(s,o.item,e)){!function(t,e,n){const i=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 b_){const i=new g({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(k_,!0)]});t.appendChild(i.render())}}(n,e),function(t){const e=new g({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),i)}(r.writer,i,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,i=e.schema,o=t.editing.view;function r(t){return`ck-widget_type-around_show-fake-caret_${t}`}this._listenToIfEnabled(o.document,"arrowKey",((t,e)=>{this._handleArrowKeyPress(t,e)}),{context:[r_,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((e,n)=>{n.directChange&&t.model.change((t=>{t.removeSelectionAttribute(m_)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const e=n.getSelectedElement();if(e){if(g_(t.editing.mapper.toViewElement(e),e,i))return}t.model.change((t=>{t.removeSelectionAttribute(m_)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((t,e,n)=>{const o=n.writer;if(this._currentFakeCaretModelElement){const t=n.mapper.toViewElement(this._currentFakeCaretModelElement);t&&(o.removeClass(b_.map(r),t),this._currentFakeCaretModelElement=null)}const s=e.selection.getSelectedElement();if(!s)return;const a=n.mapper.toViewElement(s);if(!g_(a,s,i))return;const c=p_(e.selection);c&&(o.addClass(r(c),a),this._currentFakeCaretModelElement=s)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((e,n,i)=>{i||t.model.change((t=>{t.removeSelectionAttribute(m_)}))}))}_handleArrowKeyPress(t,e){const n=this.editor,i=n.model,o=i.document.selection,s=i.schema,a=n.editing.view,c=e.keyCode,l=(0,r.Zt)(c,n.locale.contentLanguageDirection),d=a.document.selection.getSelectedElement();let u;g_(d,n.editing.mapper.toModelElement(d),s)?u=this._handleArrowKeyPressOnSelectedWidget(l):o.isCollapsed?u=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):e.shiftKey||(u=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),u&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=p_(e.document.selection);return e.change((e=>{if(!n)return e.setSelectionAttribute(m_,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(m_),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,i=n.schema,o=e.plugins.get("Widget"),r=o._getObjectElementNextToSelection(t);return!!g_(e.editing.mapper.toViewElement(r),r,i)&&(n.change((e=>{o._setSelectionOverElement(r),e.setSelectionAttribute(m_,t?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,i=n.schema,o=e.editing.mapper,r=n.document.selection,s=t?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!g_(o.toViewElement(s),s,i)&&(n.change((e=>{e.setSelection(s,"on"),e.setSelectionAttribute(m_,t?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",((n,i)=>{const o=i.domTarget.closest(".ck-widget__type-around__button");if(!o)return;const r=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(t,e){const n=t.closest(".ck-widget");return e.mapDomToView(n)}(o,e.domConverter),a=t.editing.mapper.toModelElement(s);this._insertParagraph(a,r),i.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",((n,i)=>{if("atTarget"!=n.eventPhase)return;const o=e.getSelectedElement(),r=t.editing.mapper.toViewElement(o),s=t.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:g_(r,o,s)&&(this._insertParagraph(o,i.isSoft?"before":"after"),a=!0),a&&(i.preventDefault(),n.stop())}),{context:r_})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",((e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)}),{priority:"high"}),r.OB.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,i=n.schema;this._listenToIfEnabled(e.document,"delete",((e,o)=>{if("atTarget"!=e.eventPhase)return;const r=p_(n.document.selection);if(!r)return;const s=o.direction,a=n.document.selection.getSelectedElement(),c="forward"==s;if("before"===r===c)t.execute("delete",{selection:n.createSelection(a,"on")});else{const e=i.getNearestSelectionRange(n.createPositionAt(a,r),s);if(e)if(e.isCollapsed){const o=n.createSelection(e.start);if(n.modifySelection(o,{direction:s}),o.focus.isEqual(e.start)){const t=function(t,e){let n=e;for(const i of e.getAncestors({parentFirst:!0})){if(i.childCount>1||t.isLimit(i))break;n=i}return n}(i,e.start.parent);n.deleteContent(n.createSelection(t,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}o.preventDefault(),e.stop()}),{context:r_})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",((t,[i,o])=>{if(o&&!o.is("documentSelection"))return;const r=p_(n);return r?(t.stop(),e.change((t=>{const o=n.getSelectedElement(),s=e.createPositionAt(o,r),a=t.createSelection(s),c=e.insertContent(i,a);return t.setSelection(a),c}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",((t,n)=>{const[,i,o={}]=n;if(i&&!i.is("documentSelection"))return;const r=p_(e);r&&(o.findOptimalPosition=r,n[3]=o)}),{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;p_(e)&&t.stop()}),{priority:"high"})}}function __(t){const e=t.model;return(n,i)=>{const o=i.keyCode==r.Do.arrowup,s=i.keyCode==r.Do.arrowdown,a=i.shiftKey,c=e.document.selection;if(!o&&!s)return;const l=s;if(a&&function(t,e){return!t.isCollapsed&&t.isBackward==e}(c,l))return;const d=function(t,e,n){const i=t.model;if(n){const t=e.isCollapsed?e.focus:e.getLastPosition(),n=v_(i,t,"forward");if(!n)return null;const o=i.createRange(t,n),r=C_(i.schema,o,"backward");return r?i.createRange(t,r):null}{const t=e.isCollapsed?e.focus:e.getFirstPosition(),n=v_(i,t,"backward");if(!n)return null;const o=i.createRange(n,t),r=C_(i.schema,o,"forward");return r?i.createRange(r,t):null}}(t,c,l);if(d){if(d.isCollapsed){if(c.isCollapsed)return;if(a)return}(d.isCollapsed||function(t,e,n){const i=t.model,o=t.view.domConverter;if(n){const t=i.createSelection(e.start);i.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=i.createRange(t.focus,e.end))}const s=t.mapper.toViewRange(e),a=o.viewRangeToDom(s),c=r.UL.getDomRangeRects(a);let l;for(const t of c)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,d,l))&&(e.change((t=>{const n=l?d.end:d.start;if(a){const i=e.createSelection(c.anchor);i.setFocus(n),t.setSelection(i)}else t.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}function v_(t,e,n){const i=t.schema,o=t.createRangeIn(e.root),r="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:t,item:s,type:a}of o.getWalker({startPosition:e,direction:n})){if(i.isLimit(s)&&!i.isInline(s))return t;if(a==r&&i.isBlock(s))return null}return null}function C_(t,e,n){const i="backward"==n?e.end:e.start;if(t.checkChild(i,"$text"))return i;for(const{nextPosition:i}of e.getWalker({direction:n}))if(t.checkChild(i,"$text"))return i;return null}var y_=__webpack_require__(6507),E_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(y_.Z,E_);y_.Z.locals;class I_ extends Yt{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[A_,Wp]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",((e,n,i)=>{const o=i.writer,r=n.selection;if(r.isCollapsed)return;const s=r.getSelectedElement();if(!s)return;const a=t.editing.mapper.toViewElement(s);var c;r_(a)&&(i.consumable.consume(r,"selection")&&o.setSelection(o.createRangeOn(a),{fake:!0,label:(c=a,c.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 i=n.writer,o=i.document.selection;let r=null;for(const t of o.getRanges())for(const e of t){const t=e.item;r_(t)&&!S_(t,r)&&(i.addClass(o_,t),this._previouslySelected.add(t),r=t)}}),{priority:"low"}),e.addObserver(Ha),this.listenTo(n,"mousedown",((...t)=>this._onMousedown(...t))),this.listenTo(n,"arrowKey",((...t)=>{this._handleSelectionChangeOnArrowKeyPress(...t)}),{context:[r_,"$text"]}),this.listenTo(n,"arrowKey",((...t)=>{this._preventDefaultOnArrowKeyPress(...t)}),{context:"$root"}),this.listenTo(n,"arrowKey",__(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",((t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())}),{context:"$root"})}_onMousedown(t,e){const n=this.editor,i=n.editing.view,o=i.document;let s=e.target;if(e.domEvent.detail>=3)return void(this._selectBlockContent(s)&&e.preventDefault());if(function(t){let e=t;for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(r_(e))return!1;e=e.parent}return!1}(s))return;if(!r_(s)&&(s=s.findAncestor(r_),!s))return;r.OB.isAndroid&&e.preventDefault(),o.isFocused||i.focus();const a=n.editing.mapper.toModelElement(s);this._setSelectionOverElement(a)}_selectBlockContent(t){const e=this.editor,n=e.model,i=e.editing.mapper,o=n.schema,r=i.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}(i.toModelElement(r),n.schema);return!!s&&(n.change((t=>{const e=o.isLimit(s)?null:function(t,e){const n=new Yo({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),o),n=t.createPositionAt(s,0),i=e?t.createPositionAt(e,0):t.createPositionAt(s,"end");t.setSelection(t.createRange(n,i))})),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,i=this.editor.model,o=i.schema,s=i.document.selection,a=s.getSelectedElement(),c=(0,r.mA)(n,this.editor.locale.contentLanguageDirection),l="down"==c||"right"==c,d="up"==c||"down"==c;if(a&&o.isObject(a)){const n=l?s.getLastPosition():s.getFirstPosition(),r=o.getNearestSelectionRange(n,l?"forward":"backward");return void(r&&(i.change((t=>{t.setSelection(r)})),e.preventDefault(),t.stop()))}if(!s.isCollapsed&&!e.shiftKey){const n=s.getFirstPosition(),r=s.getLastPosition(),a=n.nodeAfter,c=r.nodeBefore;return void((a&&o.isObject(a)||c&&o.isObject(c))&&(i.change((t=>{t.setSelection(l?r:n)})),e.preventDefault(),t.stop()))}if(!s.isCollapsed)return;const u=this._getObjectElementNextToSelection(l);if(u&&o.isObject(u)){if(o.isInline(u)&&d)return;this._setSelectionOverElement(u),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,i=n.schema,o=n.document.selection.getSelectedElement();o&&i.isObject(o)&&(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 i=e.anchor.parent;for(;i.isEmpty;){const e=i;i=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,i=e.document.selection,o=e.createSelection(i);if(e.modifySelection(o,{direction:t?"forward":"backward"}),o.isEqual(i))return null;const r=t?o.focus.nodeBefore:o.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(o_,e);this._previouslySelected.clear()}}function S_(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}class T_ extends Yt{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[ru]}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||!r_(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:i,balloonClassName:o="ck-toolbar-container"}){if(!n.length)return void(0,r.KE)("widget-toolbar-no-items",{toolbarId:t});const s=this.editor,a=s.t,c=new Kc(s.locale);if(c.ariaLabel=e||a("Widget toolbar"),this._toolbarDefinitions.has(t))throw new r.Bb("widget-toolbar-duplicated",this,{toolbarId:t});const l={view:c,getRelatedElement:i,balloonClassName:o,itemsConfig:n,initialized:!1};s.ui.addToolbar(c,{isContextual:!0,beforeFocus:()=>{const t=i(s.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 i of this._toolbarDefinitions.values()){const o=i.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&o)if(this.editor.ui.focusTracker.isFocused){const r=o.getAncestors().length;r>t&&(t=r,e=o,n=i)}else this._isToolbarVisible(i)&&this._hideToolbar(i);else this._isToolbarInBalloon(i)&&this._hideToolbar(i)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?D_(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:M_(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);D_(this.editor,e)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function D_(t,e){const n=t.plugins.get("ContextualBalloon"),i=M_(t,e);n.updatePosition(i)}function M_(t,e){const n=t.editing.view,i=bd.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}class B_ extends((0,r.Re)()){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 i=new r.UL(e);this.activeHandlePosition=function(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)if(t.classList.contains(O_(n)))return n}(t),this._referenceCoordinates=function(t,e){const n=new r.UL(t),i=e.split("-"),o={x:"right"==i[1]?n.right:n.left,y:"bottom"==i[0]?n.bottom:n.top};return o.x+=t.ownerDocument.defaultView.scrollX,o.y+=t.ownerDocument.defaultView.scrollY,o}(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=i.width,this._originalHeight=i.height,this._aspectRatio=i.width/i.height;const o=n.style.width;o&&o.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(o):this._originalWidthPercents=function(t,e){const n=t.parentElement;let i=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);const o=5;let r=0,s=n;for(;isNaN(i);){if(s=s.parentElement,++r>o)return 0;i=parseFloat(n.ownerDocument.defaultView.getComputedStyle(s).width)}return e.width/i*100}(n,i)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function O_(t){return`ck-widget__resizer__handle-${t}`}class N_ extends u{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,i)=>"px"===t.unit?`${e}×${n}`:`${i}%`)),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 P_ extends((0,r.Re)()){constructor(t){super(),this._viewResizerWrapper=null,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 i=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"),i),n.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=i,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(t){this._state=new B_(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||"%",i=("%"===n?e.widthPercents:e.width)+n;t.setStyle("width",i,this._options.viewElement)}));const n=this._getHandleHost(),i=new r.UL(n),o=Math.round(i.width),s=Math.round(i.height),a=new r.UL(n);e.width=Math.round(a.width),e.height=Math.round(a.height),this.redraw(i),this.state.update({...e,handleHostWidth:o,handleHostHeight:s})}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 i=e.parentElement,o=this._getHandleHost(),s=this._viewResizerWrapper,a=[s.getStyle("width"),s.getStyle("height"),s.getStyle("left"),s.getStyle("top")];let c;if(i.isSameNode(o)){const e=t||new r.UL(o);c=[e.width+"px",e.height+"px",void 0,void 0]}else c=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==(0,r.Rt)(a,c)&&this._options.editor.editing.view.change((t=>{t.setStyle({width:c[0],height:c[1],left:c[2],top:c[3]},s)}))}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:(i=t).pageX,y:i.pageY};var i;const o=!this._options.isCentered||this._options.isCentered(this),r={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};o&&e.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),o&&(r.x*=2);let s=Math.abs(e.originalWidth+r.x),a=Math.abs(e.originalHeight+r.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 i of e)t.appendChild(new g({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=i,`ck-widget__resizer__handle-${n}`)}}).render());var n}_appendSizeUI(t){this._sizeView=new N_,this._sizeView.render(),t.appendChild(this._sizeView.element)}}var R_=__webpack_require__(2263),L_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(R_.Z,L_);R_.Z.locals;class j_ extends Yt{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const t=this.editor.editing,e=r.global.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),t.view.addObserver(Ha),this._observer=new((0,r.Xu)()),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=Ed((()=>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(r.global.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 P_(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 i=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(i)==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;P_.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 z_=(0,r.nn)("px");class V_ extends u{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=>z_(t))),top:t.to("top",(t=>z_(t))),width:t.to("width",(t=>z_(t)))}}})}}class F_ extends Yt{constructor(){super(...arguments),this.removeDropMarkerDelayed=(0,r.gw)((()=>this.removeDropMarker()),40),this._updateDropMarkerThrottled=Ed((t=>this._updateDropMarker(t)),40),this._reconvertMarkerThrottled=Ed((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0),this._dropTargetLineView=new V_,this._domEmitter=new((0,r.Xu)()),this._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,i,o,r){this.removeDropMarkerDelayed.cancel();const s=U_(this.editor,t,e,n,i,o,r);if(s)return r&&r.containsRange(s)?this.removeDropMarker():void this._updateDropMarkerThrottled(s)}getFinalDropRange(t,e,n,i,o,r){const s=U_(this.editor,t,e,n,i,o,r);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,i=t.start.nodeAfter,o=t.start.parent,s=n?e.mapper.toViewElement(n):null,a=s?e.view.domConverter.mapViewToDom(s):null,c=i?e.mapper.toViewElement(i):null,l=c?e.view.domConverter.mapViewToDom(c):null,d=e.mapper.toViewElement(o),u=e.view.domConverter.mapViewToDom(d),h=this._getScrollableRect(d),{scrollX:m,scrollY:g}=r.global.window,p=a?new r.UL(a):null,f=l?new r.UL(l):null,x=new r.UL(u).excludeScrollbarsAndBorders(),b=p?p.bottom:x.top,k=f?f.top:x.bottom,w=r.global.window.getComputedStyle(u),A=b<=k?(b+k)/2:k;if(h.top<A&&A<h.bottom){const t=x.left+parseFloat(w.paddingLeft),e=x.right-parseFloat(w.paddingRight),n=Math.max(t+m,h.left),i=Math.min(e+m,h.right);this._dropTargetLineView.set({isVisible:!0,left:n,top:A+g,width:i-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=r.global.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 i=new r.do(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:i})}return new r.UL(n).excludeScrollbarsAndBorders()}}function U_(t,e,n,i,o,r,s){const a=t.model,c=t.editing.mapper;let l=W_(t,e);for(;l;){if(!r)if(a.schema.checkChild(l,"$text")){if(n){const e=n[0].start,r=c.toModelPosition(e);if(!s||Array.from(s.getItems()).every((t=>a.schema.checkChild(r,t)))){if(a.schema.checkChild(r,"$text"))return a.createRange(r);if(e)return G_(t,W_(t,e.parent),i,o)}}}else if(a.schema.isInline(l))return G_(t,l,i,o);if(a.schema.isBlock(l))return G_(t,l,i,o);if(a.schema.checkChild(l,"$block")){const e=Array.from(l.getChildren()).filter((e=>e.is("element")&&!H_(t,e)));let n=0,r=e.length;if(0==r)return a.createRange(a.createPositionAt(l,"end"));for(;n<r-1;){const s=Math.floor((n+r)/2);"before"==q_(t,e[s],i,o)?r=s:n=s}return G_(t,e[n],i,o)}l=l.parent}return null}function H_(t,e){const n=t.editing.mapper,i=t.editing.view.domConverter,o=n.toViewElement(e),s=i.mapViewToDom(o);return"none"!=r.global.window.getComputedStyle(s).float}function G_(t,e,n,i){const o=t.model;return o.createRange(o.createPositionAt(e,q_(t,e,n,i)))}function q_(t,e,n,i){const o=t.editing.mapper,s=t.editing.view.domConverter,a=o.toViewElement(e),c=s.mapViewToDom(a),l=new r.UL(c);return t.model.schema.isInline(e)?n<(l.left+l.right)/2?"before":"after":i<(l.top+l.bottom)/2?"before":"after"}function W_(t,e){const n=t.editing.mapper,i=t.editing.view,o=n.toModelElement(e);if(o)return o;const r=i.createPositionBefore(e),s=n.findMappedViewAncestor(r);return n.toModelElement(s)}class K_ extends Yt{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new((0,r.Xu)())}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")})),r.OB.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(r.global.document,"dragover",((t,e)=>this._handleBlockDragging(e))),this._domEmitter.listenTo(r.global.document,"drop",((t,e)=>this._handleBlockDragging(e))),this._domEmitter.listenTo(r.global.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",((t,n,i)=>{e.setAttribute("draggable",i?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,n=e.document.selection,i=this.editor.editing.view,o=Array.from(n.getSelectedBlocks()),r=e.createRange(e.createPositionBefore(o[0]),e.createPositionAfter(o[o.length-1]));e.change((t=>t.setSelection(r))),this._isBlockDragging=!0,i.focus(),i.getObserver(WA).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,i=document.elementFromPoint(e,n),o=this.editor.editing.view;i&&i.closest(".ck-editor__editable")&&o.getObserver(WA).onDomEvent({...t,type:t.type,dataTransfer:t.dataTransfer,target:i,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var Z_=__webpack_require__(390),Y_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Z_.Z,Y_);Z_.Z.locals;class J_ extends Yt{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=(0,r.gw)((()=>this._clearDraggableAttributes()),40),this._blockMode=!1,this._domEmitter=new((0,r.Xu)())}static get pluginName(){return"DragDrop"}static get requires(){return[$A,I_,F_,K_]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(WA),e.addObserver(Ha),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)})),r.OB.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,i=n.document,o=t.plugins.get(F_);this.listenTo(i,"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=(0,r.hQ)(),n.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",n.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const i=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(n.dataTransfer,i,"dragstart");const{dataTransfer:o,domTarget:s,domEvent:a}=n,{clientX:c}=a;this._updatePreview({dataTransfer:o,domTarget:s,clientX:c}),n.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(i,"dragend",((t,e)=>{this._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(r.global.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(i,"dragenter",(()=>{this.isEnabled&&n.focus()})),this.listenTo(i,"dragleave",(()=>{o.removeDropMarkerDelayed()})),this.listenTo(i,"dragging",((t,e)=>{if(!this.isEnabled)return void(e.dataTransfer.dropEffect="none");const{clientX:n,clientY:i}=e.domEvent;o.updateDropMarker(e.target,e.targetRanges,n,i,this._blockMode,this._draggedRange),this._draggedRange||(e.dataTransfer.dropEffect="copy"),r.OB.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(F_);this.listenTo(e,"clipboardInput",((e,i)=>{if("drop"!=i.method)return;const{clientX:o,clientY:r}=i.domEvent,s=n.getFinalDropRange(i.target,i.targetRanges,o,r,this._blockMode,this._draggedRange);if(!s)return this._finalizeDragging(!1),void e.stop();this._draggedRange&&this._draggingUid!=i.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==$_(i.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(s,!0))return this._finalizeDragging(!1),void e.stop();i.targetRanges=[t.editing.mapper.toViewRange(s)]}),{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get($A);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"==$_(e.dataTransfer),i=!e.resultRange||!e.resultRange.isCollapsed;this._finalizeDragging(i&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",((i,o)=>{if(r.OB.isAndroid||!o)return;this._clearDraggableAttributesDelayed.cancel();let s=Q_(o.target);if(r.OB.isBlink&&!t.isReadOnly&&!s&&!n.selection.isCollapsed){const t=n.selection.getSelectedElement();t&&r_(t)||(s=n.selection.editableElement)}s&&(e.change((t=>{t.setAttribute("draggable","true",s)})),this._draggableElement=t.editing.mapper.toModelElement(s))})),this.listenTo(n,"mouseup",(()=>{r.OB.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(F_).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 i=e.getFirstPosition().parent;i.isEmpty&&!n.schema.checkChild(i,"$text")&&n.schema.checkChild(i,"paragraph")&&t.insertElement("paragraph",i,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,i=n.document.selection,o=t?Q_(t):null;if(o){const t=e.editing.mapper.toModelElement(o);if(this._draggedRange=xr.fromRange(n.createRangeOn(t)),this._blockMode=n.schema.isBlock(t),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;const r=Array.from(i.getSelectedBlocks()),s=i.getFirstRange();if(0==r.length)return void(this._draggedRange=xr.fromRange(s));const a=X_(n,r);if(r.length>1)this._draggedRange=xr.fromRange(a),this._blockMode=!0;else if(1==r.length){const t=s.start.isTouching(a.start)&&s.end.isTouching(a.end);this._draggedRange=xr.fromRange(t?a:s),this._blockMode=t}n.change((t=>t.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const i=this.editor.editing.view,o=i.document.selection.editableElement,s=i.domConverter.mapViewToDom(o),a=r.global.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=(0,r.az)(r.global.document,"div",{style:"position: fixed; left: -999999px;"}),r.global.document.body.appendChild(this._previewContainer));const c=new r.UL(s);if(s.contains(e))return;const l=parseFloat(a.paddingLeft),d=(0,r.az)(r.global.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-n+l}px`,r.OB.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=t.getData("text/html"),t.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function $_(t){return r.OB.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function Q_(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(r_);if(r_(t))return t;const e=t.findAncestor((t=>r_(t)||t.is("editableElement")));return r_(e)?e:null}function X_(t,e){const n=e[0],i=e[e.length-1],o=n.getCommonAncestor(i),r=t.createPositionBefore(n),s=t.createPositionAfter(i);if(o&&o.is("element")&&!t.schema.isLimit(o)){const e=t.createRangeOn(o),n=r.isTouching(e.start),i=s.isTouching(e.end);if(n&&i)return X_(t,[o])}return t.createRange(r,s)}class tv extends Yt{static get pluginName(){return"PastePlainText"}static get requires(){return[$A]}init(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,o=e.document.selection;let r=!1;n.addObserver(WA),this.listenTo(i,"keydown",((t,e)=>{r=e.shiftKey})),t.plugins.get($A).on("contentInsertion",((t,n)=>{(r||function(t,e){if(t.childCount>1)return!1;const n=t.getChild(0);if(e.isObject(n))return!1;return 0==Array.from(n.getAttributeKeys()).length}(n.content,e.schema))&&e.change((t=>{const i=Array.from(o.getAttributes()).filter((([t])=>e.schema.getAttributeProperties(t).isFormatting));o.isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0}),i.push(...o.getAttributes());const r=t.createRangeIn(n.content);for(const e of r.getItems())e.is("$textProxy")&&t.setAttributes(i,e)}))}))}}class ev extends Yt{static get pluginName(){return"Clipboard"}static get requires(){return[$A,J_,tv]}}class nv extends $t{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)||!iv(t.schema,n))do{if(n=n.parent,!n)return}while(!iv(t.schema,n));t.change((t=>{t.setSelection(n,"in")}))}}function iv(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}const ov=(0,r.Zz)("Ctrl+A");class rv extends Yt{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new nv(t)),this.listenTo(e,"keydown",((e,n)=>{(0,r.Cq)(n)===ov&&(t.execute("selectAll"),n.preventDefault())}))}}class sv extends Yt{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(e=>{const n=t.commands.get("selectAll"),i=new U(e),o=e.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",tooltip:!0}),i.bind("isEnabled").to(n,"isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("selectAll"),t.editing.view.focus()})),i}))}}class av extends Yt{static get requires(){return[rv,sv]}static get pluginName(){return"SelectAll"}}class cv extends $t{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,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 i=this.editor.model,o=i.document,r=[],s=t.map((t=>t.getTransformedByOperations(n))),a=s.flat();for(const t of s){const e=t.filter((t=>t.root!=o.graveyard)).filter((t=>!dv(t,a)));e.length&&(lv(e),r.push(e[0]))}r.length&&i.change((t=>{t.setSelection(r,{backward:e})}))}_undo(t,e){const n=this.editor.model,i=n.document;this._createdBatches.add(e);const o=t.operations.slice().filter((t=>t.isDocumentOperation));o.reverse();for(const t of o){const o=t.baseVersion+1,r=Array.from(i.history.getOperations(o)),s=Ys([t.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let o of s){const r=o.affectedSelectable;r&&!n.canEditAt(r)&&(o=new zs(o.baseVersion)),e.addOperation(o),n.applyOperation(o),i.history.setOperationAsUndone(t,o)}}}}function lv(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 dv(t,e){return e.some((e=>e!==t&&e.containsRange(t,!0)))}class uv extends cv{execute(t=null){const e=t?this._stack.findIndex((e=>e.batch==t)):this._stack.length-1,n=this._stack.splice(e,1)[0],i=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(i,(()=>{this._undo(n.batch,i);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,i),this.refresh()}}class hv extends cv{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,i=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)})),this.refresh()}}class mv extends Yt{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new uv(t),this._redoCommand=new hv(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 i=n.batch,o=this._redoCommand.createdBatches.has(i),r=this._undoCommand.createdBatches.has(i);this._batchRegistry.has(i)||(this._batchRegistry.add(i),i.isUndoable&&(o?this._undoCommand.addBatch(i):r||(this._undoCommand.addBatch(i),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")}}const gv='<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>',pv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class fv extends Yt{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?gv:pv,o="ltr"==e.uiLanguageDirection?pv:gv;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",o)}_addButton(t,e,n,i){const o=this.editor;o.ui.componentFactory.add(t,(r=>{const s=o.commands.get(t),a=new U(r);return a.set({label:e,icon:i,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",(()=>{o.execute(t),o.editing.view.focus()})),a}))}}class xv extends Yt{static get requires(){return[mv,fv]}static get pluginName(){return"Undo"}}class bv extends $t{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=t.document,n=(0,r.Ps)(e.selection.getSelectedBlocks());this.value=!!n&&n.is("element","paragraph"),this.isEnabled=!!n&&kv(n,t.schema)}execute(t={}){const e=this.editor.model,n=e.document,i=t.selection||n.selection;e.canEditAt(i)&&e.change((t=>{const n=i.getSelectedBlocks();for(const i of n)!i.is("element","paragraph")&&kv(i,e.schema)&&t.rename(i,"paragraph")}))}}function kv(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class wv extends $t{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let i=t.position;e.canEditAt(i)&&e.change((t=>{if(i=this._findPositionToInsertParagraph(i,t),!i)return;const o=t.createElement("paragraph");n&&e.schema.setAllowedAttributes(o,n,t),e.insertContent(o,i),t.setSelection(o,"in")}))}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const i=n.schema.findAllowedParent(t,"paragraph");if(!i)return null;const o=t.parent,r=n.schema.checkChild(o,"$text");return o.isEmpty||r&&t.isAtEnd?n.createPositionAfter(o):!o.isEmpty&&r&&t.isAtStart?n.createPositionBefore(o):e.split(t,i).position}}class Av extends Yt{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new bv(t)),t.commands.add("insertParagraph",new wv(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,{writer:e})=>Av.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}Av.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);const _v=["destroy","placeholder","name","fire","setSelection","ready","view","initPlugins","childCount","placeholderElement","init","then","createRoot","document","_updatePlaceholder","initialData","end","defaultPlugins","change:placeholder","plugins","config","focus","low","change","model","create","getRoot","getChild"];var vv,Cv;vv=_v,Cv=236,function(t){for(;--t;)vv.push(vv.shift())}(++Cv);const yv=function(t,e){return _v[t-=0]},Ev=[ev,lx,mx,av,Kp,xv,Av];class Iv extends((0,Uu.ObservableMixin)(Pc(Oc))){constructor(t={}){(t=Object.assign({},t))[yv("0x7")]||(t[yv("0x7")]=Iv[yv("0x5")]),super(t),this.ui=new qA(this),this.set("placeholder",""),this.model[yv("0x1")].on(yv("0xb"),(()=>this._updatePlaceholder()),{priority:yv("0xa")}),this.on(yv("0x6"),(()=>this._updatePlaceholder())),this[yv("0xc")].document[yv("0x0")]()}[yv("0xd")](){const t=this[yv("0x8")].get(yv("0x3"))||"";return this[yv("0x17")]()[yv("0x1b")]((()=>this.ui[yv("0x1a")]()))[yv("0x1b")]((()=>this.data.init(t)))[yv("0x1b")]((()=>this[yv("0x13")](yv("0x15"))))}destroy(){return super[yv("0x10")]()[yv("0x1b")]((()=>this.ui[yv("0x10")]()))}[yv("0x9")](){this[yv("0xc")].change((t=>{const e=this[yv("0xc")][yv("0x1")][yv("0xe")](),n=e&&e[yv("0xf")](e.childCount-1);t[yv("0x14")](n,yv("0x4")),this.editing[yv("0x16")][yv("0x9")]()}))}[yv("0x2")](){const t=this.editing.view,e=t.document[yv("0xe")](),n=e[yv("0xf")](0);e[yv("0x18")]>1||!n||"p"!=n[yv("0x12")]?this[yv("0x19")]&&this[yv("0x19")][yv("0x11")]&&(function(t,e){const n=e.document;re.has(n)&&t.change((t=>{const i=re.get(n),o=i.get(e);t.removeAttribute("data-placeholder",o.hostElement),ce(t,o.hostElement),i.delete(e)}))}(t,this.placeholderElement),this[yv("0x19")]=void 0):(this[yv("0x11")]&&(n[yv("0x11")]=this[yv("0x11")]),ae({view:t,element:n,keepOnFocus:!0}),this[yv("0x19")]=n)}}Iv[yv("0x5")]=Ev;const Sv=["editorReady","create","_createCancelButton","stop","cancel","fire","value","withText","focusPrevious","tab","element","setData","then","model","forEach","focusNext","div","length","set","Reply","initialData","editor","bindTemplate","listenTo","submit","isEnabled","createEditor","keystrokes","focusTracker","placeholder","shift + tab","cancelButtonView","Reply...","_editorConfig","change","label","submitButtonView","showButtons","execute","setTemplate","destroy","bind","_isDestroyed","view","firstChild","ck-comment__input-actions--cancel","ck-comment__input-actions--active","_editorCreationPromise","submitLabel","ck-comment__input-actions--submit","render","add","_initializeFocusCycling","disabledSubmit","TOO_LONG_COMMENT_ALERT","high","extendTemplate","focus","ck-comment__input-actions","editorDestroyed","getData","Cancel","Esc","_createSubmitButton","low"];var Tv,Dv;Tv=Sv,Dv=212,function(t){for(;--t;)Tv.push(Tv.shift())}(++Dv);const Mv=function(t,e){return Sv[t-=0]};class Bv extends u{constructor(t,e={}){super(t),this[Mv("0x4")]=null,this[Mv("0x10")]=e,this[Mv("0xa")]=new Uu.KeystrokeHandler,this[Mv("0xb")]=new Uu.FocusTracker,this[Mv("0x1")](Mv("0x36"),e[Mv("0x3")]||""),this.set("disabledSubmit",!1),this[Mv("0x1")](Mv("0x14"),!0),this[Mv("0x1")](Mv("0xc"),PA(t,Mv("0xf"))),this[Mv("0x1")](Mv("0x1f"),PA(t,Mv("0x2"))),this[Mv("0x13")]=this._createSubmitButton(),this[Mv("0xe")]=this[Mv("0x32")](),this[Mv("0x16")]({tag:Mv("0x40"),attributes:{class:["ck-comment__input-wrapper"]},children:[{tag:Mv("0x40"),attributes:{class:[Mv("0x29"),this[Mv("0x5")].if("showButtons",Mv("0x1d"))]},children:[this.submitButtonView,this[Mv("0xe")]]}]}),this.keystrokes[Mv("0x1")](Mv("0x2d"),((t,e)=>{this[Mv("0xe")][Mv("0x35")](Mv("0x15")),e()})),this.on(Mv("0x7"),((e,n)=>{n.length>65e3?(alert(PA(t,Mv("0x25"),[n[Mv("0x0")],65e3])),e[Mv("0x33")]()):this[Mv("0x4")][Mv("0x3b")]("")}),{priority:Mv("0x26")})}[Mv("0x21")](){super[Mv("0x21")](),this[Mv("0xa")][Mv("0x6")](this[Mv("0x3a")]),this.focusTracker[Mv("0x22")](this[Mv("0x3a")])}[Mv("0x9")](){return this[Mv("0x4")]||(this.editor=new Iv(this[Mv("0x10")]),this[Mv("0x1e")]=this[Mv("0x4")][Mv("0x31")]()[Mv("0x3c")]((()=>{if(this[Mv("0x19")])return;const t=this[Mv("0x4")];this[Mv("0x3a")].insertBefore(t.ui[Mv("0x3a")],this[Mv("0x3a")][Mv("0x1b")]),t[Mv("0x3d")].document.on(Mv("0x11"),(()=>this[Mv("0x36")]=t[Mv("0x2b")]())),t[Mv("0x18")](Mv("0xc")).to(this),this[Mv("0x23")](this[Mv("0x4")]),this[Mv("0x35")](Mv("0x30"),this[Mv("0x4")])}))),this[Mv("0x1e")]}focus(){this[Mv("0x4")]&&this[Mv("0x4")][Mv("0x28")]()}async[Mv("0x17")](){this._isDestroyed||(this[Mv("0x19")]=!0,this[Mv("0x4")]&&(await this._editorCreationPromise,await this[Mv("0x4")].destroy(),this[Mv("0x35")](Mv("0x2a"),this[Mv("0x4")])),await super[Mv("0x17")]())}[Mv("0x2e")](){const{locale:t}=this,e=new U(t);return e[Mv("0x27")]({attributes:{class:[Mv("0x20")]}}),e[Mv("0x37")]=!0,e.bind("label").to(this,Mv("0x1f")),e.on(Mv("0x15"),(()=>{this.fire("submit",this.value)})),e[Mv("0x18")](Mv("0x8")).to(this,Mv("0x36"),this,Mv("0x24"),((t,e)=>!e&&!!t.trim())),e}_createCancelButton(){const{locale:t}=this,e=new U(t);return e[Mv("0x27")]({attributes:{class:[Mv("0x1c")]}}),e[Mv("0x12")]=PA(t,Mv("0x2c")),e[Mv("0x37")]=!0,e.on("execute",(()=>{this[Mv("0x4")][Mv("0x3b")](""),this[Mv("0x35")](Mv("0x34"))})),e}[Mv("0x23")](t){const e=this.focusTracker,n=new s;[t.ui[Mv("0x1a")],this[Mv("0x13")],this[Mv("0xe")]][Mv("0x3e")]((t=>{n[Mv("0x22")](t),e[Mv("0x22")](t[Mv("0x3a")])}));const i=new Gt({focusables:n,focusTracker:e});this[Mv("0xa")][Mv("0x1")](Mv("0x39"),((t,e)=>{i[Mv("0x3f")](),e()}),{priority:Mv("0x2f")}),this[Mv("0xa")][Mv("0x1")](Mv("0xd"),((t,e)=>{i[Mv("0x38")](),e()}),{priority:Mv("0x2f")})}}var Ov,Nv,Pv=["value","editor","setTemplate","ck-comment__input-container--active","focusTracker","commentInputView","createEditor","userView","showInput","set","destroy","then","div","bind","editorReady","change:showInput","ck-thread__input","bindTemplate","extendTemplate","ck-comment__input-container","ck-thread__user"];Ov=Pv,Nv=333,function(t){for(;--t;)Ov.push(Ov.shift())}(++Nv);var Rv=function(t,e){return Pv[t-=0]};class Lv extends u{constructor(t,e,n){super(t),this[Rv("0x8")]=new Bv(t,n),this[Rv("0x8")][Rv("0x10")]("showButtons").to(this.commentInputView[Rv("0x7")],"isFocused",this.commentInputView,Rv("0x3"),((t,e)=>t||!!e)),this[Rv("0xc")](Rv("0xb"),!1),this.on(Rv("0x12"),(()=>{this[Rv("0xb")]&&!this[Rv("0x8")][Rv("0x4")]&&this[Rv("0x8")][Rv("0x9")]()})),this[Rv("0x8")].delegate(Rv("0x11")).to(this),this[Rv("0x8")].delegate("editorDestroyed").to(this),this[Rv("0xa")]=new sk(t,e),this.userView.extendTemplate({attributes:{class:Rv("0x2")}}),this.commentInputView[Rv("0x0")]({attributes:{class:Rv("0x13")}}),this[Rv("0x5")]({tag:Rv("0xf"),attributes:{class:[Rv("0x1"),this[Rv("0x14")].if(Rv("0xb"),Rv("0x6"))]},children:[this[Rv("0xa")],this[Rv("0x8")]]})}[Rv("0xd")](){return this[Rv("0x8")].destroy()[Rv("0xe")]((()=>super[Rv("0xd")]()))}}const jv=["setTemplate","count","set","ck-thread__comment-count","bindTemplate"];var zv,Vv;zv=jv,Vv=395,function(t){for(;--t;)zv.push(zv.shift())}(++Vv);const Fv=function(t,e){return jv[t-=0]};class Uv extends u{constructor(t){super(t);const e=this[Fv("0x4")];this[Fv("0x2")]("count",void 0),this[Fv("0x0")]({tag:"li",attributes:{class:Fv("0x3")},children:[{text:e.to(Fv("0x1"),(e=>PA(t,"NUMBER_OF_COMMENTS",e)))}]})}}const Hv=["resolvedCommentView","authoredAt","Marked as resolved","_rearrangeExpand","_model","get","editorDestroyed","some","_findOptimalIndex","maxCommentCharsWhenCollapsed","isActive","listenTo","CommentView","equal","hasDirtyComment","createCollection","remove","_collapsedCommentsView","weight","resolvedBy","_config","_rearrangeCollapse","bind","resolvedAt","editorReady","editorConfig","removeComment","element","_handleNewCommentModel","_handleInfoComment","commentViews","resolveCommentThread","comments","delegate","change:isEditMode","locale","_updateHasDirtyComment","updateComment","set","viewUid","_shouldCollapse","formatDateTime","refreshVisibleViews","delete","expand","maxThreadTotalWeight","isEditMode","collapse","resolved","visibleViews","_calculatePosition","destroy","insert","length","focus","_handleRemoveCommentModel","from","render","add","change:isResolved"];var Gv,qv;Gv=Hv,qv=372,function(t){for(;--t;)Gv.push(Gv.shift())}(++qv);const Wv=function(t,e){return Hv[t-=0]};class Kv extends u{constructor(t,e,n){super(t),this.set(Wv("0x2"),!1),this[Wv("0x1a")](Wv("0x29"),e[Wv("0x14")].length),this[Wv("0x1a")]("isActive",!1),this[Wv("0x34")]=e,this[Wv("0x8")]=n,this[Wv("0x12")]=this[Wv("0x3")](),this.visibleViews=this.createCollection(),this[Wv("0x30")]=null,this[Wv("0x5")]=new Uv(t),this._collapsedCommentsView[Wv("0xa")]("count").to(this,Wv("0x29"),(t=>t-this[Wv("0x8")].maxCommentsWhenCollapsed));for(const t of e[Wv("0x14")])this[Wv("0x10")](t);this[Wv("0x11")](),this[Wv("0x3b")](e[Wv("0x14")],"add",((t,e)=>{const n=this[Wv("0x26")](e);this[Wv("0x29")]++,this._handleNewCommentModel(e,n),this[Wv("0x1e")]()})),this[Wv("0x3b")](e[Wv("0x14")],"remove",((t,e)=>{this[Wv("0x29")]--,this[Wv("0x2b")](e),this[Wv("0x1e")]()})),this[Wv("0x3b")](e,"commentUpdated",(()=>this[Wv("0x1e")]())),this[Wv("0x3b")](e,Wv("0x2f"),(()=>this._handleInfoComment())),this.on("change:isActive",(()=>this[Wv("0x1e")]())),this.on("change:hasDirtyComment",(()=>this[Wv("0x1e")]())),this.setTemplate({tag:"ul",attributes:{class:["ck-thread__comments"]},children:this[Wv("0x25")]})}get[Wv("0x1c")](){return this._model[Wv("0x6")]>this[Wv("0x8")][Wv("0x21")]&&!this[Wv("0x3a")]&&!this[Wv("0x2")]}[Wv("0x2d")](){super.render(),this[Wv("0x1e")]()}[Wv("0x2a")](){this[Wv("0xf")][Wv("0x2a")]()}[Wv("0x27")](){this[Wv("0x5")][Wv("0x27")]();for(const t of this[Wv("0x12")])t[Wv("0x27")]();super[Wv("0x27")]()}[Wv("0x1e")](){this[Wv("0x1c")]?this._rearrangeCollapse():this[Wv("0x33")]()}_handleNewCommentModel(t,e){const n=new(this[Wv("0x8")][Wv("0x0")])(this[Wv("0x17")],t,{maxCommentCharsWhenCollapsed:this[Wv("0x8")][Wv("0x39")],formatDateTime:this[Wv("0x8")][Wv("0x1d")],editorConfig:this._config.editorConfig});n[Wv("0x1b")]=t.id,n.delegate(Wv("0xe")).to(this),n[Wv("0x15")](Wv("0x19")).to(this),n[Wv("0x15")](Wv("0x13")).to(this),n[Wv("0x15")](Wv("0xc")).to(this),n.delegate(Wv("0x36")).to(this),this.listenTo(n,Wv("0x16"),(()=>this[Wv("0x18")]())),this[Wv("0x12")][Wv("0x2e")](n,e)}[Wv("0x26")](t){const e=this._model[Wv("0x38")](t);return this.resolvedCommentView?this[Wv("0x30")][Wv("0x31")]>t.authoredAt?e-1:e:e-1}_handleInfoComment(){if(this[Wv("0x34")][Wv("0x7")]&&this[Wv("0x34")].resolvedAt){const t={id:Wv("0x24"),author:this[Wv("0x34")][Wv("0x7")],authoredAt:this._model[Wv("0xb")],content:PA(this[Wv("0x17")],Wv("0x32")),attributes:{}};this[Wv("0x30")]=new(this[Wv("0x8")][Wv("0x0")])(this[Wv("0x17")],t,{maxCommentCharsWhenCollapsed:this[Wv("0x8")][Wv("0x39")],formatDateTime:this[Wv("0x8")][Wv("0x1d")],editorConfig:this[Wv("0x8")][Wv("0xd")],isSystemComment:!0}),this[Wv("0x12")][Wv("0x2e")](this.resolvedCommentView,this[Wv("0x34")][Wv("0x38")](t))}else this[Wv("0x30")]&&(this[Wv("0x12")][Wv("0x4")](this[Wv("0x30")]),this[Wv("0x30")][Wv("0x27")](),this[Wv("0x30")]=null);this[Wv("0x1e")]()}_handleRemoveCommentModel(t){const e=this[Wv("0x12")].remove(t.id);this.stopListening(e),e.isEditMode&&this[Wv("0x18")](),e.destroy()}[Wv("0x18")](){this[Wv("0x2")]=Array[Wv("0x2c")](this[Wv("0x12")])[Wv("0x37")]((t=>t[Wv("0x22")]))}[Wv("0x9")](){const t=function(t){const e=new Uu.Collection;for(const n of t)e[Wv("0x2e")](n);return e}(this[Wv("0x12")]),e=this[Wv("0x5")].count;for(let n=1;n<=e;n++)t[Wv("0x4")](1);for(const e of t)e[Wv("0x23")]();e>0&&t[Wv("0x2e")](this[Wv("0x5")],1),Zv((0,Uu.diff)(Array[Wv("0x2c")](this[Wv("0x25")]),Array.from(t)),this[Wv("0x25")],t)}[Wv("0x33")](){Zv((0,Uu.diff)(Array.from(this.visibleViews),Array[Wv("0x2c")](this[Wv("0x12")])),this[Wv("0x25")],this[Wv("0x12")]);for(const t of this[Wv("0x25")])t[Wv("0x20")]()}}function Zv(t,e,n){let i=0;for(const o of t)switch(o){case Wv("0x28"):e[Wv("0x2e")](n[Wv("0x35")](i),i),i++;break;case Wv("0x1f"):e[Wv("0x4")](i);break;case Wv("0x1"):i++}}const Yv=["Comment was made on an element","isResolvable","tooltip","Reopen","locale",".ck-context","listenTo","add",".ck-context__value","render","ck-context-wrapper","_createReopenButton","hasContext","offsetWidth","_attachContextActions","classList","mouseenter","_trimContextValue","bind","reopenCommentThread","icon","querySelector","isResolved","_model","execute","ck-context__value","setTemplate","reopenButtonView","label","...","scrollWidth","fire","div","lastIndexOf","isReadOnly","isEnabled","value","ck-context","ck-thread__header","context","mouseleave","remove","span","overlay","contextValue"];var Jv,$v;Jv=Yv,$v=105,function(t){for(;--t;)Jv.push(Jv.shift())}(++$v);const Qv=function(t,e){return Yv[t-=0]};class Xv extends u{constructor(t,e){super(t);const n=this.bindTemplate;this._model=e,this[Qv("0xc")]=this._createReopenButton(),this[Qv("0x3")](Qv("0x2a")).to(this[Qv("0x8")],Qv("0x18"),(t=>!!t)),this[Qv("0x3")]("contextValue").to(this[Qv("0x8")],"context",(t=>t&&t.value?this._trimContextValue(t[Qv("0x15")]):PA(this.locale,Qv("0x1e")))),this[Qv("0xb")]({tag:Qv("0x11"),attributes:{class:[Qv("0x17")]},children:[{tag:Qv("0x11"),attributes:{class:[Qv("0x28")]},children:[{tag:Qv("0x11"),attributes:{class:[Qv("0x16"),n.if(Qv("0x2a"),"ck-context--quotes")]},children:[{tag:Qv("0x1b"),attributes:{class:[Qv("0xa")]},children:[{text:n.to(Qv("0x1d"))}]}]}]},{tag:Qv("0x11"),attributes:{class:["ck-annotation__actions"]},children:[this[Qv("0xc")]]}]})}render(){super[Qv("0x27")](),this[Qv("0x2c")]()}[Qv("0x29")](){const t=new U(this[Qv("0x22")]);return t[Qv("0xd")]=PA(this[Qv("0x22")],Qv("0x21")),t[Qv("0x20")]=PA(this[Qv("0x22")],"Reopen"),t[Qv("0x5")]='<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>',t[Qv("0x3")](Qv("0x14")).to(this[Qv("0x8")],Qv("0x13"),(t=>!t)),t[Qv("0x3")]("isVisible").to(this[Qv("0x8")],Qv("0x1f"),this[Qv("0x8")],Qv("0x7"),((t,e)=>t&&e)),t.on(Qv("0x9"),(()=>{this[Qv("0x10")](Qv("0x4"),this._model.id)})),t}[Qv("0x2")](t){if(t.length<150)return t;const e=t[Qv("0x12")](" ",147);return t.substring(0,e>-1?e:147)+Qv("0xe")}[Qv("0x2c")](){const t=this.element[Qv("0x6")](Qv("0x23")),e=t[Qv("0x6")](Qv("0x26"));this.listenTo(t,Qv("0x1"),(()=>{e[Qv("0x2b")]<e[Qv("0xf")]&&t.classList[Qv("0x25")]("overlay")})),this[Qv("0x24")](t,Qv("0x19"),(()=>{t[Qv("0x0")][Qv("0x1a")](Qv("0x1c"))}))}}const tC=["bind","focus","_createCommentThreadInputView","fire","isUnlinked","locale","commentsListView","stop","listenTo","showInput","editorConfig","_model","length","editorReady","hasDirtyComment","reopenCommentThread","isActive","CommentView","resolveCommentThread","delegate","commentThreadHeaderView","set","disabledSubmit","archivedAt","addComment","value","isResolved","destroy","isResolvable","isReadOnly","Comment","removeCommentThread","isDirty","Reply...","placeholder","Reply","commentThreadInputView","submit","_localUser","commentInputView","editorDestroyed","assign","updateComment","cancel","_config","Write a comment..."];var eC,nC;eC=tC,nC=442,function(t){for(;--t;)eC.push(eC.shift())}(++nC);const iC=function(t,e){return tC[t-=0]};class oC extends u{constructor(t,e,n,i){super(t),this[iC("0x27")](iC("0x22"),!1),this[iC("0x27")]("isDirty",!1),this._model=e,this[iC("0xa")]=n,this[iC("0x10")]=i,this[iC("0x26")]=new Xv(t,e),this[iC("0x26")].delegate(iC("0x21")).to(this),this[iC("0x1a")](this,"reopenCommentThread",(()=>{this[iC("0x13")]()})),this[iC("0x18")]=new Kv(t,e,Object[iC("0xd")]({CommentView:this[iC("0x10")][iC("0x23")]},i)),this.commentsListView[iC("0x25")]("removeComment").to(this),this[iC("0x18")][iC("0x25")](iC("0xe")).to(this),this[iC("0x18")].delegate(iC("0x24")).to(this),this.commentsListView[iC("0x25")](iC("0x1f")).to(this),this[iC("0x18")][iC("0x25")](iC("0xc")).to(this),this[iC("0x18")][iC("0x12")](iC("0x22")).to(this),this[iC("0x1a")](this,iC("0x24"),(()=>{this[iC("0x13")]()})),this.set(iC("0x1e"),this[iC("0x18")][iC("0x1e")]),this[iC("0x12")](iC("0x1e")).to(this[iC("0x18")],"length"),this[iC("0x8")]=this[iC("0x14")](),this.commentThreadInputView[iC("0x25")](iC("0x1f")).to(this),this[iC("0x8")][iC("0x25")](iC("0xc")).to(this),this.on("removeComment",(()=>this.focus())),this.bind(iC("0x4")).to(this.commentsListView,iC("0x20"),this.commentThreadInputView[iC("0xb")],"value",((t,e)=>t||!!e)),this[iC("0x12")](iC("0x16")).to(e,"unlinkedAt",(t=>!!t))}[iC("0x13")](){this.element[iC("0x13")]()}async[iC("0x2d")](){this.isDirty=!1,this[iC("0x18")].destroy(),await this.commentThreadInputView[iC("0x2d")](),super[iC("0x2d")]()}_createCommentThreadInputView(){const t=new Lv(this[iC("0x17")],this[iC("0xa")],this[iC("0x10")][iC("0x1c")]),e=t[iC("0xb")];return t[iC("0x12")](iC("0x1b")).to(this,"isActive",this[iC("0x1d")],iC("0x1"),this[iC("0x1d")],"canComment",this._model,iC("0x29"),e,iC("0x2b"),((t,e,n,i,o)=>!!o||!!i&&n&&!e||t&&n&&!e)),e.bind(iC("0x6")).to(this,iC("0x1e"),this[iC("0x1d")],iC("0x0"),this[iC("0x1d")],iC("0x2c"),((t,e,n)=>{let i;return i=n&&e?"Reply to reopen discussion...":iC(t?"0x5":"0x11"),PA(this[iC("0x17")],i)})),e[iC("0x12")]("submitLabel").to(this,iC("0x1e"),(t=>PA(this[iC("0x17")],iC(t?"0x7":"0x2")))),e.on(iC("0x9"),((t,e)=>{this[iC("0x15")](iC("0x2a"),e),this[iC("0x1d")][iC("0x2c")]&&this[iC("0x1d")][iC("0x0")]&&this.fire(iC("0x21"),this._model.id),this._model.isSubmitted||this[iC("0x15")]("submitCommentThread")})),e.on(iC("0xf"),(()=>{this.focus()})),e.bind(iC("0x28")).to(this[iC("0x1d")],iC("0x1")),e.on(iC("0xf"),(t=>{0==this[iC("0x1e")]&&(this[iC("0x15")](iC("0x3")),t[iC("0x19")]())})),this.on("change:isActive",((t,n,i)=>{i||this.length||e[iC("0x2b")]||this[iC("0x15")](iC("0x3"))})),t}}const rC=["_boundFirstCommentView","commentsListView","isResolvable","bind","isVisible","actionIndicator","ck-thread--","ck-reset_all-excluded","change:isActive","stop","div","Write a comment...","ck-thread--active","isReadOnly","fire","locale","extendTemplate","set","commentViews","Delete comment thread?","removeCommentThread","add","resolveCommentThread","querySelector","label","ck-thread--unlinked","cancelConfirm","getTemplate","containerElement","archivedAt","render","_bindFirstCommentView","ck-thread--remove-confirmation","isEnabled","commentThreadHeaderView","tooltip","_cancelAllConfirms","actionBar","commentThreadChildren","resolveButton","placeholder","_model","length","remove","icon","element","bindTemplate","_createResolveButton","unbind","isActive","ck-thread__container","change:isReadOnly","createCollection","addMany","then","isSystemComment","ck-thread","ck-comment--resolve","isConfirm","removeButton","Resolve","execute"];var sC,aC;sC=rC,aC=491,function(t){for(;--t;)sC.push(sC.shift())}(++aC);const cC=function(t,e){return rC[t-=0]};class lC extends(Gw(oC)){constructor(t,e,n,i){super(t,e,n,i),this[cC("0x2b")]=this[cC("0x39")](),this.commentThreadChildren[cC("0x3a")]([this[cC("0x6")],this.commentThreadInputView]),this[cC("0x2e")][cC("0x22")]&&this[cC("0x2b")].add(this[cC("0x27")],0),this._model.on("change:archivedAt",((t,e,n)=>{n?this.commentThreadChildren.has(this[cC("0x27")])||this[cC("0x2b")].add(this[cC("0x27")],0):this.commentThreadChildren[cC("0x30")](this[cC("0x27")])})),this[cC("0x16")](cC("0xa"),null),this[cC("0x21")]=null,this[cC("0x5")]=null,this[cC("0x14")]=t,this[cC("0x2c")]=this._createResolveButton(),this.setTemplate(this[cC("0x20")]()),this.on(cC("0xd"),((t,e,n)=>{n||this._cancelAllConfirms()})),this.listenTo(this[cC("0x2e")],cC("0x38"),((t,e,n)=>{n&&this[cC("0x29")]()})),this[cC("0x2f")]>0&&this[cC("0x24")](),this.listenTo(this.commentsListView.commentViews,cC("0x1a"),(()=>{this[cC("0x24")]()}))}getTemplate(){const t=this[cC("0x33")];return{tag:cC("0xf"),attributes:{class:[cC("0x3d"),cC("0xc"),t.if(cC("0x36"),cC("0x11")),t.if("isUnlinked",cC("0x1e")),t.if(cC("0x1"),cC("0x25")),t.to(cC("0xa"),(t=>t?cC("0xb")+t:""))],"data-thread-id":this._model.id,tabindex:-1},children:[{tag:cC("0xf"),attributes:{class:cC("0x37")},children:this[cC("0x2b")]}]}}[cC("0x23")](){super[cC("0x23")](),this[cC("0x21")]=this[cC("0x32")][cC("0x1c")](".ck-thread__container")}_cancelAllConfirms(){this[cC("0x1f")]();for(const t of this[cC("0x6")].commentViews)t.cancelConfirm()}_bindFirstCommentView(){const{locale:t}=this,e=this[cC("0x6")][cC("0x17")].get(0);e===this[cC("0x5")]||e[cC("0x3c")]||(this[cC("0x5")]=e,this[cC("0x35")](cC("0xa")),this[cC("0x8")]("actionIndicator").to(e,"actionIndicator",(t=>cC("0x30")===t?cC("0x30"):null)),e[cC("0x2d")]=PA(t,cC("0x10")),e[cC("0x2")].on("execute",(e=>{e[cC("0xe")](),this.showConfirm(PA(t,cC("0x18")),this[cC("0x21")])[cC("0x3b")]((()=>{this.fire(cC("0x19"))}))}),{priority:"high"}),e[cC("0x2a")][cC("0x1a")](this[cC("0x2c")],0))}[cC("0x34")](){const t=new U(this[cC("0x14")]);return t[cC("0x1d")]=PA(this[cC("0x14")],cC("0x3")),t[cC("0x28")]=PA(this.locale,cC("0x3")),t[cC("0x31")]=Uc.check,t[cC("0x15")]({attributes:{class:cC("0x0")}}),t.bind(cC("0x26")).to(this[cC("0x2e")],cC("0x12"),(t=>!t)),t[cC("0x8")](cC("0x9")).to(this[cC("0x2e")],cC("0x7"),this[cC("0x2e")],"isResolved",((t,e)=>t&&!e)),t.on(cC("0x4"),(()=>{this[cC("0x13")](cC("0x1b"),this[cC("0x2e")].id)})),t}}var dC,uC,hC=["div","element","ck-annotation__content","ck-comment__content","innerHTML","content","setTemplate","set"];dC=hC,uC=187,function(t){for(;--t;)dC.push(dC.shift())}(++uC);var mC=function(t,e){return hC[t-=0]};class gC extends u{constructor(t){super(t),this[mC("0x4")](mC("0x2"),""),this[mC("0x3")]({tag:mC("0x5"),attributes:{class:[mC("0x0"),mC("0x7")]}})}render(){super.render(),this.on("change:content",((t,e,n)=>{this[mC("0x6")].innerHTML=n})),this[mC("0x6")][mC("0x1")]=this[mC("0x2")]}}const pC=["switchToEditMode","submitLabel","destroy","submit","value","initialData","_createCommentInputView","get","element","content","isSystemComment","_createCommentContentView","isEditMode","editorConfig","editorReady","add","maxCommentCharsWhenCollapsed","createEditor","switchToDisplayMode","disabledSubmit","once","delegate","_config","visibleView","expand","locale","remove","set","createCollection","collapse","_model","isCollapsed","bind","focus"];var fC,xC;fC=pC,xC=202,function(t){for(;--t;)fC.push(fC.shift())}(++xC);const bC=function(t,e){return pC[t-=0]};class kC extends u{constructor(t,e,n){super(t),this[bC("0x20")]=e,this[bC("0x18")]=n,this[bC("0xc")]=!!this[bC("0x18")].isSystemComment,this.set(bC("0xe"),!1),this[bC("0x1d")](bC("0x21"),!0),this[bC("0x19")]=this[bC("0x1e")](),this.visibleView[bC("0x11")](this[bC("0xd")]())}[bC("0x1a")](){this[bC("0x21")]=!1}[bC("0x1f")](){this[bC("0xe")]||(this[bC("0x21")]=!0)}[bC("0x1")](){this[bC("0xa")][bC("0x1")]()}async destroy(){await this.visibleView[bC("0x9")](0)[bC("0x4")](),super[bC("0x4")]()}[bC("0x2")](){this[bC("0xe")]||(this[bC("0xe")]=!0,this.visibleView[bC("0x1c")](0)[bC("0x4")](),this[bC("0x19")][bC("0x11")](this[bC("0x8")]()))}[bC("0x14")](){this[bC("0xe")]&&(this[bC("0xe")]=!1,this.visibleView[bC("0x1c")](0)[bC("0x4")](),this[bC("0x19")].add(this[bC("0xd")]()))}[bC("0xd")](){const t=new gC(this[bC("0x1b")]);return t[bC("0x0")](bC("0xb")).to(this[bC("0x20")],"content",this,bC("0x21"),((t,e)=>e?Ow(t,{limit:this[bC("0x18")][bC("0x12")]}):t)),t}[bC("0x8")](){this[bC("0x18")][bC("0xf")]||(this[bC("0x18")].editorConfig={}),this._config[bC("0xf")][bC("0x7")]=this[bC("0x20")][bC("0xb")];const t=new Bv(this[bC("0x1b")],this[bC("0x18")][bC("0xf")]);return t[bC("0x6")]=this[bC("0x20")][bC("0xb")],t.bind(bC("0x15")).to(this._model,"isReadOnly"),t[bC("0x3")]=PA(this[bC("0x1b")],"Save"),t.on(bC("0x5"),((t,e)=>{this.fire("updateComment",this._model.id,e),this[bC("0x14")](),this[bC("0x1")]()})),t.on("cancel",(()=>{this.switchToDisplayMode(),this[bC("0x1")]()})),t[bC("0x16")]("editorReady",(()=>{t[bC("0x1")]()})),t[bC("0x13")](),t[bC("0x17")](bC("0x10")).to(this),t.delegate("editorDestroyed").to(this),t}}const wC=["threeVerticalDots","withText","label","EXTERNAL_COMMENT","_model","getUserViewNotificationText","ck-annotation__content-wrapper","ck-comment--","items","ck-comment--remove-confirmation","authoredAt","buttonView","ck-annotation__info-name","render","placeholder","resolvedAt","ck-comment--remove","listenTo","ck-annotation__user","isEnabled","attributes","pencil","ck-comment__external","Reply...","edit","name","EXTERNAL_IMPORT_WORD_COMMENT","change:isVisible","author","removeButton","isSystemComment","element","div","set","then","actionIndicator","remove","ck-annotation__actions","_createRemoveButton","icon","some","isEditable","_createEditButton","add","visibleView","_createDropdown","_config","Edit","execute","_attachActions","bind","createCollection","ck-annotation__info-time","fire","mouseenter","change:isRemovable","actionBar","ck-comment__main","panelView","length","addMany","extendTemplate","ck-annotation__main","isVisible","switchToEditMode","Show more items","time","source","focus","EXTERNAL_IMPORT_WORD_AVATAR","isExternal","change:isEnabled","isEditMode","creator","ck-annotation__info","_createCommentInputView","push","mouseleave","ck-comment--info","getTemplate","setTemplate","ck-annotation__actions--hidden","dropdown","getExternalCommentNote","ck-comment__user","ck-comment__info-time","EXTERNAL_AVATAR","userView","editButton","cancelConfirm","locale","ck-comment--edit","isRemovable"];var AC,_C;AC=wC,_C=471,function(t){for(;--t;)AC.push(AC.shift())}(++_C);const vC=function(t,e){return wC[t-=0]};class CC extends(Gw(kC)){constructor(t,e,n){super(t,e,n),this[vC("0x1b")](vC("0x1d"),null),this[vC("0x1b")](vC("0x8"),PA(t,vC("0x11"))),this[vC("0x2c")](vC("0x4")).to(e),this[vC("0x2c")](vC("0x9")).to(e),this[vC("0x32")]=this[vC("0x2d")](),this[vC("0x18")]||(this[vC("0x52")]=this._createEditButton(),this[vC("0x17")]=this[vC("0x20")](),this[vC("0x2")]=this[vC("0x2d")](),this.items[vC("0x36")]([this.editButton,this[vC("0x17")]]),this[vC("0x4c")]=this[vC("0x27")](),this[vC("0x32")][vC("0x25")](this.dropdown)),this.userView=new sk(t,e[vC("0x16")],this[vC("0x5c")]()),this[vC("0x51")][vC("0x37")]({attributes:{class:[vC("0x4e"),vC("0xc")]}}),this[vC("0xb")](e,vC("0x31"),(()=>this[vC("0x53")]())),this[vC("0x4a")](this[vC("0x49")]())}[vC("0x49")](){const t=this.bindTemplate,e=[{tag:vC("0x1a"),attributes:{class:["ck-comment__info",vC("0x44")]},children:[{tag:"span",children:[{text:this[vC("0x51")][vC("0x13")]}],attributes:{class:["ck-comment__info-name",vC("0x6")]}},{tag:vC("0x3c"),attributes:{datetime:t.to("authoredAt"),class:[vC("0x4f"),vC("0x2e")]},children:[{text:t.to(vC("0x4"),(t=>this[vC("0x28")].formatDateTime(t)))}]}]},{tag:"div",attributes:{class:["ck-comment__actions",vC("0x1f"),t.if("isEditMode","ck-comment__actions--hidden"),t.if("isEditMode",vC("0x4b"))]},children:this[vC("0x32")]},{tag:vC("0x1a"),attributes:{class:[vC("0x0")]},children:this[vC("0x26")]}];return this[vC("0x5b")][vC("0x40")]&&e[vC("0x46")]({tag:vC("0x1a"),attributes:{class:[vC("0x10")]},children:[{text:this[vC("0x4d")]()}]}),{tag:"li",attributes:{class:["ck-comment__wrapper",t.if("isConfirm",vC("0x3"))],tabindex:-1},children:[{tag:vC("0x1a"),attributes:{class:["ck-comment","ck-annotation",t.if(vC("0x42"),"ck-comment--edit"),t.if(vC("0x18"),vC("0x48")),t.to(vC("0x1d"),(t=>t?vC("0x1")+t:""))],"data-author-id":this[vC("0x5b")].author.id,"data-comment-id":this._model.id},children:[this[vC("0x51")],{tag:vC("0x1a"),attributes:{class:[vC("0x33"),vC("0x38")]},children:e}]}]}}[vC("0x24")](){const t=new U(this[vC("0x54")]);return t[vC("0x59")]=PA(this[vC("0x54")],vC("0x29")),t[vC("0x21")]=Uc[vC("0xf")],t[vC("0x58")]=!0,t[vC("0x37")]({attributes:{class:vC("0x55")}}),t[vC("0x2c")](vC("0xd")).to(this._model,"isReadOnly",(t=>!t)),t[vC("0x2c")](vC("0x39")).to(this[vC("0x5b")],vC("0x23")),t.on("execute",(()=>this[vC("0x3a")]())),t}[vC("0x20")](){const t=new U(this[vC("0x54")]);return t[vC("0x59")]=PA(this[vC("0x54")],"Remove"),t.icon='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.2 7h9.2c.6 0 1 .4 1 1v9.9c0 .5-.4 1-1 1H5.2a1 1 0 0 1-1-1V8c0-.6.4-1 1-1zm1 1.5c-.3 0-.5.2-.5.5v8c0 .3.2.5.5.5h.5c.2 0 .5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5 3.6H3.8c-.5 0-.7.3-.7.8s.2.7.7.7h12c.6 0 .9-.2.9-.7 0-.5-.3-.8-1-.8h-2.4l-1.8-2.2z"/></svg>\n',t[vC("0x58")]=!0,t[vC("0x37")]({attributes:{class:vC("0xa")}}),t[vC("0x2c")]("isEnabled").to(this[vC("0x5b")],"isReadOnly",(t=>!t)),t[vC("0x2c")](vC("0x39")).to(this[vC("0x5b")],vC("0x56")),t.on(vC("0x2a"),(()=>{this.showConfirm(PA(this[vC("0x54")],"Delete comment?"),this.element)[vC("0x1c")]((()=>{this[vC("0x2f")]("removeComment",this[vC("0x5b")].id)}))})),t}[vC("0x27")](){const t=dl(this[vC("0x54")]),e=t[vC("0x34")].children,n=new nl(this.locale),i=(e,i=-1)=>{const o=new $c(this[vC("0x54")]);o.children.add(e);const r=i>-1?i:n.items[vC("0x35")];n[vC("0x2")][vC("0x25")](o,r),t.listenTo(e,vC("0x41"),(()=>{t.isEnabled=[...this[vC("0x2")]].some((t=>t[vC("0xd")]))})),t[vC("0xb")](e,vC("0x15"),(()=>{t[vC("0x5")][vC("0x39")]=[...this[vC("0x2")]][vC("0x22")]((t=>t[vC("0x39")]))}))};t.panelPosition="sw",t.buttonView[vC("0x1b")]({label:PA(this[vC("0x54")],vC("0x3b")),icon:Uc[vC("0x57")]}),t.isEnabled=[...this[vC("0x2")]][vC("0x22")]((t=>t[vC("0xd")])),t.buttonView[vC("0x39")]=[...this[vC("0x2")]].some((t=>t[vC("0x39")]));for(const t of this[vC("0x2")])i(t);return e.add(n),t[vC("0xb")](this.items,vC("0x25"),((t,e,n)=>{i(e,n)})),t[vC("0xb")](this[vC("0x2")],vC("0x1e"),((t,e,i)=>{n.items.remove(i)})),t}[vC("0x2b")](t,e){const n=t&&t[vC("0x19")];n&&(this[vC("0xb")](n,vC("0x30"),(()=>this[vC("0x1d")]=e)),this[vC("0xb")](n,vC("0x3e"),(()=>this[vC("0x1d")]=e)),this[vC("0xb")](n,vC("0x47"),(()=>this.actionIndicator=null)),this[vC("0xb")](n,"blur",(()=>this[vC("0x1d")]=null)))}[vC("0x45")](){const t=super._createCommentInputView();return t.bind(vC("0x8")).to(this),t}getExternalCommentNote(){return"importWord"===this[vC("0x5b")][vC("0xe")]["@external"][vC("0x3d")]?PA(this[vC("0x54")],vC("0x14")):PA(this[vC("0x54")],vC("0x5a"))}[vC("0x5c")](){return this[vC("0x5b")][vC("0x40")]?"importWord"===this[vC("0x5b")].attributes["@external"].source?PA(this[vC("0x54")],vC("0x3f"),this._model[vC("0x43")].name):PA(this[vC("0x54")],vC("0x50"),this._model[vC("0x43")][vC("0x13")]):null}[vC("0x7")](){super[vC("0x7")](),this._attachActions(this[vC("0x52")],vC("0x12")),this._attachActions(this[vC("0x17")],vC("0x1e"))}}var yC=__webpack_require__(1556),EC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(yC.Z,EC);yC.Z.locals;var IC=__webpack_require__(4342),SC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(IC.Z,SC);IC.Z.locals;var TC=__webpack_require__(4964),DC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(TC.Z,DC);TC.Z.locals;const MC=["class","attributes","observe","disconnect","type"];var BC,OC;BC=MC,OC=326,function(t){for(;--t;)BC.push(BC.shift())}(++OC);const NC=function(t,e){return MC[t-=0]};function PC(t){const e=Ed(t,30),n=new MutationObserver((t=>{for(const n of t)(NC("0x0")==n[NC("0x3")]&&NC("0x4")==n.attributeName||"childList"==n[NC("0x3")]||"characterData"==n[NC("0x3")])&&e()}));return{attach(t){n[NC("0x1")](t,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},detach(){n[NC("0x2")](),e.cancel()}}}var RC=__webpack_require__(5899),LC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(RC.Z,LC);RC.Z.locals;const jC=["keystrokes","Esc","_mutationObserver","length","fire","render","content","focus","div","mainView","isDirty","_updateHeight","ck-annotation-wrapper","set","listenTo","detach","height","isActive","destroy","element","ck-rounded-corners","bindTemplate","createCollection","type","focusTracker","clear","setTemplate","attach","add"];var zC,VC;zC=jC,VC=446,function(t){for(;--t;)zC.push(zC.shift())}(++VC);const FC=function(t,e){return jC[t-=0]};class UC extends u{constructor(t,e){super(t),this.id=(0,Uu.uid)(),this[FC("0xd")]=new Uu.FocusTracker,this[FC("0x12")]=new Uu.KeystrokeHandler,this.keystrokes[FC("0x2")](FC("0x13"),((t,e)=>this[FC("0x16")](FC("0x13"),e))),this[FC("0x2")]("targetRect",{top:0,right:0,bottom:0,left:0}),this[FC("0x2")](FC("0x5"),0),this[FC("0x2")](FC("0x6"),!1),this[FC("0x2")](FC("0x1c"),!1),this[FC("0x2")](FC("0x15"),0),this.set(FC("0xc"),""),this._mutationObserver=PC((()=>this._updateHeight())),this[FC("0x18")]=this[FC("0xb")](),this.content[FC("0x11")](e),this[FC("0x1b")]=e;const n=this[FC("0xa")];this[FC("0xf")]({tag:FC("0x1a"),attributes:{class:["ck",FC("0x1"),FC("0x9"),n.if(FC("0x6"),"ck-annotation-wrapper--active")],tabindex:-1},children:this.content})}[FC("0x17")](){super[FC("0x17")](),this[FC("0xd")][FC("0x11")](this[FC("0x8")]),this.keystrokes[FC("0x3")](this.element),this[FC("0x14")][FC("0x10")](this[FC("0x8")])}[FC("0x7")](){this.content[FC("0xe")](),this[FC("0x12")][FC("0x7")](),this[FC("0xd")].destroy(),this[FC("0x14")][FC("0x4")](),super[FC("0x7")]()}[FC("0x19")](){this[FC("0x8")][FC("0x19")]()}[FC("0x0")](){const t=this.element.clientHeight;t&&(this[FC("0x5")]=t)}}const HC=["_assertCorrectTarget","view","_id","targetRect","focusTracker","focusableElements","_type","add","getClientRects","set","type","isActive","target","item","nodeType","_target","refreshVisibility","annotation-invalid-target","innerView","clear","element","mainView","every","filter","function","object","render","_getNormalizedTarget"];var GC,qC;GC=HC,qC=314,function(t){for(;--t;)GC.push(GC.shift())}(++qC);const WC=function(t,e){return HC[t-=0]};class KC extends((0,Uu.ObservableMixin)()){constructor({view:t,target:e,type:n,isVisible:i=!0}){super(),this[WC("0x17")]=t,this[WC("0x17")].element||this[WC("0x17")][WC("0x14")](),this[WC("0x0")]=n,this[WC("0x9")]=e,KC[WC("0x16")](this[WC("0x15")]()),this[WC("0x1b")]=new Uu.Collection([this[WC("0x17")][WC("0xe")]],{idProperty:WC("0x18")}),this[WC("0x1b")].on("add",((t,e)=>{this[WC("0x17")][WC("0x1a")][WC("0x1")](e)})),this[WC("0x1b")].on("remove",((t,e)=>{this[WC("0x17")][WC("0x1a")].remove(e)})),this[WC("0x3")]("isVisible",i)}get[WC("0x4")](){return WC("0x12")==typeof this._type?this[WC("0x0")]():this[WC("0x0")]}get[WC("0xc")](){return this[WC("0x17")][WC("0xf")]}get[WC("0x6")](){const t=this[WC("0x15")]();return KC[WC("0x16")](t),t}get[WC("0x19")](){const t=this[WC("0x6")];if(null===t)return null;if(t instanceof Uu.Rect)return t;const e=t[WC("0x11")]((t=>function(t){if(t.offsetParent)return!0;return!!t[WC("0x2")]().item(0)}(t)));return 0===e.length?null:new Uu.Rect(e[0][WC("0x2")]()[WC("0x7")](0))}get[WC("0x5")](){return this.view[WC("0x5")]}set[WC("0x5")](t){this[WC("0x17")][WC("0x5")]=t,this[WC("0x17")][WC("0xf")][WC("0x5")]=t}updateTargetRect(){this[WC("0x17")][WC("0x19")]=this[WC("0x19")]}destroy(){this.focusableElements.stopListening(),this[WC("0x1b")][WC("0xd")](),this.stopListening()}[WC("0xa")](){this.isVisible=!!this[WC("0x19")]}static _assertCorrectTarget(t){if(!(null===t||t instanceof Uu.Rect||Array.isArray(t)&&t[WC("0x10")]((t=>ZC(t)))))throw new Uu.CKEditorError(WC("0xb"),null,{target:t})}[WC("0x15")](){const t=WC("0x12")==typeof this[WC("0x9")]?this._target():this._target;return ZC(t)?[t]:t}}function ZC(t){return null!==t&&WC("0x13")==typeof t&&WC("0x8")in t&&1===t[WC("0x8")]}const YC=["get","delete","refreshPositioning","_innerViewToAnnotation","_getOrderInContent","clear","listenTo","top","focusableElements","focus","fire","change:isFocused","targetRect","from","sort","set","remove","updateTargetRect","annotationcollection-not-existing-item","annotationcollection-duplicated-item","focusTracker","getIndex","_viewToAnnotation","add","getByInnerView","view","stopListening","_focusTracker","left","_sort","innerView","has","getByView"];var JC,$C;JC=YC,$C=321,function(t){for(;--t;)JC.push(JC.shift())}(++$C);const QC=function(t,e){return YC[t-=0]};class XC extends Uu.Collection{constructor(t=[]){super(),this[QC("0xc")]=new Map,this[QC("0x1f")]=new Map,this[QC("0x3")]=new Uu.FocusTracker,this[QC("0x3")].on(QC("0x14"),((t,e,n)=>{n||this[QC("0x13")]("blur")}));for(const e of t)this.add(e)}get isFocused(){return this[QC("0x3")].isFocused}add(t){if(this[QC("0x7")](t))throw new Uu.CKEditorError(QC("0x1c"),null);this._innerViewToAnnotation[QC("0x18")](t[QC("0x6")],t),this._viewToAnnotation.set(t[QC("0x1")],t);for(const e of t[QC("0x11")])this[QC("0x3")][QC("0x20")](e);this[QC("0xf")](t.focusableElements,QC("0x20"),((t,e)=>{this[QC("0x3")][QC("0x20")](e)})),this[QC("0xf")](t[QC("0x11")],QC("0x19"),((t,e)=>{this[QC("0x3")][QC("0x19")](e)})),this[QC("0xf")](t[QC("0x1")][QC("0x1d")],QC("0x14"),((e,n,i)=>{i&&this[QC("0x13")](QC("0x12"),t)})),t[QC("0x1a")]();const e=this[QC("0xd")](t[QC("0x1")][QC("0x15")]);return super[QC("0x20")](t,e)}[QC("0x19")](t){if(!this[QC("0x7")](t))throw new Uu.CKEditorError(QC("0x1b"),null);this[QC("0x2")](t[QC("0x1")].focusTracker),this[QC("0x2")](t[QC("0x11")]);for(const e of t[QC("0x11")])this[QC("0x3")][QC("0x19")](e);return this[QC("0x1f")][QC("0xa")](t.view),this._innerViewToAnnotation.delete(t.innerView),super[QC("0x19")](t)}[QC("0x0")](t){return this[QC("0xc")][QC("0x9")](t)}[QC("0x8")](t){return this[QC("0x1f")].get(t)}destroy(){super[QC("0xe")](),this[QC("0x2")](),this[QC("0xc")][QC("0xe")](),this[QC("0x1f")][QC("0xe")](),this[QC("0x3")].destroy()}[QC("0xb")](){for(const t of this)t[QC("0x1a")]();this._sort()}[QC("0x5")](){const t=Array[QC("0x16")](this)[QC("0x17")](((t,e)=>ty(t[QC("0x1")][QC("0x15")],e[QC("0x1")][QC("0x15")])));for(let e=t.length-1;e>0;e--){const n=t[e];e!==this[QC("0x1e")](n)&&(this[QC("0x19")](n),this.add(n))}}[QC("0xd")](t){let e=0;if(!t)return this.length;for(const n of this){const i=n[QC("0x1")].targetRect;if(i){if(ty(t,i)<0)return e;e++}}return e}}function ty(t,e){if(null===t&&null===e)return 0;if(null===t)return-1;if(null===e)return 1;const n=t[QC("0x10")]-e[QC("0x10")];return 0==n?t.left-e[QC("0x4")]:n}const ey=["deactivateAll","createAnnotation","stopListening","activeAnnotations","_activateAnnotation","activate","collection","createAnnotationView","delete","set","destroy","_removeActiveAnnotation","element","isVisible","refreshPositioning","_deactivateAllAnnotations","pluginName","source","view","change:isVisible","_visibleAnnotations","remove","listenTo","_bindAnnotationsToVisibleAnnotations","getByInnerView","has","Annotations","fire","add"];var ny,iy;ny=ey,iy=235,function(t){for(;--t;)ny.push(ny.shift())}(++iy);const oy=function(t,e){return ey[t-=0]};class ry extends ne{static get[oy("0xd")](){return oy("0x17")}constructor(t){super(t),this[oy("0x3")]=new XC,this._visibleAnnotations=new XC,this[oy("0x6")](oy("0x0"),new Set),this[oy("0x14")]()}[oy("0x19")](t){this[oy("0x3")][oy("0x19")](t)}[oy("0x12")](t){this.collection[oy("0x12")](t),t[oy("0x7")]()}refreshVisibility(){for(const t of this[oy("0x3")])t.refreshVisibility()}[oy("0xb")](){this[oy("0x11")].refreshPositioning()}[oy("0x15")](t){return this[oy("0x3")][oy("0x15")](t)}[oy("0x1a")](){this[oy("0x18")](oy("0xc"))}[oy("0x7")](){for(const t of this[oy("0x3")])t.destroy();this[oy("0x11")][oy("0x7")](),this[oy("0x3")][oy("0x7")](),super[oy("0x7")]()}[oy("0x2")](t){this.fire(oy("0x1"),t)}[oy("0x1b")](t){return new KC(t)}[oy("0x4")](t,e){return new UC(t,e)}_addActiveAnnotation(t){const e=new Set(this.activeAnnotations);e[oy("0x19")](t),this[oy("0x0")]=e}[oy("0x8")](t){const e=new Set(this[oy("0x0")]);e[oy("0x5")](t),this[oy("0x0")]=e}[oy("0x14")](){const t=this.collection,e=this[oy("0x11")];function n(t){const n=t[oy("0xe")];n[oy("0xa")]&&!e[oy("0x16")](n)?e.add(n):!n[oy("0xa")]&&e[oy("0x16")](n)&&e[oy("0x12")](n),n[oy("0xf")].focusTracker[oy("0x12")](n.view[oy("0x9")]),n.view.focusTracker.add(n[oy("0xf")][oy("0x9")])}this.listenTo(t,oy("0x19"),((t,i)=>{i[oy("0xa")]&&e.add(i),this[oy("0x13")](i,"change:isVisible",n)})),this[oy("0x13")](t,oy("0x12"),((t,i)=>{e.has(i)&&e[oy("0x12")](i),this[oy("0x1c")](i,oy("0x10"),n)}))}}const sy=["_updateComment","context","commentsrepository-invalid-comment-authorid","_isSubmitted","setContext","commentsrepository-add-comment-internal-error","_updateCommentThread","submit","getUser","_createNewComment","_threads","@external","commentsrepository-invalid-comment-thread-id","isReadOnly","commentsrepository-active-missing-comment-thread","setUnlinkedAt","commentsrepository-missing-target","_attachCommentThread","commentsrepository-reopen-comment-thread","comments.CommentThreadView","getCommentThreads","_getExternalAuthor","error","CommentsRepository","commentsrepository-invalid-commentid","threadId","stopListening","commentUpdated","commentsrepository-add-comment-to-missing-comment-thread","focus","commentsrepository-attach-missing-comment-thread","updateComment","editor","_removeComment","createdAt","_findOptimalIndex","editorReady","commentThreadInputView","PENDING_ACTION_COMMENT_THREAD","creator","setPermissions","catch","view","weight","bind","createElement","commentsrepository-missing-thread-and-adapter","external:","getCommentThread","isSubmitted","string","highest","comments.editorConfig","destroy","config","Missing comments editor configuration (`comments.editorConfig`). Default configuration will be used instead.","_permissions","CommentThreadView","delete","getRevision","filter","reduce","set","addCommentThread","comments","listenTo","textContent","change:isDirty","innerHTML","getIndex","archivedAt","resolvedAt","commentsrepository-active-not-attached","innerView","_threadToController","attributes","setAttribute","isActive","_adapter","focusTracker","getTime","resolveCommentThread","commentsrepository-update-comment-invalid-content","commentsrepository-update-comment-thread-internal-error","addUser","bodyCollectionContainer","licenseKey","authoredAt","isDirty","switchReadOnly","isRemovable","isResolved","commentsrepository-reopen-comment-thread-internal-error","has","removeAttribute","comments.maxCommentCharsWhenCollapsed","adapter","activeCommentThread","_reopenCommentThread","createCommentThreadController","_isAttached","CommentView","refreshVisibility","plugins","fire","commentsrepository-remove-missing-comment-thread","lowest","update","removeComment","commentId","isAttached","getComment","assign","openNewCommentThread","isEditable","resolvedBy","_viewToController","change:activeAnnotations","comment","_removeCommentThread","init","author","commentsrepository-resolved-comment-thread","admin","addComment","_hasTargetInContent","values","type","body","commentsrepository-get-comment-invalid-id","commentsrepository-fetch-comment-thread","unlinkedAt","toJSON","deactivateAll","warn","hasCommentThread","commentsrepository-remove-comment-missing-comment-thread","resolve","canComment","getByInnerView","_createCommentThreadView","comments.maxCommentsWhenCollapsed","commentsrepository-adapter-already-set","max","reopen","comments.CommentView","focusableElements","modifyAll","removeCommentThread","_bindAnnotationToEditors","model","_repository","_update","commentsrepository-update-missing-comment","_addComment","commentsrepository-missing-thread-and-adapter-method","_remove","commentsrepository-update-comment-missing-comment-thread","_updateActiveAnnotation","commentsrepository-remove-comment-thread-internal-error","getPermissions","join","fromCharCode","get","map","change:authoredAt","add","_detachCommentThread","activate","reopenCommentThread","change:_readOnlyChannels","noChannel","remove","locale","define","attachTo","PendingActions","once","write","content","editorDestroyed","function","authorName","channelId","trim","_submitCommentThread","commentsrepository-add-comment-user-not-exists","_addCommentThread","comments.maxThreadTotalWeight","updateCommentThread","isExternal","_resolveCommentThread","_add","length","then","from","commentsrepository-missing-comment-thread","_readOnlyChannels"];var ay,cy;ay=sy,cy=341,function(t){for(;--t;)ay.push(ay.shift())}(++cy);const ly=function(t,e){return sy[t-=0]},dy=Symbol(ly("0x1c")),uy={admin:!0,modifyAll:!1,write:!0,resolve:!0};class hy extends ne{static get requires(){return[ry,jc,Jb]}static get pluginName(){return ly("0x4e")}constructor(t){super(t),this[ly("0x41")]=new Map,this[ly("0x81")]=new Map,this[ly("0xab")]=new Map,this[ly("0x75")](ly("0x36"),new Set),this.set("_permissions",new Map),this[ly("0x8d")]=this.context.config[ly("0x14")](ly("0x8d"));const e=this[ly("0x38")][ly("0x6d")];e.define(ly("0xc4"),2),e.define(ly("0x2d"),500),e[ly("0x1f")](ly("0x96"),140),e[ly("0x1f")](ly("0x4a"),lC),e[ly("0x1f")](ly("0x2"),CC),e[ly("0x14")]("comments.editorConfig")||console[ly("0xbd")](ly("0x6e"))}[ly("0xaf")](){const t=this[ly("0x38")][ly("0x9e")][ly("0x14")](ry);this[ly("0x75")]("activeCommentThread",null),this.on(ly("0x76"),((t,e)=>this[ly("0x2c")](e))),this.on("submitCommentThread",((t,e)=>this[ly("0x2a")](e))),this.on(ly("0x88"),((t,e)=>this[ly("0x30")](e))),this.on(ly("0x88"),((t,e)=>this[ly("0xf")](e)),{priority:"lowest"}),this.on(ly("0x1a"),((t,e)=>this[ly("0x99")](e))),this.on("reopenCommentThread",((t,e)=>this[ly("0xf")](e)),{priority:ly("0xa1")}),this.on(ly("0x5"),((t,e)=>this[ly("0xae")](e))),this.on(ly("0x2e"),((t,e)=>this._updateCommentThread(e))),this.on(ly("0x2e"),((t,e)=>this[ly("0xf")](e)),{priority:"lowest"}),this.on(ly("0xb3"),((t,e)=>this[ly("0xb")](e))),this.on(ly("0x56"),((t,e)=>this[ly("0x37")](e))),this.on(ly("0xa3"),((t,e)=>this[ly("0x58")](e))),this.on(ly("0xb3"),((t,{threadId:e,isFromAdapter:n})=>{if(n)return;const i=this[ly("0x67")](e),o=i&&this[ly("0x81")][ly("0x14")](i);o&&o[ly("0x61")][ly("0x54")]()}),{priority:ly("0xa1")}),this[ly("0x78")](t,ly("0xac"),((t,e,n)=>{const i=Array[ly("0x34")](n)[ly("0x15")]((t=>this[ly("0xab")].get(t[ly("0x80")])))[ly("0x73")](Boolean)[0];this.activeCommentThread=i?i[ly("0x7")]:null}))}afterInit(){!function(t){function e(t){return t.map((t=>String[ly("0x13")](t)))[ly("0x12")]("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[ly("0x72")](0),r=i.getEarlierVisibleRevision(o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[ly("0x33")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t.context:t[ly("0x57")],d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l.config[ly("0x14")](e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}set[ly("0x97")](t){if(this[ly("0x85")])throw new Uu.CKEditorError(ly("0xc5"));this[ly("0x85")]=t}get[ly("0x97")](){return this._adapter}[ly("0x76")]({channelId:t=dy,threadId:e=(0,Uu.uid)(),comments:n=[],unlinkedAt:i=null,resolvedAt:o=null,resolvedBy:r=null,target:s=null,context:a=null,attributes:c={},isResolvable:l=!0,isSubmitted:d=!1,isFromAdapter:u=!1}={}){return this[ly("0x9f")](py(ly("0x76"),t),{channelId:t,threadId:e,comments:n,unlinkedAt:i,resolvedAt:o,resolvedBy:r,target:s,context:a,attributes:c,isFromAdapter:u,isResolvable:l,isSubmitted:d}),this[ly("0x67")](e)}[ly("0xa8")]({channelId:t=dy,threadId:e=(0,Uu.uid)(),target:n,context:i=null,isResolvable:o=!0}){if(this[ly("0x36")][ly("0x94")](t)||this[ly("0x36")][ly("0x94")](void 0))return null;if(!n)throw new Uu.CKEditorError(ly("0x47"));const r=this.addCommentThread({channelId:t,threadId:e,target:n,context:i,isResolvable:o});if(!r)return null;const s=this[ly("0x81")][ly("0x14")](r),a=s[ly("0x61")][ly("0x5c")].commentInputView,c=this.context[ly("0x9e")].get(ry),l=c[ly("0xc2")](s[ly("0x61")]);return c.activate(l),a[ly("0x22")](ly("0x5b"),(()=>a.focus())),r}[ly("0xbe")](t){if(ly("0x69")!=typeof t)throw new Uu.CKEditorError(ly("0x43"));return this._threads[ly("0x94")](t)}updateCommentThread({channelId:t=dy,threadId:e,context:n,unlinkedAt:i,attributes:o,isFromAdapter:r=!1}){return this[ly("0x9f")](py("updateCommentThread",t),{channelId:t,threadId:e,context:n,unlinkedAt:i,attributes:o,isFromAdapter:r}),this[ly("0x67")](e)}[ly("0x67")](t){if(ly("0x69")!=typeof t)throw new Uu.CKEditorError(ly("0x43"));return this[ly("0x41")][ly("0x14")](t)}fetchCommentThread({channelId:t,threadId:e}={}){const n=this.getCommentThread(e);if(n)return Promise[ly("0xc0")](n);if(!this.adapter)throw new Uu.CKEditorError(ly("0x65"),this[ly("0x38")]);if(ly("0x26")!=typeof this[ly("0x97")][ly("0x67")])throw new Uu.CKEditorError(ly("0xc"),this[ly("0x38")]);return this[ly("0x97")][ly("0x67")]({channelId:t,threadId:e})[ly("0x33")]((n=>this[ly("0xbe")](e)?this.getCommentThread(e):n?this[ly("0x76")](Object[ly("0xa7")]({isFromAdapter:!0,channelId:t},n)):void 0)).catch((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError(ly("0xb9"),this[ly("0x38")])}))}[ly("0x4b")]({channelId:t,skipNotAttached:e=!1,skipEmpty:n=!1,toJSON:i=!1}={}){const o=[];for(const i of this[ly("0x41")][ly("0xb5")]())t&&i[ly("0x28")]!==t||e&&!i[ly("0xa5")]||n&&0===i.length||o.push(i);return i?o[ly("0x15")]((t=>t.toJSON())):o}setActiveCommentThread(t){const e=this[ly("0x38")][ly("0x9e")][ly("0x14")](ry);if(!t)return void(this[ly("0x98")]&&e[ly("0xbc")]());const n=this[ly("0x67")](t);if(!n)throw new Uu.CKEditorError(ly("0x45"),null,{threadId:t});if(!this[ly("0x81")][ly("0x94")](n))throw new Uu.CKEditorError(ly("0x7f"),null,{threadId:t});const i=e[ly("0xc2")](this[ly("0x81")][ly("0x14")](n)[ly("0x61")]);e[ly("0x19")](i)}[ly("0x90")](t,e){t?this[ly("0x36")][ly("0x17")](e):this._readOnlyChannels[ly("0x71")](e),this[ly("0x9f")](ly("0x1b"),ly("0x36"),this._readOnlyChannels,this[ly("0x36")])}[ly("0x44")](t){return this[ly("0x36")][ly("0x94")](t)||this[ly("0x36")].has(void 0)}[ly("0x9a")](t,e){return new NA(t,e)}[ly("0x5f")](t,e=dy){this[ly("0x6f")][ly("0x75")](e,t),this[ly("0x9f")]("change:_permissions",ly("0x6f"),this[ly("0x6f")],this[ly("0x6f")])}[ly("0x11")](t=dy){return this[ly("0x6f")][ly("0x94")](t)?this[ly("0x6f")][ly("0x14")](t):uy}[ly("0x2c")]({channelId:t,threadId:e,comments:n,unlinkedAt:i,resolvedAt:o,resolvedBy:r,target:s,context:a,attributes:c,isFromAdapter:l,isResolvable:d,isSubmitted:u}){if(ly("0x69")!=typeof e)throw new Uu.CKEditorError("commentsrepository-invalid-comment-thread-id",null,{threadId:e});if(this[ly("0xbe")](e))throw new Uu.CKEditorError("commentsrepository-duplicated-comment-thread-id",null,{threadId:e});const h=new my(this,{channelId:t,id:e,context:a,attributes:c,unlinkedAt:i,resolvedAt:o,resolvedBy:r?this[ly("0x38")][ly("0x9e")].get(Jb)[ly("0x3f")](r):null,isResolvable:d,isSubmitted:u||l});this[ly("0x41")][ly("0x75")](e,h);for(const t of n)h[ly("0x31")](this[ly("0x40")]({threadId:e,...t}));return s&&h[ly("0x20")](s),l||!h[ly("0x32")]?Promise[ly("0xc0")]():this[ly("0x2a")]({channelId:t,threadId:e})}_submitCommentThread({channelId:t,threadId:e}){if(!this.hasCommentThread(e))throw new Uu.CKEditorError(ly("0x35"),this);const n=this[ly("0x67")](e);if(n[ly("0x3a")]=!0,!this.adapter||ly("0x26")!=typeof this.adapter[ly("0x76")])return Promise.resolve();const{id:i,comments:o,resolvedAt:r,resolvedBy:s,context:a,attributes:c}=n,l=this[ly("0x38")].plugins.get(ly("0x21")),d=l[ly("0x17")](PA(this[ly("0x38")][ly("0x1e")],ly("0x5d")));return this[ly("0x97")][ly("0x76")]({channelId:t,threadId:i,comments:o[ly("0x15")]((t=>t.toJSON())),resolvedAt:r,resolvedBy:s?s.id:s,context:a,attributes:c})[ly("0x33")]((({comments:n})=>{l[ly("0x1d")](d);for(const i of n)this._updateComment({channelId:t,threadId:e,commentId:i[ly("0xa4")],createdAt:i[ly("0x59")],isFromAdapter:!0})})).catch((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError("commentsrepository-add-comment-thread-internal-error",this)}))}[ly("0x48")]({threadId:t,target:e}){const n=this.getCommentThread(t);if(!n)throw new Uu.CKEditorError(ly("0x55"),this);const i=this[ly("0x38")][ly("0x9e")].get(ly("0x21")),o=this.context.plugins[ly("0x14")](ry),r=this._createCommentThreadView(n),s=new NA(n,r);let a=null;r.on(ly("0x7a"),((t,e,n)=>{n?a=i[ly("0x17")](PA(this[ly("0x38")].locale,ly("0x5d"))):a&&(i.remove(a),a=null)})),this[ly("0x81")][ly("0x75")](n,s),this[ly("0xab")][ly("0x75")](r,s);const c=new UC(this[ly("0x38")].locale,r);c[ly("0x63")](ly("0x32")).to(r),c[ly("0x63")](ly("0x8f")).to(r,ly("0x8f"),r,ly("0x32"),((t,e)=>t||!e)),c[ly("0x63")](ly("0x84")).to(r),c[ly("0xb6")]=ly("0xad");const l=new KC({view:c,target:e,type:"comment",isVisible:!n[ly("0x92")]});return this[ly("0x6")](r,l),o.add(l),l}[ly("0x6")](t,e){this.listenTo(t,ly("0x5b"),((t,n)=>{const i=n.ui[ly("0x61")][ly("0xb7")][ly("0x8c")];e[ly("0x3")][ly("0x17")](i),this[ly("0x38")]instanceof Oc&&this[ly("0x38")].ui[ly("0x86")][ly("0x17")](i)}),{priority:ly("0x6a")}),this.listenTo(t,ly("0x25"),((t,n)=>{const i=n.ui[ly("0x61")][ly("0xb7")][ly("0x8c")];e[ly("0x3")].has(i)&&e[ly("0x3")][ly("0x1d")](i),this[ly("0x38")]instanceof Oc&&this[ly("0x38")].ui[ly("0x86")][ly("0x1d")](i)}))}_unbindEditors(t){this.stopListening(t,ly("0x5b")),this.stopListening(t,ly("0x25"))}[ly("0xc3")](t){const e=this.context[ly("0x9e")][ly("0x14")](Jb),{config:n,locale:i}=this[ly("0x38")],o=vw(n[ly("0x14")](ly("0x1e")));return new(0,n[ly("0x14")](ly("0x77"))[ly("0x70")])(i,t,e.me,{editorConfig:{...n.get(ly("0x6b")),licenseKey:this[ly("0x38")][ly("0x6d")][ly("0x14")](ly("0x8d"))},maxCommentsWhenCollapsed:n.get(ly("0xc4")),maxThreadTotalWeight:n[ly("0x14")](ly("0x2d")),maxCommentCharsWhenCollapsed:n.get(ly("0x96")),formatDateTime:o,CommentView:n[ly("0x14")](ly("0x77"))[ly("0x9c")]})}[ly("0x30")]({threadId:t,channelId:e,resolvedAt:n,resolvedBy:i,isFromAdapter:o}){if(!this[ly("0xbe")](t))throw new Uu.CKEditorError(ly("0x35"),null,{threadId:t});const r=this[ly("0x67")](t);if(r.isResolved)throw new Uu.CKEditorError(ly("0xb1"),null,{threadId:t});const s=this.context.plugins[ly("0x14")](Jb);if(r[ly("0xaa")]=s[ly("0x3f")](i),r[ly("0x7e")]=n,o||!this.adapter||ly("0x26")!=typeof this[ly("0x97")][ly("0x88")])return Promise[ly("0xc0")]();const a=this[ly("0x38")][ly("0x9e")][ly("0x14")](ly("0x21")),c=a[ly("0x17")](PA(this[ly("0x38")][ly("0x1e")],ly("0x5d")));return this[ly("0x97")][ly("0x88")]({channelId:e,threadId:t}).then((({resolvedAt:t,resolvedBy:e})=>{a.remove(c),r.resolvedBy.id!==e&&(r[ly("0xaa")]=s[ly("0x3f")](e)),r[ly("0x7e")]=t})).catch((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError("commentsrepository-resolve-comment-thread-internal-error",this)}))}[ly("0x99")]({threadId:t,channelId:e,isFromAdapter:n}){if(!this[ly("0xbe")](t))throw new Uu.CKEditorError(ly("0x35"),null,{threadId:t});const i=this[ly("0x67")](t);if(!i.isResolved)throw new Uu.CKEditorError(ly("0x49"),null,{threadId:t});if(i[ly("0xaa")]=null,i[ly("0x7e")]=null,n||!this[ly("0x97")]||ly("0x26")!=typeof this[ly("0x97")][ly("0x1a")])return Promise[ly("0xc0")]();const o=this[ly("0x38")].plugins[ly("0x14")](ly("0x21")),r=o[ly("0x17")](PA(this[ly("0x38")].locale,ly("0x5d")));return this.adapter[ly("0x1a")]({channelId:e,threadId:t}).then((()=>o.remove(r)))[ly("0x60")]((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError(ly("0x93"),this)}))}[ly("0xae")]({threadId:t,isFromAdapter:e}){const n=this[ly("0x67")](t);if(!n)throw new Uu.CKEditorError(ly("0xa0"),this);if(this[ly("0x18")](t),this[ly("0x41")].delete(t),!n[ly("0x68")]||e||!this[ly("0x97")]||"function"!=typeof this[ly("0x97")].removeCommentThread)return Promise[ly("0xc0")]();const i=this[ly("0x38")][ly("0x9e")][ly("0x14")]("PendingActions"),{channelId:o}=n,r=i[ly("0x17")](PA(this[ly("0x38")][ly("0x1e")],"PENDING_ACTION_COMMENT_THREAD"));return this[ly("0x97")][ly("0x5")]({channelId:o,threadId:t}).then((()=>i.remove(r))).catch((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError(ly("0x10"),this)}))}[ly("0x3d")]({threadId:t,unlinkedAt:e,context:n,attributes:i,isFromAdapter:o}){if(ly("0x69")!=typeof t)throw new Uu.CKEditorError(ly("0x43"),null,{threadId:t});if(!this[ly("0xbe")](t))throw new Uu.CKEditorError(ly("0x35"),null,{threadId:t});const r=this[ly("0x67")](t);let s=!1;if(void 0!==n&&r[ly("0x38")]!==n&&(r[ly("0x38")]=n,s=!0),void 0!==e&&r.unlinkedAt!==e&&(r[ly("0xba")]=e,s=!0),i&&!Ls(i,r.attributes)&&(r.attributes=i,s=!0),!s)return Promise[ly("0xc0")]();if(!r[ly("0x68")]||o||!this.adapter||"function"!=typeof this[ly("0x97")].updateCommentThread)return Promise[ly("0xc0")]();const a=this[ly("0x38")][ly("0x9e")][ly("0x14")](ly("0x21")),{channelId:c}=r,l=a[ly("0x17")](PA(this[ly("0x38")][ly("0x1e")],ly("0x5d")));return this[ly("0x97")][ly("0x2e")]({channelId:c,threadId:t,context:n,unlinkedAt:e,attributes:i})[ly("0x33")]((()=>a[ly("0x1d")](l)))[ly("0x60")]((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError(ly("0x8a"),this)}))}_detachCommentThread(t){const e=this[ly("0x38")][ly("0x9e")][ly("0x14")](ry),n=this[ly("0x67")](t);if(this[ly("0x81")][ly("0x94")](n)){const t=this._threadToController[ly("0x14")](n),i=t[ly("0x61")],o=e.getByInnerView(i);this[ly("0x81")][ly("0x71")](n),this._viewToController.delete(i),o&&e.remove(o),t[ly("0x6c")](),i[ly("0x6c")]().then((()=>{this._unbindEditors(i)}))}}[ly("0xf")]({threadId:t,resolvedAt:e}){const n=!!e,i=this[ly("0x38")][ly("0x9e")][ly("0x14")](ry),o=this.getCommentThread(t);if(this[ly("0x81")][ly("0x94")](o)){const t=this._threadToController[ly("0x14")](o)[ly("0x61")],e=i[ly("0xc2")](t);e&&(n&&i._removeActiveAnnotation(e),e[ly("0x9d")]())}}[ly("0x4c")](t){const e=this[ly("0x38")][ly("0x9e")][ly("0x14")](Jb),n=Yw(ly("0x66")+t);return e[ly("0x3f")](n)||e[ly("0x8b")]({id:n,name:t})}[ly("0x40")]({threadId:t,commentId:e=(0,Uu.uid)(),content:n,authorId:i,createdAt:o,attributes:r}){if(ly("0x69")!=typeof e)throw new Uu.CKEditorError(ly("0x4f"));if("string"!=typeof i)throw new Uu.CKEditorError(ly("0x39"));if(ly("0x69")!=typeof n||!n[ly("0x29")]())throw new Uu.CKEditorError("commentsrepository-invalid-comment-content");const s=this[ly("0x38")][ly("0x9e")][ly("0x14")](Jb)[ly("0x3f")](i);if(!s)throw new Uu.CKEditorError(ly("0x2b"),null,{authorId:i});let a=null,c=o;return r&&r[ly("0x42")]&&(a=this[ly("0x4c")](r[ly("0x42")][ly("0x27")]),c=new Date(r["@external"].createdAt)),new gy(this,{threadId:t,id:e,author:a||s,creator:s,content:n,createdAt:o,authoredAt:c,attributes:r})}_addComment(t){let{threadId:e,content:n,attributes:i,isFromAdapter:o}=t;const r=this[ly("0x67")](t.threadId);if(!r)throw new Uu.CKEditorError(ly("0x53"),this);const s=this[ly("0x40")](t),{id:a}=s;if(r._add(s),o||!this[ly("0x97")]||ly("0x26")!=typeof this[ly("0x97")][ly("0xb3")]||!r[ly("0x68")])return Promise[ly("0xc0")]();const c=this[ly("0x38")][ly("0x9e")].get(ly("0x21")),{channelId:l}=r,d=c[ly("0x17")](PA(this[ly("0x38")][ly("0x1e")],"PENDING_ACTION_COMMENT_THREAD"));return i||(i={}),this.adapter[ly("0xb3")]({channelId:l,threadId:e,commentId:a,content:n,attributes:i})[ly("0x33")]((t=>{c[ly("0x1d")](d),t&&this[ly("0x37")]({channelId:l,threadId:e,commentId:a,createdAt:t[ly("0x59")],isFromAdapter:!0})}))[ly("0x60")]((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError(ly("0x3c"),this)}))}[ly("0x37")]({threadId:t,commentId:e,content:n,createdAt:i,attributes:o,isFromAdapter:r}){if(void 0!==n&&(ly("0x69")!=typeof n||!n[ly("0x29")]()[ly("0x32")]))throw new Uu.CKEditorError(ly("0x89"));const s=this[ly("0x67")](t),a=s[ly("0xa6")](e);if(!a)throw new Uu.CKEditorError(ly("0xa"),this);let c=!1;if(n&&n!==a[ly("0x24")]&&(a[ly("0xa9")]||r)&&(a[ly("0x24")]=n,c=!0),i&&i!==a[ly("0x59")]&&(a.createdAt=i,a[ly("0x82")]&&a.attributes[ly("0x42")]||(a.authoredAt=i),c=!0),o&&!Ls(o,a.attributes)&&(a[ly("0x82")]=o,c=!0),!c)return Promise[ly("0xc0")]();if(s[ly("0x9f")](ly("0x52")),r||!this[ly("0x97")]||"function"!=typeof this[ly("0x97")].updateComment)return Promise[ly("0xc0")]();const l=this.context[ly("0x9e")].get(ly("0x21")),{channelId:d}=this[ly("0x67")](a[ly("0x50")]),u=l[ly("0x17")](PA(this[ly("0x38")][ly("0x1e")],"PENDING_ACTION_COMMENT_THREAD"));return this[ly("0x97")][ly("0x56")]({channelId:d,threadId:t,commentId:e,content:n,attributes:o}).then((()=>l.remove(u)))[ly("0x60")]((t=>{throw console[ly("0x4d")](t),new Uu.CKEditorError("commentsrepository-update-comment-internal-error",this)}))}[ly("0x58")]({threadId:t,commentId:e,isFromAdapter:n}){const i=this[ly("0x67")](t),o=i.getComment(e);if(!o)throw new Uu.CKEditorError("commentsrepository-remove-missing-comment",this);if(i[ly("0xd")](o),n||!this[ly("0x97")]||ly("0x26")!=typeof this[ly("0x97")][ly("0xa3")])return Promise[ly("0xc0")]();const r=this[ly("0x38")][ly("0x9e")][ly("0x14")](ly("0x21")),{channelId:s}=i,a=r.add(PA(this[ly("0x38")][ly("0x1e")],ly("0x5d")));return this[ly("0x97")][ly("0xa3")]({channelId:s,threadId:t,commentId:e})[ly("0x33")]((()=>r.remove(a))).catch((t=>{throw console.error(t),new Uu.CKEditorError("commentsrepository-remove-comment-internal-error",this)}))}}class my extends((0,Uu.ObservableMixin)()){constructor(t,e){super();const n=e.isResolvable;this.channelId=e[ly("0x28")],this.id=e.id,this[ly("0x77")]=new Uu.Collection,this[ly("0x8")]=t,this[ly("0x9b")]=!1,this[ly("0x3a")]=e[ly("0x68")],this.set(ly("0xb4"),!0),this.bind(ly("0x44")).to(t,"_permissions",t,ly("0x36"),(()=>t.isReadOnly(this[ly("0x28")]))),this.bind("isRemovable").to(t,ly("0x6f"),(()=>t[ly("0x11")](this[ly("0x28")])[ly("0xb2")])),this[ly("0x63")](ly("0xc1")).to(t,"_permissions",(()=>{const e=t[ly("0x11")](this[ly("0x28")]);return e[ly("0x23")]||e[ly("0xb2")]})),this[ly("0x63")]("isResolvable").to(t,ly("0x6f"),(()=>n&&t.getPermissions(this[ly("0x28")]).resolve)),this.set(ly("0x38"),e[ly("0x38")]),this[ly("0x63")](ly("0x7d")).to(this,ly("0x7e"),this,"unlinkedAt",((t,e)=>t?e?t<e?t:e:t:e)),this.set("unlinkedAt",e[ly("0xba")]||null),this.set(ly("0x7e"),e[ly("0x7e")]||null),this[ly("0x75")](ly("0xaa"),e.resolvedBy||null),this.bind(ly("0x92")).to(this,ly("0x7e"),(t=>!!t)),this[ly("0x75")](ly("0x82"),e[ly("0x82")]||{})}get[ly("0x62")](){return Array[ly("0x34")](this[ly("0x77")])[ly("0x74")](((t,e)=>t+e[ly("0x62")]),0)}get length(){return this[ly("0x77")].length}get[ly("0xa5")](){return this._isAttached}get[ly("0x68")](){return this[ly("0x3a")]}[ly("0x3e")](){const{channelId:t,id:e}=this;this._repository[ly("0x9f")](py("submitCommentThread",t),{channelId:t,threadId:e})}[ly("0x46")](t){this[ly("0x9")]({unlinkedAt:t})}[ly("0xc0")]({resolvedAt:t=new Date,resolvedBy:e=null,isFromAdapter:n=!1}={}){const i=this[ly("0x8")][ly("0x38")].plugins[ly("0x14")](Jb).me,{channelId:o,id:r}=this;this._repository[ly("0x9f")](py("resolveCommentThread",o),{channelId:o,threadId:r,resolvedAt:t,resolvedBy:e||i.id,isFromAdapter:n})}[ly("0x1")]({isFromAdapter:t=!1}={}){const{channelId:e,id:n}=this;this[ly("0x8")].fire(py(ly("0x1a"),e),{channelId:e,threadId:n,isFromAdapter:t})}[ly("0x3b")](t){this.context||this[ly("0x9")]({context:t})}setAttribute(t,e){const n=Fo(this[ly("0x82")]);On(n,t,e),this._update({attributes:n})}[ly("0x95")](t){const e=Fo(this[ly("0x82")]);Ke(e,t),this._update({attributes:e})}[ly("0x1d")]({isFromAdapter:t=!1}={}){const{channelId:e,id:n}=this;this[ly("0x8")][ly("0x9f")](py(ly("0x5"),e),{channelId:e,threadId:n,isFromAdapter:t})}attachTo(t){return this._repository[ly("0x48")]({threadId:this.id,target:t})}[ly("0xb3")](t){const{channelId:e,id:n}=this;this._repository.fire(py(ly("0xb3"),e,n),Object[ly("0xa7")]({channelId:e,threadId:n},t))}getComment(t){if(ly("0x69")!=typeof t)throw new Uu.CKEditorError(ly("0xb8"),null,{commentId:t});return this[ly("0x77")][ly("0x14")](t)}toJSON(){return{threadId:this.id,context:this[ly("0x38")],unlinkedAt:this.unlinkedAt,resolvedAt:this.resolvedAt,resolvedBy:this.resolvedBy?this[ly("0xaa")].id:null,archivedAt:this.archivedAt,comments:this.comments[ly("0x15")]((t=>t[ly("0xbb")]())),attributes:this[ly("0x82")]}}_add(t){return this[ly("0x78")](t,ly("0x16"),(()=>{const e=this._findOptimalIndex(t),n=this[ly("0x77")];e-1!=n[ly("0x7c")](t)&&e+1!=n[ly("0x7c")](t)&&(this[ly("0xd")](t),this[ly("0x31")](t))})),this[ly("0x77")][ly("0x17")](t,this[ly("0x5a")](t))}_update(t){const{channelId:e,id:n}=this;this._repository[ly("0x9f")](py(ly("0x2e"),e),{...t,channelId:e,threadId:n})}_remove(t){return this[ly("0x51")](t),t[ly("0x6c")](),this.comments[ly("0x1d")](t)}[ly("0x5a")](t){const e=this[ly("0x77")].find((e=>new Date(e[ly("0x8e")])[ly("0x87")]()>new Date(t[ly("0x8e")])[ly("0x87")]()));return e?this[ly("0x77")].getIndex(e):this[ly("0x32")]}}class gy extends((0,Uu.ObservableMixin)()){constructor(t,e){super();const n=t[ly("0x38")].plugins[ly("0x14")](Jb).me,i=t[ly("0x67")](e[ly("0x50")]),o=0===i[ly("0x77")].length,r=n===e[ly("0xb0")];this.id=e.id,this.threadId=e[ly("0x50")],this.author=e[ly("0xb0")],this[ly("0x5e")]=e[ly("0x5e")],this[ly("0x2f")]=Boolean(e.attributes&&e[ly("0x82")][ly("0x42")]),this[ly("0x75")](ly("0x24"),e[ly("0x24")]),this[ly("0x59")]=e[ly("0x59")]||new Date,this[ly("0x75")](ly("0x8e"),e[ly("0x8e")]||new Date),this[ly("0x63")](ly("0x7e")).to(i,ly("0x7e")),this[ly("0x75")](ly("0x82"),e.attributes||{}),this[ly("0x63")]("isEditable").to(t,"_permissions",(()=>{const e=t[ly("0x11")](i.channelId)[ly("0x23")],n=t[ly("0x11")](i[ly("0x28")]).modifyAll;return r&&e||!r&&n})),this[ly("0x63")](ly("0x91")).to(i,ly("0x91"),t,ly("0x6f"),(e=>{const n=t[ly("0x11")](i.channelId)[ly("0x23")],s=t.getPermissions(i[ly("0x28")])[ly("0x4")];return r&&n||e&&o||!r&&s&&!o})),this.bind("isReadOnly").to(i,"isReadOnly"),this._repository=t}get weight(){return Math[ly("0x0")](function(t){const e=document[ly("0x64")]("div");return e[ly("0x7b")]=t,e[ly("0x79")][ly("0x32")]}(this[ly("0x24")]),200)}[ly("0xa2")](t){const{threadId:e,id:n}=this;if(!this[ly("0x8")][ly("0xbe")](e))throw new Uu.CKEditorError(ly("0xe"),this);const{channelId:i}=this._repository[ly("0x67")](e);this._repository[ly("0x9f")](py(ly("0x56"),i,e),{channelId:i,threadId:e,commentId:n,...t})}[ly("0x83")](t,e){const n=Fo(this.attributes);On(n,t,e),this.update({attributes:n})}[ly("0x95")](t){const e=Fo(this[ly("0x82")]);Ke(e,t),this[ly("0xa2")]({attributes:e})}remove(t={}){if(!t.isFromAdapter&&!this.isRemovable)return;const{threadId:e,id:n}=this;if(!this._repository.hasCommentThread(e))throw new Uu.CKEditorError(ly("0xbf"),this);const{channelId:i}=this[ly("0x8")][ly("0x67")](e);this[ly("0x8")][ly("0x9f")](py(ly("0xa3"),i,e),{channelId:i,threadId:e,commentId:n,...t})}toJSON(){return{commentId:this.id,content:this.content,createdAt:this[ly("0x59")],authorId:this.creator.id,attributes:this[ly("0x82")]}}[ly("0x6c")](){this[ly("0x51")]()}}function py(t,...e){for(const n of e)void 0!==n&&(t+=":"+String(n));return t}const fy=["getRanges","isEnabled","change","_trimToContent","substr","addMarker","schema","_hasContent","isObject","backward","element","model","_itemIsContent","selection","document","editor","end","comment:","tableCell"];var xy,by;xy=fy,by=111,function(t){for(;--t;)xy.push(xy.shift())}(++by);const ky=function(t,e){return fy[t-=0]};class wy extends $t{refresh(){const t=this[ky("0x12")][ky("0xe")][ky("0x11")].selection;for(const e of t[ky("0x3")]())if(this[ky("0xa")](e))return void(this[ky("0x4")]=!0);this[ky("0x4")]=!1}execute({threadId:t=(0,Uu.uid)()}={}){const e=this.editor[ky("0xe")],n=[];for(const t of e[ky("0x11")][ky("0x10")][ky("0x3")]())this[ky("0xa")](t)&&n.push(this[ky("0x6")](t));e[ky("0x5")]((e=>{for(const i of n){const n=(0,Uu.uid)()[ky("0x7")](1,5),o=ky("0x1")+t+":"+n;e[ky("0x8")](o,{range:i,usingOperation:!1,affectsData:!1})}}))}_hasContent(t){for(const e of t.getItems())if(this._itemIsContent(e))return!0;return!1}[ky("0xf")](t){return t.is("$textProxy")||this[ky("0x12")][ky("0xe")][ky("0x9")][ky("0xb")](t)&&!t.is(ky("0xd"),ky("0x2"))}_trimToContent(t){const e=t=>!this[ky("0xf")](t.item),n=t.start.getLastMatchingPosition(e),i=t[ky("0x0")].getLastMatchingPosition(e,{direction:ky("0xc")});return this.editor[ky("0xe")].createRange(n,i)}}const Ay=["EditorAnnotations","_dataCollectors","innerView","sort","delete","annotation","init","isEqual","refresh","directChange","refreshSelectedViews","containsRange","uiUpdate","_editorAnnotations","selection","isCollapsed","map","model","addSourceCollector","has","function","listenTo","push","fire","_editorAnnotationsData","update","hasDomSelection","element","from","view","plugins","document","getOrderedSelectedAnnotations","cancel","set","get","editor","remove","blur","range","getRanges","focusTracker","registerAnnotation","add","change:range","editorannotations-invalid-source-callback","requires","editing"];var _y,vy;_y=Ay,vy=403,function(t){for(;--t;)_y.push(_y.shift())}(++vy);const Cy=function(t,e){return Ay[t-=0]};class yy extends Yt{static get[Cy("0x1b")](){return[ry]}static get pluginName(){return Cy("0x1d")}constructor(t){super(t),this[Cy("0x1e")]=new Set,this._editorAnnotations=new Set}[Cy("0x23")](){const t=this[Cy("0x11")],e=t.model[Cy("0xc")][Cy("0x2b")],n=At((()=>this[Cy("0x27")]()),10);e.on(Cy("0x19"),((t,e)=>{e[Cy("0x26")]&&(n[Cy("0xe")](),this[Cy("0x27")]())})),this.listenTo(t[Cy("0x1c")][Cy("0xa")].document,"change:isFocused",((t,e,i)=>{i&&n()})),this[Cy("0x2")](t.ui[Cy("0x16")],"change:isFocused",((e,n,i)=>{i||t.isReadOnly||this[Cy("0x4")](Cy("0x13"),{isAnnotationTracked:t=>this[Cy("0x5")].has(t[Cy("0x1f")])})})),this[Cy("0x2")](this[Cy("0x11")].ui,Cy("0x6"),(()=>this[Cy("0x4")](Cy("0x29"))))}[Cy("0x17")](t){if(this[Cy("0x2a")][Cy("0x0")](t.view))return;this._editorAnnotations[Cy("0x18")](t[Cy("0xa")]),this.editor.ui[Cy("0x16")][Cy("0x18")](t[Cy("0xa")][Cy("0x8")]);const e=this[Cy("0x11")][Cy("0xb")][Cy("0x10")](ry);this[Cy("0x2")](e.collection,Cy("0x12"),((t,e)=>{this.editor.ui[Cy("0x16")][Cy("0x12")](e[Cy("0xa")][Cy("0x8")]),this[Cy("0x2a")][Cy("0x21")](e.view)}))}hasDomSelection(){return this.editor[Cy("0x1c")][Cy("0xa")][Cy("0x7")]}[Cy("0x2f")](t){if(Cy("0x1")!=typeof t)throw new Uu.CKEditorError(Cy("0x1a"));this[Cy("0x1e")][Cy("0x18")](t)}[Cy("0x27")](){this.fire(Cy("0x25"))}[Cy("0xd")]({activeAnnotation:t,annotations:e}){const n=[],i=this[Cy("0x11")][Cy("0x2e")].document[Cy("0x2b")],o=Array[Cy("0x9")](i[Cy("0x15")]());for(const[t,i]of this[Cy("0x5")]){const o=r(i),s=e.getByInnerView(t);o&&s&&n[Cy("0x3")]({annotation:s,range:o})}function r(t){for(const e of t)for(const t of o)if(e[Cy("0x28")](t,!i[Cy("0x2c")]))return e;return null}return n[Cy("0x20")](((e,n)=>{const i=e.range,o=n[Cy("0x14")];if(!i[Cy("0x24")](o)){if(i[Cy("0x28")](o,!0))return 1;if(o[Cy("0x28")](i,!0))return-1}return e[Cy("0x22")]==t?-1:n[Cy("0x22")]==t?1:0}))[Cy("0x2d")]((t=>t[Cy("0x22")]))}get _editorAnnotationsData(){const t=new Map;for(const e of Array[Cy("0x9")](this._dataCollectors))for(const[n,i]of e())t[Cy("0xf")](n,i);return t}}const Ey=["plugins","enableCommand","get","editor","afterInit","RestrictedEditingModeEditing","has"];var Iy,Sy;Iy=Ey,Sy=376,function(t){for(;--t;)Iy.push(Iy.shift())}(++Sy);const Ty=function(t,e){return Ey[t-=0]};class Dy extends Yt{[Ty("0x6")](){const t=this[Ty("0x5")];t[Ty("0x2")][Ty("0x1")](Ty("0x0"))&&t.plugins[Ty("0x4")](Ty("0x0"))[Ty("0x3")]("addCommentThread")}}var My=__webpack_require__(5743),By={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(My.Z,By);My.Z.locals;const Oy=["define","plugins","commands","dataInsert","listenTo","high","execute","basic","addCommentThread","_handleImportedData","editor","afterInit","collaboration.channelId","get","collaboration_features","importWord","config"];var Ny,Py;Ny=Oy,Py=200,function(t){for(;--t;)Ny.push(Ny.shift())}(++Py);const Ry=function(t,e){return Oy[t-=0]};class Ly extends Yt{constructor(t){super(t),this[Ry("0xe")].config[Ry("0x4")]("importWord.formatting.comments",Ry("0xb"))}[Ry("0xf")](){const t=this.editor,e=t[Ry("0x6")][Ry("0x0")](Ry("0x2")),n=t[Ry("0x5")][Ry("0x0")](Jb);e&&(e.on(Ry("0xa"),((t,[,e])=>{e[Ry("0x1")]={comments:!0,user_id:n.me.id}}),{priority:Uu.priorities[Ry("0x9")]+10}),this[Ry("0x8")](e,Ry("0x7"),this[Ry("0xd")]))}_handleImportedData(t,e){const{comment_threads:n}=e;n&&n.forEach((({thread_id:t,comments:e,is_resolved:n})=>{const i=new Date,o=e.map((({author:t,content:e,created_at:n})=>({content:e,authorId:this[Ry("0xe")].plugins[Ry("0x0")](Jb).me.id,createdAt:i,attributes:{"@external":{authorName:t,createdAt:n?new Date(n):new Date,source:Ry("0x2")}}}))),r=this[Ry("0xe")][Ry("0x3")][Ry("0x0")](Ry("0x10"));this[Ry("0xe")][Ry("0x5")][Ry("0x0")](hy)[Ry("0xc")]({channelId:r,threadId:t,comments:o,resolvedAt:n?i:null})}))}}const jy=["setUnlinkedAt","_handleMarkerAddAndRemove","clear","$marker","ck-comment-marker","CommentsEditing","registerAnnotation","registerPostFixer","set","_handleThreadMarker","once","consumable","resolveCommentThread","comment","change","focus","_getTargetForId","_initAriaMarkerChangeAnnouncements","removeMarker","addMarker:","getItems","markerToHighlight","$graveyard","conversion","isThreadsLoadingPaused","get","from","consume","markerName","state","ck-comment-marker--active","length","_initializeMarkerConverters","_attachMarkerToThread","name","view","getByInnerView","for","editor","_threads","getCommentThread","render","managedUsingOperations","refreshVisibility","comment:","hasMarkerForId","end","_threadToController","elementToElement","ariaLiveAnnouncer","enqueueChange","substring","getCommentThreads","locale","_getTextContext","markers","upcast","document","reopenCommentThread","isAttached","text","editingDowncast","ready","low","scrollToThreadMarker","activeMarker","isResolved","newRange","pluginName","then","destroyed","_hasTargetInContent","group","commands","change:isThreadsLoadingPaused","join","openNewCommentThread","config","change:activeMarker","collaboration.channelId","getWalker","change:isReadOnly","attachTo","init","requires","differ","root","model","_detachCommentThread","getChangedMarkers","reconvertMarker","announce","delete","add","dataToMarker","start","push","listenTo","addCommentThread","dataDowncast","setContext","fetchCommentThread","destroy","ENTER_COMMENT_ANNOUNCEMENT","getAllMarkersForId","$textProxy","removeCommentThread","_reconvertMarkers","plugins","_attachResolvedThread","isCollapsed","data","isLocal","editing","hasCommentThread","unlinkedAt","context","startsWith","updateMarker","removeMarker:","createPositionBefore","ignoreResolvedComments","schema"];var zy,Vy;zy=jy,Vy=367,function(t){for(;--t;)zy.push(zy.shift())}(++Vy);const Fy=function(t,e){return jy[t-=0]};class Uy extends Yt{static get[Fy("0x56")](){return[hy,yy,Dy,Ly]}static get[Fy("0x46")](){return Fy("0x7")}constructor(t){super(t),this[Fy("0xa")](Fy("0x1a"),!0),t[Fy("0x71")].once(Fy("0x40"),(()=>this[Fy("0x1a")]=!1)),this[Fy("0xa")]("activeMarker",null),this.on(Fy("0x50"),((e,n,i,o)=>{const r=i?Gy(i).id:null;if(t[Fy("0x59")][Fy("0x10")]((()=>{if(r){const e=this.getAllMarkersForId(r);for(const n of e)t[Fy("0x73")][Fy("0x5c")](n)}if(o){const{id:e}=Gy(o),n=this[Fy("0x6a")](e);for(const e of n)t[Fy("0x73")][Fy("0x5c")](e)}})),r){const e=t.plugins[Fy("0x1b")](hy)[Fy("0x2a")](r);e&&e[Fy("0x44")]&&this[Fy("0x42")](r)}})),this[Fy("0x13")]()}[Fy("0x55")](){const t=this[Fy("0x28")],e=t.plugins.get(hy),n=t.config.get(Fy("0x51"));t[Fy("0x4b")].add(Fy("0x64"),new wy(t)),this[Fy("0x63")](t,Fy("0x53"),((n,i,o)=>{e.switchReadOnly(o,t[Fy("0x4f")][Fy("0x1b")](Fy("0x51")))})),this[Fy("0x63")](e,Hy(Fy("0x64"),n),((t,{threadId:e})=>{const n=this.editor[Fy("0x6e")][Fy("0x1b")](hy)[Fy("0x2a")](e);n&&n.archivedAt&&this[Fy("0x6f")](e)})),this[Fy("0x63")](e,Hy(Fy("0x6c"),n),((e,{threadId:n})=>{t[Fy("0x59")][Fy("0x34")]({isUndoable:!1},(t=>{const e=this.getAllMarkersForId(n);for(const n of e)t[Fy("0x14")](n)}))})),this[Fy("0x63")](e,Hy(Fy("0xe"),n),((t,{threadId:e})=>{this[Fy("0x6f")](e),this[Fy("0x6d")](e),this[Fy("0x28")][Fy("0x73")][Fy("0x25")].hasDomSelection&&(this[Fy("0x28")][Fy("0x6e")].get(hy)[Fy("0x2a")](e).unlinkedAt||this.editor[Fy("0x73")][Fy("0x25")][Fy("0x11")]())}),{priority:Fy("0x41")}),this[Fy("0x63")](e,Hy(Fy("0x3c"),n),((t,{threadId:e})=>{this[Fy("0x6d")](e)}),{priority:"low"}),this[Fy("0x63")](e,Hy("addComment",n),((n,{threadId:i,isFromAdapter:o})=>{const r=this.getAllMarkersForId(i);!o&&0!=r[Fy("0x21")]&&e[Fy("0x74")](i)&&1===e[Fy("0x2a")](i)[Fy("0x21")]&&t[Fy("0x59")][Fy("0x34")]({isUndoable:!1},(t=>{for(const e of r)t[Fy("0x78")](e,{usingOperation:!0,affectsData:!0})}))}),{priority:Fy("0x41")}),this[Fy("0x22")](),this[Fy("0x3")]()}[Fy("0x68")](){const t=this[Fy("0x28")].plugins[Fy("0x1b")](hy),e=this[Fy("0x28")][Fy("0x4f")][Fy("0x1b")]("collaboration.channelId");for(const n of t[Fy("0x36")]({channelId:e}))t[Fy("0x5a")](n.id),t[Fy("0x29")].delete(n.id);super[Fy("0x68")]()}[Fy("0x2f")](t){return this[Fy("0x6a")](t)[Fy("0x21")]>0}[Fy("0x6a")](t){const e=[];for(const n of this[Fy("0x28")][Fy("0x59")][Fy("0x39")])n[Fy("0x24")][Fy("0x77")]("comment:"+t)&&e[Fy("0x62")](n);return e}scrollToThreadMarker(t){const e=this[Fy("0x12")](t);e&&setTimeout((()=>{this.activeMarker&&Gy(this[Fy("0x43")]).id===t&&(0,Uu.scrollViewportToShowTarget)({target:e[0],viewportOffset:100,alignToTop:!0})}),50)}[Fy("0x6d")](t){this[Fy("0x28")][Fy("0x59")][Fy("0x10")]((()=>{for(const e of this.getAllMarkersForId(t))this[Fy("0x28")][Fy("0x73")][Fy("0x5c")](e)}))}_attachResolvedThread(t){const e=this[Fy("0x28")][Fy("0x6e")][Fy("0x1b")](hy),n=this.editor.plugins[Fy("0x1b")](yy),i=e.getCommentThread(t);if(!i[Fy("0x3d")]){const t=i[Fy("0x54")]((()=>this[Fy("0x12")](i.id)));n[Fy("0x8")](t),i[Fy("0x49")]=!1}}[Fy("0x22")](){const t=this.editor;t[Fy("0x19")][Fy("0x27")](Fy("0x3f"))[Fy("0x17")]({model:Fy("0xf"),view:(e,n)=>{const{id:i}=Gy(e.markerName),o=t[Fy("0x6e")][Fy("0x1b")](hy)[Fy("0x2a")](i),r=this[Fy("0x43")]&&Gy(this.activeMarker).id===i;if(o&&o[Fy("0x44")]&&!r&&e.item)return n[Fy("0xd")][Fy("0x1d")](e.item,Fy("0x15")+e[Fy("0x1e")]),n[Fy("0xd")][Fy("0x1d")](e.item,Fy("0x79")+e.markerName),{classes:[]};const s=[Fy("0x6")];return r&&s[Fy("0x62")](Fy("0x20")),{classes:s,attributes:{"data-comment":i}}}}),t[Fy("0x19")][Fy("0x27")](Fy("0x65")).markerToData({model:Fy("0xf"),view:(e,{options:n})=>{const i=t[Fy("0x6e")][Fy("0x1b")](hy),o=t[Fy("0x59")].markers[Fy("0x1b")](e),{id:r,part:s}=Gy(e);if(o&&!o.affectsData)return null;if(n[Fy("0x0")]){const t=i[Fy("0x2a")](r);if(t&&t[Fy("0x44")])return null}return{group:Fy("0xf"),name:s?r+":"+s:r}}}),t[Fy("0x19")][Fy("0x27")]("upcast")[Fy("0x32")]({view:{name:Fy("0xf"),attributes:{id:/^\w/}},model:(t,{writer:e})=>e.createElement(Fy("0x5"),{"data-name":Fy("0x2e")+t.getAttribute("id")})}),t[Fy("0x19")][Fy("0x27")](Fy("0x3a"))[Fy("0x60")]({view:Fy("0xf")})}[Fy("0x3")](){const t=this[Fy("0x28")],e=t[Fy("0x6e")][Fy("0x1b")](hy),n=new Set,i=new Set;t.model.document[Fy("0x9")]((e=>{let o=!1;for(const{name:r,data:s}of t[Fy("0x59")][Fy("0x3b")][Fy("0x57")][Fy("0x5b")]()){const{group:a,id:c}=Gy(r);let l=s[Fy("0x45")];if(Fy("0xf")!==a||!l)continue;const d=Fy("0x18")===l[Fy("0x58")].rootName;d||(l=qy(l,t[Fy("0x59")]),!l||l[Fy("0x70")]||!s[Fy("0x45")]||l.isEqual(s.newRange))?t[Fy("0x59")].hasContent(l)&&!d?this.isThreadsLoadingPaused?n[Fy("0x5f")](r):this[Fy("0xb")](r,c):(i[Fy("0x5f")](r),n[Fy("0x5e")](r),e.removeMarker(r),o=!0):(e[Fy("0x78")](r,{range:l}),o=!0)}return o})),this.on(Fy("0x4c"),((e,i,o)=>{if(!o&&n.size)for(const e of n){const{id:i}=Gy(e);n.delete(e),t[Fy("0x59")].markers[Fy("0x1b")](e)&&this._handleThreadMarker(e,i)}})),this[Fy("0x63")](t[Fy("0x59")].document,"change",((o,r)=>{for(const{name:o,data:{newRange:r}}of t.model[Fy("0x3b")][Fy("0x57")][Fy("0x5b")]()){const{group:s,id:a}=Gy(o);if("comment"!==s)continue;const c=e[Fy("0x2a")](a),l=this[Fy("0x2f")](a);c&&(c[Fy("0x49")]||t[Fy("0x73")][Fy("0x25")][Fy("0xc")](Fy("0x2b"),(()=>{const n=t.plugins[Fy("0x1b")](ry),i=e[Fy("0x31")].get(c)[Fy("0x25")];n[Fy("0x26")](i)[Fy("0x2d")]()}),{priority:Fy("0x41")}),c._hasTargetInContent=l||!!r),r||(i.add(o),n[Fy("0x5e")](o))}if(r[Fy("0x72")])for(const t of i){const{id:i}=Gy(t),o=e[Fy("0x2a")](i),r=this[Fy("0x2f")](i);n[Fy("0x5e")](t),!o||r||o[Fy("0x75")]||o[Fy("0x2")](new Date)}i[Fy("0x4")]()}))}[Fy("0x12")](t){const e=this[Fy("0x28")],n=this[Fy("0x6a")](t);return Sw(e[Fy("0x73")],n)}[Fy("0x38")](t){const e=this[Fy("0x6a")](t);let n="",i=!1;for(const t of e){const e=t.getRange();for(const t of Array[Fy("0x1c")](e[Fy("0x16")]()))t.is(Fy("0x6b"))?(n&&i&&(n+=" ",i=!1),n+=t.data):i=!0;i=!0}return n[Fy("0x35")](0,150)}[Fy("0x23")](t,e){const n=this[Fy("0x28")],i=n[Fy("0x6e")][Fy("0x1b")](hy);let o=i[Fy("0x2a")](e);const r=n[Fy("0x4f")].get(Fy("0x51")),s=n[Fy("0x6e")][Fy("0x1b")](yy);return o&&(o[Fy("0x75")]&&o[Fy("0x2")](null),o[Fy("0x3d")])||(this[Fy("0x6a")](e)[0][Fy("0x2c")]?i[Fy("0x67")]({channelId:r,threadId:e})[Fy("0x47")]((t=>{if(Fy("0x48")!==n[Fy("0x1f")])if(o=t,o&&!o[Fy("0x3d")]){const t=o[Fy("0x54")]((()=>this[Fy("0x12")](e)));s.registerAnnotation(t),o[Fy("0x44")]&&this._reconvertMarkers(e)}else if(!o){const t=this.getAllMarkersForId(e);n.model[Fy("0x10")]((e=>{for(const n of t)e[Fy("0x14")](n)}))}})):n[Fy("0x73")].view[Fy("0xc")](Fy("0x2b"),(()=>{if(i.getCommentThread(e))return;const t=n[Fy("0x6e")][Fy("0x1b")](ry);o=i[Fy("0x4e")]({channelId:r,threadId:e,target:()=>this._getTargetForId(e),context:{type:"text",value:this[Fy("0x38")](e)}});const a=i[Fy("0x31")][Fy("0x1b")](o).view,c=t.getByInnerView(a);c&&s[Fy("0x8")](c)}),{priority:Fy("0x41")})),o}_handleThreadMarker(t,e){const n=this._attachMarkerToThread(t,e);n&&!n[Fy("0x76")]&&n[Fy("0x66")]({type:Fy("0x3e"),value:this._getTextContext(e)})}[Fy("0x13")](){const t=this[Fy("0x28")];mA(t[Fy("0x59")],(({left:e,entered:n})=>{const i=[];for(const n of e)if(Wy(n)){i[Fy("0x62")](PA(t[Fy("0x37")],"LEAVE_COMMENT_ANNOUNCEMENT"));break}for(const e of n)if(Wy(e)){i.push(PA(t.locale,Fy("0x69")));break}i[Fy("0x21")]&&t.ui[Fy("0x33")][Fy("0x5d")]("comments",i[Fy("0x4d")](" "))}))}}function Hy(t,e){return e?t+":"+e:t}function Gy(t){const e=t.split(":");return{group:e[0],id:e[1],part:e[2]}}function qy(t,e){const n=e[Fy("0x1")],i=e.createRange(t[Fy("0x61")]);for(const o of t[Fy("0x52")]()){const{type:t,item:r,nextPosition:s}=o;if(Fy("0x3e")===t||n.isObject(r)){const t=e[Fy("0x7a")](r);i[Fy("0x70")]&&(i.start=t),i[Fy("0x30")]=s}}return i}function Wy(t){return Fy("0xf")===Gy(t[Fy("0x24")])[Fy("0x4a")]}const Ky='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 1.5h12A3.5 3.5 0 0 1 19.5 5v8l-.005.192a3.5 3.5 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.371-.193-.38-.212a13.452 13.452 0 0 1-3.271-2.63l-.062-.07H4A3.5 3.5 0 0 1 .5 13V5A3.5 3.5 0 0 1 4 1.5ZM4 3a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6.924a11.917 11.917 0 0 0 3.71 3.081l.372.194v-3.268L14.962 15H16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4Z"/><path d="M9.75 5a.75.75 0 0 0-.75.75v2.5H6.5a.75.75 0 0 0 0 1.5H9v2.5a.75.75 0 0 0 1.5 0v-2.5H13a.75.75 0 0 0 0-1.5h-2.5v-2.5A.75.75 0 0 0 9.75 5Z"/></svg>\n',Zy=["hasMarkerForId","execute","length","getCommentThread","add","map","editor","CommentThreadInputView","init","from","componentFactory","change:activeAnnotations","focus","_threadToController","has","CommentsUI","bind","commands","view","editing","get","low","hasCommentThread","Comment","push","_viewToController","activeMarker","innerView","_createUIButton","getRange","pluginName","addSourceCollector","comment:","addComment","model","focusTracker","addCommentThread","plugins","getAllMarkersForId","locale","isEnabled","listenTo","removeCommentThread","requires","stop","label","icon"];var Yy,Jy;Yy=Zy,Jy=339,function(t){for(;--t;)Yy.push(Yy.shift())}(++Jy);const $y=function(t,e){return Zy[t-=0]};class Qy extends Yt{static get[$y("0x14")](){return $y("0x5")}static get[$y("0x21")](){return[hy,Uy,yy,ry]}get CommentsListView(){return Kv}get[$y("0x2c")](){return Lv}[$y("0x2d")](){const t=this[$y("0x2b")],e=t[$y("0x1b")][$y("0xa")](hy),n=t.plugins.get(Uy),i=t[$y("0x1b")][$y("0xa")](ry),o=t[$y("0x1b")][$y("0xa")](yy);t.ui[$y("0x0")][$y("0x29")]("comment",(()=>this[$y("0x12")]())),o[$y("0x15")]((()=>{const t=[];for(const[i,o]of e[$y("0x3")]){const e=n[$y("0x1c")](i.id),r=e.map((t=>t[$y("0x13")]()));e[$y("0x27")]>0&&t[$y("0xe")]([o[$y("0x8")],r])}return t})),this[$y("0x1f")](i,$y("0x1"),((t,i,o)=>{const r=Array[$y("0x2e")](o)[$y("0x2a")]((t=>t[$y("0x11")])).find((t=>e[$y("0xf")][$y("0x4")](t)));if(!r)return void(n[$y("0x10")]=null);const s=e._viewToController.get(r)[$y("0x18")].id,a=$y("0x16")+s;s&&n[$y("0x25")](s)?n[$y("0x10")]=a:n[$y("0x10")]&&(n[$y("0x10")]=null)})),this[$y("0x1f")](e,$y("0x20"),((e,{threadId:i,isFromAdapter:o})=>{!o&&t.ui[$y("0x19")].isFocused&&n[$y("0x25")](i)&&t[$y("0x9")][$y("0x8")].focus()}),{priority:"highest"}),this[$y("0x1f")](e,$y("0x17"),((i,{threadId:o,isFromAdapter:r})=>{!r&&n.hasMarkerForId(o)&&e[$y("0xc")](o)&&1===e[$y("0x28")](o)[$y("0x27")]&&(t.editing[$y("0x8")][$y("0x2")](),i[$y("0x22")]())}),{priority:$y("0xb")})}_createUIButton(){const t=this.editor,e=new U(t[$y("0x1d")]),n=t[$y("0x7")].get($y("0x1a"));return e[$y("0x23")]=PA(t[$y("0x1d")],"Comment"),e.tooltip=PA(t[$y("0x1d")],$y("0xd")),e[$y("0x24")]=Ky,e[$y("0x6")]($y("0x1e")).to(n),this[$y("0x1f")](e,"execute",(()=>n[$y("0x26")]())),e}}const Xy=["change:isEnabled","set","stopListening","_enableCommentsOnlyMode","stop","get","affectsData","cut","addCommentThread","editor","_disableCommentsOnlyMode","DragDrop","editing","highest","commands","listenTo","document","afterInit","delete","view","requires","clipboardInput","plugins","isEnabled","has","pluginName","CommentsOnly","commentsOnlyMode"];var tE,eE;tE=Xy,eE=334,function(t){for(;--t;)tE.push(tE.shift())}(++eE);const nE=function(t,e){return Xy[t-=0]};class iE extends Yt{static get[nE("0x1b")](){return nE("0x0")}static get[nE("0x16")](){return[Uy]}constructor(t){super(t),this[nE("0x3")]("isEnabled",!1),this.on(nE("0x2"),((t,e,n)=>{n?this[nE("0x5")]():this[nE("0xc")]()}))}[nE("0x13")](){!this[nE("0x19")]&&this[nE("0xb")].config[nE("0x7")]("commentsOnly")&&(this[nE("0x19")]=!0)}[nE("0x5")](){for(const[t,e]of this[nE("0xb")][nE("0x10")])e.affectsData&&nE("0xa")!==t&&e.forceDisabled(nE("0x1"));this[nE("0xb")][nE("0x18")][nE("0x1a")](nE("0xd"))&&this[nE("0xb")].plugins.get(nE("0xd")).forceDisabled(nE("0x1"));const t=this[nE("0xb")].editing.view[nE("0x12")];this[nE("0x11")](t,nE("0x9"),(t=>t[nE("0x6")]()),{priority:nE("0xf")}),this[nE("0x11")](t,nE("0x17"),(t=>t.stop()),{priority:nE("0xf")}),this[nE("0x11")](t,nE("0x14"),(t=>t.stop()),{priority:nE("0xf")})}[nE("0xc")](){for(const[t,e]of this[nE("0xb")].commands)e[nE("0x8")]&&nE("0xa")!==t&&e.clearForceDisabled(nE("0x1"));this[nE("0x4")](this.editor[nE("0xe")][nE("0x15")][nE("0x12")])}}const oE=["_setSelectedAnnotations","_assertAnnotationDoesNotBelongToMultipleUIs","_activateAnnotation","_visibleAnnotations","listenTo","_removeActiveAnnotation","plugins","hasActive","set","register","remove","deactivate","context","deactivateAll","add","find","annotationsuis-register-already-registered","pluginName","from","attach","collection","has","filter","stopListening","init","setActiveAnnotation","destroy","get","push","_addActiveAnnotation","activate","activeAnnotations","_uis","isActive","annotationsuis-missing-ui","requires","function","delete","annotationsuis-register-invalid-interface","activeUIs","_uisData","_deactivateAllAnnotations"];var rE,sE;rE=oE,sE=400,function(t){for(;--t;)rE.push(rE.shift())}(++sE);const aE=function(t,e){return oE[t-=0]};class cE extends ne{static get[aE("0xd")](){return[ry]}static get[aE("0x25")](){return"AnnotationsUIs"}constructor(t){super(t),this[aE("0x11")]=new Set,this[aE("0xa")]=new Map,this._uisData=new Map}[aE("0x2")](){const t=this[aE("0x20")][aE("0x1a")].get(ry);this[aE("0x18")](t,aE("0x16"),((t,e)=>{for(const t of this[aE("0x11")]){const n=this[aE("0xa")].get(t);(0,this._uisData[aE("0x5")](t)[aE("0x0")])(e)&&n[aE("0x3")](e)}})),this[aE("0x18")](t,aE("0x13"),(()=>{for(const t of this.activeUIs)this[aE("0xa")][aE("0x5")](t)[aE("0x3")](null)})),this[aE("0x18")](t._visibleAnnotations,aE("0x22"),((t,e)=>{this[aE("0x15")](e)}))}[aE("0x1b")](){return this[aE("0x11")].size>0}[aE("0xb")](t){return this[aE("0x11")].has(t)}[aE("0x8")](t,e=(()=>!0)){const n=this[aE("0x20")][aE("0x1a")][aE("0x5")](ry);if(!this[aE("0xa")][aE("0x29")](t))throw new Uu.CKEditorError(aE("0xc"),this,{uiName:t});this[aE("0xb")](t)&&this[aE("0x1f")](t),this[aE("0x11")][aE("0x22")](t);const i=new XC;(function({source:t,target:e,filter:n}){for(const i of t)n(i)&&e[QC("0x20")](i);e.listenTo(t,"add",((t,i)=>{n(i)&&e[QC("0x20")](i)})),e[QC("0xf")](t,QC("0x19"),((t,n)=>{e[QC("0x7")](n)&&e.remove(n)}))})({source:n[aE("0x17")],target:i,filter:e}),this[aE("0x12")].set(t,{collection:i,filter:e});const o=this[aE("0xa")][aE("0x5")](t);o[aE("0x27")](i),this[aE("0x18")](o,"change:activeAnnotation",((t,e,i,o)=>{o&&n[aE("0x19")](o),i&&n[aE("0x7")](i)}))}[aE("0x1f")](t){if(this[aE("0x11")][aE("0xf")](t),!this[aE("0xa")][aE("0x29")](t))throw new Uu.CKEditorError(aE("0xc"),this,{uiName:t});const e=this[aE("0xa")][aE("0x5")](t);e.detach(),this[aE("0x1")](e),this[aE("0x12")][aE("0x5")](t)[aE("0x28")][aE("0x4")](),this[aE("0x12")].delete(t)}switchTo(t){if(!this[aE("0xa")][aE("0x29")](t))throw new Uu.CKEditorError(aE("0xc"),this,{uiName:t});const e=this[aE("0x20")][aE("0x1a")][aE("0x5")](ry),n=Array[aE("0x26")](e[aE("0x9")])[0]||null;this[aE("0x21")](),this[aE("0x8")](t);const i=this[aE("0xa")].get(t);i[aE("0x3")](n),i._setSelectedAnnotations&&n&&i[aE("0x14")]([n])}deactivateAll(){for(const t of this[aE("0x11")])this[aE("0x1f")](t)}[aE("0x1d")](t,e){if(this._uis.has(t))throw new Uu.CKEditorError(aE("0x24"));if(aE("0xe")!=typeof e[aE("0x27")]||aE("0xe")!=typeof e.detach||aE("0xe")!=typeof e[aE("0x3")])throw new Uu.CKEditorError(aE("0x10"),null);this[aE("0xa")].set(t,e)}refilterAnnotations(){const t=this.context.plugins[aE("0x5")](ry).collection,e=new Map,n=Array[aE("0x26")](this[aE("0x11")]);for(const t of this[aE("0x11")]){const n=this[aE("0x12")][aE("0x5")](t).collection;for(const i of n)e[aE("0x1c")](i,t)}for(const i of t){const t=e[aE("0x5")](i);this[aE("0x15")](i);const o=n[aE("0x23")]((t=>this[aE("0x12")][aE("0x5")](t)[aE("0x0")](i)));t!==o&&(t&&this[aE("0x12")][aE("0x5")](t)[aE("0x28")][aE("0x1e")](i),o&&this._uisData[aE("0x5")](o)[aE("0x28")].add(i))}}[aE("0x4")](){this[aE("0x21")](),super.destroy()}_assertAnnotationDoesNotBelongToMultipleUIs(t){const e=[];for(const n of this.activeUIs)(0,this._uisData[aE("0x5")](n)[aE("0x0")])(t)&&e[aE("0x6")](n);if(e.length>1)throw new Uu.CKEditorError("annotationsuis-annotation-mismatch",null,{matchedUIs:e,annotationType:t.type})}}var lE=__webpack_require__(5745),dE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(lE.Z,dE);lE.Z.locals;const uE=["div","createCollection","minHeight","list","bindTemplate","class","set","number","ck-reset"];var hE,mE;hE=uE,mE=345,function(t){for(;--t;)hE.push(hE.shift())}(++mE);const gE=function(t,e){return uE[t-=0]},pE=(0,Uu.toUnit)("px");class fE extends u{constructor(t){super(t);const e=this[gE("0x1")];this[gE("0x3")](gE("0x8"),0),this[gE("0x3")](gE("0x2"),""),this.list=this[gE("0x7")](),this.setTemplate({tag:gE("0x6"),attributes:{class:["ck","ck-sidebar",gE("0x5"),e.to("class")],style:{minHeight:e.to("minHeight",(t=>gE("0x4")==typeof t?pE(t+10):null))}},children:this[gE("0x0")]})}}const xE=["bind","clear","attach","setTemplate","bottom","bindTemplate","set","isAnimationDisabled","destroy","_targetTop","height","updateHeight","createCollection","element","detach","ck-sidebar-item--no-animation","render","clientHeight","top","content","_mutationObserver","div"];var bE,kE;bE=xE,kE=225,function(t){for(;--t;)bE.push(bE.shift())}(++kE);const wE=function(t,e){return xE[t-=0]},AE=(0,Uu.toUnit)("px");class _E extends u{constructor(t){super(t),this.set(wE("0xd"),0),this[wE("0x1")](wE("0x5"),0),this[wE("0x11")](wE("0x15")).to(this,wE("0xd"),this,"height",((t,e)=>t+e)),this.set(wE("0x2"),!1),this[wE("0xf")]=PC((()=>this[wE("0x6")]())),this[wE("0x4")]=null,this[wE("0xe")]=this[wE("0x7")]();const e=this[wE("0x0")];this[wE("0x14")]({tag:wE("0x10"),attributes:{class:["ck-sidebar-item",e.to(wE("0x2"),(t=>t?wE("0xa"):""))],style:{top:e.to(wE("0xd"),(t=>AE(t)))}},children:this.content})}[wE("0xb")](){super[wE("0xb")](),this._mutationObserver[wE("0x13")](this[wE("0x8")])}[wE("0x6")](){const t=this[wE("0x8")][wE("0xc")];t&&(this[wE("0x5")]=t)}[wE("0x3")](){this[wE("0xe")][wE("0x12")](),this._mutationObserver[wE("0x9")](),super.destroy()}}const vE=["rearrange","_alignForBottomChange","config","view","content","add","unbind","updateHeight","_annotationToSidebarItemView","clear","target","delete","sidebar.container","_getItemBefore","top","_setItemTop","set","appendChild","length","nodeType","targetRect","isActive","_sidebarItemViewToAnnotation","_createSidebarView","_recalculateBuffer","_getTargetTop","_activeAnnotation","class","_lastItem","object","destroy","sidebar-attachtocontainer-missing-container","sidebar-setcontainer-invalid-element","_destroySidebarItemView","container","_alignBeforeItem","refresh","change:targetRect","_getItemAfter","_alignAfterItem","change:_lastItem","change:bottom","change:top","remove","bottom","_annotations","setContainer","listenTo","_spaceBetweenItems","get","_alignToTargetRect","_getMaxAvailableTop","_updateLastItem","Sidebar","context","sidebar.preventScrollOutOfView","addAnnotation","locale","isAnimationDisabled","element","getIndex","_alignForTopChange","_recalculate","stopListening","list","minHeight","_targetTop","define","last","_detachFromContainer","getSidebarItemView","height"];var CE,yE;CE=vE,yE=391,function(t){for(;--t;)CE.push(CE.shift())}(++yE);const EE=function(t,e){return vE[t-=0]};class IE extends ne{static get pluginName(){return EE("0x16")}constructor(t){super(t),this[EE("0x39")](EE("0x45"),void 0),this[EE("0x2c")]=this[EE("0x40")](),this[EE("0x39")]("container",null),this[EE("0x11")]=25,this._sidebarItemViewToAnnotation=new Map,this[EE("0x31")]=new Map,this[EE("0x17")][EE("0x2b")][EE("0x24")](EE("0x18"),!1),this[EE("0xe")]=null,this[EE("0x43")]=null,this._recalculateBuffer=[]}init(){const t=this[EE("0x17")][EE("0x2b")][EE("0x12")](EE("0x35"));t&&this[EE("0xf")](t)}[EE("0xf")](t){if(!TE(t))throw new Uu.CKEditorError(EE("0x1"));this.container=t}_attachToContainer({viewClass:t="",spaceBetweenItems:e=25}={}){if(!TE(this[EE("0x3")]))throw new Uu.CKEditorError(EE("0x0"),this);this[EE("0x3")][EE("0x3a")](this[EE("0x2c")][EE("0x1c")]),this[EE("0x2c")][EE("0x44")]=t,this._spaceBetweenItems=e}[EE("0x29")]({removedAnnotation:t,previousAnnotation:e,nextAnnotation:n}){const i=this[EE("0x27")](t);this[EE("0x2c")].list[EE("0xc")](i),this._destroySidebarItemView(t),e&&this._alignToTargetRect(this[EE("0x27")](e)),n&&this[EE("0x13")](this[EE("0x27")](n)),this[EE("0x15")]()}[EE("0x5")]({blurredAnnotation:t,activatedAnnotation:e,disableAnimationOnActivatedAnnotation:n}){if(this[EE("0x43")]=e,t){t[EE("0x3e")]=!1;const e=this[EE("0x27")](t);e&&n&&(e[EE("0x1b")]=!1)}if(e){const t=this[EE("0x27")](e);t&&(e[EE("0x3e")]=!0,n&&(t.isAnimationDisabled=!0,t.top+=1),this[EE("0x13")](t))}}[EE("0x26")](t){if(this[EE("0x2c")][EE("0x1c")].remove(),t)for(const e of t)this[EE("0x2")](e);this[EE("0x2c")].list[EE("0x32")](),this[EE("0x2c")][EE("0x44")]="",this._lastItem=null}[EE("0x19")](t,e){e||(e=t.view);const n=new _E(this[EE("0x17")][EE("0x1a")]);this[EE("0x3f")][EE("0x39")](n,t),this[EE("0x31")][EE("0x39")](t,n),n[EE("0x2d")].add(e),this[EE("0x10")](t[EE("0x2c")],EE("0x6"),((e,i,o)=>{const r=this[EE("0x42")](t,o);n[EE("0x23")]!=r&&(n[EE("0x23")]=r,this[EE("0x38")](n,r))})),this.listenTo(n,EE("0xb"),(()=>{this._recalculate(n,EE("0x37"))})),this[EE("0x10")](n,EE("0xa"),(()=>{this._recalculate(n,EE("0xd"))})),this._alignToTargetRect(n);const i=this[EE("0x36")](n);return i?this[EE("0x8")](i,n)||this[EE("0x13")](n):this._alignToTargetRect(n),this[EE("0x15")](),this[EE("0x2c")][EE("0x21")][EE("0x2e")](n),n}[EE("0x1e")](t){if(!t[EE("0x2d")][EE("0x3b")])return;const e=this[EE("0x36")](t);if(!e)return;const n=this[EE("0x3f")][EE("0x12")](e),i=this[EE("0x43")];i&&i===n?this[EE("0x8")](e,t):this[EE("0x4")](t,e)}_alignForBottomChange(t){if(!t[EE("0x2d")][EE("0x3b")])return;const e=this[EE("0x7")](t);if(!e)return;const n=this[EE("0x3f")][EE("0x12")](e),i=this[EE("0x17")][EE("0x2b")][EE("0x12")](EE("0x18")),o=this[EE("0x43")];o&&o===n&&i?(this[EE("0x4")](e,t),this[EE("0x8")](t,e)):o&&o===n?this[EE("0x4")](e,t):this._alignAfterItem(t,e)}[EE("0x1f")](t,e){0===this[EE("0x41")][EE("0x3b")]&&setTimeout((()=>{for(const{sidebarItemView:t,changedProp:e}of this._recalculateBuffer)EE("0x37")===e?this[EE("0x1e")](t):this[EE("0x2a")](t);this[EE("0x41")]=[]}),10),this[EE("0x41")].push({sidebarItemView:t,changedProp:e})}[EE("0x27")](t){return this[EE("0x31")][EE("0x12")](t)}[EE("0x47")](){this[EE("0x20")](),this[EE("0x2c")].destroy()}[EE("0x2")](t){const e=this.getSidebarItemView(t);this[EE("0x20")](e),this[EE("0x20")](t[EE("0x2c")]),e[EE("0x47")](),this[EE("0x31")][EE("0x34")](t),this[EE("0x3f")][EE("0x34")](e)}_createSidebarView(){const t=new fE(this.context[EE("0x1a")]);return t.render(),this.on(EE("0x9"),((e,n,i,o)=>{o&&t[EE("0x2f")](EE("0x22")),i?t.bind(EE("0x22")).to(i,EE("0xd")):t[EE("0x22")]=null})),t}[EE("0x15")](){var t;this[EE("0x45")]=(null===(t=this[EE("0xe")])||void 0===t?void 0:t[EE("0x25")])?this[EE("0x27")](this[EE("0xe")][EE("0x25")]):null}_getItemBefore(t){var e;const n=this[EE("0x3f")][EE("0x12")](t),i=n&&(null===(e=this[EE("0xe")])||void 0===e?void 0:e[EE("0x12")](this[EE("0xe")][EE("0x1d")](n)-1));return i&&this.getSidebarItemView(i)||null}[EE("0x7")](t){var e;const n=this._sidebarItemViewToAnnotation.get(t),i=n&&(null===(e=this._annotations)||void 0===e?void 0:e.get(this[EE("0xe")][EE("0x1d")](n)+1));return i&&this[EE("0x27")](i)||null}[EE("0x4")](t,e){t[EE("0x30")]();const n=SE(e.bottom+this[EE("0x11")],t.top);return!!n&&(this._setItemTop(e,e[EE("0x37")]-n),!0)}_alignAfterItem(t,e){t.updateHeight();const n=SE(t.bottom+this[EE("0x11")],e[EE("0x37")]);return!!n&&(this[EE("0x38")](e,e[EE("0x37")]+n,!1),!0)}[EE("0x13")](t){const e=this[EE("0x3f")][EE("0x12")](t);if(!e||!e[EE("0x33")]||!e[EE("0x3d")])return;const n=this[EE("0x42")](e,e.targetRect);this[EE("0x38")](t,n)}[EE("0x42")](t,e){if(null===e)return 0;if(t[EE("0x33")]instanceof Uu.Rect)return e[EE("0x37")];{const t=new Uu.Rect(this[EE("0x2c")].element)[EE("0x37")];return e[EE("0x37")]-t}}[EE("0x38")](t,e,n=this.context[EE("0x2b")][EE("0x12")](EE("0x18"))){n&&(e=Math.max(e,this[EE("0x14")](t))),t[EE("0x37")]=e}[EE("0x14")](t){let e=this[EE("0x36")](t),n=0;for(;e;)e[EE("0x30")](),n+=this[EE("0x11")]+e[EE("0x28")],e=this[EE("0x36")](e);return n}}function SE(t,e){return Math.max(t-e,0)}function TE(t){return null!==t&&EE("0x46")==typeof t&&1===t[EE("0x3c")]}const DE=["_annotations","focus","_editorAnnotations","ck-sidebar--wide","attach","rearrange","wideSidebar","uiUpdate","switchTo","requires","_activeAnnotation","setActiveAnnotation","stopListening","change:container","context","_detachFromContainer","updateTargetRect","EditorAnnotations","has","activeAnnotation","annotations","remove","get","refresh","isAttached","WideSidebar","_integrateWithEditorAnnotations","getOrderedSelectedAnnotations","_attachToContainer","widesidebar-detach-not-attached","_refreshPositioningDebounced","detach","plugins","add","_destroyEditorAnnotationsIntegration","addEventListener","listenTo","refreshPositioning","high","ready","editors"];var ME,BE;ME=DE,BE=196,function(t){for(;--t;)ME.push(ME.shift())}(++BE);const OE=function(t,e){return DE[t-=0]};class NE extends ne{static get[OE("0x12")](){return[IE,cE]}static get pluginName(){return OE("0x22")}constructor(t){super(t),this[OE("0x21")]=!1,this.set(OE("0x1c"),null),this[OE("0x1d")]=null,this[OE("0xb")]=new Uu.Collection,this[OE("0x27")]=At((()=>{this[OE("0x1d")][OE("0x5")]()}),250,{leading:!1})}init(){const t=this.context[OE("0x0")].get(cE),e=this[OE("0x17")][OE("0x0")][OE("0x1f")](IE);t.register(OE("0xf"),this),e.container&&t[OE("0x11")](OE("0xf"))}[OE("0x14")](t){if(t===this.activeAnnotation)return;const e=this[OE("0x17")][OE("0x0")][OE("0x1f")](IE);e[OE("0x13")]=t;const n=this[OE("0x1c")];this.activeAnnotation=t,e[OE("0x20")]({blurredAnnotation:n,activatedAnnotation:this[OE("0x1c")]})}attach(t){this[OE("0x1d")]=t;const e=this[OE("0x17")][OE("0x0")][OE("0x1f")](IE);if(e[OE("0x9")]=t,this[OE("0x21")])throw new Uu.CKEditorError("widesidebar-attach-already-attached",this);this[OE("0x21")]=!0,this[OE("0x4")](e,"set:container",(()=>{this.detach(),this[OE("0x4")](e,OE("0x16"),(e=>{e.off(),this[OE("0xd")](t)}))})),e[OE("0x25")]({viewClass:OE("0xc")});const n=t=>{t[OE("0x19")](),e.addAnnotation(t)};for(const e of t)n(e);this[OE("0x4")](t,"add",((t,e)=>{n(e)})),this[OE("0x4")](t,OE("0x1e"),((n,i,o)=>{e[OE("0xe")]({removedAnnotation:i,previousAnnotation:t.get(o-1),nextAnnotation:t[OE("0x1f")](o+1)}),i===this[OE("0x1c")]&&this[OE("0x14")](null)}),{priority:OE("0x6")}),this[OE("0x4")](t,OE("0xa"),((t,e)=>{this[OE("0x14")](e)})),this.listenTo(t,"blur",(()=>{this[OE("0x14")](null)}));const i=this.context instanceof ee?this[OE("0x17")].editors:new Uu.Collection([this[OE("0x17")]]);for(const t of i)this._integrateWithEditorAnnotations(t);this[OE("0x4")](i,OE("0x1"),((t,e)=>{this[OE("0x4")](e,OE("0x7"),(()=>{this[OE("0x23")](e)}))})),this.listenTo(i,OE("0x1e"),((t,e)=>{e[OE("0x0")][OE("0x1b")](OE("0x1a"))&&this[OE("0x2")](e[OE("0x0")][OE("0x1f")](OE("0x1a")))})),window[OE("0x3")]("resize",this[OE("0x27")]),this[OE("0x1d")][OE("0x5")]()}[OE("0x28")](){if(!this[OE("0x21")])throw new Uu.CKEditorError(OE("0x26"),this);this[OE("0x14")](null);const t=this[OE("0x17")][OE("0x0")].get(IE);t[OE("0x18")](this[OE("0x1d")]),this.stopListening(t),this[OE("0x15")](this[OE("0x1d")]),this[OE("0x17")]instanceof ee&&this.stopListening(this[OE("0x17")][OE("0x8")]);for(const t of Array.from(this._editorAnnotations))this[OE("0x2")](t);window.removeEventListener("resize",this._refreshPositioningDebounced),this[OE("0x27")].cancel(),this[OE("0x1c")]=null,this[OE("0x21")]=!1,this[OE("0x1d")]=null}destroy(){this.isAttached&&this.detach()}_integrateWithEditorAnnotations(t){const e=t[OE("0x0")][OE("0x1f")](yy);if(!e)return;const n=()=>{const t=e[OE("0x24")]({annotations:this[OE("0x1d")],activeAnnotation:this[OE("0x1c")]});this[OE("0x14")](t[0]||null)};this[OE("0x4")](e,"refresh",n),this.listenTo(e,"blur",((t,{isAnnotationTracked:e})=>{this.activeAnnotation&&e(this.activeAnnotation)&&this[OE("0x14")](null)})),this[OE("0x4")](e,OE("0x10"),(()=>{this[OE("0x27")]()})),this[OE("0x4")](this[OE("0x1d")],"blur",(t=>{e.hasDomSelection()&&(n(),t.stop())}),{priority:OE("0x6")}),this._editorAnnotations[OE("0x1")](e)}[OE("0x2")](t){this[OE("0x15")](t),this[OE("0xb")][OE("0x1e")](t)}}const PE=["ck-annotation-counter__badge","icon","...","add","counterView","setTemplate","extendTemplate","number","ck-annotation-counter","ck-annotation-counter__badge--edit-mode","annotationType","set","isDirty","_badge"];var RE,LE;RE=PE,LE=429,function(t){for(;--t;)RE.push(RE.shift())}(++LE);const jE=function(t,e){return PE[t-=0]};class zE extends U{constructor(t){super(t);const e=this.bindTemplate;this.set(jE("0x3"),!1),this[jE("0x2")](jE("0xc"),0),this.bind(jE("0x4")).to(this,jE("0x3"),this,jE("0xc"),((t,e)=>t?jE("0x7"):e.toString())),this.set(jE("0x1"),""),this[jE("0x6")]=Ky,this[jE("0xb")]({attributes:{class:[jE("0xd")]}}),this[jE("0x9")]=new u,this.counterView[jE("0xa")]({tag:"span",attributes:{class:[jE("0x5"),e.to("annotationType",(t=>"ck-annotation-counter__badge--"+t)),e.if(jE("0x3"),jE("0x0"))]},children:[{text:e.to(jE("0x4"))}]}),this.children[jE("0x8")](this[jE("0x9")])}}var VE=__webpack_require__(659),FE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(VE.Z,FE);VE.Z.locals;const UE=["listenTo","context","set","_setSelectedAnnotations","high","view","refresh","_annotationToNarrowView","refreshPositioning","annotationType","off","requires","southArrowNorthEast","_refreshPositioningDebounced","length","remove","getByView","contains","content","change:height","_refreshPositioning","bodyCollection","create","getSidebarItemView","change:container","_detachListeners","set:container","ready","esc","_editorAnnotations","rearrange","balloonPanelView","low","_showBalloon","first","target","detach","setActiveAnnotation","execute","find","_annotations","isAttached","init","NarrowSidebar","hasDomSelection","editors","_updateBalloonPosition","keyCode","pin","mousedown","_integrateWithEditorAnnotations","_attachListeners","unpin","southArrowNorthWest","delete","addEventListener","_domEmitter","locale","northArrowSouth","clear","activeAnnotation","element","EditorAnnotations","values","preventClosingBalloon","_destroyEditorAnnotationsIntegration","removeEventListener","has","from","stopListening","destroy","add","getOrderedSelectedAnnotations","type","get","includes","_attachToContainer","number","annotations","stop","ck-sidebar--narrow","detachFromDom","focus","narrowsidebar-detach-not-attached","resize","register","_manuallyClosedAnnotationViews","bind","_selectedAnnotations","plugins","focusableElements","blur","keydown","isDirty","attach","isVisible","_hideBalloon"];var HE,GE;HE=UE,GE=355,function(t){for(;--t;)HE.push(HE.shift())}(++GE);const qE=function(t,e){return UE[t-=0]};class WE extends ne{static get[qE("0x2c")](){return[IE,cE]}static get pluginName(){return qE("0x4c")}constructor(t){super(t),this.isAttached=!1,this[qE("0x16")]=new Set,this[qE("0x59")]=Object[qE("0x37")](Uu.DomEmitterMixin),this._annotationToNarrowView=new Map,this[qE("0x23")](qE("0x5d"),null),this[qE("0xe")]=null,this[qE("0x18")]=[],this[qE("0x3e")]=new Uu.Collection,this._refreshPositioningDebounced=At((()=>{this[qE("0x35")]()}),250,{leading:!1})}[qE("0x4b")](){this[qE("0x22")][qE("0x19")][qE("0xa")](cE)[qE("0x15")]("narrowSidebar",this),this[qE("0x36")]=new P(this.context[qE("0x5a")]),this[qE("0x40")]=new bd(this[qE("0x22")][qE("0x5a")]),this[qE("0x36")].attachToDom(),this.bodyCollection[qE("0x7")](this[qE("0x40")])}[qE("0x1e")](t){this[qE("0xe")]=t;const e=this[qE("0x22")][qE("0x19")][qE("0xa")](IE),n=this[qE("0x40")];if(e[qE("0x49")]=t,this[qE("0x4a")])throw new Uu.CKEditorError("narrowsidebar-attach-already-attached",this);this[qE("0x4a")]=!0,this[qE("0x21")](e,qE("0x3b"),(()=>{this.detach(),this.listenTo(e,qE("0x39"),(e=>{e[qE("0x2b")](),this[qE("0x1e")](t)}))})),e[qE("0xc")]({viewClass:qE("0x10"),spaceBetweenItems:5});const i=t=>{const i=new zE(this[qE("0x22")][qE("0x5a")]);e.addAnnotation(t,i),this._annotationToNarrowView.set(t,i),i[qE("0x17")](qE("0x1d"),qE("0x2a"),qE("0xd")).to(t[qE("0x26")],qE("0x1d"),qE("0x9"),qE("0x2f")),i.on(qE("0x47"),(()=>{this[qE("0x16")][qE("0x5c")](),n[qE("0x33")][qE("0x43")]!==t[qE("0x26")]?(this[qE("0x42")](t),t[qE("0x26")][qE("0x5e")][qE("0x12")](),this[qE("0x46")](t)):this.setActiveAnnotation(null)}))};for(const e of t)i(e);this[qE("0x21")](t,qE("0x7"),((t,e)=>{i(e)})),this[qE("0x21")](t,qE("0x30"),((n,i,o)=>{this[qE("0x28")][qE("0xa")](i)[qE("0x6")](),this._annotationToNarrowView.delete(i),e[qE("0x3f")]({removedAnnotation:i,previousAnnotation:t[qE("0xa")](o-1),nextAnnotation:t[qE("0xa")](o+1)}),i===this[qE("0x5d")]&&this[qE("0x46")](null)}),{priority:qE("0x41")}),this.listenTo(t,qE("0x12"),((t,e)=>{this[qE("0x46")](e)})),this[qE("0x21")](t,"blur",(()=>{this[qE("0x46")](null)})),this[qE("0x59")].listenTo(document,qE("0x1c"),((t,e)=>{e[qE("0x50")]===Uu.keyCodes[qE("0x3d")]&&n[qE("0x1f")]&&(this._manuallyClosedAnnotationViews.add(n[qE("0x33")][qE("0x43")]),this[qE("0x20")](),e.stopPropagation(),e.preventDefault())})),this[qE("0x59")][qE("0x21")](document,qE("0x52"),((t,i)=>{const o=i[qE("0x44")];n[qE("0x1f")]&&n[qE("0x5e")].contains(o)||e[qE("0x26")][qE("0x5e")][qE("0x32")](o)||t.preventClosingBalloon||this[qE("0x5d")]&&this[qE("0x5d")][qE("0x1a")][qE("0x48")]((t=>t[qE("0x32")](o)))||(this[qE("0x16")][qE("0x5c")](),this[qE("0x20")](),this[qE("0x46")](null))}));const o=this[qE("0x22")]instanceof ee?this[qE("0x22")].editors:new Uu.Collection([this[qE("0x22")]]);for(const t of o)this[qE("0x53")](t);this[qE("0x21")](o,qE("0x7"),((t,e)=>{this[qE("0x21")](e,qE("0x3c"),(()=>{this[qE("0x53")](e)}))})),this[qE("0x21")](o,qE("0x30"),((t,e)=>{e[qE("0x19")][qE("0x3")](qE("0x5f"))&&this._destroyEditorAnnotationsIntegration(e[qE("0x19")][qE("0xa")](qE("0x5f")))})),window[qE("0x58")](qE("0x14"),this._refreshPositioningDebounced),this[qE("0x35")]()}[qE("0x46")](t){if(t===this.activeAnnotation)return;const e=this[qE("0x22")][qE("0x19")][qE("0xa")](IE);e[qE("0x27")]({blurredAnnotation:this.activeAnnotation,activatedAnnotation:t,disableAnimationOnActivatedAnnotation:!0}),t?e[qE("0x38")](t)?this._showBalloon(t):this._hideBalloon():this[qE("0x20")](),this[qE("0x5d")]=t}[qE("0x45")](){if(!this.isAttached)throw new Uu.CKEditorError(qE("0x13"),this);this[qE("0x46")](null);const t=this.context[qE("0x19")][qE("0xa")](IE);this[qE("0x20")](),Array[qE("0x4")](this[qE("0x28")][qE("0x60")](),(t=>t[qE("0x6")]())),this._annotationToNarrowView[qE("0x5c")](),t._detachFromContainer(this.annotations),this[qE("0x5")](),this[qE("0x59")][qE("0x5")](),this[qE("0x22")]instanceof ee&&this[qE("0x5")](this[qE("0x22")][qE("0x4e")]);for(const t of Array[qE("0x4")](this[qE("0x3e")]))this[qE("0x1")](t);window[qE("0x2")](qE("0x14"),this[qE("0x2e")]),this[qE("0x2e")].cancel(),this[qE("0x18")]=[],this[qE("0x4a")]=!1,this[qE("0xe")]=null}[qE("0x6")](){this[qE("0x4a")]&&this[qE("0x45")](),this[qE("0x36")][qE("0x11")]()}[qE("0x53")](t){const e=t[qE("0x19")][qE("0xa")](yy),n=this[qE("0x22")][qE("0x19")].get(IE),i=this[qE("0xe")],o=this[qE("0x40")],r=()=>{const t=e[qE("0x8")]({annotations:this.annotations,activeAnnotation:this[qE("0x5d")]});this._setSelectedAnnotations(t),this.setActiveAnnotation(t[0]||null)};this[qE("0x21")](e,qE("0x27"),r),this[qE("0x21")](e,qE("0x1b"),((t,{isAnnotationTracked:e})=>{this[qE("0x5d")]&&e(this.activeAnnotation)&&(this[qE("0x24")]([]),this[qE("0x46")](null))})),this[qE("0x21")](e,"uiUpdate",(()=>{this._refreshPositioningDebounced()})),this[qE("0x21")](i,qE("0x1b"),(t=>{e[qE("0x4d")]()&&t[qE("0xf")]()}),{priority:qE("0x25")}),this.listenTo(this[qE("0x59")],"mousedown",((t,i)=>{const s=i[qE("0x44")];o.isVisible&&o[qE("0x5e")][qE("0x32")](s)||n[qE("0x26")].element[qE("0x32")](s)||this.activeAnnotation&&e[qE("0x4d")]()&&(r(),t[qE("0x0")]=!0)}),{priority:qE("0x25")}),this[qE("0x3e")].add(e)}[qE("0x1")](t){t&&(this[qE("0x5")](t),this[qE("0x3e")][qE("0x30")](t))}[qE("0x24")](t){for(const e of this[qE("0x18")])t[qE("0xb")](e)||this[qE("0x16")][qE("0x57")](e[qE("0x26")]);this[qE("0x18")]=t}[qE("0x35")](){const t=this.balloonPanelView;this[qE("0xe")][qE("0x29")](),t[qE("0x1f")]&&this[qE("0x4f")]()}[qE("0x42")](t){if(this[qE("0x16")][qE("0x3")](t[qE("0x26")]))return;const e=this[qE("0x40")].content[qE("0x43")];e!==t[qE("0x26")]?(e&&this[qE("0x3a")](e),this._attachListeners(t[qE("0x26")]),this[qE("0x40")][qE("0x33")].clear(),this[qE("0x40")][qE("0x33")][qE("0x7")](t.view),this[qE("0x4f")]()):this[qE("0x4f")]()}[qE("0x4f")](){const t=this.balloonPanelView[qE("0x33")][qE("0x43")],e=t&&this[qE("0xe")][qE("0x31")](t);if(!e||!this._annotationToNarrowView[qE("0x3")](e))return;const n=this[qE("0x28")][qE("0xa")](e)[qE("0x5e")],i=function(){const t=bd.defaultPositions;return[t[qE("0x2d")],t.northArrowSouthEast,t.southArrowNorth,t[qE("0x5b")],t[qE("0x56")],t.northArrowSouthWest]}();this.balloonPanelView[qE("0x51")]({target:n,positions:i})}[qE("0x20")](){const t=this[qE("0x40")],e=t[qE("0x33")][qE("0x43")];e&&(this[qE("0x3a")](e),t[qE("0x55")](),t.content[qE("0x5c")]())}[qE("0x54")](t){this[qE("0x21")](t,qE("0x34"),(()=>this[qE("0x4f")]())),this[qE("0x21")](t,"Esc",((e,n)=>{this[qE("0x16")][qE("0x7")](t),this[qE("0x20")](),n()}))}[qE("0x3a")](t){this.stopListening(t)}}var KE=__webpack_require__(6610),ZE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(KE.Z,ZE);KE.Z.locals;const YE=["keystrokes","editing","domConverter","refresh","annotations","activeAnnotation","clear","_setSelectedAnnotations","setActiveAnnotation","set","find","switchTo","selection","pluginName","length","editableElement","getFirstRange","includes","_getBalloonTargetForAnnotation","left","_closeAnnotation","_selectedAnnotations","listenTo","getByView","fromRect","isFocused","change:height","every","targetRect","has","focusTracker","inlineannotations-attach-already-attached","requires","_manuallyClosed","collapse","remove","target","attach","document","init","right","focus","blur","_forceRefresh","updatePosition","plugins","register","add","_addedAnnotations","InlineAnnotations","visibleView","push","update","Esc","getOrderedSelectedAnnotations","delete","get","inline","destroy","view","top","detach","getBoundingClientRect","width","inlineannotations-not-allowed-with-context","inlineannotations-detach-not-attached","afterInit","change:visibleView","_addAnnotationToBalloon","bottom","context","isAttached","hasActive","editor","hasView","isActive","stopListening","_removeAnnotationFromBalloon","_balloon"];var JE,$E;JE=YE,$E=423,function(t){for(;--t;)JE.push(JE.shift())}(++$E);const QE=function(t,e){return YE[t-=0]};class XE extends Yt{static get[QE("0x4")](){return[yy,ru,cE]}static get[QE("0x40")](){return QE("0x15")}constructor(t){super(t),t[QE("0x34")][QE("0x1f")].addObserver(Ha),this[QE("0x2b")]=!1,this[QE("0x3c")](QE("0x38"),null),this[QE("0x37")]=null,this._manuallyClosed=new Set,this[QE("0x32")]=t[QE("0x11")][QE("0x1c")](ru),this._addedAnnotations=new Set,this._selectedAnnotations=[],this._forceRefresh=!1}[QE("0xb")](){const t=this[QE("0x2d")][QE("0x11")][QE("0x1c")](cE);t[QE("0x2a")]===this[QE("0x2d")]&&(t[QE("0x12")]("inline",this),this.editor[QE("0x33")].set(QE("0x19"),((t,e)=>{const n=this[QE("0x32")];if(this[QE("0x2b")]&&n[QE("0x16")]){const t=this[QE("0x37")][QE("0x4a")](n[QE("0x16")]);t&&this[QE("0x47")](t),e()}})))}[QE("0x26")](){const t=this.editor[QE("0x11")][QE("0x1c")](cE);t.context===this[QE("0x2d")]&&(t[QE("0x2c")]()||t[QE("0x3e")](QE("0x1d")))}[QE("0x3b")](t){t!==this.activeAnnotation&&(this[QE("0x38")]&&(this.activeAnnotation[QE("0x2f")]=!1),t&&this[QE("0x2d")].ui[QE("0x2")][QE("0x4c")]&&(this[QE("0x37")][QE("0x1")](t)&&this[QE("0x28")](t,!0),t[QE("0x2f")]=!0),t||this[QE("0x3a")]([]),this.activeAnnotation=t)}[QE("0x9")](t){this[QE("0x37")]=t;const e=this[QE("0x2d")][QE("0x11")].get(cE),n=this[QE("0x32")];if(this[QE("0x2b")])throw new Uu.CKEditorError(QE("0x3"),this);if(e[QE("0x2a")]!==this.editor)throw new Uu.CKEditorError(QE("0x24"),this);const i=this[QE("0x2d")][QE("0x11")].get(yy);this.listenTo(i,QE("0x36"),(()=>{const t=i[QE("0x1a")]({annotations:this.annotations,activeAnnotation:this[QE("0x38")]});var e,n;!this._forceRefresh&&(e=t,n=this._selectedAnnotations,e[QE("0x41")]===n[QE("0x41")]&&e[QE("0x4e")]((t=>n[QE("0x44")](t))))||(this[QE("0xf")]=!1,this[QE("0x3a")](t),this[QE("0x3b")](t[0]||null))})),this.listenTo(i,QE("0xe"),((t,{isAnnotationTracked:e})=>{this[QE("0x38")]&&e(this[QE("0x38")])&&(this[QE("0x3a")]([]),this[QE("0x3b")](null))})),this[QE("0x49")](this[QE("0x2d")].ui.focusTracker,"change:isFocused",((t,e,n)=>{n||this[QE("0x3b")](null)})),this.listenTo(t,QE("0x7"),((t,e)=>{this[QE("0x31")](e),e===this[QE("0x38")]&&this.setActiveAnnotation(null)})),this[QE("0x49")](n,QE("0x27"),((e,i,o,r)=>{r&&this[QE("0x30")](r);const s=t[QE("0x4a")](o);o&&s&&(this.listenTo(o,QE("0x4d"),(()=>{n[QE("0x10")]()})),this.listenTo(o,QE("0x19"),(()=>{this[QE("0x47")](s),this[QE("0x2d")][QE("0x34")][QE("0x1f")].focus()})),this[QE("0x38")]!==s&&this.setActiveAnnotation(s))})),this.listenTo(this[QE("0x2d")].ui,QE("0x18"),(()=>{n[QE("0x16")]&&t.getByView(n.visibleView)&&n[QE("0x10")]()})),this[QE("0x49")](this[QE("0x2d")][QE("0x34")].view.document,"mousedown",(()=>{this._forceRefresh=!0,this._manuallyClosed[QE("0x39")]()})),this[QE("0x2d")][QE("0x34")][QE("0x1f")][QE("0xa")][QE("0x3f")][QE("0x42")]&&this.editor[QE("0x34")].view[QE("0xd")](),this[QE("0x2b")]=!0}[QE("0x21")](){if(!this[QE("0x2b")])throw new Uu.CKEditorError(QE("0x25"),this);this.setActiveAnnotation(null);for(const t of this._addedAnnotations)this[QE("0x31")](t);this[QE("0x30")](),this.isAttached=!1,this[QE("0x37")]=null}[QE("0x1e")](){this.isAttached&&this[QE("0x21")]()}[QE("0x3a")](t){for(const e of this[QE("0x48")])t.includes(e)||this[QE("0x5")][QE("0x1b")](e);for(const e of this[QE("0x37")])t[QE("0x44")](e)||this[QE("0x31")](e);if(this.editor.ui.focusTracker[QE("0x4c")])for(const e of t)this[QE("0x28")](e);this._selectedAnnotations=t}[QE("0x28")](t,e=!1){this._manuallyClosed[QE("0x1")](t)||(this[QE("0x14")].has(t)||this[QE("0x32")].hasView(t[QE("0x1f")])||(this._addedAnnotations[QE("0x13")](t),this[QE("0x32")].add({stackId:t[QE("0x1f")].id,view:t[QE("0x1f")],position:{target:()=>this[QE("0x45")](t)}})),e&&this[QE("0x32")].showStack(t.view.id))}_getBalloonTargetForAnnotation(t){const e=t[QE("0x8")],n=this[QE("0x2d")].editing[QE("0x1f")],i=n[QE("0xa")].selection[QE("0x43")](),o=n[QE("0x35")].viewRangeToDom(i);if(o[QE("0x6")](!0),e){if(e instanceof Uu.Rect)return e;let t=[];for(const n of e)t[QE("0x17")](...(r=n.getClientRects(),Array.from(r).map(DOMRect[QE("0x4b")])));t=function(t){const e=[];let n=t[0];for(let r=1;r<t.length;r++)i=n,o=t[r],i.top===o[QE("0x20")]&&i[QE("0x29")]===o[QE("0x29")]&&i.right===o[QE("0x46")]?n[QE("0x23")]+=t[r][QE("0x23")]:(e[QE("0x17")](n),n=t[r]);var i,o;return e[QE("0x17")](n),e}(t);const n=o[QE("0x22")]();return t[QE("0x3d")]((t=>t[QE("0x20")]<=n[QE("0x20")]&&t.bottom>=n[QE("0x29")]&&t.left<=n.left&&t[QE("0xc")]>=n[QE("0xc")]))||t[0]}var r;return t[QE("0x0")]||o}[QE("0x31")](t){this[QE("0x14")].has(t)&&this[QE("0x32")][QE("0x2e")](t[QE("0x1f")])&&(this[QE("0x14")][QE("0x1b")](t),this[QE("0x32")].remove(t[QE("0x1f")]))}[QE("0x47")](t){this[QE("0x5")][QE("0x13")](t),this[QE("0x31")](t)}}var tI=__webpack_require__(7651),eI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(tI.Z,eI);tI.Z.locals;const nI=["remove","setTemplate","high","listenTo","render","set","ck-comments-archive__header ","add","bindTemplate","element","isEmpty","isActive","COMMENTS_ARCHIVE","arrowleft","auto","ck-comments-archive","_focusables","tab","arrowdown","EMPTY_COMMENTS_ARCHIVE","_focusTracker","length","ck-comments-archive__content","div","destroy","_focusCycler","stopPropagation","focus","ck-hidden","ck-comments-archive__info","_keystrokes"];var iI,oI;iI=nI,oI=365,function(t){for(;--t;)iI.push(iI.shift())}(++oI);const rI=function(t,e){return nI[t-=0]};class sI extends u{constructor(t,e){super(t),this[rI("0xc")](rI("0x11"),!e[rI("0x1c")]),this[rI("0x1b")]=new Uu.FocusTracker,this._keystrokes=new Uu.KeystrokeHandler,this[rI("0x17")]=e,this[rI("0x1")]=new Gt({focusables:this[rI("0x17")],focusTracker:this[rI("0x1b")],keystrokeHandler:this[rI("0x6")],actions:{focusPrevious:"shift + tab",focusNext:rI("0x18")}}),this.listenTo(e,rI("0xe"),(()=>{this[rI("0x11")]=!1})),this[rI("0xa")](e,rI("0x7"),((t,n)=>{n[rI("0x12")]&&this[rI("0x3")](),e[rI("0x1c")]||(this.isEmpty=!0)}));const n=this[rI("0xf")];this[rI("0x8")]({tag:rI("0x1e"),attributes:{dir:rI("0x15"),class:["ck",rI("0x16")],tabindex:-1},children:[{tag:"p",attributes:{class:[rI("0xd")]},children:[{text:PA(t,rI("0x13"))}]},{tag:rI("0x1e"),attributes:{class:[rI("0x1d")]},children:[{tag:rI("0x1e"),children:e},{tag:"p",attributes:{class:[rI("0x5"),n.if(rI("0x11"),rI("0x4"),(t=>!t))]},children:[{text:PA(t,rI("0x1a"))}]}]}]})}[rI("0xb")](){super[rI("0xb")](),this[rI("0x6")][rI("0xa")](this[rI("0x10")]);const t=t=>t[rI("0x2")]();this[rI("0x6")][rI("0xc")]("arrowright",t),this[rI("0x6")][rI("0xc")](rI("0x14"),t),this[rI("0x6")][rI("0xc")]("arrowup",t),this[rI("0x6")][rI("0xc")](rI("0x19"),t),this.listenTo(this[rI("0x10")],"selectstart",((t,e)=>{e[rI("0x2")]()}),{priority:rI("0x9")})}[rI("0x0")](){super[rI("0x0")](),this[rI("0x1b")].destroy(),this[rI("0x6")].destroy()}[rI("0x3")](){this[rI("0x10")].focus()}}const aI=["archivedThreads","pluginName","change:archivedAt","removeCommentThread","plugins","remove","highest","focus","has","context","add","archivedAt","CommentsArchive","length","get","listenTo","requires","getCommentThread","findIndex","stopListening","isActive","_calculatePosition"];var cI,lI;cI=aI,lI=343,function(t){for(;--t;)cI.push(cI.shift())}(++lI);const dI=function(t,e){return aI[t-=0]};class uI extends ne{static get[dI("0xa")](){return dI("0x15")}static get[dI("0x3")](){return[hy,ry]}constructor(t){super(t),this[dI("0x9")]=new Uu.Collection}init(){const t=this[dI("0x12")],e=t[dI("0xd")][dI("0x1")](hy),n=t.plugins.get(ry);this[dI("0x2")](e,"addCommentThread",((t,{threadId:n})=>{const i=e[dI("0x4")](n);i[dI("0x14")]&&this[dI("0x9")][dI("0x13")](i,this[dI("0x8")](i[dI("0x14")])),this.listenTo(i,dI("0xb"),((t,e,n)=>{n?this[dI("0x9")][dI("0x11")](i)||this[dI("0x9")][dI("0x13")](i,this[dI("0x8")](i[dI("0x14")])):this[dI("0x9")][dI("0x11")](i)&&this[dI("0x9")].remove(i)}))})),this[dI("0x2")](e,dI("0xc"),((t,{threadId:n})=>{const i=e[dI("0x4")](n);this[dI("0x6")](i),this[dI("0x9")][dI("0x11")](i)&&this[dI("0x9")][dI("0xe")](i)}),{priority:dI("0xf")}),this.listenTo(n.collection,dI("0x10"),((t,e)=>{e[dI("0x7")]=!0,n.activate(e)}))}[dI("0x8")](t){const e=[...this[dI("0x9")]][dI("0x5")]((e=>e[dI("0x14")]<t));return e>-1?e:this.archivedThreads[dI("0x0")]}}const hI=["editor","locale","extendTemplate","commentsArchive","getByInnerView","plugins","componentFactory","ck-body","_createArchiveUIDropdown","requires","get","add","_handleAnnotationFocusableElements","classList","findIndex","stopListening","_calculatePosition","archivedAt","init","buttonView","contains","COMMENTS_ARCHIVE","_visibleAnnotations","find","_pendingThreads","panelView","mainView","config","listenTo","children","focusableElements","Annotations","annotationViews","archivedThreads","focusTracker","isVisible","commentsArchiveView","innerView","position","push","change:isOpen","pluginName","collaboration.channelId","channelId","_threadToController","CommentsRepository","remove","view","length"];var mI,gI;mI=hI,gI=162,function(t){for(;--t;)mI.push(mI.shift())}(++gI);const pI=function(t,e){return hI[t-=0]};class fI extends Yt{static get[pI("0x1a")](){return"CommentsArchiveUI"}static get[pI("0x2b")](){return[uI]}constructor(t){super(t),this[pI("0x11")]=new s,this[pI("0x9")]=[]}[pI("0x3")](){this[pI("0x22")].ui[pI("0x28")].add(pI("0x25"),(()=>this[pI("0x2a")]()));const t=this.editor[pI("0x27")][pI("0x2c")](uI),e=this[pI("0x22")][pI("0x27")][pI("0x2c")](pI("0x10")),n=this[pI("0x22")][pI("0x27")][pI("0x2c")](pI("0x1e"));this[pI("0xd")](t[pI("0x12")],pI("0x2d"),((t,i)=>{const o=this[pI("0x22")].config[pI("0x2c")](pI("0x1b"));if(!o||i[pI("0x1c")]===o){const t=this[pI("0x1")](i[pI("0x2")]),o=n[pI("0x1d")][pI("0x2c")](i);if(!o)return void this[pI("0x9")][pI("0x18")]({thread:i,position:t});const r=e[pI("0x26")](o[pI("0x20")]);r[pI("0x14")]&&e[pI("0x7")][pI("0x1f")](r),this.annotationViews.add(r[pI("0x20")],t)}})),this[pI("0xd")](e.collection,pI("0x2d"),((t,e)=>{const i=this[pI("0x9")][pI("0x8")]((({thread:t})=>{const i=n[pI("0x1d")][pI("0x2c")](t);return i&&e[pI("0x16")]===i.view}));i&&(this[pI("0x11")].add(e[pI("0x20")],i[pI("0x17")]),this._pendingThreads.splice(this._pendingThreads.indexOf(i),1))})),this.listenTo(t.archivedThreads,pI("0x1f"),((t,i)=>{const o=this[pI("0x22")].config[pI("0x2c")](pI("0x1b"));if(!o||i[pI("0x1c")]===o){const t=n[pI("0x1d")][pI("0x2c")](i),o=e[pI("0x26")](t[pI("0x20")]);this[pI("0x11")][pI("0x1f")](o[pI("0x20")]),this[pI("0x0")](o.focusableElements)}}))}_handleAnnotationFocusableElements(t,e){for(const n of e.focusableElements)n[pI("0x2f")][pI("0x5")](pI("0x29"))&&t[pI("0x13")].add(n);this.listenTo(e[pI("0xf")],pI("0x2d"),((e,n)=>{n[pI("0x2f")].contains(pI("0x29"))&&t[pI("0x13")][pI("0x2d")](n)})),this[pI("0xd")](e[pI("0xf")],pI("0x1f"),((e,n)=>{n[pI("0x2f")].contains(pI("0x29"))&&t[pI("0x13")][pI("0x1f")](n)}))}[pI("0x1")](t){const e=this[pI("0x22")][pI("0xc")][pI("0x2c")](pI("0x1b")),n=[...this[pI("0x22")][pI("0x27")].get(uI).archivedThreads].filter((t=>t[pI("0x1c")]===e))[pI("0x30")]((e=>e[pI("0x2")]<t));return n>-1?n-1:this[pI("0x11")][pI("0x21")]}[pI("0x2a")](){const t=this.editor,e=this.editor.plugins[pI("0x2c")](pI("0x10")),n=dl(t[pI("0x23")]);n[pI("0x4")].set({icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M14 3.5A3.5 3.5 0 0 1 17.5 7v6l-.005.192a3.501 3.501 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.37-.193-.38-.212a13.452 13.452 0 0 1-3.272-2.63l-.062-.07-4.729-.046a3.5 3.5 0 0 1-3.5-3.5v-6a3.5 3.5 0 0 1 3.5-3.5L14 3.5ZM3.5 4.954a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2L8.924 15a11.917 11.917 0 0 0 3.71 3.081l.372.194v-3.268L12.962 15H14a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2L3.5 4.954Z"/><path d="M16.5.5h-10a3.5 3.5 0 0 0-3.162 2h1.84A2 2 0 0 1 6.5 2h10a2 2 0 0 1 2 2v8.873a3.502 3.502 0 0 0 1.495-2.681L20 10V4A3.5 3.5 0 0 0 16.5.5Z"/><path clip-rule="evenodd" d="M12.013 7.453a.75.75 0 0 1 .034 1.06l-3.75 4a.75.75 0 0 1-1.045.048l-2.25-2a.75.75 0 0 1 .996-1.122l1.704 1.515 3.25-3.467a.75.75 0 0 1 1.061-.034Z"/></svg>\n',label:PA(t[pI("0x23")],pI("0x6")),tooltip:!0}),n.panelView[pI("0x24")]({attributes:{class:"ck-comments-archive-dropdown"}}),n.on(pI("0x19"),((e,i,o)=>{this[pI("0x15")]||(this[pI("0x15")]=new sI(t.locale,this[pI("0x11")])),o?n[pI("0xa")][pI("0xe")][pI("0x2d")](this[pI("0x15")]):n[pI("0xa")][pI("0xe")].remove(this[pI("0x15")])}));for(const t of this[pI("0x11")]){const i=e.getByInnerView(t[pI("0xb")]);this._handleAnnotationFocusableElements(n,i)}return n.listenTo(this[pI("0x11")],pI("0x2d"),((t,i)=>{const o=e[pI("0x26")](i.mainView);this[pI("0x2e")](n,o)})),n.listenTo(this.annotationViews,"remove",((t,i)=>{const o=e[pI("0x26")](i.mainView);for(const t of o.focusableElements)t.classList[pI("0x5")](pI("0x29"))&&n[pI("0x13")][pI("0x1f")](t)})),n}}var xI,bI,kI=["pluginName","Comments"];xI=kI,bI=481,function(t){for(;--t;)xI.push(xI.shift())}(++bI);var wI=function(t,e){return kI[t-=0]};class AI extends Yt{static get requires(){return[hy,Uy,Qy,uI,fI,iE,NE,WE,XE]}static get[wI("0x1")](){return wI("0x0")}}class _I extends Yt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",kh]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,i=e.uploadUrl;if(!n)return;const o=t.plugins.get("CloudServicesCore");this._uploadGateway=o.createUploadGateway(n,i),t.plugins.get(kh).createUploadAdapter=t=>new vI(this._uploadGateway,t)}}class vI{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then((t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",((t,e)=>{this.loader.uploadTotal=e.total,this.loader.uploaded=e.uploaded})),this.fileUploader.send())))}abort(){this.fileUploader.abort()}}class CI extends Yt{static get pluginName(){return"EasyImage"}static get requires(){return[_I,"ImageUpload"]}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||(0,Uu.logWarning)("easy-image-image-feature-missing",t)}}class yI extends Yt{static get requires(){return[ev,lx,av,mx,Kp,xv]}static get pluginName(){return"Essentials"}}const EI=["trim","then","from","fetch","EDITOR_STYLES",":root","push","all","length","join","indexOf","text","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","hasAttribute","styleSheets","ownerNode","cssText"];var II,SI;II=EI,SI=394,function(t){for(;--t;)II.push(II.shift())}(++SI);const TI=function(t,e){return EI[t-=0]};function DI(){const t=[],e=[];for(const n of Array[TI("0x10")](document[TI("0xb")]))if(n[TI("0xc")][TI("0xa")]("data-cke"))for(const i of Array[TI("0x10")](n.cssRules))-1!==i[TI("0xd")][TI("0x7")](".ck-content")?t[TI("0x3")](i[TI("0xd")]):-1!==i[TI("0xd")][TI("0x7")](TI("0x2"))&&e[TI("0x3")](i[TI("0xd")]);return t[TI("0x5")]||console.warn(TI("0x9")),[...e,...t][TI("0x6")](" ")[TI("0xe")]()}class MI extends $t{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,i=t.converterUrl||"https://pdf-converter.cke-cs.com/v1/convert/",o=t.dataCallback||(t=>t.data.get()),r=e.plugins.get("ExportPdf"),s=t.token||r._token;return this.isBusy=!0,this.refresh(),function(t){if(!t)return new Promise((t=>t("")));const e=[];for(const n of t)TI("0x1")!==n?e[TI("0x3")](window[TI("0x0")](n)[TI("0xf")]((t=>t[TI("0x8")]()))):e[TI("0x3")](DI());return Promise[TI("0x4")](e)[TI("0xf")]((t=>t[TI("0x6")](" ").trim()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const r={html:'<html>\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t<title>CKEditor 5 PDF document</title>\n\t\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t</head>\n\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">\n\t\t\t\t\t\t\t\t'+await o(e)+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</body>\n\t\t\t\t\t</html>",css:n,options:t.converterOptions},a={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/pdf",...s?{Authorization:s.value}:null,"x-cs-app-id":t.appID||"cke5"},body:JSON.stringify(r)};return window.fetch(i,a).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((e=>{const n="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(e,n||"document.pdf")}))})).catch((t=>{throw e.plugins.get("Notification").showWarning(n("An error occurred while generating the PDF.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class BI extends Yt{static get pluginName(){return"ExportPdf"}static get requires(){return["CloudServices",$d]}init(){const t=this.editor,e=t.t,n=t.config.get("exportPdf")||{};t.commands.add("exportPdf",new MI(t)),t.ui.componentFactory.add("exportPdf",(i=>{const o=t.commands.get("exportPdf"),r=new U(i),s=new Lu;return r.set({label:e("Export to PDF"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v6.5h1.5v-5h8v5h5V11H19V4.5ZM14 2l3.3 3H14V2Z"/><path d="m12.452 18.5 1.25 1.5H3v-3h1.5v1.5h7.952Z"/><path d="M19.826 16.843a.75.75 0 1 0-1.152-.96L17.5 17.29V13H16v4.29l-1.174-1.408a.75.75 0 1 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="M1.63 14.24V12.3h.88c.66 0 1.14-.15 1.46-.45.32-.3.48-.71.48-1.24 0-.52-.15-.91-.44-1.2C3.7 9.15 3.28 9 2.69 9H0v5.24h1.63Zm.4-3h-.4v-1.17h.46c.3 0 .5.05.62.17.1.11.16.25.16.42 0 .16-.06.3-.19.41-.13.11-.34.16-.66.16l.01.01Zm5.7 3c.28 0 .6-.05.96-.14.26-.07.5-.21.73-.42.22-.2.4-.47.53-.77.12-.31.19-.75.19-1.3 0-.37-.04-.7-.13-1.02a2.3 2.3 0 0 0-.42-.84c-.19-.24-.43-.43-.72-.56C8.57 9.06 8.2 9 7.72 9h-2.4v5.24H7.73Zm-.4-1.19h-.4v-2.86h.4c.43 0 .73.1.91.3.18.2.27.59.27 1.14 0 .42-.04.73-.12.91a.76.76 0 0 1-.34.4c-.14.07-.38.11-.72.11Zm5.3 1.2V12.1h2.02v-1.06h-2.03v-.91H15V9h-4v5.24h1.62l.01.01Z"/></svg>\n',tooltip:!0}),r.children.add(s),r.bind("isOn","isEnabled").to(o,"isBusy","isEnabled"),s.bind("isVisible").to(o,"isBusy"),r.iconView.bind("isVisible").to(o,"isBusy",(t=>!t)),this.listenTo(r,"execute",(()=>{t.execute("exportPdf",n),t.editing.view.focus()})),r}));const i=t.plugins.get("CloudServices");!1===n.tokenUrl?this._token=null:n.tokenUrl?i.registerTokenUrl(n.tokenUrl).then((t=>{this._token=t})):this._token=i.token}}const OI=["timeZone","data-cke","CommentsRepository","map","get","content","then","keys","timezone","author","name","from","ownerNode","warn","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","plugins","EDITOR_STYLES","cssText","resolvedOptions","TrackChanges","suggestions","comments","length","authorId","indexOf","all","push","getSuggestions","trim","Users","createdAt","has",".ck-content","getCommentThreads"];var NI,PI;NI=OI,PI=108,function(t){for(;--t;)NI.push(NI.shift())}(++PI);const RI=function(t,e){return OI[t-=0]};function LI(){const t=[],e=[];for(const n of Array[RI("0x5")](document.styleSheets))if(n[RI("0x6")].hasAttribute(RI("0x1d")))for(const i of Array[RI("0x5")](n.cssRules))-1!==i[RI("0xb")][RI("0x12")](RI("0x1a"))?t[RI("0x14")](i[RI("0xb")]):-1!==i[RI("0xb")][RI("0x12")](":root")&&e[RI("0x14")](i[RI("0xb")]);return t[RI("0x10")]||console[RI("0x7")](RI("0x8")),[...e,...t].join(" ")[RI("0x16")]()}function jI(t){const e=t[RI("0x9")][RI("0x19")](RI("0x17")),n=t[RI("0x9")][RI("0x19")](RI("0x1e")),i=t[RI("0x9")].has(RI("0xd")),o={};if(e&&n){const e=function(t){const e={};if(!t[RI("0x10")])return e;for(const n of t)n[RI("0xf")][RI("0x1f")]((t=>{void 0===e[n.id]&&(e[n.id]=[]),e[n.id][RI("0x14")]({author:t[RI("0x3")][RI("0x4")],content:t[RI("0x21")],created:t[RI("0x18")],is_resolved:n.isResolved})}));return e}(t[RI("0x9")][RI("0x20")](RI("0x1e"))[RI("0x1b")]({skipNotAttached:!0,skipEmpty:!0}));Object[RI("0x1")](e).length&&(o[RI("0xf")]=e)}if(e&&i){const e=t.plugins.get(RI("0xd")),n=t[RI("0x9")][RI("0x20")](RI("0x17")),i=function(t,e){const n={};if(!t[RI("0x10")]||!e[RI("0x10")])return n;for(const i of t)n[i.id]={author:e[RI("0x20")](i[RI("0x11")]).name,created:i.createdAt};return n}(e[RI("0x15")]({toJSON:!0}),n.users);Object[RI("0x1")](i)[RI("0x10")]&&(o[RI("0xe")]=i)}return(o.suggestions||o[RI("0xf")])&&(o[RI("0x2")]=(new Intl.DateTimeFormat)[RI("0xc")]()[RI("0x1c")]),o}class zI extends $t{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,i=t.converterUrl||"https://docx-converter.cke-cs.com/v1/convert",o=t.converterOptions||{},r=e.plugins.get("ExportWord"),s=t.token||r._token,a=!1!==o.auto_pagination,c=t.dataCallback||(t=>t.data.get({pagination:a}));return this.isBusy=!0,this.refresh(),function(t){if(!t)return new Promise((t=>t("")));const e=[];for(const n of t)RI("0xa")!==n?e[RI("0x14")](window.fetch(n)[RI("0x0")]((t=>t.text()))):e.push(LI());return Promise[RI("0x13")](e).then((t=>t.join(" ").trim()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const r=await c(e),a=this._replaceSuggestionTypes(r),l={html:'<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">'+a+"</div>",css:n,options:{...o,...jI(e)}},d={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/docx",...s?{Authorization:s.value}:null},body:JSON.stringify(l)};return window.fetch(i,d).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((e=>{const n="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(e,n||"document.docx")}))})).catch((t=>{throw e.plugins.get("Notification").showWarning(n("An error occurred while generating the Word file.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_replaceSuggestionTypes(t){if(!t)return t;const e=(t,e,n)=>"attribute"===n?e+"formatInline:":t;return t.replace(/<suggestion-(start|end) name="(.*?):/g,((t,n,i)=>e(t,"<suggestion-"+n+' name="',i))).replace(/data-suggestion-(start|end)-(before|after)="(.*?):/g,((t,n,i,o)=>e(t,"data-suggestion-"+n+"-"+i+'="',o)))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class VI extends Yt{static get pluginName(){return"ExportWord"}static get requires(){return["CloudServices",$d]}init(){const t=this.editor,e=t.t,n=t.config.get("exportWord")||{};t.commands.add("exportWord",new zI(t)),t.ui.componentFactory.add("exportWord",(i=>{const o=t.commands.get("exportWord"),r=new U(i),s=new Lu;return r.set({label:e("Export to Word"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17.826 16.843a.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.815Z"/><path d="m14 0 5 4.5v9.741a2.737 2.737 0 0 0-1.5-.617V6.5h-5v-5h-8v3H3V0h11Zm0 2v3h3.3L14 2Z"/><path d="M3 17.5h6.746c.1.22.23.429.391.623l.731.877H3v-1.5Z"/><path d="M8.5 6a1.5 1.5 0 0 1 1.493 1.356L10 7.5v7a1.5 1.5 0 0 1-1.356 1.493L8.5 16h-7a1.5 1.5 0 0 1-1.493-1.356L0 14.5v-7a1.5 1.5 0 0 1 1.356-1.493L1.5 6h7ZM7.483 8.795l-.042.088-.986 2.534-.947-2.528-.043-.092a.601.601 0 0 0-1.042.008l-.042.093-.883 2.465-.937-2.475-.042-.089a.6.6 0 0 0-1.107.42l.027.093 1.514 4 .044.092a.6.6 0 0 0 1.041-.01l.041-.092.88-2.458.925 2.467.046.096a.6.6 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43v.001Z"/></svg>\n',tooltip:!0}),r.children.add(s),r.bind("isOn","isEnabled").to(o,"isBusy","isEnabled"),s.bind("isVisible").to(o,"isBusy"),r.iconView.bind("isVisible").to(o,"isBusy",(t=>!t)),this.listenTo(r,"execute",(()=>{t.execute("exportWord",n),t.editing.view.focus()})),r}));const i=t.plugins.get("CloudServices");!1===n.tokenUrl?this._token=null:n.tokenUrl?i.registerTokenUrl(n.tokenUrl).then((t=>{this._token=t})):this._token=i.token}}class FI extends $t{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=(0,Uu.first)(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>UI(t,e,this.editor.model.schema)))}execute(t){const e=this.editor.model,n=e.document,i=t.value;e.change((t=>{const o=Array.from(n.selection.getSelectedBlocks()).filter((t=>UI(t,i,e.schema)));for(const e of o)e.is("element",i)||t.rename(e,i)}))}}function UI(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const HI="paragraph";class GI extends Yt{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[Av]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const i of e)"paragraph"!==i.model&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new FI(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",((e,i)=>{const o=t.model.document.selection.getFirstPosition().parent;n.some((t=>o.is("element",t.model)))&&!o.is("element",HI)&&0===o.childCount&&i.writer.rename(o,HI)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Uu.priorities.low+1})}}var qI=__webpack_require__(3230),WI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(qI.Z,WI);qI.Z.locals;class KI extends Yt{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(t){const e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 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}))}(t),i=e("Choose heading"),o=e("Heading");t.ui.componentFactory.add("heading",(e=>{const r={},s=new Uu.Collection,a=t.commands.get("heading"),c=t.commands.get("paragraph"),l=[a];for(const t of n){const e={type:"button",model:new Qd({label:t.title,class:t.class,role:"menuitemradio",withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(c,"value"),e.model.set("commandName","paragraph"),l.push(c)):(e.model.bind("isOn").to(a,"value",(e=>e===t.model)),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),r[t.model]=t.title}const d=dl(e);return ml(d,s,{ariaLabel:o,role:"menu"}),d.buttonView.set({ariaLabel:o,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:o}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(l,"isEnabled",((...t)=>t.some((t=>t)))),d.buttonView.bind("label").to(a,"value",c,"value",((t,e)=>{const n=t||e&&"paragraph";return"boolean"==typeof n?i:r[n]?r[n]:i})),this.listenTo(d,"execute",(e=>{const{commandName:n,commandValue:i}=e.source;t.execute(n,i?{value:i}:void 0),t.editing.view.focus()})),d}))}}class ZI extends Yt{static get requires(){return[GI,KI]}static get pluginName(){return"Heading"}}const YI='<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>',JI='<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>',$I='<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>',QI='<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>',XI='<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>',tS='<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>';new Set(["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"]);function eS(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot("children")])}function nS(t,e){const n=t.plugins.get("ImageUtils"),i=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return t=>{if(!n.isInlineImageView(t))return null;if(!i)return o(t);return("block"==t.getStyle("display")||t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:o(t)};function o(t){const e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e}}function iS(t,e){const n=(0,Uu.first)(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}function oS(t){return t&&t.endsWith("px")?parseInt(t):null}function rS(t){const e=oS(t.getStyle("width")),n=oS(t.getStyle("height"));return!(!e||!n)}const sS=/^(image|image-inline)$/;class aS extends Yt{constructor(){super(...arguments),this._domEmitter=new((0,Uu.DomEmitterMixin)())}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,i={}){const o=this.editor,r=o.model,s=r.document.selection,a=cS(o,e||s,n);t={...Object.fromEntries(s.getAttributes()),...t};for(const e in t)r.schema.checkAttribute(a,e)||delete t[e];return r.change((n=>{const{setImageSizes:o=!0}=i,s=n.createElement(a,t);return r.insertObject(s,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==a?void 0:"auto"}),s.parent?(o&&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 i=new Uu.global.window.Image;this._domEmitter.listenTo(i,"load",(()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,(e=>{e.setAttribute("width",i.naturalWidth,t),e.setAttribute("height",i.naturalHeight,t)})),this._domEmitter.stopListening(i,"load")})),i.src=e})))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let i=e.parent;for(;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:sS})}isImageAllowed(){const t=this.editor.model.document.selection;return function(t,e){const n=cS(t,e,null);if("imageBlock"==n){const n=function(t,e){const n=u_(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("element","$root"))return i.parent;return i}(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 s_(t,e,{label:()=>{const e=this.findViewImgElement(t).getAttribute("alt");return e?`${e} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&r_(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 cS(t,e,n){const i=t.model.schema,o=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===o?"imageInline":"auto"!==o?"imageBlock":e.is("selection")?iS(i,e):i.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}const lS=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 dS extends Yt{static get requires(){return[ev,aS,xv,Wp]}static get pluginName(){return"AutoImage"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",(()=>{const t=e.selection.getFirstRange(),n=na.fromPosition(t.start);n.stickiness="toPrevious";const i=na.fromPosition(t.end);i.stickiness="toNext",e.once("change:data",(()=>{this._embedImageBetweenPositions(n,i),n.detach(),i.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(()=>{this._timeoutId&&(Uu.global.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedImageBetweenPositions(t,e){const n=this.editor,i=new xr(t,e),o=i.getWalker({ignoreElementEnd:!0}),r=Object.fromEntries(n.model.document.selection.getAttributes()),s=this.editor.plugins.get("ImageUtils");let a="";for(const t of o)t.item.is("$textProxy")&&(a+=t.item.data);a=a.trim(),a.match(lS)?(this._positionToInsert=na.fromPosition(t),this._timeoutId=setTimeout((()=>{if(!n.commands.get("insertImage").isEnabled)return void i.detach();n.model.change((t=>{let e;this._timeoutId=null,t.remove(i),i.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert.toPosition()),s.insertImage({...r,src:a},e),this._positionToInsert.detach(),this._positionToInsert=null}));n.plugins.get("Delete").requestUndoOnBackspace()}),100)):i.detach()}}class uS extends $t{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"),i=e.model,o=n.getClosestSelectedImageElement(i.document.selection);i.change((e=>{e.setAttribute("alt",t.newValue,o)}))}}class hS extends Yt{static get requires(){return[aS]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new uS(this.editor))}}var mS=__webpack_require__(6831),gS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(mS.Z,gS);mS.Z.locals;var pS=__webpack_require__(1590),fS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(pS.Z,fS);pS.Z.locals;class xS extends u{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Uc.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Uc.cancel,"ck-button-cancel","cancel"),this._focusables=new s,this._focusCycler=new Gt({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),i({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,i){const o=new U(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}_createLabeledInputView(){const t=this.locale.t,e=new It(this.locale,xl);return e.label=t("Text alternative"),e}}function bS(t){const e=t.editing.view,n=bd.defaultPositions,i=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(i.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class kS extends Yt{static get requires(){return[ru]}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 i=t.commands.get("imageTextAlternative"),o=new U(n);return o.set({label:e("Change image text alternative"),icon:Uc.textAlternative,tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>{this._showForm()})),o}))}_createForm(){const t=this.editor,i=t.editing.view.document,o=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(n(xS))(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",(()=>{o.getClosestSelectedImageWidget(i.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){const n=bS(t);e.updatePosition(n)}}(t):this._hideForm(!0)})),e({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:bS(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 wS extends Yt{static get requires(){return[hS,kS]}static get pluginName(){return"ImageTextAlternative"}}function AS(t,e){const n=(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const o=i.writer,r=i.mapper.toViewElement(n.item),s=t.findViewImgElement(r);null===n.attributeNewValue?(o.removeAttribute("srcset",s),o.removeAttribute("sizes",s)):n.attributeNewValue&&(o.setAttribute("srcset",n.attributeNewValue,s),o.setAttribute("sizes","100vw",s))};return t=>{t.on(`attribute:srcset:${e}`,n)}}function _S(t,e,n){const i=(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const o=i.writer,r=i.mapper.toViewElement(n.item),s=t.findViewImgElement(r);o.setAttribute(n.attributeKey,n.attributeNewValue||"",s)};return t=>{t.on(`attribute:${n}:${e}`,i)}}class vS extends to{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 CS extends $t{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&(0,Uu.logWarning)("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&(0,Uu.logWarning)("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=(0,Uu.toArray)(t.source),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const r=n.getSelectedElement();if("string"==typeof t&&(t={src:t}),e&&r&&i.isImage(r)){const e=this.editor.model.createPositionAfter(r);i.insertImage({...t,...o},e)}else i.insertImage({...t,...o})}))}}class yS extends $t{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((i=>{i.setAttribute("src",t.source,e),this.cleanupImage(i,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 ES extends Yt{static get requires(){return[aS]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(vS),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new CS(t),i=new yS(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",i),t.commands.add("imageInsert",n)}}class IS extends Yt{static get requires(){return[aS]}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"),i="imageBlock"===t?"figure":"img";function o(e,i,o,r){e.on(`attribute:${i}:${t}`,((e,i,s)=>{if(!s.consumable.consume(i.item,e.name))return;const a=s.writer,c=s.mapper.toViewElement(i.item),l=n.findViewImgElement(c);if(null!==i.attributeNewValue?a.setAttribute(o,i.attributeNewValue,l):a.removeAttribute(o,l),i.item.hasAttribute("sources"))return;const d=i.item.hasAttribute("resizedWidth");if("imageInline"===t&&!d&&!r)return;const u=i.item.getAttribute("width"),h=i.item.getAttribute("height");u&&h&&a.setStyle("aspect-ratio",`${u}/${h}`,l)}))}e.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:t=>rS(t)?oS(t.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:t=>rS(t)?oS(t.getStyle("height")):null}}).attributeToAttribute({view:{name:i,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add((t=>{o(t,"width","width",!0),o(t,"height","height",!0)})),e.conversion.for("dataDowncast").add((t=>{o(t,"width","width",!1),o(t,"height","height",!1)}))}}class SS extends $t{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,i=e.plugins.get("ImageUtils"),o=i.getClosestSelectedImageElement(n.document.selection),r=Object.fromEntries(o.getAttributes());return r.src||r.uploadId?n.change((e=>{const{setImageSizes:s=!0}=t,a=Array.from(n.markers).filter((t=>t.getRange().containsItem(o))),c=i.insertImage(r,n.createSelection(o,"on"),this._modelElementName,{setImageSizes:s});if(!c)return null;const l=e.createRangeOn(c);for(const t of a){const n=t.getRange(),i="$graveyard"!=n.root.rootName?n.getJoined(l,!0):l;e.updateMarker(t,{range:i})}return{oldElement:o,newElement:c}})):null}}var TS=__webpack_require__(9671),DS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(TS.Z,DS);TS.Z.locals;class MS extends Yt{static get requires(){return[aS]}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,i)=>{if(!i.consumable.test(e.item,t.name))return;if(!e.item.is("element","imageBlock")&&!e.item.is("element","imageInline"))return;i.consumable.consume(e.item,t.name);const o=i.writer,r=i.mapper.toViewElement(e.item),s=n.findViewImgElement(r);e.attributeNewValue?(o.addClass("image_placeholder",s),o.setStyle("background-image",`url(${e.attributeNewValue})`,s),o.setCustomProperty("editingPipeline:doNotReuseOnce",!0,s)):(o.removeClass("image_placeholder",s),o.removeStyle("background-image",s))}))}))}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,i=n.view,o=t.plugins.get("ImageUtils");i.addObserver(vS),this.listenTo(i.document,"imageLoaded",((t,r)=>{const s=i.domConverter.mapDomToView(r.target);if(!s)return;const a=o.getImageWidgetFromImageView(s);if(!a)return;const c=n.mapper.toModelElement(a);c&&c.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},(t=>{t.removeAttribute("placeholder",c)}))}))}}class BS extends Yt{static get requires(){return[ES,IS,aS,MS,$A]}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 SS(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:e})=>eS(e)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:n})=>i.toImageWidget(eS(n),n,e("image widget"))}),n.for("downcast").add(_S(i,"imageBlock","src")).add(_S(i,"imageBlock","alt")).add(AS(i,"imageBlock")),n.for("upcast").elementToElement({view:nS(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,i)=>{if(!i.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const o=t.findViewImgElement(n.viewItem);if(!o||!i.consumable.test(o,{name:!0}))return;i.consumable.consume(n.viewItem,{name:!0,classes:"image"});const r=i.convertItem(o,n.modelCursor),s=(0,Uu.first)(r.modelRange.getItems());s?(i.convertChildren(n.viewItem,s),i.updateConversionResult(s,n)):i.consumable.revert(n.viewItem,{name:!0,classes:"image"})};return t=>{t.on("element:figure",e)}}(i))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),o=t.plugins.get("ClipboardPipeline");this.listenTo(o,"inputTransformation",((o,r)=>{const s=Array.from(r.content.getChildren());let a;if(!s.every(i.isInlineImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();const c=e.createSelection(a);if("imageBlock"===iS(e.schema,c)){const t=new Ga(n.document),e=s.map((e=>t.createElement("figure",{class:"image"},e)));r.content=t.createDocumentFragment(e)}})),this.listenTo(o,"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")&&i.setImageNaturalSizeAttributes(t)}))}))}}var OS=__webpack_require__(9292),NS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(OS.Z,NS);OS.Z.locals;class PS extends u{constructor(t,e=[]){super(t),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this._focusables=new s,this.children=this.createCollection(),this._focusCycler=new Gt({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 Nu&&this._focusables.addMany(t.children);if(this._focusables.length>1)for(const t of this._focusables)RS(t)&&(t.focusCycler.on("forwardCycle",(t=>{this._focusCycler.focusNext(),t.stop()})),t.focusCycler.on("backwardCycle",(t=>{this._focusCycler.focusPrevious(),t.stop()})));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),i({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()}}function RS(t){return"focusCycler"in t}class LS extends Yt{static get pluginName(){return"ImageInsertUI"}static get requires(){return[aS]}constructor(t){super(t),this._integrations=new Map,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 i=t=>this._createToolbarComponent(t);t.ui.componentFactory.add("insertImage",i),t.ui.componentFactory.add("imageInsert",i)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:o}){this._integrations.has(t)&&(0,Uu.logWarning)("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:!!o})}_createToolbarComponent(t){const e=this.editor,n=t.t,i=this._prepareIntegrations();if(!i.length)return null;let o;const r=i[0];if(1==i.length){if(!r.requiresForm)return r.buttonViewCreator(!0);o=r.buttonViewCreator(!0)}else{const e=r.buttonViewCreator(!1);o=new rl(t,e),o.tooltip=!0,o.bind("label").to(this,"isImageSelected",(t=>n(t?"Replace image":"Insert image")))}const s=this.dropdownView=dl(t,o),a=i.map((({observable:t})=>t));return s.bind("isEnabled").toMany(a,"isEnabled",((...t)=>t.some((t=>t)))),s.once("change:isOpen",(()=>{const t=i.map((({formViewCreator:t})=>t(1==i.length))),n=new PS(e.locale,t);s.panelView.children.add(n)})),s}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return(0,Uu.logWarning)("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)||(0,Uu.logWarning)("image-insert-unknown-integration",{item:n});return e.length||(0,Uu.logWarning)("image-insert-integrations-not-registered"),e}}var jS=__webpack_require__(9048),zS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(jS.Z,zS);jS.Z.locals;class VS extends Yt{static get requires(){return[BS,I_,wS,LS]}static get pluginName(){return"ImageBlock"}}class FS extends Yt{static get requires(){return[ES,IS,aS,MS,$A]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck(((t,e)=>{if(t.endsWith("caption")&&"imageInline"===e.name)return!1})),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new SS(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=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})=>i.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"))}(n),n,e("image widget"))}),n.for("downcast").add(_S(i,"imageInline","src")).add(_S(i,"imageInline","alt")).add(AS(i,"imageInline")),n.for("upcast").elementToElement({view:nS(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,i=t.plugins.get("ImageUtils"),o=t.plugins.get("ClipboardPipeline");this.listenTo(o,"inputTransformation",((o,r)=>{const s=Array.from(r.content.getChildren());let a;if(!s.every(i.isBlockImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();const c=e.createSelection(a);if("imageInline"===iS(e.schema,c)){const t=new Ga(n.document),e=s.map((e=>1===e.childCount?(Array.from(e.getAttributes()).forEach((n=>t.setAttribute(...n,i.findViewImgElement(e)))),e.getChild(0)):e));r.content=t.createDocumentFragment(e)}})),this.listenTo(o,"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")&&i.setImageNaturalSizeAttributes(t)}))}))}}class US extends Yt{static get requires(){return[FS,I_,wS,LS]}static get pluginName(){return"ImageInline"}}class HS extends Yt{static get requires(){return[VS,US]}static get pluginName(){return"Image"}}class GS extends Yt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[aS]}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 qS extends $t{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(BS))return this.isEnabled=!1,void(this.value=!1);const i=t.model.document.selection,o=i.getSelectedElement();if(!o){const t=e.getCaptionFromModelSelection(i);return this.isEnabled=!!t,void(this.value=!!t)}this.isEnabled=n.isImage(o),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(o):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,i=this.editor.plugins.get("ImageCaptionEditing"),o=this.editor.plugins.get("ImageUtils");let r=n.getSelectedElement();const s=i._getSavedCaption(r);o.isInlineImage(r)&&(this.editor.execute("imageTypeBlock"),r=n.getSelectedElement());const a=s||t.createElement("caption");t.append(a,r),e&&t.setSelection(a,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,i=e.plugins.get("ImageCaptionEditing"),o=e.plugins.get("ImageCaptionUtils");let r,s=n.getSelectedElement();s?r=o.getCaptionFromImageModelElement(s):(r=o.getCaptionFromModelSelection(n),s=r.parent),i._saveCaption(s,r),t.setSelection(s,"on"),t.remove(r)}}class WS extends Yt{static get requires(){return[aS,GS]}static get pluginName(){return"ImageCaptionEditing"}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 qS(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils"),o=t.t;t.conversion.for("upcast").elementToElement({view:t=>i.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:i})=>{if(!n.isBlockImage(t.parent))return null;const r=i.createEditableElement("figcaption");i.setCustomProperty("imageCaption",!0,r),r.placeholder=o("Enter image caption"),ae({view:e,element:r,keepOnFocus:!0});const s=t.parent.getAttribute("alt");return d_(r,i,{label:s?o("Caption for image: %0",[s]):o("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),i=t.commands.get("imageTypeInline"),o=t.commands.get("imageTypeBlock"),r=t=>{if(!t.return)return;const{oldElement:i,newElement:o}=t.return;if(!i)return;if(e.isBlockImage(i)){const t=n.getCaptionFromImageModelElement(i);if(t)return void this._saveCaption(o,t)}const r=this._getSavedCaption(i);r&&this._saveCaption(o,r)};i&&this.listenTo(i,"execute",r,{priority:"low"}),o&&this.listenTo(o,"execute",r,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?Zo.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"),i=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",(()=>{const o=e.document.differ.getChanges();for(const e of o){if("alt"!==e.attributeKey)continue;const o=e.range.start.nodeAfter;if(n.isBlockImage(o)){const e=i.getCaptionFromImageModelElement(o);if(!e)return;t.editing.reconvertItem(e)}}}))}}class KS extends Yt{static get requires(){return[GS]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),i=t.t;t.ui.componentFactory.add("toggleImageCaption",(o=>{const r=t.commands.get("toggleImageCaption"),s=new U(o);return s.set({icon:Uc.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.bind("label").to(r,"value",(t=>i(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(s,"execute",(()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const i=n.getCaptionFromModelSelection(t.model.document.selection);if(i){const n=t.editing.mapper.toViewElement(i);e.scrollToTheSelection(),e.change((t=>{t.addClass("image__caption_highlighted",n)}))}t.editing.view.focus()})),s}))}}var ZS=__webpack_require__(8662),YS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(ZS.Z,YS);ZS.Z.locals;class JS extends Yt{static get requires(){return[WS,KS]}static get pluginName(){return"ImageCaption"}}function $S(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^image\\/(${e.join("|")})$`)}function QS(t){return new Promise(((e,n)=>{const i=t.getAttribute("src");fetch(i).then((t=>t.blob())).then((t=>{const n=XS(t,i),o=n.replace("image/",""),r=new File([t],`image.${o}`,{type:n});e(r)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const i=Uu.global.document.createElement("img");i.addEventListener("load",(()=>{const t=Uu.global.document.createElement("canvas");t.width=i.width,t.height=i.height;t.getContext("2d").drawImage(i,0,0),t.toBlob((t=>t?e(t):n()))})),i.addEventListener("error",(()=>n())),i.src=t}))}(t).then((e=>{const n=XS(e,t),i=n.replace("image/","");return new File([e],`image.${i}`,{type:n})}))}(i).then(e).catch(n):n(t)))}))}function XS(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class tT extends Yt{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=n=>{const i=new Ah(n),o=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),s=$S(r);return i.set({acceptedType:r.map((t=>`image/${t}`)).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:Uc.imageUpload,tooltip:!0}),i.bind("isEnabled").to(o),i.on("done",((e,n)=>{const i=Array.from(n).filter((t=>s.test(t.type)));i.length&&(t.execute("uploadImage",{file:i}),t.editing.view.focus())})),i};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const n=t.plugins.get("ImageInsertUI"),i=t.commands.get("uploadImage");n.registerIntegration({name:"upload",observable:i,buttonViewCreator:()=>{const i=t.ui.componentFactory.create("uploadImage");return i.bind("label").to(n,"isImageSelected",(t=>e(t?"Replace image from computer":"Upload image from computer"))),i},formViewCreator:()=>{const i=t.ui.componentFactory.create("uploadImage");return i.withText=!0,i.bind("label").to(n,"isImageSelected",(t=>e(t?"Replace from computer":"Upload from computer"))),i.on("execute",(()=>{n.dropdownView.isOpen=!1})),i}})}}}var eT=__webpack_require__(5870),nT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(eT.Z,nT);eT.Z.locals;var iT=__webpack_require__(9899),oT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(iT.Z,oT);iT.Z.locals;var rT=__webpack_require__(9825),sT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(rT.Z,sT);rT.Z.locals;class aT extends Yt{static get pluginName(){return"ImageUploadProgress"}constructor(t){super(t),this.uploadStatusChange=(t,e,n)=>{const i=this.editor,o=e.item,r=o.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=i.plugins.get("ImageUtils"),a=i.plugins.get(kh),c=r?e.attributeNewValue:null,l=this.placeholder,d=i.editing.mapper.toViewElement(o),u=n.writer;if("reading"==c)return cT(d,u),void lT(s,l,d,u);if("uploading"==c){const t=a.loaders.get(r);return cT(d,u),void(t?(dT(d,u),function(t,e,n,i){const o=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"),o),n.on("change:uploadedPercent",((t,e,n)=>{i.change((t=>{t.setStyle("width",n+"%",o)}))}))}(d,u,t,i.editing.view),function(t,e,n,i){if(i.data){const o=t.findViewImgElement(e);n.setAttribute("src",i.data,o)}}(s,d,u,t)):lT(s,l,d,u))}"complete"==c&&a.loaders.get(r)&&function(t,e,n){const i=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),i),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(i))))}),3e3)}(d,u,i.editing.view),function(t,e){hT(t,e,"progressBar")}(d,u),dT(d,u),function(t,e){e.removeClass("ck-appear",t)}(d,u)},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)}}function cT(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function lT(t,e,n,i){n.hasClass("ck-image-upload-placeholder")||i.addClass("ck-image-upload-placeholder",n);const o=t.findViewImgElement(n);o.getAttribute("src")!==e&&i.setAttribute("src",e,o),uT(n,"placeholder")||i.insert(i.createPositionAfter(o),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(i))}function dT(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),hT(t,e,"placeholder")}function uT(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function hT(t,e,n){const i=uT(t,n);i&&e.remove(e.createRangeOn(i))}class mT extends $t{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=(0,Uu.toArray)(t.file),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const r=n.getSelectedElement();if(e&&r&&i.isImage(r)){const e=this.editor.model.createPositionAfter(r);this._uploadImage(t,o,e)}else this._uploadImage(t,o)}))}_uploadImage(t,e,n){const i=this.editor,o=i.plugins.get(kh).createLoader(t),r=i.plugins.get("ImageUtils");o&&r.insertImage({...e,uploadId:o.id},n)}}class gT extends Yt{static get requires(){return[kh,$d,$A,aS]}static get pluginName(){return"ImageUploadEditing"}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,i=t.plugins.get(kh),o=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline"),s=$S(t.config.get("image.upload.types")),a=new mT(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(i=n.dataTransfer,Array.from(i.types).includes("text/html")&&""!==i.getData("text/html"))return;var i;const o=Array.from(n.dataTransfer.files).filter((t=>!!t&&s.test(t.type)));o.length&&(e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.execute("uploadImage",{file:o})})))})),this.listenTo(r,"inputTransformation",((e,n)=>{const r=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))}(o,t)&&!t.getAttribute("uploadProcessed"))).map((t=>({promise:QS(t),imageElement:t})));if(!r.length)return;const s=new Ga(t.editing.view.document);for(const t of r){s.setAttribute("uploadProcessed",!0,t.imageElement);const e=i.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(),o=new Set;for(const e of n)if("insert"==e.type&&"$text"!=e.name){const n=e.position.nodeAfter,r="$graveyard"==e.position.root.rootName;for(const e of pT(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=i.loaders.get(t);n&&(r?o.has(t)||n.abort():(o.add(t),this._uploadImageElements.set(t,e),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((t,{imageElement:e,data:n})=>{const i=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",i.default,e),this._parseAndSetSrcsetAttributeOnImage(i,e,t),o.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,i=e.locale.t,o=e.plugins.get(kh),r=e.plugins.get($d),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(Uu.env.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 i=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=i}))}return n.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","uploading",o)})),i})).then((e=>{n.enqueueChange({isUndoable:!1},(n=>{const i=a.get(t.id);n.setAttribute("uploadStatus","complete",i),this.fire("uploadComplete",{data:e,imageElement:i})})),c()})).catch((e=>{if("error"!==t.status&&"aborted"!==t.status)throw e;"error"==t.status&&e&&r.showWarning(e,{title:i("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},(e=>{e.remove(a.get(t.id))})),c()}));function c(){n.enqueueChange({isUndoable:!1},(e=>{const n=a.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),a.delete(t.id)})),o.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let i=0;const o=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return i=Math.max(i,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");if(""!=o){const t={srcset:o};e.hasAttribute("width")||e.hasAttribute("height")||(t.width=i),n.setAttributes(t,e)}}}function pT(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))}class fT extends Yt{static get pluginName(){return"ImageUpload"}static get requires(){return[gT,tT,aT]}}class xT extends u{constructor(t){super(t),this.set("imageURLInputValue",""),this.set("isImageSelected",!1),this.set("isEnabled",!0),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this._focusables=new s,this.focusCycler=new Gt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.urlInputView=this._createUrlInputView(),this.insertButtonView=this._createInsertButton(),this.cancelButtonView=this._createCancelButton(),this._focusables.addMany([this.urlInputView,this.insertButtonView,this.cancelButtonView]),this.setTemplate({tag:"div",attributes:{class:["ck","ck-image-insert-url"]},children:[this.urlInputView,{tag:"div",attributes:{class:["ck","ck-image-insert-url__action-row"]},children:[this.insertButtonView,this.cancelButtonView]}]})}render(){super.render();for(const t of this._focusables)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createUrlInputView(){const t=this.locale,e=t.t,n=new It(t,xl);return n.bind("label").to(this,"isImageSelected",(t=>e(t?"Update image URL":"Insert image via URL"))),n.bind("isEnabled").to(this),n.fieldView.placeholder="https://example.com/image.png",n.fieldView.bind("value").to(this,"imageURLInputValue",(t=>t||"")),n.fieldView.on("input",(()=>{this.imageURLInputValue=n.fieldView.element.value.trim()})),n}_createInsertButton(){const t=this.locale,e=t.t,n=new U(t);return n.set({icon:Uc.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("label").to(this,"isImageSelected",(t=>e(t?"Update":"Insert"))),n.bind("isEnabled").to(this,"imageURLInputValue",this,"isEnabled",((...t)=>t.every((t=>t)))),n.delegate("execute").to(this,"submit"),n}_createCancelButton(){const t=this.locale,e=t.t,n=new U(t);return n.set({label:e("Cancel"),icon:Uc.cancel,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this),n.delegate("execute").to(this,"cancel"),n}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}}class bT extends Yt{static get pluginName(){return"ImageInsertViaUrlUI"}static get requires(){return[LS]}init(){this._imageInsertUI=this.editor.plugins.get("ImageInsertUI");const t=this.editor.commands.get("insertImage");this._imageInsertUI.registerIntegration({name:"url",observable:t,requiresForm:!0,buttonViewCreator:t=>this._createInsertUrlButton(t),formViewCreator:t=>this._createInsertUrlView(t)})}_createInsertUrlView(t){const e=this.editor,n=e.locale,i=n.t,o=e.commands.get("replaceImageSource"),r=e.commands.get("insertImage"),s=new xT(n),a=t?null:new Nu(n,[s]);return s.bind("isImageSelected").to(this._imageInsertUI),s.bind("isEnabled").toMany([r,o],"isEnabled",((...t)=>t.some((t=>t)))),s.imageURLInputValue=o.value||"",this._imageInsertUI.dropdownView.on("change:isOpen",(()=>{this._imageInsertUI.dropdownView.isOpen&&(s.imageURLInputValue=o.value||"",a&&(a.isCollapsed=!0))}),{priority:"low"}),s.on("submit",(()=>{o.isEnabled?e.execute("replaceImageSource",{source:s.imageURLInputValue}):e.execute("insertImage",{source:s.imageURLInputValue}),this._closePanel()})),s.on("cancel",(()=>this._closePanel())),a?(a.set({isCollapsed:!0}),a.bind("label").to(this._imageInsertUI,"isImageSelected",(t=>i(t?"Update image URL":"Insert image via URL"))),a):s}_createInsertUrlButton(t){const e=t?Ht:U,n=this.editor,i=new e(n.locale),o=n.locale.t;return i.set({icon:Uc.imageUrl,tooltip:!0}),i.bind("label").to(this._imageInsertUI,"isImageSelected",(t=>o(t?"Update image URL":"Insert image via URL"))),i}_closePanel(){this.editor.editing.view.focus(),this._imageInsertUI.dropdownView.isOpen=!1}}class kT extends Yt{static get pluginName(){return"ImageInsertViaUrl"}static get requires(){return[bT,LS]}}class wT extends Yt{static get pluginName(){return"ImageInsert"}static get requires(){return[fT,kT,LS]}}class AT extends $t{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,i=e.plugins.get("ImageUtils"),o=i.getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},o&&n.change((e=>{e.setAttribute("resizedWidth",t.width,o),e.removeAttribute("resizedHeight",o),i.setImageNaturalSizeAttributes(o)}))}}class _T extends Yt{static get requires(){return[aS]}static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new AT(t);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}_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 i=n.writer,o=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(i.setStyle("width",e.attributeNewValue,o),i.addClass("image_resized",o)):(i.removeStyle("width",o),i.removeClass("image_resized",o))})))),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,i,o)=>{if(!o.consumable.consume(i.item,e.name))return;const r=o.writer,s=o.mapper.toViewElement(i.item),a="imageInline"===t?n.findViewImgElement(s):s;null!==i.attributeNewValue?r.setStyle("height",i.attributeNewValue,a):r.removeStyle("height",a)})))),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:t=>rS(t)?null:t.getStyle("width")}}),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:t=>rS(t)?null:t.getStyle("height")}})}}const vT={small:Uc.objectSizeSmall,medium:Uc.objectSizeMedium,large:Uc.objectSizeLarge,original:Uc.objectSizeFull};class CT extends Yt{static get requires(){return[_T]}static get pluginName(){return"ImageResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const t of e)this._registerImageResizeButton(t);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:i,icon:o}=t,r=i?i+this._resizeUnit:null;e.ui.componentFactory.add(n,(n=>{const i=new U(n),s=e.commands.get("resizeImage"),a=this._getOptionLabelValue(t,!0);if(!vT[o])throw new Uu.CKEditorError("imageresizebuttons-missing-icon",e,t);return i.set({label:a,icon:vT[o],tooltip:a,isToggleable:!0}),i.bind("isEnabled").to(this),i.bind("isOn").to(s,"value",yT(r)),this.listenTo(i,"execute",(()=>{e.execute("resizeImage",{width:r})})),i}))}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,i=t.find((t=>!t.value)),o=o=>{const r=e.commands.get("resizeImage"),s=dl(o,Ht),a=s.buttonView,c=n("Resize image");return a.set({tooltip:c,commandValue:i.value,icon:vT.medium,isToggleable:!0,label:this._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button",ariaLabel:c,ariaLabelledBy:void 0}),a.bind("label").to(r,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(i))),s.bind("isEnabled").to(this),ml(s,(()=>this._getResizeDropdownListItemDefinitions(t,r)),{ariaLabel:n("Image resize list"),role:"menu"}),this.listenTo(s,"execute",(t=>{e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus()})),s};e.ui.componentFactory.add("resizeImage",o),e.ui.componentFactory.add("imageResize",o)}_getOptionLabelValue(t,e=!1){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new Uu.Collection;return t.map((t=>{const i=t.value?t.value+this._resizeUnit:null,o={type:"button",model:new Qd({commandName:"resizeImage",commandValue:i,label:this._getOptionLabelValue(t),role:"menuitemradio",withText:!0,icon:null})};o.model.bind("isOn").to(e,"value",yT(i)),n.add(o)})),n}}function yT(t){return e=>null===t&&e===t||null!==e&&e.width===t}const ET="image_resized";class IT extends Yt{static get requires(){return[j_,aS]}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(vS),this.listenTo(e.document,"imageLoaded",((i,o)=>{if(!o.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 r=t.editing.view.domConverter,s=r.domToView(o.target),a=n.getImageWidgetFromImageView(s);let c=this.editor.plugins.get(j_).getResizerByViewElement(a);if(c)return void c.redraw();const l=t.editing.mapper,d=l.toModelElement(a);c=t.plugins.get(j_).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:d,viewElement:a,editor:t,getHandleHost:t=>t.querySelector("img"),getResizeHost:()=>r.mapViewToDom(l.toViewElement(d.parent)),isCentered(){const t=d.getAttribute("imageStyle");return!t||"block"==t||"alignCenter"==t},onCommit(n){e.change((t=>{t.removeClass(ET,a)})),t.execute("resizeImage",{width:n})}}),c.on("updateSize",(()=>{a.hasClass(ET)||e.change((t=>{t.addClass(ET,a)}));const t="imageInline"===d.name?s:a;t.getStyle("height")&&e.change((e=>{e.removeStyle("height",t)}))})),c.bind("isEnabled").to(this)}))}}var ST=__webpack_require__(1043),TT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(ST.Z,TT);ST.Z.locals;class DT extends Yt{static get requires(){return[_T,IT,CT]}static get pluginName(){return"ImageResize"}}class MT extends $t{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,i=e.plugins.get("ImageUtils");n.change((e=>{const o=t.value,{setImageSizes:r=!0}=t;let s=i.getClosestSelectedImageElement(n.document.selection);o&&this.shouldConvertImageType(o,s)&&(this.editor.execute(i.isBlockImage(s)?"imageTypeInline":"imageTypeBlock",{setImageSizes:r}),s=i.getClosestSelectedImageElement(n.document.selection)),!o||this._styles.get(o).isDefault?e.removeAttribute("imageStyle",s):e.setAttribute("imageStyle",o,s),r&&i.setImageNaturalSizeAttributes(s)}))}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}const{objectFullWidth:BT,objectInline:OT,objectLeft:NT,objectRight:PT,objectCenter:RT,objectBlockLeft:LT,objectBlockRight:jT}=Uc,zT={get inline(){return{name:"inline",title:"In line",icon:OT,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:NT,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:LT,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:RT,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:PT,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:jT,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:RT,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:PT,modelElements:["imageBlock"],className:"image-style-side"}}},VT={full:BT,left:LT,right:jT,center:RT,inlineLeft:NT,inlineRight:PT,inline:OT},FT=[{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 UT(t){(0,Uu.logWarning)("image-style-configuration-definition-invalid",t)}const HT={normalizeStyles:function(t){const e=(t.configuredStyles.options||[]).map((t=>function(t){t="string"==typeof t?zT[t]?{...zT[t]}:{name:t}:function(t,e){const n={...e};for(const i in t)Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);return n}(zT[t.name],t);"string"==typeof t.icon&&(t.icon=VT[t.icon]||t.icon);return t}(t))).filter((e=>function(t,{isBlockPluginLoaded:e,isInlinePluginLoaded:n}){const{modelElements:i,name:o}=t;if(!(i&&i.length&&o))return UT({style:t}),!1;{const o=[e?"imageBlock":null,n?"imageInline":null];if(!i.some((t=>o.includes(t))))return(0,Uu.logWarning)("image-style-missing-dependency",{style:t,missingPlugins:i.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")?[...FT]:[]},warnInvalidStyle:UT,DEFAULT_OPTIONS:zT,DEFAULT_ICONS:VT,DEFAULT_DROPDOWN_DEFINITIONS:FT};function GT(t,e){for(const n of e)if(n.name===t)return n}class qT extends Yt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[aS]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=HT,n=this.editor,i=n.plugins.has("ImageBlockEditing"),o=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(i,o)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:o}),this._setupConversion(i,o),this._setupPostFixer(),n.commands.add("imageStyle",new MT(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,i=n.model.schema,o=function(t){return(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const o=GT(n.attributeNewValue,t),r=GT(n.attributeOldValue,t),s=i.mapper.toViewElement(n.item),a=i.writer;r&&a.removeClass(r.className,s),o&&a.addClass(o.className,s)}}(this.normalizedStyles),r=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,i)=>{if(!n.modelRange)return;const o=n.viewItem,r=(0,Uu.first)(n.modelRange.getItems());if(r&&i.schema.checkAttribute(r,"imageStyle"))for(const t of e[r.name])i.consumable.consume(o,{classes:t.className})&&i.writer.setAttribute("imageStyle",t.name,r)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",o),n.data.downcastDispatcher.on("attribute:imageStyle",o),t&&(i.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",r,{priority:"low"})),e&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",r,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(aS),i=new Map(this.normalizedStyles.map((t=>[t.name,t])));e.registerPostFixer((t=>{let o=!1;for(const r of e.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let e="insert"==r.type?r.position.nodeAfter:r.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=i.get(s);a&&a.modelElements.includes(e.name)||(t.removeAttribute("imageStyle",e),o=!0)}return o}))}}var WT=__webpack_require__(4622),KT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(WT.Z,KT);WT.Z.locals;class ZT extends Yt{static get requires(){return[qT]}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=YT(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const t of n)this._createButton(t);const i=YT([...e.filter(m.Z),...HT.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const t of i)this._createDropdown(t,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,(i=>{let o;const{defaultItem:r,items:s,title:a}=t,c=s.filter((t=>e.find((({name:e})=>JT(e)===t)))).map((t=>{const e=n.create(t);return t===r&&(o=e),e}));s.length!==c.length&&HT.warnInvalidStyle({dropdown:t});const l=dl(i,rl),d=l.buttonView,u=d.arrowView;return ul(l,c,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:$T(a,o.label),class:null,tooltip:!0}),u.unbind("label"),u.set({label:a}),d.bind("icon").toMany(c,"isOn",((...t)=>{const e=t.findIndex(xn);return e<0?o.icon:c[e].icon})),d.bind("label").toMany(c,"isOn",((...t)=>{const e=t.findIndex(xn);return $T(a,e<0?o.label:c[e].label)})),d.bind("isOn").toMany(c,"isOn",((...t)=>t.some(xn))),d.bind("class").toMany(c,"isOn",((...t)=>t.some(xn)?"ck-splitbutton_flatten":void 0)),d.on("execute",(()=>{c.some((({isOn:t})=>t))?l.isOpen=!l.isOpen:o.fire("execute")})),l.bind("isEnabled").toMany(c,"isEnabled",((...t)=>t.some(xn))),this.listenTo(l,"execute",(()=>{this.editor.editing.view.focus()})),l}))}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(JT(e),(n=>{const i=this.editor.commands.get("imageStyle"),o=new U(n);return o.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(t=>t===e)),o.on("execute",this._executeCommand.bind(this,e)),o}))}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function YT(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}function JT(t){return`imageStyle:${t}`}function $T(t,e){return(t?t+": ":"")+e}class QT extends Yt{static get requires(){return[qT,ZT]}static get pluginName(){return"ImageStyle"}}class XT extends Yt{static get requires(){return[T_,aS]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(T_),i=t.plugins.get("ImageUtils");var o;n.register("image",{ariaLabel:e("Image toolbar"),items:(o=t.config.get("image.toolbar")||[],o.map((t=>(0,m.Z)(t)?t.name:t))),getRelatedElement:t=>i.getClosestSelectedImageWidget(t)})}}class tD extends Yt{static get requires(){return[ES,aS]}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,i,o)=>{const r=i.viewItem;if(!o.consumable.test(r,{name:!0}))return;const s=new Map;for(const t of r.getChildren())if(t.is("element","source")){const n={};for(const i of e)t.hasAttribute(i)&&o.consumable.test(t,{attributes:i})&&(n[i]=t.getAttribute(i));Object.keys(n).length&&s.set(t,n)}const a=t.findViewImgElement(r);if(!a)return;let c=i.modelCursor.parent;if(!c.is("element","imageBlock")){const t=o.convertItem(a,i.modelCursor);i.modelRange=t.modelRange,i.modelCursor=t.modelCursor,c=(0,Uu.first)(t.modelRange.getItems())}o.consumable.consume(r,{name:!0});for(const[t,e]of s)o.consumable.consume(t,{attributes:Object.keys(e)});s.size&&o.writer.setAttribute("sources",Array.from(s.values()),c),o.convertChildren(r,c)};return t=>{t.on("element:picture",n)}}(n)),e.for("downcast").add(function(t){const e=(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const o=i.writer,r=i.mapper.toViewElement(n.item),s=t.findViewImgElement(r),a=n.attributeNewValue;if(a&&a.length){const t=o.createContainerElement("picture",null,a.map((t=>o.createEmptyElement("source",t)))),e=[];let n=s.parent;for(;n&&n.is("attributeElement");){const t=n.parent;o.unwrap(o.createRangeOn(s),n),e.unshift(n),n=t}o.insert(o.createPositionBefore(s),t),o.move(o.createRangeOn(s),o.createPositionAt(t,"end"));for(const n of e)o.wrap(o.createRangeOn(t),n)}else if(s.parent.is("element","picture")){const t=s.parent;o.move(o.createRangeOn(s),o.createPositionBefore(t)),o.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:i})=>{const o=i.sources;o&&t.model.change((t=>{t.setAttributes({sources:o},n)}))}))}}class eD extends Yt{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Xt(t)),t.commands.add("outdent",new Xt(t))}}const nD='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.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>',iD='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class oD extends Yt{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?nD:iD,o="ltr"==e.uiLanguageDirection?iD:nD;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),o)}_defineButton(t,e,n){const i=this.editor;i.ui.componentFactory.add(t,(o=>{const r=i.commands.get(t),s=new U(o);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isEnabled").to(r,"isEnabled"),this.listenTo(s,"execute",(()=>{i.execute(t),i.editing.view.focus()})),s}))}}class rD extends Yt{static get pluginName(){return"Indent"}static get requires(){return[eD,oD]}}class sD extends $t{constructor(t,e){super(t),this._indentBehavior=e}refresh(){const t=this.editor.model,e=(0,Uu.first)(t.document.selection.getSelectedBlocks());e&&this._isIndentationChangeAllowed(e)?this.isEnabled=this._indentBehavior.checkEnabled(e.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"),i=this._indentBehavior.getNextIndent(e);i?t.setAttribute("blockIndent",i,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("DocumentListUtils"))return!0;if(!this._indentBehavior.isForward)return!0;return!e.plugins.get("DocumentListUtils").isListItemBlock(t)}}class aD{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 cD{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 lD=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class dD extends Yt{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 sD(t,new cD({direction:"forward",classes:e.classes}))),t.commands.add("outdentBlock",new sD(t,new cD({direction:"backward",classes:e.classes})))):(t.data.addStyleProcessorRules(Tc),this._setupConversionUsingOffset(),t.commands.add("indentBlock",new sD(t,new aD({direction:"forward",offset:e.offset,unit:e.unit}))),t.commands.add("outdentBlock",new sD(t,new aD({direction:"backward",offset:e.offset,unit:e.unit}))))}afterInit(){const t=this.editor,e=t.model.schema,n=t.commands.get("indent"),i=t.commands.get("outdent"),o=t.config.get("heading.options");(o&&o.map((t=>t.model))||lD).forEach((t=>{e.isRegistered(t)&&e.extend(t,{allowAttributes:"blockIndent"})})),e.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(t.commands.get("indentBlock")),i.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)}}function uD(t,e){return`${t}:${e=e||(0,Uu.getLanguageDirection)(t)}`}class hD extends $t{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,i=n.document.selection,o=!!t&&uD(t,e);n.change((t=>{if(i.isCollapsed)o?t.setSelectionAttribute("language",o):t.removeSelectionAttribute("language");else{const e=n.schema.getValidRanges(i.getRanges(),"language");for(const n of e)o?t.setAttribute("language",o,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 mD extends Yt{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 hD(t))}_defineConverters(){const t=this.editor.conversion;t.for("upcast").elementToAttribute({model:{key:"language",value:t=>uD(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:i,textDirection:o}=function(t){const[e,n]=t.split(":");return{languageCode:e,textDirection:n}}(t);return e.createAttributeElement("span",{lang:i,dir:o})}})}}class gD extends Yt{static get pluginName(){return"TextPartLanguageUI"}init(){const t=this.editor,e=t.t,n=t.config.get("language.textPartLanguage"),i=e("Choose language"),o=e("Remove language"),r=e("Language");t.ui.componentFactory.add("textPartLanguage",(e=>{const s=new Uu.Collection,a={},c=t.commands.get("textPartLanguage");s.add({type:"button",model:new Qd({label:o,languageCode:!1,withText:!0})}),s.add({type:"separator"});for(const t of n){const e={type:"button",model:new Qd({label:t.title,languageCode:t.languageCode,role:"menuitemradio",textDirection:t.textDirection,withText:!0})},n=uD(t.languageCode,t.textDirection);e.model.bind("isOn").to(c,"value",(t=>t===n)),s.add(e),a[n]=t.title}const l=dl(e);return ml(l,s,{ariaLabel:r,role:"menu"}),l.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),l.extendTemplate({attributes:{class:["ck-text-fragment-language-dropdown"]}}),l.bind("isEnabled").to(c,"isEnabled"),l.buttonView.bind("label").to(c,"value",(t=>t&&a[t]||i)),this.listenTo(l,"execute",(e=>{c.execute({languageCode:e.source.languageCode,textDirection:e.source.textDirection}),t.editing.view.focus()})),l}))}}class pD extends Yt{static get requires(){return[mD,gD]}static get pluginName(){return"TextPartLanguage"}}class fD{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;if(!e.item.is("selection")&&!n.schema.isInline(e.item))return;const i=n.writer,o=i.document.selection;for(const t of this._definitions){const r=i.createAttributeElement("a",t.attributes,{priority:5});t.classes&&i.addClass(t.classes,r);for(const e in t.styles)i.setStyle(e,t.styles[e],r);i.setCustomProperty("link",!0,r),t.callback(e.attributeNewValue)?e.item.is("selection")?i.wrap(o.getFirstRange(),r):i.wrap(n.mapper.toViewRange(e.range),r):i.unwrap(n.mapper.toViewRange(e.range),r)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",((t,e,{writer:n,mapper:i})=>{const o=i.toViewElement(e.item),r=Array.from(o.getChildren()).find((t=>t.is("element","a")));for(const t of this._definitions){const i=(0,Uu.toMap)(t.attributes);if(t.callback(e.attributeNewValue)){for(const[t,e]of i)"class"===t?n.addClass(e,r):n.setAttribute(t,e,r);t.classes&&n.addClass(t.classes,r);for(const e in t.styles)n.setStyle(e,t.styles[e],r)}else{for(const[t,e]of i)"class"===t?n.removeClass(e,r):n.removeAttribute(t,r);t.classes&&n.removeClass(t.classes,r);for(const e in t.styles)n.removeStyle(e,r)}}}))}}}const xD=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:Ge(t,e,n)};var bD=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const kD=function(t){return bD.test(t)};const wD=function(t){return t.split("")};var AD="\\ud800-\\udfff",_D="["+AD+"]",vD="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",CD="\\ud83c[\\udffb-\\udfff]",yD="[^"+AD+"]",ED="(?:\\ud83c[\\udde6-\\uddff]){2}",ID="[\\ud800-\\udbff][\\udc00-\\udfff]",SD="(?:"+vD+"|"+CD+")"+"?",TD="[\\ufe0e\\ufe0f]?",DD=TD+SD+("(?:\\u200d(?:"+[yD,ED,ID].join("|")+")"+TD+SD+")*"),MD="(?:"+[yD+vD+"?",vD,ED,ID,_D].join("|")+")",BD=RegExp(CD+"(?="+CD+")|"+MD+DD,"g");const OD=function(t){return t.match(BD)||[]};const ND=function(t){return kD(t)?OD(t):wD(t)};const PD=function(t){return function(e){e=ze(e);var n=kD(e)?ND(e):void 0,i=n?n[0]:e.charAt(0),o=n?xD(n,1).join(""):e.slice(1);return i[t]()+o}}("toUpperCase"),RD=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,LD=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,jD=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,zD=/^((\w+:(\/{2,})?)|(\W))/i,VD="Ctrl+K";function FD(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function UD(t){const e=String(t);return function(t){const e=t.replace(RD,"");return!!e.match(LD)}(e)?e:"#"}function HD(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function GD(t,e){const n=(i=t,jD.test(i)?"mailto:":e);var i;const o=!!n&&!qD(t);return t&&o?n+t:t}function qD(t){return zD.test(t)}function WD(t){window.open(t,"_blank","noopener")}class KD extends $t{constructor(){super(...arguments),this.manualDecorators=new Uu.Collection,this.automaticDecorators=new fD}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()||(0,Uu.first)(e.getSelectedBlocks());HD(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,i=n.document.selection,o=[],r=[];for(const t in e)e[t]?o.push(t):r.push(t);n.change((e=>{if(i.isCollapsed){const s=i.getFirstPosition();if(i.hasAttribute("linkHref")){const a=ZD(i);let c=hf(s,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===a&&(c=this._updateLinkContent(n,e,c,t)),e.setAttribute("linkHref",t,c),o.forEach((t=>{e.setAttribute(t,!0,c)})),r.forEach((t=>{e.removeAttribute(t,c)})),e.setSelection(e.createPositionAfter(c.end.nodeBefore))}else if(""!==t){const r=(0,Uu.toMap)(i.getAttributes());r.set("linkHref",t),o.forEach((t=>{r.set(t,!0)}));const{end:a}=n.insertContent(e.createText(t,r),s);e.setSelection(a)}["linkHref",...o,...r].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const s=n.schema.getValidRanges(i.getRanges(),"linkHref"),a=[];for(const t of i.getSelectedBlocks())n.schema.checkAttribute(t,"linkHref")&&a.push(e.createRangeOn(t));const c=a.slice();for(const t of s)this._isRangeToUpdate(t,a)&&c.push(t);for(const s of c){let a=s;if(1===c.length){const o=ZD(i);i.getAttribute("linkHref")===o&&(a=this._updateLinkContent(n,e,s,t),e.setSelection(e.createSelection(a)))}e.setAttribute("linkHref",t,a),o.forEach((t=>{e.setAttribute(t,!0,a)})),r.forEach((t=>{e.removeAttribute(t,a)}))}}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return HD(i,e.schema)?i.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,i){const o=e.createText(i,{linkHref:i});return t.insertContent(o,n)}}function ZD(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 YD extends $t{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();HD(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,i=t.commands.get("link");e.change((t=>{const o=n.isCollapsed?[hf(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of o)if(t.removeAttribute("linkHref",e),i)for(const n of i.manualDecorators)t.removeAttribute(n.id,e)}))}}class JD extends((0,Uu.ObservableMixin)()){constructor({id:t,label:e,attributes:n,classes:i,styles:o,defaultValue:r}){super(),this.id=t,this.set("value",void 0),this.defaultValue=r,this.label=e,this.attributes=n,this.classes=i,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var $D=__webpack_require__(399),QD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()($D.Z,QD);$D.Z.locals;const XD="automatic",tM=/^(https?:)?\/\//;class eM extends Yt{static get pluginName(){return"LinkEditing"}static get requires(){return[Jp,Lp,$A]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:FD}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,e)=>FD(UD(t),e)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.commands.add("link",new KD(t)),t.commands.add("unlink",new YD(t));const e=function(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((t=>("label"in t&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,i]of Object.entries(t)){const t=Object.assign({},i,{id:`link${PD(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((t=>t.mode===XD))),this._enableManualDecorators(e.filter((t=>"manual"===t.mode)));t.plugins.get(Jp).registerAttribute("linkHref"),gf(t,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),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:XD,callback:t=>!!t&&tM.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 i=new JD(t);n.add(i),e.conversion.for("downcast").attributeToElement({model:i.id,view:(t,{writer:e,schema:n},{item:o})=>{if((o.is("selection")||n.isInline(o))&&t){const t=e.createAttributeElement("a",i.attributes,{priority:5});i.classes&&e.addClass(i.classes,t);for(const n in i.styles)e.setStyle(n,i.styles[n],t);return e.setCustomProperty("link",!0,t),t}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...i._createPattern()},model:{key:i.id}})}))}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((t,e)=>{if(!(Uu.env.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey))return;let n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const i=n.getAttribute("href");i&&(t.stop(),e.preventDefault(),WD(i))}),{context:"$capture"}),this.listenTo(e,"keydown",((e,n)=>{const i=t.commands.get("link").value;!!i&&n.keyCode===Uu.keyCodes.enter&&n.altKey&&(e.stop(),WD(i))}))}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",((n,{attributeKeys:i})=>{i.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,i)=>{e.change((t=>{const e=t.createRangeIn(i.content);for(const i of e.getItems())if(i.hasAttribute("linkHref")){const e=GD(i.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,i)}}))}))}}var nM=__webpack_require__(4827),iM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(nM.Z,iM);nM.Z.locals;class oM extends u{constructor(t,e){super(t),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this._focusables=new s;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Uc.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Uc.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new Gt({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(),i({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()}_createUrlInput(){const t=this.locale.t,e=new It(this.locale,xl);return e.label=t("Link URL"),e}_createButton(t,e,n,i){const o=new U(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const i=new q(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?!!n.defaultValue:!!t)),i.on("execute",(()=>{n.set("value",!i.isOn)})),e.add(i)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new u;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var rM=__webpack_require__(9465),sM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(rM.Z,sM);rM.Z.locals;class aM extends u{constructor(t){super(t),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this._focusables=new s;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Uc.pencil,"edit"),this.set("href",void 0),this._focusCycler=new Gt({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 i=new U(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const t=new U(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&&UD(t))),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 cM='<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>',lM="link-ui";class dM extends Yt{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[ru]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(Ua),this._balloon=t.plugins.get(ru),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:lM,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:lM,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}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 aM(t.locale),n=t.commands.get("link"),i=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(i),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(VD,((t,e)=>{this._addFormView(),e()})),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),i=t.config.get("link.defaultProtocol"),o=new(n(oM))(t.locale,e);return o.urlInputView.fieldView.bind("value").to(e,"value"),o.urlInputView.bind("isEnabled").to(e,"isEnabled"),o.saveButtonView.bind("isEnabled").to(e),this.listenTo(o,"submit",(()=>{const{value:e}=o.urlInputView.fieldView.element,n=GD(e,i);t.execute("link",n,o.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(o,"cancel",(()=>{this._closeFormView()})),o.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),o}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",(t=>{const i=new U(t);return i.isEnabled=!0,i.label=n("Link"),i.icon=cM,i.keystroke=VD,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(e,"isEnabled"),i.bind("isOn").to(e,"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(VD,((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())})),e({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._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.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(),i=r();const o=()=>{const t=this._getSelectedLinkElement(),e=r();n&&!t||!n&&e!==i?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,i=e};function r(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}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 i;if(e.markers.has(lM)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(lM)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));i=t.domConverter.viewRangeToDom(n)}else i=()=>{const e=this._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:i}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&r_(n))return uM(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),i=uM(n.start),o=uM(n.end);return i&&i==o&&t.createRangeIn(i).getTrimmed().isEqual(n)?i:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(lM))e.updateMarker(lM,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(lM,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(lM,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(lM)&&t.change((t=>{t.removeMarker(lM)}))}}function uM(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))||null}const hM=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 mM extends Yt{static get requires(){return[Wp,eM]}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")?hf(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,i=n.document.selection,o=i.getFirstPosition(),r=i.getLastPosition();let s=e.getJoined(this._expandLinkRange(n,o)||e);s&&(s=s.getJoined(this._expandLinkRange(n,r)||e)),s&&(s.start.isBefore(o)||s.end.isAfter(r))&&t.setSelection(s)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,i=t.plugins.get("ClipboardPipeline"),o=t.commands.get("link");i.on("inputTransformation",((t,i)=>{if(!this.isEnabled||!o.isEnabled||n.isCollapsed)return;if(n.rangeCount>1)return;const r=n.getFirstRange(),s=i.dataTransfer.getData("text/plain");if(!s)return;const a=s.match(hM);a&&a[2]===s&&(e.change((t=>{this._selectEntireLinks(t,r),o.execute(s)})),t.stop())}),{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new Yp(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=gM(t.substr(0,t.length-1));return e?{url:e}:void 0}));e.on("matched:data",((e,n)=>{const{batch:i,range:o,url:r}=n;if(!i.isTyping)return;const s=o.end.getShiftedBy(-1),a=s.getShiftedBy(-r.length),c=t.model.createRange(a,s);this._applyAutoLink(r,c)})),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:i}=Zp(t,e),o=gM(n);if(o){const t=e.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,t)}}_applyAutoLink(t,e){const n=this.editor.model,i=GD(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&qD(i)&&!function(t){const e=t.start.nodeAfter;return!!e&&e.hasAttribute("linkHref")}(e)&&this._persistAutoLink(i,e)}_persistAutoLink(t,e){const n=this.editor.model,i=this.editor.plugins.get("Delete");n.enqueueChange((o=>{o.setAttribute("linkHref",t,e),n.enqueueChange((()=>{i.requestUndoOnBackspace()}))}))}}function gM(t){const e=hM.exec(t);return e?e[2]:null}class pM extends Yt{static get requires(){return[eM,dM,mM]}static get pluginName(){return"Link"}}class fM extends Yt{static get requires(){return["ImageEditing","ImageUtils",eM]}static get pluginName(){return"LinkImageEditing"}init(){const t=this.editor,e=t.model.schema;t.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["linkHref"]}),t.conversion.for("upcast").add(function(t){const e=t.plugins.has("ImageInlineEditing"),n=t.plugins.get("ImageUtils");return t=>{t.on("element:a",((t,i,o)=>{const r=i.viewItem,s=n.findViewImgElement(r);if(!s)return;const a=s.findAncestor((t=>n.isBlockImageView(t)));if(e&&!a)return;const c={attributes:["href"]};if(!o.consumable.consume(r,c))return;const l=r.getAttribute("href");if(!l)return;let d=i.modelCursor.parent;if(!d.is("element","imageBlock")){const t=o.convertItem(s,i.modelCursor);i.modelRange=t.modelRange,i.modelCursor=t.modelCursor,d=i.modelCursor.nodeBefore}d&&d.is("element","imageBlock")&&o.writer.setAttribute("linkHref",l,d)}),{priority:"high"})}}(t)),t.conversion.for("downcast").add(function(t){const e=t.plugins.get("ImageUtils");return t=>{t.on("attribute:linkHref:imageBlock",((t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const o=i.mapper.toViewElement(n.item),r=i.writer,s=Array.from(o.getChildren()).find((t=>t.is("element","a"))),a=e.findViewImgElement(o),c=a.parent.is("element","picture")?a.parent:a;if(s)n.attributeNewValue?r.setAttribute("href",n.attributeNewValue,s):(r.move(r.createRangeOn(c),r.createPositionAt(o,0)),r.remove(s));else{const t=r.createContainerElement("a",{href:n.attributeNewValue});r.insert(r.createPositionAt(o,0),t),r.move(r.createRangeOn(c),r.createPositionAt(t,0))}}),{priority:"high"})}}(t)),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const t=this.editor,e=t.commands.get("link").automaticDecorators;e.length&&t.conversion.for("downcast").add(e.getDispatcherForLinkedImage())}_enableManualDecorators(){const t=this.editor,e=t.commands.get("link");for(const n of e.manualDecorators)t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:n.id}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:n.id}),t.conversion.for("downcast").add(xM(n)),t.conversion.for("upcast").add(bM(t,n))}}function xM(t){return e=>{e.on(`attribute:${t.id}:imageBlock`,((e,n,i)=>{const o=i.mapper.toViewElement(n.item),r=Array.from(o.getChildren()).find((t=>t.is("element","a")));if(r){for(const[e,n]of(0,Uu.toMap)(t.attributes))i.writer.setAttribute(e,n,r);t.classes&&i.writer.addClass(t.classes,r);for(const e in t.styles)i.writer.setStyle(e,t.styles[e],r)}}))}}function bM(t,e){const n=t.plugins.has("ImageInlineEditing"),i=t.plugins.get("ImageUtils");return t=>{t.on("element:a",((t,o,r)=>{const s=o.viewItem,a=i.findViewImgElement(s);if(!a)return;const c=a.findAncestor((t=>i.isBlockImageView(t)));if(n&&!c)return;const l=new ke(e._createPattern()).match(s);if(!l)return;if(!r.consumable.consume(s,l.match))return;const d=o.modelCursor.nodeBefore||o.modelCursor.parent;r.writer.setAttribute(e.id,!0,d)}),{priority:"high"})}}class kM extends Yt{static get requires(){return[eM,dM,"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((e,n)=>{this._isSelectedLinkedImage(t.model.document.selection)&&(n.preventDefault(),e.stop())}),{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("linkImage",(n=>{const i=new U(n),o=t.plugins.get("LinkUI"),r=t.commands.get("link");return i.set({isEnabled:!0,label:e("Link image"),icon:cM,keystroke:VD,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value",(t=>!!t)),this.listenTo(i,"execute",(()=>{this._isSelectedLinkedImage(t.model.document.selection)?o._addActionsView():o._showUI(!0)})),i}))}_isSelectedLinkedImage(t){const e=t.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(e)&&e.hasAttribute("linkHref")}}var wM=__webpack_require__(3858),AM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(wM.Z,AM);wM.Z.locals;class _M extends Yt{static get requires(){return[fM,kM]}static get pluginName(){return"LinkImage"}}Symbol.iterator;Symbol.iterator;var vM=__webpack_require__(8676),CM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(vM.Z,CM);vM.Z.locals;var yM=__webpack_require__(9989),EM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(yM.Z,EM);yM.Z.locals;function IM(t,e){const n=e.mapper,i=e.writer,o="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=zM,e}(i),s=i.createContainerElement(o,null);return i.insert(i.createPositionAt(s,0),r),n.bindElements(t,r),r}function SM(t,e,n,i){const o=e.parent,r=n.mapper,s=n.writer;let a=r.toViewPosition(i.createPositionBefore(t));const c=MM(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),l=t.previousSibling;if(c&&c.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=r.toViewElement(c);a=s.breakContainer(s.createPositionAfter(t))}else if(l&&"listItem"==l.name){a=r.toViewPosition(i.createPositionAt(l,"end"));const t=r.findMappedViewAncestor(a),e=OM(t);a=e?s.createPositionBefore(e):s.createPositionAt(t,"end")}else a=r.toViewPosition(i.createPositionBefore(t));if(a=DM(a),s.insert(a,o),l&&"listItem"==l.name){const t=r.toViewElement(l),n=s.createRange(s.createPositionAt(t,0),a).getWalker({ignoreElementEnd:!0});for(const t of n)if(t.item.is("element","li")){const i=s.breakContainer(s.createPositionBefore(t.item)),o=t.item.parent,r=s.createPositionAt(e,"end");TM(s,r.nodeBefore,r.nodeAfter),s.move(s.createRangeOn(o),r),n._position=i}}else{const n=o.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let i=null;for(const e of n.getChildren()){const n=r.toModelElement(e);if(!(n&&n.getAttribute("listIndent")>t.getAttribute("listIndent")))break;i=e}i&&(s.breakContainer(s.createPositionAfter(i)),s.move(s.createRangeOn(i.parent),s.createPositionAt(e,"end")))}}TM(s,o,o.nextSibling),TM(s,o.previousSibling,o)}function TM(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function DM(t){return t.getLastMatchingPosition((t=>t.item.is("uiElement")))}function MM(t,e){const n=!!e.sameIndent,i=!!e.smallerIndent,o=e.listIndent;let r=t;for(;r&&"listItem"==r.name;){const t=r.getAttribute("listIndent");if(n&&o==t||i&&o>t)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function BM(t,e,n,i){t.ui.componentFactory.add(e,(o=>{const r=t.commands.get(e),s=new U(o);return s.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),s}))}function OM(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}function NM(t,e){const n=[],i=t.parent,o={ignoreElementEnd:!1,startPosition:t,shallow:!0,direction:e},r=i.getAttribute("listIndent"),s=[...new Yo(o)].filter((t=>t.item.is("element"))).map((t=>t.item));for(const t of s){if(!t.is("element","listItem"))break;if(t.getAttribute("listIndent")<r)break;if(!(t.getAttribute("listIndent")>r)){if(t.getAttribute("listType")!==i.getAttribute("listType"))break;if(t.getAttribute("listStyle")!==i.getAttribute("listStyle"))break;if(t.getAttribute("listReversed")!==i.getAttribute("listReversed"))break;if(t.getAttribute("listStart")!==i.getAttribute("listStart"))break;"backward"===e?n.unshift(t):n.push(t)}}return n}function PM(t){let e=[...t.document.selection.getSelectedBlocks()].filter((t=>t.is("element","listItem"))).map((e=>{const n=t.change((t=>t.createPositionAt(e,0)));return[...NM(n,"backward"),...NM(n,"forward")]})).flat();return e=[...new Set(e)],e}const RM=["disc","circle","square"],LM=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function jM(t){return RM.includes(t)?"bulleted":LM.includes(t)?"numbered":null}function zM(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:Fn.call(this)}const VM='<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>',FM='<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>';class UM extends Yt{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;BM(this.editor,"numberedList",t("Numbered List"),VM),BM(this.editor,"bulletedList",t("Bulleted List"),FM)}}const HM={},GM={},qM={},WM=[{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 WM)HM[t]=n,GM[t]=e,e&&(qM[e]=t);var KM=__webpack_require__(7133),ZM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(KM.Z,ZM);KM.Z.locals;class YM extends u{constructor(t,{enabledProperties:e,styleButtonViews:n,styleGridAriaLabel:i}){super(t),this.stylesView=null,this.additionalPropertiesCollapsibleView=null,this.startIndexFieldView=null,this.reversedSwitchButtonView=null,this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.focusables=new s;const o=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new Gt({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),e.styles?(this.stylesView=this._createStylesView(n,i),this.children.add(this.stylesView)):o.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e),o.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:o},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);o({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>Uu.global.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 u(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 Uu.FocusTracker,n.keystrokes=new Uu.KeystrokeHandler,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)),t.styles?(this.additionalPropertiesCollapsibleView=new Nu(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 It(this.locale,bl);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,i=n.valueAsNumber;Number.isNaN(i)||(n.checkValidity()?this.fire("listStart",{startIndex:i}):e.errorText=t("Start index must be greater than 0."))})),e}_createReversedSwitchButton(){const t=this.locale.t,e=new q(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 JM=__webpack_require__(4553),$M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(JM.Z,$M);JM.Z.locals;class QM extends Yt{static get pluginName(){return"ListPropertiesUI"}init(){const t=this.editor,e=t.locale.t,n=t.config.get("list.properties");n.styles&&t.ui.componentFactory.add("bulletedList",XM({editor:t,parentCommandName:"bulletedList",buttonLabel:e("Bulleted List"),buttonIcon:FM,styleGridAriaLabel:e("Bulleted list styles toolbar"),styleDefinitions:[{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>'}]})),(n.styles||n.startIndex||n.reversed)&&t.ui.componentFactory.add("numberedList",XM({editor:t,parentCommandName:"numberedList",buttonLabel:e("Numbered List"),buttonIcon:VM,styleGridAriaLabel:e("Numbered list styles toolbar"),styleDefinitions:[{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 lower–roman list style"),tooltip:e("Lower–roman"),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 upper–roman 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 lower–latin 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 upper–latin 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>'}]}))}}function XM({editor:t,parentCommandName:e,buttonLabel:n,buttonIcon:i,styleGridAriaLabel:o,styleDefinitions:r}){const s=t.commands.get(e);return a=>{const c=dl(a,rl),l=c.buttonView;return c.bind("isEnabled").to(s),c.class="ck-list-styles-dropdown",l.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),l.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),l.bind("isOn").to(s,"value",(t=>!!t)),c.once("change:isOpen",(()=>{const n=function({editor:t,dropdownView:e,parentCommandName:n,styleDefinitions:i,styleGridAriaLabel:o}){const r=t.locale,s=t.config.get("list.properties");let a=null;"numberedList"!=n&&(s.startIndex=!1,s.reversed=!1);if(s.styles){const e=t.commands.get("listStyle"),o=function({editor:t,listStyleCommand:e,parentCommandName:n}){const i=t.locale,o=t.commands.get(n);return({label:n,type:r,icon:s,tooltip:a})=>{const c=new U(i);return c.set({label:n,icon:s,tooltip:a}),e.on("change:value",(()=>{c.isOn=e.value===r})),c.on("execute",(()=>{o.value?e.value!==r?t.execute("listStyle",{type:r}):t.execute("listStyle",{type:e.defaultType}):t.model.change((()=>{t.execute("listStyle",{type:r})}))})),c}}({editor:t,parentCommandName:n,listStyleCommand:e}),r="function"==typeof e.isStyleTypeSupported?t=>e.isStyleTypeSupported(t.type):()=>!0;a=i.filter(r).map(o)}const c=new YM(r,{styleGridAriaLabel:o,enabledProperties:s,styleButtonViews:a});s.styles&&pl(e,(()=>c.stylesView.children.find((t=>t.isOn))));if(s.startIndex){const e=t.commands.get("listStart");c.startIndexFieldView.bind("isEnabled").to(e),c.startIndexFieldView.fieldView.bind("value").to(e),c.on("listStart",((e,n)=>t.execute("listStart",n)))}if(s.reversed){const e=t.commands.get("listReversed");c.reversedSwitchButtonView.bind("isEnabled").to(e),c.reversedSwitchButtonView.bind("isOn").to(e,"value",(t=>!!t)),c.on("listReversed",(()=>{const n=e.value;t.execute("listReversed",{reversed:!n})}))}return c.delegate("execute").to(e),c}({editor:t,dropdownView:c,parentCommandName:e,styleGridAriaLabel:o,styleDefinitions:r});c.panelView.children.add(n)})),c.on("execute",(()=>{t.editing.view.focus()})),c}}class tB extends $t{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change((t=>{const e=n[n.length-1];let i=e.nextSibling;for(;i&&"listItem"==i.name&&i.getAttribute("listIndent")>e.getAttribute("listIndent");)n.push(i),i=i.nextSibling;this._indentBy<0&&(n=n.reverse());for(const e of n){const n=e.getAttribute("listIndent")+this._indentBy;n<0?t.rename(e,"paragraph"):t.setAttribute("listIndent",n,e)}this.fire("_executeCleanup",n)}))}_checkEnabled(){const t=(0,Uu.first)(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let i=t.previousSibling;for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;){if(i.getAttribute("listIndent")==e)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}class eB extends $t{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,i=Array.from(n.selection.getSelectedBlocks()).filter((t=>iB(t,e.schema))),o=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(o){let e=i[i.length-1].nextSibling,n=Number.POSITIVE_INFINITY,o=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t<n&&(n=t);const i=t-n;o.push({element:e,listIndent:i}),e=e.nextSibling}o=o.reverse();for(const e of o)t.setAttribute("listIndent",e.listIndent,e.element)}if(!o){let t=Number.POSITIVE_INFINITY;for(const e of i)e.is("element","listItem")&&e.getAttribute("listIndent")<t&&(t=e.getAttribute("listIndent"));t=0===t?1:t,nB(i,!0,t),nB(i,!1,t)}for(const e of i.reverse())o&&"listItem"==e.name?t.rename(e,"paragraph"):o||"listItem"==e.name?o||"listItem"!=e.name||e.getAttribute("listType")==this.type||t.setAttribute("listType",this.type,e):(t.setAttributes({listType:this.type,listIndent:0},e),t.rename(e,"listItem"));this.fire("_executeCleanup",i)}))}_getValue(){const t=(0,Uu.first)(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=(0,Uu.first)(t.getSelectedBlocks());return!!n&&iB(n,e)}}function nB(t,e,n){const i=e?t[0]:t[t.length-1];if(i.is("element","listItem")){let o=i[e?"previousSibling":"nextSibling"],r=i.getAttribute("listIndent");for(;o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=n;)r>o.getAttribute("listIndent")&&(r=o.getAttribute("listIndent")),o.getAttribute("listIndent")==r&&t[e?"unshift":"push"](o),o=o[e?"previousSibling":"nextSibling"]}}function iB(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class oB extends Yt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return jM(t)}getSelectedListItems(t){return PM(t)}getSiblingNodes(t,e){return NM(t,e)}}function rB(t){return(e,n,i)=>{const o=i.consumable;if(!o.test(n.item,"insert")||!o.test(n.item,"attribute:listType")||!o.test(n.item,"attribute:listIndent"))return;o.consume(n.item,"insert"),o.consume(n.item,"attribute:listType"),o.consume(n.item,"attribute:listIndent");const r=n.item;SM(r,IM(r,i),i,t)}}const sB=(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const i=n.mapper.toViewElement(e.item),o=n.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));const r=i.parent,s="numbered"==e.attributeNewValue?"ol":"ul";o.rename(s,r)},aB=(t,e,n)=>{n.consumable.consume(e.item,t.name);const i=n.mapper.toViewElement(e.item).parent,o=n.writer;TM(o,i,i.nextSibling),TM(o,i.previousSibling,i)};const cB=(t,e,n)=>{if(n.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){let t=n.mapper.toViewPosition(e.range.start);const i=n.writer,o=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&(t=i.breakContainer(t),"li"==t.parent.name);){const e=t,n=i.createPositionAt(t.parent,"end");if(!e.isEqual(n)){const t=i.remove(i.createRange(e,n));o.push(t)}t=i.createPositionAfter(t.parent)}if(o.length>0){for(let e=0;e<o.length;e++){const n=t.nodeBefore;if(t=i.insert(t,o[e]).end,e>0){const e=TM(i,n,n.nextSibling);e&&e.parent==n&&t.offset--}}TM(i,t.nodeBefore,t.nodeAfter)}}},lB=(t,e,n)=>{const i=n.mapper.toViewPosition(e.position),o=i.nodeBefore,r=i.nodeAfter;TM(n.writer,o,r)},dB=(t,e,n)=>{if(n.consumable.consume(e.viewItem,{name:!0})){const t=n.writer,i=t.createElement("listItem"),o=function(t){let e=0,n=t.parent;for(;n;){if(n.is("element","li"))e++;else{const t=n.previousSibling;t&&t.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);t.setAttribute("listIndent",o,i);const r=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(t.setAttribute("listType",r,i),!n.safeInsert(i,e.modelCursor))return;const s=function(t,e,n){const{writer:i,schema:o}=n;let r=i.createPositionAfter(t);for(const s of e)if("ul"==s.name||"ol"==s.name)r=n.convertItem(s,r).modelCursor;else{const e=n.convertItem(s,i.createPositionAt(t,"end")),a=e.modelRange.start.nodeAfter;a&&a.is("element")&&!o.checkChild(t,a.name)&&(t=e.modelCursor.parent.is("element","listItem")?e.modelCursor.parent:pB(e.modelCursor),r=i.createPositionAfter(t))}return r}(i,e.viewItem.getChildren(),n);e.modelRange=t.createRange(e.modelCursor,s),n.updateConversionResult(i,e)}},uB=(t,e,n)=>{if(n.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t){!(e.is("element","li")||xB(e))&&e._remove()}}},hB=(t,e,n)=>{if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let n=!1;for(const e of t)n&&!xB(e)&&e._remove(),xB(e)&&(n=!0)}};function mB(t){return(e,n)=>{if(n.isPhantom)return;const i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){const e=n.mapper.toViewElement(i),o=e.getAncestors().find(xB),r=t.createPositionAt(e,0).getWalker();for(const t of r){if("elementStart"==t.type&&t.item.is("element","li")){n.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==o){n.viewPosition=t.nextPosition;break}}}}}const gB=function(t,[e,n]){const i=this;let o,r=e.is("documentFragment")?e.getChild(0):e;if(o=n?i.createSelection(n):i.document.selection,r&&r.is("element","listItem")){const t=o.getFirstPosition();let e=null;if(t.parent.is("element","listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("element","listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;r&&r.is("element","listItem");)r._setAttribute("listIndent",r.getAttribute("listIndent")+t),r=r.nextSibling}}};function pB(t){const e=new Yo({startPosition:t});let n;do{n=e.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function fB(t,e,n,i,o,r){const s=MM(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t}),a=o.mapper,c=o.writer,l=s?s.getAttribute("listIndent"):null;let d;if(s)if(l==t){const t=a.toViewElement(s).parent;d=c.createPositionAfter(t)}else{const t=r.createPositionAt(s,"end");d=a.toViewPosition(t)}else d=n;d=DM(d);for(const t of[...i.getChildren()])xB(t)&&(d=c.move(c.createRangeOn(t),d).end,TM(c,t,t.nextSibling),TM(c,t.previousSibling,t))}function xB(t){return t.is("element","ol")||t.is("element","ul")}class bB extends Yt{static get pluginName(){return"ListEditing"}static get requires(){return[lx,Wp,oB]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var i;t.model.document.registerPostFixer((e=>function(t,e){const n=t.document.differ.getChanges(),i=new Map;let o=!1;for(const i of n)if("insert"==i.type&&"listItem"==i.name)r(i.position);else if("insert"==i.type&&"listItem"!=i.name){if("$text"!=i.name){const n=i.position.nodeAfter;n.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",n),o=!0),n.hasAttribute("listType")&&(e.removeAttribute("listType",n),o=!0),n.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",n),o=!0),n.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",n),o=!0),n.hasAttribute("listStart")&&(e.removeAttribute("listStart",n),o=!0);for(const e of Array.from(t.createRangeIn(n)).filter((t=>t.item.is("element","listItem"))))r(e.previousPosition)}r(i.position.getShiftedBy(i.length))}else"remove"==i.type&&"listItem"==i.name?r(i.position):("attribute"==i.type&&"listIndent"==i.attributeKey||"attribute"==i.type&&"listType"==i.attributeKey)&&r(i.range.start);for(const t of i.values())s(t),a(t);return o;function r(t){const e=t.nodeBefore;if(e&&e.is("element","listItem")){let t=e;if(i.has(t))return;for(let e=t.previousSibling;e&&e.is("element","listItem");e=t.previousSibling)if(t=e,i.has(t))return;i.set(e,t)}else{const e=t.nodeAfter;e&&e.is("element","listItem")&&i.set(e,e)}}function s(t){let n=0,i=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(r>n){let s;null===i?(i=r-n,s=n):(i>r&&(i=r),s=r-i),e.setAttribute("listIndent",s,t),o=!0}else i=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function a(t){let n=[],i=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){const i=n[r];t.getAttribute("listType")!=i&&(e.setAttribute("listType",i,t),o=!0)}else n[r]=t.getAttribute("listType");i=t,t=t.nextSibling}}}(t.model,e))),n.mapper.registerViewToModelLength("li",kB),e.mapper.registerViewToModelLength("li",kB),n.mapper.on("modelToViewPosition",mB(n.view)),n.mapper.on("viewToModelPosition",(i=t.model,(t,e)=>{const n=e.viewPosition,o=n.parent,r=e.mapper;if("ul"==o.name||"ol"==o.name){if(n.isAtEnd){const t=r.toModelElement(n.nodeBefore),o=r.getModelLength(n.nodeBefore);e.modelPosition=i.createPositionBefore(t).getShiftedBy(o)}else{const t=r.toModelElement(n.nodeAfter);e.modelPosition=i.createPositionBefore(t)}t.stop()}else if("li"==o.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const s=r.toModelElement(o);let a=1,c=n.nodeBefore;for(;c&&xB(c);)a+=r.getModelLength(c),c=c.previousSibling;e.modelPosition=i.createPositionBefore(s).getShiftedBy(a),t.stop()}})),e.mapper.on("modelToViewPosition",mB(n.view)),t.conversion.for("editingDowncast").add((e=>{e.on("insert",cB,{priority:"high"}),e.on("insert:listItem",rB(t.model)),e.on("attribute:listType:listItem",sB,{priority:"high"}),e.on("attribute:listType:listItem",aB,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return(e,n,i)=>{if(!i.consumable.consume(n.item,"attribute:listIndent"))return;const o=i.mapper.toViewElement(n.item),r=i.writer;r.breakContainer(r.createPositionBefore(o)),r.breakContainer(r.createPositionAfter(o));const s=o.parent,a=s.previousSibling,c=r.createRangeOn(s);r.remove(c),a&&a.nextSibling&&TM(r,a,a.nextSibling),fB(n.attributeOldValue+1,n.range.start,c.start,o,i,t),SM(n.item,o,i,t);for(const t of n.item.getChildren())i.consumable.consume(t,"insert")}}(t.model)),e.on("remove:listItem",function(t){return(e,n,i)=>{const o=i.mapper.toViewPosition(n.position).getLastMatchingPosition((t=>!t.item.is("element","li"))).nodeAfter,r=i.writer;r.breakContainer(r.createPositionBefore(o)),r.breakContainer(r.createPositionAfter(o));const s=o.parent,a=s.previousSibling,c=r.createRangeOn(s),l=r.remove(c);a&&a.nextSibling&&TM(r,a,a.nextSibling),fB(i.mapper.toModelElement(o).getAttribute("listIndent")+1,n.position,c.start,o,i,t);for(const t of r.createRangeIn(l).getItems())i.mapper.unbindViewElement(t);e.stop()}}(t.model)),e.on("remove",lB,{priority:"low"})})),t.conversion.for("dataDowncast").add((e=>{e.on("insert",cB,{priority:"high"}),e.on("insert:listItem",rB(t.model))})),t.conversion.for("upcast").add((t=>{t.on("element:ul",uB,{priority:"high"}),t.on("element:ol",uB,{priority:"high"}),t.on("element:li",hB,{priority:"high"}),t.on("element:li",dB)})),t.model.on("insertContent",gB,{priority:"high"}),t.commands.add("numberedList",new eB(t,"numbered")),t.commands.add("bulletedList",new eB(t,"bulleted")),t.commands.add("indentList",new tB(t,"forward")),t.commands.add("outdentList",new tB(t,"backward"));const o=n.view.document;this.listenTo(o,"enter",((t,e)=>{const n=this.editor.model.document,i=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(o,"delete",((t,e)=>{if("backward"!==e.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const i=n.getFirstPosition();if(!i.isAtStart)return;const o=i.parent;if("listItem"!==o.name)return;o.previousSibling&&"listItem"===o.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(t.editing.view.document,"tab",((e,n)=>{const i=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(i).isEnabled&&(t.execute(i),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function kB(t){let e=1;for(const n of t.getChildren())if("ul"==n.name||"ol"==n.name)for(const t of n.getChildren())e+=kB(t);return e}class wB extends Yt{static get requires(){return[bB,UM]}static get pluginName(){return"List"}}class AB extends $t{constructor(t,e){super(t),this.defaultType=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){this._tryToConvertItemsToList(t);const e=this.editor.model,n=PM(e);n.length&&e.change((e=>{for(const i of n)e.setAttribute("listStyle",t.type||this.defaultType,i)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")?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=jM(t.type);if(!e)return;const n=this.editor,i=`${e}List`;n.commands.get(i).value||n.execute(i)}}class _B extends $t{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,n=PM(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const i of n)e.setAttribute("listReversed",!!t.reversed,i)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listReversed"):null}}class vB extends $t{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute({startIndex:t=1}={}){const e=this.editor.model,n=PM(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const i of n)e.setAttribute("listStart",t>=0?t:1,i)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listStart"):null}}const CB="default";class yB extends Yt{static get requires(){return[bB]}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=function(t){const e=[];t.styles&&e.push({attributeName:"listStyle",defaultValue:CB,addCommand(t){t.commands.add("listStyle",new AB(t,CB))},appliesToListItem:()=>!0,setAttributeOnDowncast(t,e,n){e&&e!==CB?t.setStyle("list-style-type",e,n):t.removeStyle("list-style-type",n)},getAttributeOnUpcast:t=>t.getStyle("list-style-type")||CB});t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,addCommand(t){t.commands.add("listReversed",new _B(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),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,addCommand(t){t.commands.add("listStart",new vB(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),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"));e.schema.extend("listItem",{allowAttributes:n.map((t=>t.attributeName))});for(const e of n)e.addCommand(t);var i;this.listenTo(t.commands.get("indentList"),"_executeCleanup",function(t,e){return(n,i)=>{const o=i[0],r=o.getAttribute("listIndent"),s=i.filter((t=>t.getAttribute("listIndent")===r));let a=null;o.previousSibling.getAttribute("listIndent")+1!==r&&(a=MM(o.previousSibling,{sameIndent:!0,direction:"backward",listIndent:r})),t.model.change((t=>{for(const n of s)for(const i of e)if(i.appliesToListItem(n)){const e=null==a?i.defaultValue:a.getAttribute(i.attributeName);t.setAttribute(i.attributeName,e,n)}}))}}(t,n)),this.listenTo(t.commands.get("outdentList"),"_executeCleanup",function(t,e){return(n,i)=>{if(!(i=i.reverse().filter((t=>t.is("element","listItem")))).length)return;const o=i[0].getAttribute("listIndent"),r=i[0].getAttribute("listType");let s=i[0].previousSibling;if(s.is("element","listItem"))for(;s.getAttribute("listIndent")!==o;)s=s.previousSibling;else s=null;s||(s=i[i.length-1].nextSibling),s&&s.is("element","listItem")&&s.getAttribute("listType")===r&&t.model.change((t=>{const n=i.filter((t=>t.getAttribute("listIndent")===o));for(const i of n)for(const n of e)if(n.appliesToListItem(i)){const e=n.attributeName,o=s.getAttribute(e);t.setAttribute(e,o,i)}}))}}(t,n)),this.listenTo(t.commands.get("bulletedList"),"_executeCleanup",SB(t)),this.listenTo(t.commands.get("numberedList"),"_executeCleanup",SB(t)),e.document.registerPostFixer(function(t,e){return n=>{let i=!1;const o=TB(t.model.document.differ.getChanges()).filter((t=>"todo"!==t.getAttribute("listType")));if(!o.length)return i;let r=o[o.length-1].nextSibling;if((!r||!r.is("element","listItem"))&&(r=o[0].previousSibling,r)){const t=o[0].getAttribute("listIndent");for(;r.is("element","listItem")&&r.getAttribute("listIndent")!==t&&(r=r.previousSibling,r););}for(const t of e){const e=t.attributeName;for(const s of o)if(t.appliesToListItem(s))if(s.hasAttribute(e)){const o=s.previousSibling;IB(o,s,t.attributeName)&&(n.setAttribute(e,o.getAttribute(e),s),i=!0)}else EB(r,s,t)?n.setAttribute(e,r.getAttribute(e),s):n.setAttribute(e,t.defaultValue,s),i=!0;else n.removeAttribute(e,s)}return i}}(t,n)),t.conversion.for("upcast").add((i=n,t=>{t.on("element:li",((t,e,n)=>{if(!e.modelRange)return;const o=e.viewItem.parent,r=e.modelRange.start.nodeAfter||e.modelRange.end.nodeBefore;for(const t of i)if(t.appliesToListItem(r)){const e=t.getAttributeOnUpcast(o);n.writer.setAttribute(t.attributeName,e,r)}}),{priority:"low"})})),t.conversion.for("downcast").add(function(t){return n=>{for(const i of t)n.on(`attribute:${i.attributeName}:listItem`,((t,n,o)=>{const r=o.writer,s=n.item,a=MM(s.previousSibling,{sameIndent:!0,listIndent:s.getAttribute("listIndent"),direction:"backward"}),c=o.mapper.toViewElement(s);e(s,a)||r.breakContainer(r.createPositionBefore(c)),i.setAttributeOnDowncast(r,n.attributeNewValue,c.parent)}),{priority:"low"})};function e(t,e){return e&&t.getAttribute("listType")===e.getAttribute("listType")&&t.getAttribute("listIndent")===e.getAttribute("listIndent")&&t.getAttribute("listStyle")===e.getAttribute("listStyle")&&t.getAttribute("listReversed")===e.getAttribute("listReversed")&&t.getAttribute("listStart")===e.getAttribute("listStart")}}(n)),this._mergeListAttributesWhileMergingLists(n)}afterInit(){const t=this.editor;t.commands.get("todoList")&&t.model.document.registerPostFixer(function(t){return e=>{const n=TB(t.model.document.differ.getChanges()).filter((t=>"todo"===t.getAttribute("listType")&&(t.hasAttribute("listStyle")||t.hasAttribute("listReversed")||t.hasAttribute("listStart"))));if(!n.length)return!1;for(const t of n)e.removeAttribute("listStyle",t),e.removeAttribute("listReversed",t),e.removeAttribute("listStart",t);return!0}}(t))}_mergeListAttributesWhileMergingLists(t){const e=this.editor.model;let n;this.listenTo(e,"deleteContent",((t,[e])=>{const i=e.getFirstPosition(),o=e.getLastPosition();if(i.parent===o.parent)return;if(!i.parent.is("element","listItem"))return;const r=o.parent.nextSibling;if(!r||!r.is("element","listItem"))return;const s=MM(i.parent,{sameIndent:!0,listIndent:r.getAttribute("listIndent")});s&&s.getAttribute("listType")===r.getAttribute("listType")&&(n=s)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{n&&(e.change((e=>{const i=MM(n.nextSibling,{sameIndent:!0,listIndent:n.getAttribute("listIndent"),direction:"forward"});if(!i)return void(n=null);const o=[i,...NM(e.createPositionAt(i,0),"forward")];for(const i of o)for(const o of t)if(o.appliesToListItem(i)){const t=o.attributeName,r=n.getAttribute(t);e.setAttribute(t,r,i)}})),n=null)}),{priority:"low"})}}function EB(t,e,n){if(!t)return!1;const i=t.getAttribute(n.attributeName);return!!i&&(i!=n.defaultValue&&t.getAttribute("listType")===e.getAttribute("listType"))}function IB(t,e,n){if(!t||!t.is("element","listItem"))return!1;if(e.getAttribute("listType")!==t.getAttribute("listType"))return!1;const i=t.getAttribute("listIndent");if(i<1||i!==e.getAttribute("listIndent"))return!1;const o=t.getAttribute(n);return!(!o||o===e.getAttribute(n))}function SB(t){return(e,n)=>{n=n.filter((t=>t.is("element","listItem"))),t.model.change((t=>{for(const e of n)t.removeAttribute("listStyle",e)}))}}function TB(t){const e=[];for(const n of t){const t=DB(n);t&&t.is("element","listItem")&&e.push(t)}return e}function DB(t){return"attribute"===t.type?t.range.start.nodeAfter:"insert"===t.type?t.position.nodeAfter:null}class MB extends Yt{static get requires(){return[yB,QM]}static get pluginName(){return"ListProperties"}}const BB="todoListChecked";class OB extends $t{constructor(t){super(t),this._selectedElements=[],this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){this._selectedElements=this._getSelectedItems(),this.value=this._selectedElements.every((t=>!!t.getAttribute(BB))),this.isEnabled=!!this._selectedElements.length}_getSelectedItems(){const t=this.editor.model,e=t.schema,n=t.document.selection.getFirstRange(),i=n.start.parent,o=[];e.checkAttribute(i,BB)&&o.push(i);for(const t of n.getItems())e.checkAttribute(t,BB)&&!o.includes(t)&&o.push(t);return o}execute(t={}){this.editor.model.change((e=>{for(const n of this._selectedElements){(void 0===t.forceValue?!this.value:t.forceValue)?e.setAttribute(BB,!0,n):e.removeAttribute(BB,n)}}))}}const NB=(t,e,n)=>{const i=e.modelCursor,o=i.parent,r=e.viewItem;if("checkbox"!=r.getAttribute("type")||"listItem"!=o.name||!i.isAtStart)return;if(!n.consumable.consume(r,{name:!0}))return;const s=n.writer;s.setAttribute("listType","todo",o),e.viewItem.hasAttribute("checked")&&s.setAttribute("todoListChecked",!0,o),e.modelRange=s.createRange(i)};function PB(t){return(e,n)=>{const i=n.modelPosition,o=i.parent;if(!o.is("element","listItem")||"todo"!=o.getAttribute("listType"))return;const r=LB(n.mapper.toViewElement(o),t);r&&(n.viewPosition=n.mapper.findPositionIn(r,i.offset))}}function RB(t,e,n,i){return e.createUIElement("label",{class:"todo-list__label",contenteditable:!1},(function(e){const o=(0,Uu.createElement)(document,"input",{type:"checkbox",tabindex:"-1"});n&&o.setAttribute("checked","checked"),o.addEventListener("change",(()=>i(t)));const r=this.toDomElement(e);return r.appendChild(o),r}))}function LB(t,e){const n=e.createRangeIn(t);for(const t of n)if(t.item.is("containerElement","span")&&t.item.hasClass("todo-list__label__description"))return t.item}const jB=(0,Uu.parseKeystroke)("Ctrl+Enter");class zB extends Yt{static get pluginName(){return"TodoListEditing"}static get requires(){return[bB]}init(){const t=this.editor,{editing:e,data:n,model:i}=t;i.schema.extend("listItem",{allowAttributes:["todoListChecked"]}),i.schema.addAttributeCheck(((t,e)=>{const n=t.last;if("todoListChecked"==e&&"listItem"==n.name&&"todo"!=n.getAttribute("listType"))return!1})),t.commands.add("todoList",new eB(t,"todo"));const o=new OB(t);var r,s;t.commands.add("checkTodoList",o),t.commands.add("todoListCheck",o),n.downcastDispatcher.on("insert:listItem",function(t){return(e,n,i)=>{const o=i.consumable;if(!o.test(n.item,"insert")||!o.test(n.item,"attribute:listType")||!o.test(n.item,"attribute:listIndent"))return;if("todo"!=n.item.getAttribute("listType"))return;const r=n.item;o.consume(r,"insert"),o.consume(r,"attribute:listType"),o.consume(r,"attribute:listIndent"),o.consume(r,"attribute:todoListChecked");const s=i.writer,a=IM(r,i);s.addClass("todo-list",a.parent);const c=s.createContainerElement("label",{class:"todo-list__label"}),l=s.createEmptyElement("input",{type:"checkbox",disabled:"disabled"}),d=s.createContainerElement("span",{class:"todo-list__label__description"});r.getAttribute("todoListChecked")&&s.setAttribute("checked","checked",l),s.insert(s.createPositionAt(a,0),c),s.insert(s.createPositionAt(c,0),l),s.insert(s.createPositionAfter(l),d),SM(r,a,i,t)}}(i),{priority:"high"}),n.upcastDispatcher.on("element:input",NB,{priority:"high"}),e.downcastDispatcher.on("insert:listItem",function(t,e){return(n,i,o)=>{const r=o.consumable;if(!r.test(i.item,"insert")||!r.test(i.item,"attribute:listType")||!r.test(i.item,"attribute:listIndent"))return;if("todo"!=i.item.getAttribute("listType"))return;const s=i.item;r.consume(s,"insert"),r.consume(s,"attribute:listType"),r.consume(s,"attribute:listIndent"),r.consume(s,"attribute:todoListChecked");const a=o.writer,c=IM(s,o),l=!!s.getAttribute("todoListChecked"),d=RB(s,a,l,e),u=a.createContainerElement("span",{class:"todo-list__label__description"});a.addClass("todo-list",c.parent),a.insert(a.createPositionAt(c,0),d),a.insert(a.createPositionAfter(d),u),SM(s,c,o,t)}}(i,(t=>this._handleCheckmarkChange(t))),{priority:"high"}),e.downcastDispatcher.on("attribute:listType:listItem",(r=t=>this._handleCheckmarkChange(t),s=e.view,(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=n.mapper.toViewElement(e.item),o=n.writer,a=function(t,e){const n=e.createRangeIn(t);for(const t of n)if(t.item.is("uiElement","label"))return t.item}(i,s);if("todo"==e.attributeNewValue){const t=!!e.item.getAttribute("todoListChecked"),n=RB(e.item,o,t,r),s=o.createContainerElement("span",{class:"todo-list__label__description"}),a=o.createRangeIn(i),c=OM(i),l=DM(a.start),d=c?o.createPositionBefore(c):a.end,u=o.createRange(l,d);o.addClass("todo-list",i.parent),o.move(u,o.createPositionAt(s,0)),o.insert(o.createPositionAt(i,0),n),o.insert(o.createPositionAfter(n),s)}else if("todo"==e.attributeOldValue){const t=LB(i,s);o.removeClass("todo-list",i.parent),o.remove(a),o.move(o.createRangeIn(t),o.createPositionBefore(t)),o.remove(t)}})),e.downcastDispatcher.on("attribute:todoListChecked:listItem",function(t){return(e,n,i)=>{if("todo"!=n.item.getAttribute("listType"))return;if(!i.consumable.consume(n.item,"attribute:todoListChecked"))return;const{mapper:o,writer:r}=i,s=!!n.item.getAttribute("todoListChecked"),a=o.toViewElement(n.item).getChild(0),c=RB(n.item,r,s,t);r.insert(r.createPositionAfter(a),c),r.remove(a)}}((t=>this._handleCheckmarkChange(t)))),e.mapper.on("modelToViewPosition",PB(e.view)),n.mapper.on("modelToViewPosition",PB(e.view)),this.listenTo(e.view.document,"arrowKey",function(t,e){return(n,i)=>{if("left"!=(0,Uu.getLocalizedArrowKeyCodeDirection)(i.keyCode,e.contentLanguageDirection))return;const o=t.schema,r=t.document.selection;if(!r.isCollapsed)return;const s=r.getFirstPosition(),a=s.parent;if("listItem"===a.name&&"todo"==a.getAttribute("listType")&&s.isAtStart){const e=o.getNearestSelectionRange(t.createPositionBefore(a),"backward");e&&t.change((t=>t.setSelection(e))),i.preventDefault(),i.stopPropagation(),n.stop()}}}(i,t.locale),{context:"li"}),this.listenTo(e.view.document,"keydown",((e,n)=>{(0,Uu.getCode)(n)===jB&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"});const a=new Set;this.listenTo(i,"applyOperation",((t,e)=>{const n=e[0];if("rename"==n.type&&"listItem"==n.oldName){const t=n.position.nodeAfter;t.hasAttribute("todoListChecked")&&a.add(t)}else if("changeAttribute"==n.type&&"listType"==n.key&&"todo"===n.oldValue)for(const t of n.range.getItems())t.hasAttribute("todoListChecked")&&"todo"!==t.getAttribute("listType")&&a.add(t)})),i.document.registerPostFixer((t=>{let e=!1;for(const n of a)t.removeAttribute("todoListChecked",n),e=!0;return a.clear(),e}))}_handleCheckmarkChange(t){const e=this.editor,n=e.model,i=Array.from(n.document.selection.getRanges());n.change((n=>{n.setSelection(t,"end"),e.execute("checkTodoList"),n.setSelection(i)}))}}const VB='<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>';class FB extends Yt{static get pluginName(){return"TodoListUI"}init(){const t=this.editor.t;BM(this.editor,"todoList",t("To-do List"),VB)}}var UB=__webpack_require__(1588),HB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(UB.Z,HB);UB.Z.locals;class GB extends Yt{static get requires(){return[zB,FB]}static get pluginName(){return"TodoList"}}(0,Uu.parseKeystroke)("Ctrl+Enter");function qB(t,e){const n=(n,i,o)=>{if(!o.consumable.consume(i.item,n.name))return;const r=i.attributeNewValue,s=o.writer,a=o.mapper.toViewElement(i.item),c=[...a.getChildren()].find((t=>t.getCustomProperty("media-content")));s.remove(c);const l=t.getMediaViewElement(s,r,e);s.insert(s.createPositionAt(a,0),l)};return t=>{t.on("attribute:url:media",n)}}function WB(t,e,n,i){return t.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(t,n,i),t.createSlot()])}function KB(t){const e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function ZB(t,e,n,i){t.change((o=>{const r=o.createElement("media",{url:e});t.insertObject(r,n,null,{setSelection:"on",findOptimalPosition:i?"auto":void 0})}))}class YB extends $t{refresh(){const t=this.editor.model,e=t.document.selection,n=KB(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(t){const e=t.getSelectedElement();return!!e&&"media"===e.name}(e)||function(t,e){const n=u_(t,e);let i=n.start.parent;i.isEmpty&&!e.schema.isLimit(i)&&(i=i.parent);return e.schema.checkChild(i,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,i=KB(n);i?e.change((e=>{e.setAttribute("url",t,i)})):ZB(e,t,n,!0)}}class JB{constructor(t,e){const n=e.providers,i=e.extraProviders||[],o=new Set(e.removeProviders),r=n.concat(i).filter((t=>{const e=t.name;return e?!o.has(e):((0,Uu.logWarning)("media-embed-no-provider-name",{provider:t}),!1)}));this.locale=t,this.providerDefinitions=r}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new $B(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,i=(0,Uu.toArray)(e.url);for(const e of i){const i=this._getUrlMatches(t,e);if(i)return new $B(this.locale,t,i,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let i=t.replace(/^https?:\/\//,"");return n=i.match(e),n||(i=i.replace(/^www\./,""),n=i.match(e),n||null)}}class $B{constructor(t,e,n,i){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=i}getViewElement(t,e){const n={};let i;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const o=this._getPreviewHtml(e);i=t.createRawElement("div",n,((t,e)=>{e.setContentOf(t,o)}))}else this.url&&(n.url=this.url),i=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,i),i}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new j,e=this._locale.t;t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42";return new g({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var QB=__webpack_require__(952),XB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(QB.Z,XB);QB.Z.locals;class tO extends Yt{static get pluginName(){return"MediaEmbedEditing"}constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:t=>{const e=t[1],n=t[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${e}${n?`?start=${n}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new JB(t.locale,t.config.get("mediaEmbed"))}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion,o=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),s=this.registry;t.commands.add("mediaEmbed",new YB(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const n=t.getAttribute("url");return WB(e,s,n,{elementName:r,renderMediaPreview:!!n&&o})}}),i.for("dataDowncast").add(qB(s,{elementName:r,renderMediaPreview:o})),i.for("editingDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const i=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),s_(t,e,{label:n})}(WB(e,s,i,{elementName:r,renderForEditingView:!0}),e,n("media widget"))}}),i.for("editingDowncast").add(qB(s,{elementName:r,renderForEditingView:!0})),i.for("upcast").elementToElement({view:t=>["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null,model:(t,{writer:e})=>{const n=t.getAttribute("url");return s.hasMedia(n)?e.createElement("media",{url:n}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(t,{writer:e})=>{const n=t.getAttribute("data-oembed-url");return s.hasMedia(n)?e.createElement("media",{url:n}):null}}).add((t=>{t.on("element:figure",((t,e,n)=>{if(!n.consumable.consume(e.viewItem,{name:!0,classes:"media"}))return;const{modelRange:i,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=o;(0,Uu.first)(i.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"})}))}))}}const eO=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class nO extends Yt{static get requires(){return[ev,Wp,xv]}static get pluginName(){return"AutoMediaEmbed"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",(()=>{const t=e.selection.getFirstRange(),n=na.fromPosition(t.start);n.stickiness="toPrevious";const i=na.fromPosition(t.end);i.stickiness="toNext",e.once("change:data",(()=>{this._embedMediaBetweenPositions(n,i),n.detach(),i.detach()}),{priority:"high"})}));t.commands.get("undo").on("execute",(()=>{this._timeoutId&&(Uu.global.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,i=n.plugins.get(tO).registry,o=new xr(t,e),r=o.getWalker({ignoreElementEnd:!0});let s="";for(const t of r)t.item.is("$textProxy")&&(s+=t.item.data);if(s=s.trim(),!s.match(eO))return void o.detach();if(!i.hasMedia(s))return void o.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=na.fromPosition(t),this._timeoutId=Uu.global.window.setTimeout((()=>{n.model.change((t=>{this._timeoutId=null,t.remove(o),o.detach();let e=null;"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert),ZB(n.model,s,e,!1),this._positionToInsert.detach(),this._positionToInsert=null})),n.plugins.get(Wp).requestUndoOnBackspace()}),100)):o.detach()}}var iO=__webpack_require__(3525),oO={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(iO.Z,oO);iO.Z.locals;class rO extends u{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Uc.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(t=>!!t)),this.cancelButtonView=this._createButton(n("Cancel"),Uc.cancel,"ck-button-cancel","cancel"),this._focusables=new s,this._focusCycler=new Gt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),i({view:this});[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new It(this.locale,xl),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),e}_createButton(t,e,n,i){const o=new U(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}}class sO extends Yt{static get requires(){return[tO]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",(t=>{const n=dl(t);return this._setUpDropdown(n,e),n}))}_setUpDropdown(t,e){const i=this.editor,o=i.t,r=t.buttonView,s=i.plugins.get(tO).registry;t.once("change:isOpen",(()=>{const o=new(n(rO))(function(t,e){return[e=>{if(!e.url.length)return t("The URL must not be empty.")},n=>{if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(i.t,s),i.locale);t.panelView.children.add(o),r.on("open",(()=>{o.disableCssTransitions(),o.url=e.value||"",o.urlInputView.fieldView.select(),o.enableCssTransitions()}),{priority:"low"}),t.on("submit",(()=>{o.isValid()&&(i.execute("mediaEmbed",o.url),i.editing.view.focus())})),t.on("change:isOpen",(()=>o.resetFormStatus())),t.on("cancel",(()=>{i.editing.view.focus()})),o.delegate("submit","cancel").to(t),o.urlInputView.fieldView.bind("value").to(e,"value"),o.urlInputView.bind("isEnabled").to(e,"isEnabled")})),t.bind("isEnabled").to(e),r.set({label:o("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0})}}var aO=__webpack_require__(5777),cO={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(aO.Z,cO);aO.Z.locals;class lO extends Yt{static get requires(){return[tO,sO,nO,I_]}static get pluginName(){return"MediaEmbed"}}var dO=__webpack_require__(9289),uO={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(dO.Z,uO);dO.Z.locals;class hO extends u{constructor(t){super(t);const e=t.t;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._replaceInputView=this._createInputField(e("Replace with…")),this._findButtonView=this._createButton({label:e("Find"),class:"ck-button-find ck-button-action",withText:!0}),this._findPrevButtonView=this._createButton({label:e("Previous result"),class:"ck-button-prev",icon:Xd,keystroke:"Shift+F3",tooltip:!0}),this._findNextButtonView=this._createButton({label:e("Next result"),class:"ck-button-next",icon:Xd,keystroke:"F3",tooltip:!0}),this._optionsDropdown=this._createOptionsDropdown(),this._replaceButtonView=this._createButton({label:e("Replace"),class:"ck-button-replace",withText:!0}),this._replaceAllButtonView=this._createButton({label:e("Replace all"),class:"ck-button-replaceall",withText:!0}),this._findFieldsetView=this._createFindFieldset(),this._replaceFieldsetView=this._createReplaceFieldset(),this._focusTracker=new Uu.FocusTracker,this._keystrokes=new Uu.KeystrokeHandler,this._focusables=new s,this._focusCycler=new Gt({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this._keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"],tabindex:"-1"},children:[new Jd(t,{label:e("Find and replace")}),this._findFieldsetView,this._replaceFieldsetView]})}render(){super.render(),i({view:this}),this._initFocusCycling(),this._initKeystrokeHandling()}destroy(){super.destroy(),this._focusTracker.destroy(),this._keystrokes.destroy()}focus(){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}_createFindFieldset(){const t=this.locale,e=new u(t);return this._findInputView.fieldView.on("input",(()=>{this.isDirty=!0})),this._findButtonView.on("execute",this._onFindButtonExecute.bind(this)),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(),e.setTemplate({tag:"fieldset",attributes:{class:["ck","ck-find-and-replace-form__find"]},children:[this._findInputView,this._findButtonView,this._findPrevButtonView,this._findNextButtonView]}),e}_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,i=new u(this.locale);this.bind("_resultsCounterText").to(this,"highlightOffset",this,"matchCount",((t,n)=>e("%0 of %1",[t,n]))),i.setTemplate({tag:"span",attributes:{class:["ck","ck-results-counter",n.if("isDirty","ck-hidden")]},children:[{text:n.to("_resultsCounterText")}]});const o=()=>{const e=this._findInputView.fieldView.element;if(!e||!(0,Uu.isVisible)(e))return;const n=new Uu.Rect(i.element).width,o="ltr"===t.uiLanguageDirection?"paddingRight":"paddingLeft";e.style[o]=n?`calc( 2 * var(--ck-spacing-standard) + ${n}px )`:""};this.on("change:_resultsCounterText",o,{priority:"low"}),this.on("change:isDirty",o,{priority:"low"}),this._findInputView.template.children[0].children.push(i)}_createReplaceFieldset(){const t=this.locale.t,e=new u(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._replaceInputView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replace:t},e)=>t&&e)),this._replaceInputView.bind("infoText").to(this._replaceInputView,"isEnabled",this._replaceInputView,"isFocused",((e,n)=>e||!n?"":t("Tip: Find some text first in order to replace it."))),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()})),e.setTemplate({tag:"fieldset",attributes:{class:["ck","ck-find-and-replace-form__replace"]},children:[this._replaceInputView,this._optionsDropdown,this._replaceButtonView,this._replaceAllButtonView]}),e}_createOptionsDropdown(){const t=this.locale.t,e=dl(this.locale);e.class="ck-options-dropdown",e.buttonView.set({withText:!1,label:t("Show options"),icon:Uc.cog,tooltip:!0});const n=new Qd({withText:!0,label:t("Match case"),_isMatchCaseSwitch:!0}),i=new Qd({withText:!0,label:t("Whole words only")});return n.bind("isOn").to(this,"_matchCase"),i.bind("isOn").to(this,"_wholeWordsOnly"),e.on("execute",(t=>{t.source._isMatchCaseSwitch?this._matchCase=!this._matchCase:this._wholeWordsOnly=!this._wholeWordsOnly,this.isDirty=!0})),ml(e,new Uu.Collection([{type:"switchbutton",model:n},{type:"switchbutton",model:i}])),e}_initFocusCycling(){[this._findInputView,this._findButtonView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView,this._optionsDropdown,this._replaceButtonView,this._replaceAllButtonView].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 U(this.locale);return e.set(t),e}_createInputField(t){const e=new It(this.locale,xl);return e.label=t,e}}class mO extends Yt{static get pluginName(){return"FindAndReplaceUI"}constructor(t){super(t),this.formView=null}init(){const t=this.editor;t.ui.componentFactory.add("findAndReplace",(e=>{const i=dl(e),o=t.commands.get("find");return i.bind("isEnabled").to(o),i.once("change:isOpen",(()=>{this.formView=new(n(hO))(t.locale),i.panelView.children.add(this.formView),this._setupFormView(this.formView)})),i.on("change:isOpen",((t,e,n)=>{n?(this.formView.disableCssTransitions(),this.formView.reset(),this.formView._findInputView.fieldView.select(),this.formView.enableCssTransitions()):this.fire("searchReseted")}),{priority:"low"}),this._setupDropdownButton(i),i}))}_setupDropdownButton(t){const e=this.editor,n=e.locale.t;t.buttonView.set({icon:'<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>',label:n("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),e.keystrokes.set("Ctrl+F",((e,n)=>{t.isEnabled&&(t.isOpen=!0,n())}))}_setupFormView(t){const e=this.editor.commands,n=this.editor.plugins.get("FindAndReplaceEditing").state,i={before:-1,same:0,after:1,different:1};t.bind("highlightOffset").to(n,"highlightedResult",(t=>t?Array.from(n.results).sort(((t,e)=>i[t.marker.getStart().compareWith(e.marker.getStart())])).indexOf(t)+1:0)),t.listenTo(n.results,"change",(()=>{t.matchCount=n.results.length}));const o=e.get("findNext"),r=e.get("findPrevious"),s=e.get("replace"),a=e.get("replaceAll");t.bind("_areCommandsEnabled").to(o,"isEnabled",r,"isEnabled",s,"isEnabled",a,"isEnabled",((t,e,n,i)=>({findNext:t,findPrevious:e,replace:n,replaceAll:i}))),t.delegate("findNext","findPrevious","replace","replaceAll").to(this),t.on("change:isDirty",((t,e,n)=>{n&&this.fire("searchReseted")}))}}class gO extends $t{constructor(t,e){super(t),this.isEnabled=!0,this.affectsData=!1,this._state=e}execute(t,{matchCase:e,wholeWords:n}={}){const{editor:i}=this,{model:o}=i,r=i.plugins.get("FindAndReplaceUtils");let s;"string"==typeof t?(s=r.findByTextCallback(t,{matchCase:e,wholeWords:n}),this._state.searchText=t):s=t;const a=o.document.getRootNames().reduce(((t,e)=>r.updateFindResultFromRange(o.createRangeIn(o.document.getRoot(e)),o,s,t)),null);return this._state.clear(o),this._state.results.addMany(a),this._state.highlightedResult=a.get(0),"string"==typeof t&&(this._state.searchText=t),this._state.matchCase=!!e,this._state.matchWholeWords=!!n,{results:a,findCallback:s}}}class pO extends $t{constructor(t,e){super(t),this.isEnabled=!0,this._state=e,this._isEnabledBasedOnSelection=!1}_replace(t,e){const{model:n}=this.editor,i=e.marker.getRange();n.canEditAt(i)&&n.change((o=>{if("$graveyard"===i.root.rootName)return void this._state.results.remove(e);let r={};for(const t of i.getItems())if(t.is("$text")||t.is("$textProxy")){r=t.getAttributes();break}n.insertContent(o.createText(t,r),i),this._state.results.has(e)&&this._state.results.remove(e)}))}}class fO extends pO{execute(t,e){this._replace(t,e)}}class xO extends pO{execute(t,e){const{editor:n}=this,{model:i}=n,o=n.plugins.get("FindAndReplaceUtils"),r=e instanceof Uu.Collection?e:i.document.getRootNames().reduce(((t,n)=>o.updateFindResultFromRange(i.createRangeIn(i.document.getRoot(n)),i,o.findByTextCallback(e,this._state),t)),null);r.length&&i.change((()=>{[...r].forEach((e=>{this._replace(t,e)}))}))}}class bO extends $t{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 kO extends bO{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 wO extends((0,Uu.ObservableMixin)()){constructor(t){super(),this.set("results",new Uu.Collection),this.set("highlightedResult",null),this.set("searchText",""),this.set("replaceText",""),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",((e,{removed:n,index:i})=>{if(Array.from(n).length){let e=!1;if(t.change((i=>{for(const o of n)this.highlightedResult===o&&(e=!0),t.markers.has(o.marker.name)&&i.removeMarker(o.marker)})),e){const t=i>=this.results.length?0:i;this.highlightedResult=this.results.get(t)}}}))}clear(t){this.searchText="",t.change((e=>{if(this.highlightedResult){const n=this.highlightedResult.marker.name.split(":")[1],i=t.markers.get(`findResultHighlighted:${n}`);i&&e.removeMarker(i)}[...this.results].forEach((({marker:t})=>{e.removeMarker(t)}))})),this.results.clear()}}class AO extends Yt{static get pluginName(){return"FindAndReplaceUtils"}updateFindResultFromRange(t,e,n,i){const o=i||new Uu.Collection;return e.change((i=>{[...t].forEach((({type:t,item:r})=>{if("elementStart"===t&&e.schema.checkChild(r,"$text")){const t=n({item:r,text:this.rangeToText(e.createRangeIn(r))});if(!t)return;t.forEach((t=>{const e=`findResult:${(0,Uu.uid)()}`,n=i.addMarker(e,{usingOperation:!1,affectsData:!1,range:i.createRange(i.createPositionAt(r,t.start),i.createPositionAt(r,t.end))}),s=function(t,e){const n=t.find((({marker:t})=>e.getStart().isBefore(t.getStart())));return n?t.getIndex(n):t.length}(o,n);o.add({id:e,label:t.label,marker:n},s)}))}}))})),o}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 i=`(${xu(t)})`;if(e.wholeWords){const e="[^a-zA-ZÀ-ɏḀ-ỿ]";new RegExp("^"+e).test(t)||(i=`(^|${e}|_)${i}`),new RegExp(e+"$").test(t)||(i=`${i}(?=_|${e}|$)`)}const o=new RegExp(i,n);return function({text:t}){return[...t.matchAll(o)].map(_O)}}}function _O(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 vO=__webpack_require__(5436),CO={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(vO.Z,CO);vO.Z.locals;class yO extends Yt{static get requires(){return[AO]}static get pluginName(){return"FindAndReplaceEditing"}init(){this._activeResults=null,this.state=new wO(this.editor.model),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",((t,e,n,i)=>{const{model:o}=this.editor;o.change((t=>{if(i){const e=i.marker.name.split(":")[1],n=o.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=At(((t,e,n)=>{if(n){const t=this.editor.editing.view.domConverter,e=this.editor.editing.mapper.toViewRange(n.marker.getRange());(0,Uu.scrollViewportToShowTarget)({target:t.viewRangeToDom(e),viewportOffset:40})}}).bind(this),32);this.listenTo(this.state,"change:highlightedResult",t,{priority:"low"}),this.listenTo(this.editor,"destroy",t.cancel)}find(t){const{editor:e}=this,{model:n}=e,{findCallback:i,results:o}=e.execute("find",t);return this._activeResults=o,this.listenTo(n.document,"change:data",(()=>function(t,e,n){const i=new Set,o=new Set,r=e.model;r.document.differ.getChanges().forEach((t=>{"$text"===t.name||r.schema.isInline(t.position.nodeAfter)?(i.add(t.position.parent),[...r.markers.getMarkersAtPosition(t.position)].forEach((t=>{o.add(t.name)}))):"insert"===t.type&&i.add(t.position.nodeAfter)})),r.document.differ.getChangedMarkers().forEach((({name:t,data:{newRange:e}})=>{e&&"$graveyard"===e.start.root.rootName&&o.add(t)})),i.forEach((t=>{[...r.markers.getMarkersIntersectingRange(r.createRangeIn(t))].forEach((t=>o.add(t.name)))})),r.change((e=>{o.forEach((n=>{t.has(n)&&t.remove(n),e.removeMarker(n)}))})),i.forEach((i=>{e.plugins.get("FindAndReplaceUtils").updateFindResultFromRange(r.createRangeOn(i),r,n,t)}))}(this._activeResults,e,i))),this._activeResults}stop(){this._activeResults&&(this.stopListening(this.editor.model.document),this.state.clear(this.editor.model),this._activeResults=null)}_defineCommands(){this.editor.commands.add("find",new gO(this.editor,this.state)),this.editor.commands.add("findNext",new bO(this.editor,this.state)),this.editor.commands.add("findPrevious",new kO(this.editor,this.state)),this.editor.commands.add("replace",new fO(this.editor,this.state)),this.editor.commands.add("replaceAll",new xO(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}}}})}}class EO extends Yt{static get requires(){return[yO,mO]}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,e)=>{e?(n.searchText=e.searchText,this.editor.execute("find",e.searchText,e)):this.editor.execute("findNext")})),t.on("findPrevious",((t,e)=>{e&&n.searchText!==e.searchText?this.editor.execute("find",e.searchText):this.editor.execute("findPrevious")})),t.on("replace",((t,e)=>{n.searchText!==e.searchText&&this.editor.execute("find",e.searchText);const i=n.highlightedResult;i&&this.editor.execute("replace",e.replaceText,i)})),t.on("replaceAll",((t,e)=>{n.searchText!==e.searchText&&this.editor.execute("find",e.searchText),this.editor.execute("replaceAll",e.replaceText,n.results)})),t.on("searchReseted",(()=>{n.clear(this.editor.model),e.stop()}))}}class IO extends $t{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,i=t.value,o=t.batch,r=t=>{if(n.isCollapsed)i?t.setSelectionAttribute(this.attributeKey,i):t.removeSelectionAttribute(this.attributeKey);else{const o=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of o)i?t.setAttribute(this.attributeKey,i,e):t.removeAttribute(this.attributeKey,e)}};o?e.enqueueChange(o,(t=>{r(t)})):e.change((t=>{r(t)}))}}const SO="fontSize",TO="fontFamily",DO="fontColor",MO="fontBackgroundColor";function BO(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 OO(t){return e=>e.getStyle(t).replace(/\s/g,"")}function NO(t){return(e,{writer:n})=>n.createAttributeElement("span",{style:`${t}:${e}`},{priority:7})}class PO extends IO{constructor(t){super(t,TO)}}function RO(t){return t.map(LO).filter((t=>void 0!==t))}function LO(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],i=e.map(jO).join(", ");return{title:n,model:i,view:{name:"span",styles:{"font-family":i},priority:7}}}(t):void 0}function jO(t){return(t=t.trim()).indexOf(" ")>0&&(t=`'${t}'`),t}class zO extends Yt{static get pluginName(){return"FontFamilyEditing"}constructor(t){super(t),t.config.define(TO,{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:TO}),t.model.schema.setAttributeProperties(TO,{isFormatting:!0,copyOnEnter:!0});const e=RO(t.config.get("fontFamily.options")).filter((t=>t.model)),n=BO(TO,e);t.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(n),t.commands.add(TO,new PO(t))}_prepareAnyValueConverters(){const t=this.editor;t.conversion.for("downcast").attributeToElement({model:TO,view:(t,{writer:e})=>e.createAttributeElement("span",{style:"font-family:"+t},{priority:7})}),t.conversion.for("upcast").elementToAttribute({model:{key:TO,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:TO,value:t=>t.getAttribute("face")}})}}class VO extends Yt{static get pluginName(){return"FontFamilyUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),i=t.commands.get(TO),o=e("Font Family");t.ui.componentFactory.add(TO,(e=>{const r=dl(e);return ml(r,(()=>function(t,e){const n=new Uu.Collection;for(const i of t){const t={type:"button",model:new Qd({commandName:TO,commandParam:i.model,label:i.title,role:"menuitemradio",withText:!0})};t.model.bind("isOn").to(e,"value",(t=>t===i.model||!(!t||!i.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===i.model.toLowerCase())),i.view&&"string"!=typeof i.view&&i.view.styles&&t.model.set("labelStyle",`font-family: ${i.view.styles["font-family"]}`),n.add(t)}return n}(n,i)),{role:"menu",ariaLabel:o}),r.buttonView.set({label:o,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),r.bind("isEnabled").to(i),this.listenTo(r,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),r}))}_getLocalizedOptions(){const t=this.editor,e=t.t;return RO(t.config.get(TO).options).map((t=>("Default"===t.title&&(t.title=e("Default")),t)))}}class FO extends Yt{static get requires(){return[zO,VO]}static get pluginName(){return"FontFamily"}}class UO extends IO{constructor(t){super(t,SO)}}function HO(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 qO(t);var e;const n=function(t){return"string"==typeof t?GO[t]:GO[t.model]}(t);if(n)return qO(n);if("default"===t)return{model:void 0,title:"Default"};if(function(t){let e;if("object"==typeof t){if(!t.model)throw new Uu.CKEditorError("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}},qO(t)}(t)}(t))).filter((t=>void 0!==t))}const GO={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 qO(t){return t.view&&"string"!=typeof t.view&&!t.view.priority&&(t.view.priority=7),t}const WO=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class KO extends Yt{static get pluginName(){return"FontSizeEditing"}constructor(t){super(t),t.config.define(SO,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:SO}),t.model.schema.setAttributeProperties(SO,{isFormatting:!0,copyOnEnter:!0});const e=t.config.get("fontSize.supportAllValues"),n=HO(this.editor.config.get("fontSize.options")).filter((t=>t.model)),i=BO(SO,n);e?(this._prepareAnyValueConverters(i),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(i),t.commands.add(SO,new UO(t))}_prepareAnyValueConverters(t){const e=this.editor,n=t.model.values.filter((t=>!nc(String(t))&&!oc(String(t))));if(n.length)throw new Uu.CKEditorError("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:SO,view:(t,{writer:e})=>{if(t)return e.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:SO,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:SO,value:t=>{const e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0];let i=parseInt(e,10);n&&(i=3+i);const o=WO.length-1,r=Math.min(Math.max(i,0),o);return WO[r]}}})}}var ZO=__webpack_require__(6203),YO={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(ZO.Z,YO);ZO.Z.locals;class JO extends Yt{static get pluginName(){return"FontSizeUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),i=t.commands.get(SO),o=e("Font Size");t.ui.componentFactory.add(SO,(e=>{const r=dl(e);return ml(r,(()=>function(t,e){const n=new Uu.Collection;for(const i of t){const t={type:"button",model:new Qd({commandName:SO,commandParam:i.model,label:i.title,class:"ck-fontsize-option",role:"menuitemradio",withText:!0})};i.view&&"string"!=typeof i.view&&(i.view.styles&&t.model.set("labelStyle",`font-size:${i.view.styles["font-size"]}`),i.view.classes&&t.model.set("class",`${t.model.class} ${i.view.classes}`)),t.model.bind("isOn").to(e,"value",(t=>t===i.model)),n.add(t)}return n}(n,i)),{role:"menu",ariaLabel:o}),r.buttonView.set({label:o,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),r.bind("isEnabled").to(i),this.listenTo(r,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),r}))}_getLocalizedOptions(){const t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return HO(t.config.get(SO).options).map((t=>{const e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t}))}}class $O extends Yt{static get requires(){return[KO,JO]}static get pluginName(){return"FontSize"}normalizeSizeOptions(t){return HO(t)}}class QO extends IO{constructor(t){super(t,DO)}}class XO extends Yt{static get pluginName(){return"FontColorEditing"}constructor(t){super(t),t.config.define(DO,{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:DO,value:OO("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:DO,value:t=>t.getAttribute("color")}}),t.conversion.for("downcast").attributeToElement({model:DO,view:NO("color")}),t.commands.add(DO,new QO(t)),t.model.schema.extend("$text",{allowAttributes:DO}),t.model.schema.setAttributeProperties(DO,{isFormatting:!0,copyOnEnter:!0})}}class tN extends Yt{constructor(t,{commandName:e,componentName:n,icon:i,dropdownLabel:o}){super(t),this.commandName=e,this.componentName=n,this.icon=i,this.dropdownLabel=o,this.columns=t.config.get(`${this.componentName}.columns`),this.colorSelectorView=void 0}init(){const t=this.editor,e=t.locale,n=e.t,i=t.commands.get(this.commandName),o=t.config.get(this.componentName),r=W(e,K(o.colors)),s=o.documentColors,a=!1!==o.colorPicker;t.ui.componentFactory.add(this.componentName,(e=>{const c=dl(e);let l=!1;return this.colorSelectorView=function({dropdownView:t,colors:e,columns:n,removeButtonLabel:i,colorPickerLabel:o,documentColorsLabel:r,documentColorsCount:s,colorPickerViewConfig:a}){const c=t.locale,l=new ld(c,{colors:e,columns:n,removeButtonLabel:i,colorPickerLabel:o,documentColorsLabel:r,documentColorsCount:s,colorPickerViewConfig:a});return t.colorSelectorView=l,t.panelView.children.add(l),l}({dropdownView:c,colors:r.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&&(o.colorPicker||{})}),this.colorSelectorView.bind("selectedColor").to(i,"value"),c.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),c.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),c.bind("isEnabled").to(i),this.colorSelectorView.on("execute",((e,n)=>{c.isOpen&&t.execute(this.commandName,{value:n.value,batch:this._undoStepBatch}),"colorPicker"!==n.source&&t.editing.view.focus(),"colorPickerSaveButton"===n.source&&(c.isOpen=!1)})),this.colorSelectorView.on("colorPicker:show",(()=>{this._undoStepBatch=t.model.createBatch()})),this.colorSelectorView.on("colorPicker:cancel",(()=>{this._undoStepBatch.operations.length&&(c.isOpen=!1,t.execute("undo",this._undoStepBatch)),t.editing.view.focus()})),c.on("change:isOpen",((e,n,i)=>{l||(l=!0,c.colorSelectorView.appendUI()),i&&(0!==s&&this.colorSelectorView.updateDocumentColors(t.model,this.componentName),this.colorSelectorView.updateSelectedColors(),this.colorSelectorView.showColorGridsFragment())})),pl(c,(()=>c.colorSelectorView.colorGridsFragmentView.staticColorsGrid.items.find((t=>t.isOn)))),c}))}}class eN extends tN{constructor(t){const e=t.locale.t;super(t,{commandName:DO,componentName:DO,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 nN extends Yt{static get requires(){return[XO,eN]}static get pluginName(){return"FontColor"}}class iN extends IO{constructor(t){super(t,MO)}}class oN extends Yt{static get pluginName(){return"FontBackgroundColorEditing"}constructor(t){super(t),t.config.define(MO,{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(bc),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:MO,value:OO("background-color")}}),t.conversion.for("downcast").attributeToElement({model:MO,view:NO("background-color")}),t.commands.add(MO,new iN(t)),t.model.schema.extend("$text",{allowAttributes:MO}),t.model.schema.setAttributeProperties(MO,{isFormatting:!0,copyOnEnter:!0})}}class rN extends tN{constructor(t){const e=t.locale.t;super(t,{commandName:MO,componentName:MO,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 sN extends Yt{static get requires(){return[oN,rN]}static get pluginName(){return"FontBackgroundColor"}}class aN extends $t{refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute("highlight"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"highlight")}execute(t={}){const e=this.editor.model,n=e.document.selection,i=t.value;e.change((t=>{if(n.isCollapsed){const e=n.getFirstPosition();if(n.hasAttribute("highlight")){const n=t=>t.item.hasAttribute("highlight")&&t.item.getAttribute("highlight")===this.value,o=e.getLastMatchingPosition(n,{direction:"backward"}),r=e.getLastMatchingPosition(n),s=t.createRange(o,r);i&&this.value!==i?(e.isEqual(r)||t.setAttribute("highlight",i,s),t.setSelectionAttribute("highlight",i)):(e.isEqual(r)||t.removeAttribute("highlight",s),t.removeSelectionAttribute("highlight"))}else i&&t.setSelectionAttribute("highlight",i)}else{const o=e.schema.getValidRanges(n.getRanges(),"highlight");for(const e of o)i?t.setAttribute("highlight",i,e):t.removeAttribute("highlight",e)}}))}}class cN extends Yt{static get pluginName(){return"HighlightEditing"}constructor(t){super(t),t.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"highlight"});const e=t.config.get("highlight.options");t.conversion.attributeToElement(function(t){const e={model:{key:"highlight",values:[]},view:{}};for(const n of t)e.model.values.push(n.model),e.view[n.model]={name:"mark",classes:n.class};return e}(e)),t.commands.add("highlight",new aN(t))}}var lN=__webpack_require__(713),dN={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(lN.Z,dN);lN.Z.locals;class uN extends Yt{get localizedOptionTitles(){const t=this.editor.t;return{"Yellow marker":t("Yellow marker"),"Green marker":t("Green marker"),"Pink marker":t("Pink marker"),"Blue marker":t("Blue marker"),"Red pen":t("Red pen"),"Green pen":t("Green pen")}}static get pluginName(){return"HighlightUI"}init(){const t=this.editor.config.get("highlight.options");for(const e of t)this._addHighlighterButton(e);this._addRemoveHighlightButton(),this._addDropdown(t)}_addRemoveHighlightButton(){const t=this.editor.t,e=this.editor.commands.get("highlight");this._addButton("removeHighlight",t("Remove highlight"),Uc.eraser,null,(t=>{t.bind("isEnabled").to(e,"isEnabled")}))}_addHighlighterButton(t){const e=this.editor.commands.get("highlight");this._addButton("highlight:"+t.model,t.title,hN(t.type),t.model,(function(n){n.bind("isEnabled").to(e,"isEnabled"),n.bind("isOn").to(e,"value",(e=>e===t.model)),n.iconView.fillColor=t.color,n.isToggleable=!0}))}_addButton(t,e,n,i,o){const r=this.editor;r.ui.componentFactory.add(t,(t=>{const s=new U(t),a=this.localizedOptionTitles[e]?this.localizedOptionTitles[e]:e;return s.set({label:a,icon:n,tooltip:!0}),s.on("execute",(()=>{r.execute("highlight",{value:i}),r.editing.view.focus()})),o(s),s}))}_addDropdown(t){const e=this.editor,n=e.t,i=e.ui.componentFactory,o=t[0],r=t.reduce(((t,e)=>(t[e.model]=e,t)),{});i.add("highlight",(s=>{const a=e.commands.get("highlight"),c=dl(s,rl),l=c.buttonView;l.set({label:n("Highlight"),tooltip:!0,lastExecuted:o.model,commandValue:o.model,isToggleable:!0}),l.bind("icon").to(a,"value",(t=>hN(d(t,"type")))),l.bind("color").to(a,"value",(t=>d(t,"color"))),l.bind("commandValue").to(a,"value",(t=>d(t,"model"))),l.bind("isOn").to(a,"value",(t=>!!t)),l.delegate("execute").to(c);function d(t,e){const n=t&&t!==l.lastExecuted?t:l.lastExecuted;return r[n][e]}return c.bind("isEnabled").to(a,"isEnabled"),ul(c,(()=>{const e=t.map((t=>{const e=i.create("highlight:"+t.model);return this.listenTo(e,"execute",(()=>{c.buttonView.set({lastExecuted:t.model})})),e}));return e.push(new Wt),e.push(i.create("removeHighlight")),e}),{enableActiveItemFocusOnDropdownOpen:!0,ariaLabel:n("Text highlight toolbar")}),function(t){const e=t.buttonView.actionView;e.iconView.bind("fillColor").to(t.buttonView,"color")}(c),l.on("execute",(()=>{e.execute("highlight",{value:l.commandValue})})),this.listenTo(c,"execute",(()=>{e.editing.view.focus()})),c}))}}function hN(t){return"marker"===t?'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z"/></svg>':'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z"/></svg>'}class mN extends Yt{static get requires(){return[cN,uN]}static get pluginName(){return"Highlight"}}class gN extends $t{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const i=function(t,e){const n=u_(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("element","$root"))return i.parent;return i}(t,n);return e.checkChild(i,"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 pN=__webpack_require__(9118),fN={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(pN.Z,fN);pN.Z.locals;class xN extends Yt{static get pluginName(){return"HorizontalLineEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion;e.register("horizontalLine",{inheritAllFrom:"$blockObject"}),i.for("dataDowncast").elementToElement({model:"horizontalLine",view:(t,{writer:e})=>e.createEmptyElement("hr")}),i.for("editingDowncast").elementToStructure({model:"horizontalLine",view:(t,{writer:e})=>{const i=n("Horizontal line"),o=e.createContainerElement("div",null,e.createEmptyElement("hr"));return e.addClass("ck-horizontal-line",o),e.setCustomProperty("hr",!0,o),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),s_(t,e,{label:n})}(o,e,i)}}),i.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new gN(t))}}const bN='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>';class kN extends Yt{static get pluginName(){return"HorizontalLineUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("horizontalLine",(n=>{const i=t.commands.get("horizontalLine"),o=new U(n);return o.set({label:e("Horizontal line"),icon:bN,tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}class wN extends Yt{static get requires(){return[xN,kN,I_]}static get pluginName(){return"HorizontalLine"}}class AN extends $t{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection,i=_N(n);this.isEnabled=function(t,e,n){const i=function(t,e){const n=u_(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("rootElement"))return i.parent;return i}(t,n);return e.checkChild(i,"rawHtml")}(n,e,t),this.value=i?i.getAttribute("value")||"":null}execute(t){const e=this.editor.model,n=e.document.selection;e.change((i=>{let o;null!==this.value?o=_N(n):(o=i.createElement("rawHtml"),e.insertObject(o,null,null,{setSelection:"on"})),i.setAttribute("value",t,o)}))}}function _N(t){const e=t.getSelectedElement();return e&&e.is("element","rawHtml")?e:null}var vN=__webpack_require__(3403),CN={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(vN.Z,CN);vN.Z.locals;class yN extends Yt{static get pluginName(){return"HtmlEmbedEditing"}constructor(t){super(t),this._widgetButtonViewReferences=new Set,t.config.define("htmlEmbed",{showPreviews:!1,sanitizeHtml:t=>((0,Uu.logWarning)("html-embed-provide-sanitize-function"),{html:t,hasChanged:!1})})}init(){const t=this.editor;t.model.schema.register("rawHtml",{inheritAllFrom:"$blockObject",allowAttributes:["value"]}),t.commands.add("htmlEmbed",new AN(t)),this._setupConversion()}_setupConversion(){const t=this.editor,e=t.t,n=t.editing.view,i=this._widgetButtonViewReferences,o=t.config.get("htmlEmbed");function r({editor:t,domElement:n,state:o,props:r}){n.textContent="";const a=n.ownerDocument;let c;if(o.isEditable){const t={isDisabled:!1,placeholder:r.textareaPlaceholder};c=s({domDocument:a,state:o,props:t}),n.append(c)}else if(o.showPreviews){const i={sanitizeHtml:r.sanitizeHtml};n.append(function({editor:t,domDocument:n,state:i,props:o}){const r=o.sanitizeHtml(i.getRawHtmlValue()),s=i.getRawHtmlValue().length>0?e("No preview available"):e("Empty snippet content"),a=(0,Uu.createElement)(n,"div",{class:"ck ck-reset_all raw-html-embed__preview-placeholder"},s),c=(0,Uu.createElement)(n,"div",{class:"raw-html-embed__preview-content",dir:t.locale.contentLanguageDirection}),l=n.createRange(),d=l.createContextualFragment(r.html);c.appendChild(d);const u=(0,Uu.createElement)(n,"div",{class:"raw-html-embed__preview"},[a,c]);return u}({domDocument:a,state:o,props:i,editor:t}))}else{const t={isDisabled:!0,placeholder:r.textareaPlaceholder};n.append(s({domDocument:a,state:o,props:t}))}const l={onEditClick:r.onEditClick,onSaveClick:()=>{r.onSaveClick(c.value)},onCancelClick:r.onCancelClick};n.prepend(function({editor:t,domDocument:e,state:n,props:o}){const r=(0,Uu.createElement)(e,"div",{class:"raw-html-embed__buttons-wrapper"});if(n.isEditable){const e=EN(t,"save",o.onSaveClick),n=EN(t,"cancel",o.onCancelClick);r.append(e.element,n.element),i.add(e).add(n)}else{const e=EN(t,"edit",o.onEditClick);r.append(e.element),i.add(e)}return r}({editor:t,domDocument:a,state:o,props:l}))}function s({domDocument:t,state:e,props:n}){const i=(0,Uu.createElement)(t,"textarea",{placeholder:n.placeholder,class:"ck ck-reset ck-input ck-input-text raw-html-embed__source"});return i.disabled=n.isDisabled,i.value=e.getRawHtmlValue(),i}this.editor.editing.view.on("render",(()=>{for(const t of i){if(t.element&&t.element.isConnected)return;t.destroy(),i.delete(t)}}),{priority:"lowest"}),t.data.registerRawContentMatcher({name:"div",classes:"raw-html-embed"}),t.conversion.for("upcast").elementToElement({view:{name:"div",classes:"raw-html-embed"},model:(t,{writer:e})=>e.createElement("rawHtml",{value:t.getCustomProperty("$rawContent")})}),t.conversion.for("dataDowncast").elementToElement({model:"rawHtml",view:(t,{writer:e})=>e.createRawElement("div",{class:"raw-html-embed"},(function(e){e.innerHTML=t.getAttribute("value")||""}))}),t.conversion.for("editingDowncast").elementToStructure({model:{name:"rawHtml",attributes:["value"]},view:(i,{writer:s})=>{let a,c,l;const d=s.createRawElement("div",{class:"raw-html-embed__content-wrapper"},(function(e){a=e,r({editor:t,domElement:e,state:c,props:l}),a.addEventListener("mousedown",(()=>{if(c.isEditable){const e=t.model;e.document.selection.getSelectedElement()!==i&&e.change((t=>t.setSelection(i,"on")))}}),!0)})),u={makeEditable(){c=Object.assign({},c,{isEditable:!0}),r({domElement:a,editor:t,state:c,props:l}),n.change((t=>{t.setAttribute("data-cke-ignore-events","true",d)})),a.querySelector("textarea").focus()},save(e){e!==c.getRawHtmlValue()?(t.execute("htmlEmbed",e),t.editing.view.focus()):this.cancel()},cancel(){c=Object.assign({},c,{isEditable:!1}),r({domElement:a,editor:t,state:c,props:l}),t.editing.view.focus(),n.change((t=>{t.removeAttribute("data-cke-ignore-events",d)}))}};c={showPreviews:o.showPreviews,isEditable:!1,getRawHtmlValue:()=>i.getAttribute("value")||""},l={sanitizeHtml:o.sanitizeHtml,textareaPlaceholder:e("Paste raw HTML here..."),onEditClick(){u.makeEditable()},onSaveClick(t){u.save(t)},onCancelClick(){u.cancel()}};const h=s.createContainerElement("div",{class:"raw-html-embed","data-html-embed-label":e("HTML snippet"),dir:t.locale.uiLanguageDirection},d);return s.setCustomProperty("rawHtmlApi",u,h),s.setCustomProperty("rawHtml",!0,h),s_(h,s,{label:e("HTML snippet"),hasSelectionHandle:!0})}})}}function EN(t,e,n){const{t:i}=t.locale,o=new U(t.locale),r=t.commands.get("htmlEmbed");return o.set({class:`raw-html-embed__${e}-button`,icon:Uc.pencil,tooltip:!0,tooltipPosition:"rtl"===t.locale.uiLanguageDirection?"e":"w"}),o.render(),"edit"===e?(o.set({icon:Uc.pencil,label:i("Edit source")}),o.bind("isEnabled").to(r)):"save"===e?(o.set({icon:Uc.check,label:i("Save changes")}),o.bind("isEnabled").to(r)):o.set({icon:Uc.cancel,label:i("Cancel")}),o.on("execute",n),o}const IN='<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>';class SN extends Yt{static get pluginName(){return"HtmlEmbedUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("htmlEmbed",(n=>{const i=t.commands.get("htmlEmbed"),o=new U(n);return o.set({label:e("Insert HTML"),icon:IN,tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("htmlEmbed"),t.editing.view.focus();t.editing.view.document.selection.getSelectedElement().getCustomProperty("rawHtmlApi").makeEditable()})),o}))}}class TN extends Yt{static get requires(){return[yN,SN,I_]}static get pluginName(){return"HtmlEmbed"}}const DN=function(t,e,n,i){var o=-1,r=null==t?0:t.length;for(i&&r&&(n=t[++o]);++o<r;)n=e(n,t[o],o,t);return n};const MN=Cu({À:"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 BN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ON=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const NN=function(t){return(t=ze(t))&&t.replace(BN,MN).replace(ON,"")};var PN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const RN=function(t){return t.match(PN)||[]};var LN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const jN=function(t){return LN.test(t)};var zN="\\ud800-\\udfff",VN="\\u2700-\\u27bf",FN="a-z\\xdf-\\xf6\\xf8-\\xff",UN="A-Z\\xc0-\\xd6\\xd8-\\xde",HN="\\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",GN="["+HN+"]",qN="\\d+",WN="["+VN+"]",KN="["+FN+"]",ZN="[^"+zN+HN+qN+VN+FN+UN+"]",YN="(?:\\ud83c[\\udde6-\\uddff]){2}",JN="[\\ud800-\\udbff][\\udc00-\\udfff]",$N="["+UN+"]",QN="(?:"+KN+"|"+ZN+")",XN="(?:"+$N+"|"+ZN+")",tP="(?:['’](?:d|ll|m|re|s|t|ve))?",eP="(?:['’](?:D|LL|M|RE|S|T|VE))?",nP="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",iP="[\\ufe0e\\ufe0f]?",oP=iP+nP+("(?:\\u200d(?:"+["[^"+zN+"]",YN,JN].join("|")+")"+iP+nP+")*"),rP="(?:"+[WN,YN,JN].join("|")+")"+oP,sP=RegExp([$N+"?"+KN+"+"+tP+"(?="+[GN,$N,"$"].join("|")+")",XN+"+"+eP+"(?="+[GN,$N+QN,"$"].join("|")+")",$N+"?"+QN+"+"+tP,$N+"+"+eP,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qN,rP].join("|"),"g");const aP=function(t){return t.match(sP)||[]};const cP=function(t,e,n){return t=ze(t),void 0===(e=n?void 0:e)?jN(t)?aP(t):RN(t):t.match(e)||[]};var lP=RegExp("['’]","g");const dP=function(t){return function(e){return DN(cP(NN(e).replace(lP,"")),t,"")}}((function(t,e,n){return t+(n?" ":"")+PD(e)}));function uP(t,e,n,i){e&&function(t,e,n){if(e.attributes)for(const[i]of Object.entries(e.attributes))t.removeAttribute(i,n);if(e.styles)for(const i of Object.keys(e.styles))t.removeStyle(i,n);e.classes&&t.removeClass(e.classes,n)}(t,e,i),n&&hP(t,n,i)}function hP(t,e,n){if(e.attributes)for(const[i,o]of Object.entries(e.attributes))t.setAttribute(i,o,n);e.styles&&t.setStyle(e.styles,n),e.classes&&t.addClass(e.classes,n)}function mP(t,e,n,i,o){const r=e.getAttribute(n),s={};for(const t of["attributes","styles","classes"]){if(t!=i){r&&r[t]&&(s[t]=r[t]);continue}if("classes"==i){const e=new Set(r&&r.classes||[]);o(e),e.size&&(s[t]=Array.from(e));continue}const e=new Map(Object.entries(r&&r[t]||{}));o(e),e.size&&(s[t]=Object.fromEntries(e))}Object.keys(s).length?e.is("documentSelection")?t.setSelectionAttribute(n,s):t.setAttribute(n,s,e):r&&(e.is("documentSelection")?t.removeSelectionAttribute(n):t.removeAttribute(n,e))}function gP(t){return`html${e=t,dP(e).replace(/ /g,"")}Attributes`;var e}function pP({model:t}){return(e,n)=>n.writer.createElement(t,{htmlContent:e.getCustomProperty("$rawContent")})}function fP(t,{view:e,isInline:n}){const i=t.t;return(t,{writer:o})=>{const r=i("HTML object"),s=xP(e,t,o),a=t.getAttribute(gP(e));o.addClass("html-object-embed__content",s),a&&hP(o,a,s);return s_(o.createContainerElement(n?"span":"div",{class:"html-object-embed","data-html-object-embed-label":r},s),o,{label:r})}}function xP(t,e,n){return n.createRawElement(t,null,((t,n)=>{n.setContentOf(t,e.getAttribute("htmlContent"))}))}function bP({view:t,model:e,allowEmpty:n},i){return e=>{e.on(`element:${t}`,((t,e,r)=>{let s=i.processViewAttributes(e.viewItem,r);if(s||r.consumable.test(e.viewItem,{name:!0})){if(s=s||{},r.consumable.consume(e.viewItem,{name:!0}),e.modelRange||(e=Object.assign(e,r.convertChildren(e.viewItem,e.modelCursor))),n&&e.modelRange.isCollapsed&&Object.keys(s).length){const t=r.writer.createElement("htmlEmptyElement");if(!r.safeInsert(t,e.modelCursor))return;const n=r.getSplitParts(t);return e.modelRange=r.writer.createRange(e.modelRange.start,r.writer.createPositionAfter(n[n.length-1])),r.updateConversionResult(t,e),void o(t,s,r)}for(const t of e.modelRange.getItems())o(t,s,r)}}),{priority:"low"})};function o(t,n,i){if(i.schema.checkAttribute(t,e)){const o=function(t,e){const n=Fo(t);let i="attributes";for(i in e)n[i]="classes"==i?Array.from(new Set([...t[i]||[],...e[i]])):{...t[i],...e[i]};return n}(n,t.getAttribute(e)||{});i.writer.setAttribute(e,o,t)}}}function kP({model:t,view:e},n){return(i,{writer:o,consumable:r})=>{if(!i.hasAttribute(t))return null;const s=o.createContainerElement(e),a=i.getAttribute(t);return r.consume(i,`attribute:${t}`),hP(o,a,s),s.getFillerOffset=()=>null,n?s_(s,o):s}}function wP({priority:t,view:e}){return(n,i)=>{if(!n)return;const{writer:o}=i,r=o.createAttributeElement(e,null,{priority:t});return hP(o,n,r),r}}function AP({view:t},e){return n=>{n.on(`element:${t}`,((t,n,i)=>{if(!n.modelRange||n.modelRange.isCollapsed)return;const o=e.processViewAttributes(n.viewItem,i);o&&i.writer.setAttribute(gP(n.viewItem.name),o,n.modelRange)}),{priority:"low"})}}function _P({view:t,model:e}){return n=>{n.on(`attribute:${gP(t)}:${e}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:o}=e;uP(n.writer,i,o,n.mapper.toViewElement(e.item))}))}}const vP=[{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:"$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:{allowChildren:["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}}],CP=[{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 yP=Tn((function(t,e,n,i){fn(t,e,n,i)}));class EP extends Yt{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const t of vP)this.registerBlockElement(t);for(const t of CP)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 i of this._getMatchingViewDefinitions(t)){if(e)for(const t of this._getReferences(i.model))n.add(t);n.add(i)}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:i}of n)if(i)for(const n of e)for(const e of(0,Uu.toArray)(i[n]||[])){const n=this._definitions.filter((t=>t.model==e));for(const i of n)e!==t&&(yield*this._getReferences(i.model),yield i)}}_extendDefinition(t){const e=Array.from(this._definitions.entries()).filter((([,e])=>e.model==t.model));if(0!=e.length)for(const[n,i]of e)this._definitions[n]=yP({},i,t,((t,e)=>Array.isArray(t)?t.concat(e):void 0));else this._definitions.push(t)}}const IP=function(t,e,n,i){for(var o=t.length,r=n+(i?1:-1);i?r--:++r<o;)if(e(t[r],r,t))return r;return-1};const SP=function(t){return t!=t};const TP=function(t,e,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===e)return i;return-1};const DP=function(t,e,n){return e==e?TP(t,e,n):IP(t,SP,n)};const MP=function(t,e,n,i){for(var o=n-1,r=t.length;++o<r;)if(i(t[o],e))return o;return-1};var BP=__webpack_require__(1162),OP=Array.prototype.splice;const NP=function(t,e,n,i){var o=i?MP:DP,r=-1,s=e.length,a=t;for(t===e&&(e=(0,nn.Z)(e)),n&&(a=Pe(t,(0,BP.Z)(n)));++r<s;)for(var c=0,l=e[r],d=n?n(l):l;(c=o(a,d,c,i))>-1;)a!==t&&OP.call(a,c,1),OP.call(t,c,1);return t};const PP=En((function(t,e){return t&&t.length&&e&&e.length?NP(t,e):t}));var RP=__webpack_require__(8468),LP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(RP.Z,LP);RP.Z.locals;class jP extends Yt{constructor(t){super(t),this._dataSchema=t.plugins.get("DataSchema"),this._allowedAttributes=new ke,this._disallowedAttributes=new ke,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[EP,I_]}loadAllowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,n=HP(e);this.allowElement(t),n.forEach((t=>this.allowAttributes(t)))}}loadDisallowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,n=HP(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){return zP(t,e,this._disallowedAttributes),zP(t,e,this._allowedAttributes)}_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:Uu.priorities.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",(()=>{this._dataInitialized=!0;for(const t of this._allowedElements)this._fireRegisterEvent(t)}),{priority:Uu.priorities.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 Uu.CKEditorError("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 i=!1;const o=this._getCoupledAttributesMap();for(const t of n){if("attribute"!=t.type||null!==t.attributeNewValue)continue;const n=o.get(t.attributeKey);if(n)for(const{item:o}of t.range.getWalker({shallow:!0}))for(const t of n)o.hasAttribute(t)&&(e.removeAttribute(t,o),i=!0)}return i})),this.listenTo(e,"change:attribute",((n,{attributeKeys:i})=>{const o=new Set,r=this._getCoupledAttributesMap();for(const t of i){if(e.hasAttribute(t))continue;const n=r.get(t);if(n)for(const t of n)e.hasAttribute(t)&&o.add(t)}0!=o.size&&t.change((t=>{for(const e of o)t.removeSelectionAttribute(e)}))}))}_registerAssociatedHtmlAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer((e=>{const n=t.document.differ.getChanges();let i=!1;for(const o of n)if("insert"===o.type&&"$text"!==o.name)for(const n of o.attributes.keys())n.startsWith("html")&&n.endsWith("Attributes")&&(t.schema.checkAttribute(o.name,n)||(e.removeAttribute(n,o.position.nodeAfter),i=!0));return i}))}_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,i=e.conversion,{view:o,model:r}=t;n.register(r,t.modelSchema),o&&(n.extend(t.model,{allowAttributes:[gP(o),"htmlContent"]}),e.data.registerRawContentMatcher({name:o}),i.for("upcast").elementToElement({view:o,model:pP(t),converterPriority:Uu.priorities.low+2}),i.for("upcast").add(AP(t,this)),i.for("editingDowncast").elementToStructure({model:{name:r,attributes:[gP(o)]},view:fP(e,t)}),i.for("dataDowncast").elementToElement({model:r,view:(t,{writer:e})=>xP(o,t,e)}),i.for("dataDowncast").add(_P(t)))}_registerBlockElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,{view:o,model:r}=t;if(!n.isRegistered(t.model)){if(n.register(t.model,t.modelSchema),!o)return;i.for("upcast").elementToElement({model:r,view:o,converterPriority:Uu.priorities.low+2}),i.for("downcast").elementToElement({model:r,view:o})}o&&(n.extend(t.model,{allowAttributes:gP(o)}),i.for("upcast").add(AP(t,this)),i.for("downcast").add(_P(t)))}_registerInlineElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,o=t.model;t.appliesToBlock||(n.extend("$text",{allowAttributes:o}),t.attributeProperties&&n.setAttributeProperties(o,t.attributeProperties),i.for("upcast").add(bP(t,this)),i.for("downcast").attributeToElement({model:o,view:wP(t)}),t.allowEmpty&&(n.setAttributeProperties(o,{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)),i.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:kP(t,!0)}),i.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:kP(t)})))}}function zP(t,e,n){const i=function(t,{consumable:e},n){const i=n.matchAll(t)||[],o=[];for(const n of i)VP(e,t,n),delete n.match.name,e.consume(t,n.match),o.push(n);return o}(t,e,n),{attributes:o,styles:r,classes:s}=function(t){const e={attributes:new Set,classes:new Set,styles:new Set};for(const n of t)for(const t in e){(n.match[t]||[]).forEach((n=>e[t].add(n)))}return e}(i),a={};if(o.size)for(const t of o)(0,Uu.isValidAttributeName)(t)||o.delete(t);return o.size&&(a.attributes=FP(o,(e=>t.getAttribute(e)))),r.size&&(a.styles=FP(r,(e=>t.getStyle(e)))),s.size&&(a.classes=Array.from(s)),Object.keys(a).length?a:null}function VP(t,e,n){for(const i of["attributes","classes","styles"]){const o=n.match[i];if(o)for(const n of Array.from(o))t.test(e,{[i]:[n]})||PP(o,n)}}function FP(t,e){const n={};for(const i of t){void 0!==e(i)&&(n[i]=e(i))}return n}function UP(t,e){const{name:n}=t,i=t[e];return(0,be.Z)(i)?Object.entries(i).map((([t,i])=>({name:n,[e]:{[t]:i}}))):Array.isArray(i)?i.map((t=>({name:n,[e]:[t]}))):[t]}function HP(t){const{name:e,attributes:n,classes:i,styles:o}=t,r=[];return n&&r.push(...UP({name:e,attributes:n},"attributes")),i&&r.push(...UP({name:e,classes:i},"classes")),o&&r.push(...UP({name:e,styles:o},"styles")),r}class GP extends Yt{static get requires(){return[jP]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const t=this.editor.plugins.get(jP);t.on("register:pre",((e,n)=>{if("codeBlock"!==n.model)return;const i=this.editor,o=i.model.schema,r=i.conversion;o.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),r.for("upcast").add(function(t){return e=>{e.on("element:code",((e,n,i)=>{const o=n.viewItem,r=o.parent;function s(e,o){const r=t.processViewAttributes(e,i);r&&i.writer.setAttribute(o,r,n.modelRange)}r&&r.is("element","pre")&&(s(r,"htmlPreAttributes"),s(o,"htmlContentAttributes"))}),{priority:"low"})}}(t)),r.for("downcast").add((t=>{t.on("attribute:htmlPreAttributes:codeBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:o}=e,r=n.mapper.toViewElement(e.item).parent;uP(n.writer,i,o,r)})),t.on("attribute:htmlContentAttributes:codeBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:o}=e,r=n.mapper.toViewElement(e.item);uP(n.writer,i,o,r)}))})),e.stop()}))}}class qP extends Yt{static get requires(){return[jP]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(jP).on("register",((t,e)=>{const n=e,i=this.editor,o=i.model.schema,r=i.conversion;if(!n.paragraphLikeModel)return;if(o.isRegistered(n.model)||o.isRegistered(n.paragraphLikeModel))return;const s={model:n.paragraphLikeModel,view:n.view};o.register(n.model,n.modelSchema),o.register(s.model,{inheritAllFrom:"$block"}),r.for("upcast").elementToElement({view:n.view,model:(t,{writer:e})=>this._hasBlockContent(t)?e.createElement(n.model):e.createElement(s.model),converterPriority:Uu.priorities.low+.5}),r.for("downcast").elementToElement({view:n.view,model:n.model}),this._addAttributeConversion(n),r.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 i of e.createRangeIn(t).getItems())if(i.is("element")&&n.includes(i.name))return!0;return!1}_addAttributeConversion(t){const e=this.editor,n=e.conversion,i=e.plugins.get(jP);e.model.schema.extend(t.model,{allowAttributes:gP(t.view)}),n.for("upcast").add(AP(t,i)),n.for("downcast").add(_P(t))}}class WP extends Yt{static get requires(){return[EP,lx]}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(EP),i=[];for(const t of e)"model"in t&&"view"in t&&(n.registerBlockElement({view:t.view,model:t.model}),i.push(t.model));n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}})}}function KP(t,e,n){const i=t.createRangeOn(e);for(const{item:t}of i.getWalker())if(t.is("element",n))return t}class ZP extends Yt{static get requires(){return[jP]}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,i=t.plugins.get(jP);i.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,i)=>{const o=n.viewItem;if(!n.modelRange||!o.hasClass("image"))return;const r=t.processViewAttributes(o,i);r&&i.writer.setAttribute("htmlFigureAttributes",r,n.modelRange)}),{priority:"low"})}}(i))})),i.on("register:img",((o,r)=>{"imageBlock"!==r.model&&"imageInline"!==r.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,i)=>{if(!n.modelRange)return;const o=n.viewItem,r=t.processViewAttributes(o,i);r&&i.writer.setAttribute("htmlImgAttributes",r,n.modelRange)}),{priority:"low"})}}(i)),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:i,attributeNewValue:o}=e,r=n.mapper.toViewElement(e.item);uP(n.writer,i,o,r)}),{priority:"low"})}function n(e,n){t.on(`attribute:${n}:imageBlock`,((t,n,i)=>{if(!i.consumable.test(n.item,t.name))return;const{attributeOldValue:o,attributeNewValue:r}=n,s=i.mapper.toViewElement(n.item),a=KP(i.writer,s,e);a&&(uP(i.writer,o,r,a),i.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 i=n.mapper.toViewElement(e.item),o=KP(n.writer,i,"a");hP(n.writer,e.item.getAttribute("htmlLinkAttributes"),o)}),{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,i,o)=>{const r=i.viewItem;if(!n.findViewImgElement(r))return;const s=i.modelCursor.parent;if(!s.is("element","imageBlock"))return;const a=t.processViewAttributes(r,o);a&&o.writer.setAttribute("htmlLinkAttributes",a,s)}),{priority:"low"})}}(i,t)),o.stop())}))}}class YP extends Yt{static get requires(){return[jP]}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,i=this.editor.plugins.get(jP),o=this.editor.plugins.get(EP),r=t.config.get("mediaEmbed.elementName");o.registerBlockElement({model:"media",view:r}),i.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,i)=>{const o=n.viewItem;if(!n.modelRange||!o.hasClass("media"))return;const r=t.processViewAttributes(o,i);r&&i.writer.setAttribute("htmlFigureAttributes",r,n.modelRange)}),{priority:"low"})}}(i))})),i.on(`register:${r}`,((t,o)=>{"media"===o.model&&(e.extend("media",{allowAttributes:[gP(r),"htmlFigureAttributes"]}),n.for("upcast").add(function(t,e){const n=(n,i,o)=>{function r(e,n){const r=t.processViewAttributes(e,o);r&&o.writer.setAttribute(n,r,i.modelRange)}r(i.viewItem,gP(e))};return t=>{t.on(`element:${e}`,n,{priority:"low"})}}(i,r)),n.for("dataDowncast").add(function(t){return e=>{function n(t,n){e.on(`attribute:${n}:media`,((e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const{attributeOldValue:o,attributeNewValue:r}=n,s=i.mapper.toViewElement(n.item),a=KP(i.writer,s,t);uP(i.writer,o,r,a)}))}n(t,gP(t)),n("figure","htmlFigureAttributes")}}(r)),t.stop())}))}}class JP extends Yt{static get requires(){return[jP]}static get pluginName(){return"ScriptElementSupport"}init(){const t=this.editor.plugins.get(jP);t.on("register:script",((e,n)=>{const i=this.editor,o=i.model.schema,r=i.conversion;o.register("htmlScript",n.modelSchema),o.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"script"}),r.for("upcast").elementToElement({view:"script",model:pP(n)}),r.for("upcast").add(AP(n,t)),r.for("downcast").elementToElement({model:"htmlScript",view:(t,{writer:e})=>xP("script",t,e)}),r.for("downcast").add(_P(n)),e.stop()}))}}class $P extends Yt{static get requires(){return[jP]}static get pluginName(){return"TableElementSupport"}init(){const t=this.editor;if(!t.plugins.has("TableEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(jP),o=t.plugins.get("TableUtils");i.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,i)=>{const o=n.viewItem;if(!n.modelRange||!o.hasClass("table"))return;const r=t.processViewAttributes(o,i);r&&i.writer.setAttribute("htmlFigureAttributes",r,n.modelRange)}),{priority:"low"})}}(i))})),i.on("register:table",((r,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,i)=>{if(!n.modelRange)return;const o=n.viewItem;r(o,"htmlTableAttributes");for(const t of o.getChildren())t.is("element","thead")&&r(t,"htmlTheadAttributes"),t.is("element","tbody")&&r(t,"htmlTbodyAttributes");function r(e,o){const r=t.processViewAttributes(e,i);r&&i.writer.setAttribute(o,r,n.modelRange)}}),{priority:"low"})}}(i)),n.for("downcast").add((t=>{function e(e,n){t.on(`attribute:${n}:table`,((t,n,i)=>{if(!i.consumable.test(n.item,t.name))return;const o=i.mapper.toViewElement(n.item),r=KP(i.writer,o,e);r&&(i.consumable.consume(n.item,t.name),uP(i.writer,n.attributeOldValue,n.attributeNewValue,r))}))}e("table","htmlTableAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),t.model.document.registerPostFixer(function(t,e){return n=>{const i=t.document.differ.getChanges();let o=!1;for(const t of i){if("attribute"!=t.type||"headingRows"!=t.attributeKey)continue;const i=t.range.start.nodeAfter,r=i.getAttribute("htmlTheadAttributes"),s=i.getAttribute("htmlTbodyAttributes");r&&!t.attributeNewValue?(n.removeAttribute("htmlTheadAttributes",i),o=!0):s&&t.attributeNewValue==e.getRows(i)&&(n.removeAttribute("htmlTbodyAttributes",i),o=!0)}return o}}(t.model,o)),r.stop())}))}}class QP extends Yt{static get requires(){return[jP]}static get pluginName(){return"StyleElementSupport"}init(){const t=this.editor.plugins.get(jP);t.on("register:style",((e,n)=>{const i=this.editor,o=i.model.schema,r=i.conversion;o.register("htmlStyle",n.modelSchema),o.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"style"}),r.for("upcast").elementToElement({view:"style",model:pP(n)}),r.for("upcast").add(AP(n,t)),r.for("downcast").elementToElement({model:"htmlStyle",view:(t,{writer:e})=>xP("style",t,e)}),r.for("downcast").add(_P(n)),e.stop()}))}}class XP extends Yt{static get requires(){return[jP]}static get pluginName(){return"DocumentListElementSupport"}init(){const t=this.editor;if(!t.plugins.has("DocumentListEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(jP),o=t.plugins.get("DocumentListEditing"),r=["ul","ol","li"];o.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:hP}),o.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:hP}),o.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:hP}),i.on("register",((t,o)=>{if(!r.includes(o.view))return;if(t.stop(),e.checkAttribute("$block","htmlLiAttributes"))return;const s=r.map((t=>gP(t)));e.extend("$listItem",{allowAttributes:s}),n.for("upcast").add((t=>{t.on("element:ul",tR("htmlUlAttributes",i),{priority:"low"}),t.on("element:ol",tR("htmlOlAttributes",i),{priority:"low"}),t.on("element:li",tR("htmlLiAttributes",i),{priority:"low"})}))})),o.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i,previousNodeInList:o}of e)if(o){if(o.getAttribute("listType")==i.getAttribute("listType")){const e=eR(o.getAttribute("listType")),r=o.getAttribute(e);!Ls(i.getAttribute(e),r)&&n.model.schema.checkAttribute(i,e)&&(n.setAttribute(e,r,i),t.return=!0)}if(o.getAttribute("listItemId")==i.getAttribute("listItemId")){const e=o.getAttribute("htmlLiAttributes");!Ls(i.getAttribute("htmlLiAttributes"),e)&&n.model.schema.checkAttribute(i,"htmlLiAttributes")&&(n.setAttribute("htmlLiAttributes",e,i),t.return=!0)}}})),o.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i}of e){const e=i.getAttribute("listType");"numbered"!==e&&i.getAttribute("htmlOlAttributes")&&(n.removeAttribute("htmlOlAttributes",i),t.return=!0),"numbered"===e&&i.getAttribute("htmlUlAttributes")&&(n.removeAttribute("htmlUlAttributes",i),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 i of n){const n=eR(i.getAttribute("listType"));t.model.schema.checkAttribute(i,n)&&e.setAttribute(n,{},i)}}))}))}}function tR(t,e){return(n,i,o)=>{const r=i.viewItem;i.modelRange||Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor));const s=e.processViewAttributes(r,o);for(const e of i.modelRange.getItems({shallow:!0}))e.hasAttribute("listItemId")&&(e.hasAttribute(t)||o.writer.model.schema.checkAttribute(e,t)&&o.writer.setAttribute(t,s||{},e))}}function eR(t){return"numbered"===t?"htmlOlAttributes":"htmlUlAttributes"}class nR extends Yt{static get requires(){return[jP,EP]}static get pluginName(){return"CustomElementSupport"}init(){const t=this.editor.plugins.get(jP),e=this.editor.plugins.get(EP);t.on("register:$customElement",((n,i)=>{n.stop();const o=this.editor,r=o.model.schema,s=o.conversion,a=o.editing.view.domConverter.unsafeElements,c=o.data.htmlProcessor.domConverter.preElements;r.register(i.model,i.modelSchema),r.extend(i.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),o.data.htmlProcessor.domConverter.registerRawContentMatcher({name:"template"}),s.for("upcast").elementToElement({view:/.*/,model:(n,r)=>{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),c.includes(n.name)||c.push(n.name);const s=r.writer.createElement(i.model,{htmlElementName:n.name}),l=t.processViewAttributes(n,r);let d;if(l&&r.writer.setAttribute("htmlCustomElementAttributes",l,s),n.is("element","template")&&n.getCustomProperty("$rawContent"))d=n.getCustomProperty("$rawContent");else{const t=new Ga(n.document).createDocumentFragment(n),e=o.data.htmlProcessor.domConverter.viewToDom(t),i=e.firstChild;for(;i.firstChild;)e.appendChild(i.firstChild);i.remove(),d=o.data.htmlProcessor.htmlWriter.getHtml(e)}r.writer.setAttribute("htmlContent",d,s);for(const{item:t}of o.editing.view.createRangeIn(n))r.consumable.consume(t,{name:!0});return s},converterPriority:"low"}),s.for("editingDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const n=t.getAttribute("htmlElementName"),i=e.createRawElement(n);return t.hasAttribute("htmlCustomElementAttributes")&&hP(e,t.getAttribute("htmlCustomElementAttributes"),i),i}}),s.for("dataDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const n=t.getAttribute("htmlElementName"),i=t.getAttribute("htmlContent"),o=e.createRawElement(n,null,((t,e)=>{e.setContentOf(t,i)}));return t.hasAttribute("htmlCustomElementAttributes")&&hP(e,t.getAttribute("htmlCustomElementAttributes"),o),o}})}))}}class iR extends Yt{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[jP,GP,qP,WP,ZP,YP,JP,$P,QP,XP,nR]}init(){const t=this.editor,e=t.plugins.get(jP);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)),i=n.find((t=>t.isInline&&!n[0].isObject));return i?i.model:gP(t)}addModelHtmlClass(t,e,n){const i=this.editor.model,o=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const r of oR(i,n,o))mP(t,r,o,"classes",(t=>{for(const n of(0,Uu.toArray)(e))t.add(n)}))}))}removeModelHtmlClass(t,e,n){const i=this.editor.model,o=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const r of oR(i,n,o))mP(t,r,o,"classes",(t=>{for(const n of(0,Uu.toArray)(e))t.delete(n)}))}))}setModelHtmlAttributes(t,e,n){const i=this.editor.model,o=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const r of oR(i,n,o))mP(t,r,o,"attributes",(t=>{for(const[n,i]of Object.entries(e))t.set(n,i)}))}))}removeModelHtmlAttributes(t,e,n){const i=this.editor.model,o=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const r of oR(i,n,o))mP(t,r,o,"attributes",(t=>{for(const n of(0,Uu.toArray)(e))t.delete(n)}))}))}setModelHtmlStyles(t,e,n){const i=this.editor.model,o=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const r of oR(i,n,o))mP(t,r,o,"styles",(t=>{for(const[n,i]of Object.entries(e))t.set(n,i)}))}))}removeModelHtmlStyles(t,e,n){const i=this.editor.model,o=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const r of oR(i,n,o))mP(t,r,o,"styles",(t=>{for(const n of(0,Uu.toArray)(e))t.delete(n)}))}))}}function*oR(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 i 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*i.getItems({shallow:!0})}class rR extends Yt{static get pluginName(){return"HtmlComment"}init(){const t=this.editor,e=new Map;t.data.processor.skipComments=!1,t.model.schema.addAttributeCheck(((t,e)=>{if(t.endsWith("$root")&&e.startsWith("$comment"))return!0})),t.conversion.for("upcast").elementToMarker({view:"$comment",model:t=>{const n=`$comment:${(0,Uu.uid)()}`,i=t.getCustomProperty("$rawContent");return e.set(n,i),n}}),t.conversion.for("dataDowncast").markerToElement({model:"$comment",view:(t,{writer:e})=>{let n;for(const e of this.editor.model.document.getRootNames())if(n=this.editor.model.document.getRoot(e),n.hasAttribute(t.markerName))break;const i=t.markerName,o=n.getAttribute(i),r=e.createUIElement("$comment");return e.setCustomProperty("$rawContent",o,r),r}}),t.model.document.registerPostFixer((n=>{let i=!1;const o=t.model.document.differ.getChangedMarkers().filter((t=>t.name.startsWith("$comment:")));for(const t of o){const{oldRange:o,newRange:r}=t.data;if(!o||!r||o.root!=r.root){if(o){const e=o.root;e.hasAttribute(t.name)&&(n.removeAttribute(t.name,e),i=!0)}if(r){const o=r.root;"$graveyard"==o.rootName?(n.removeMarker(t.name),i=!0):o.hasAttribute(t.name)||(n.setAttribute(t.name,e.get(t.name)||"",o),i=!0)}}}return i})),t.data.on("set",(()=>{for(const e of t.model.markers.getMarkersGroup("$comment"))this.removeHtmlComment(e.name)}),{priority:"high"}),t.model.on("deleteContent",((e,[n])=>{for(const e of n.getRanges()){const n=t.model.schema.getLimitElement(e),i=t.model.createPositionAt(n,0),o=t.model.createPositionAt(n,"end");let r;r=i.isTouching(e.start)&&o.isTouching(e.end)?this.getHtmlCommentsInRange(t.model.createRange(i,o)):this.getHtmlCommentsInRange(e,{skipBoundaries:!0});for(const t of r)this.removeHtmlComment(t)}}),{priority:"high"})}createHtmlComment(t,e){const n=(0,Uu.uid)(),i=this.editor.model,o=i.document.getRoot(t.root.rootName),r=`$comment:${n}`;return i.change((n=>{const i=n.createRange(t);return n.addMarker(r,{usingOperation:!0,affectsData:!0,range:i}),n.setAttribute(r,e,o),r}))}removeHtmlComment(t){const e=this.editor,n=e.model.markers.get(t);return!!n&&(e.model.change((t=>{t.removeMarker(n)})),!0)}getHtmlCommentData(t){const e=this.editor.model.markers.get(t);if(!e)return null;let n="";for(const e of this.editor.model.document.getRoots())if(e.hasAttribute(t)){n=e.getAttribute(t);break}return{content:n,position:e.getStart()}}getHtmlCommentsInRange(t,{skipBoundaries:e=!1}={}){const n=!e;return Array.from(this.editor.model.markers.getMarkersGroup("$comment")).filter((e=>function(t,e){const i=t.getRange().start;return(i.isAfter(e.start)||n&&i.isEqual(e.start))&&(i.isBefore(e.end)||n&&i.isEqual(e.end))}(e,t))).map((t=>t.name))}}class sR extends $t{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,i="string"==typeof t.mention?{id:t.mention}:t.mention,o=i.id,r=t.range||n.getFirstRange();if(!e.canEditAt(r))return;const s=t.text||o,a=cR({_text:s,id:o},i);if(1!=t.marker.length)throw new Uu.CKEditorError("mentioncommand-incorrect-marker",this);if(o.charAt(0)!=t.marker)throw new Uu.CKEditorError("mentioncommand-incorrect-id",this);e.change((t=>{const i=(0,Uu.toMap)(n.getAttributes()),o=new Map(i.entries());o.set("mention",a),e.insertContent(t.createText(s,o),r),e.insertContent(t.createText(" ",i),r.start.getShiftedBy(s.length))}))}}class aR extends Yt{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=>lR(t)}}),t.conversion.for("downcast").attributeToElement({model:"mention",view:uR}),t.conversion.for("downcast").add(dR),n.registerPostFixer((t=>function(t,e,n){const i=e.differ.getChanges();let o=!1;for(const e of i){if("attribute"==e.type)continue;const i=e.position;if("$text"==e.name){const e=i.textNode&&i.textNode.nextSibling;o=mR(i.textNode,t)||o,o=mR(e,t)||o,o=mR(i.nodeBefore,t)||o,o=mR(i.nodeAfter,t)||o}if("$text"!=e.name&&"insert"==e.type){const e=i.nodeAfter;for(const n of t.createRangeIn(e).getItems())o=mR(n,t)||o}if("insert"==e.type&&n.isInline(e.name)){const e=i.nodeAfter&&i.nodeAfter.nextSibling;o=mR(i.nodeBefore,t)||o,o=mR(e,t)||o}}return o}(t,n,e.schema))),n.registerPostFixer((t=>function(t,e){const n=e.differ.getChanges();let i=!1;for(const e of n)if("attribute"===e.type&&"mention"!=e.attributeKey){const n=e.range.start.nodeBefore,o=e.range.end.nodeAfter;for(const r of[n,o])hR(r)&&r.getAttribute(e.attributeKey)!=e.attributeNewValue&&(t.setAttribute(e.attributeKey,e.attributeNewValue,r),i=!0)}return i}(t,n))),n.registerPostFixer((t=>function(t,e){const n=e.selection,i=n.focus;if(n.isCollapsed&&n.hasAttribute("mention")&&function(t){const e=t.isAtStart;return t.nodeBefore&&t.nodeBefore.is("$text")||e}(i))return t.removeSelectionAttribute("mention"),!0;return!1}(t,n))),t.commands.add("mention",new sR(t))}}function cR(t,e){return Object.assign({uid:(0,Uu.uid)()},t,e||{})}function lR(t,e){const n=t.getAttribute("data-mention"),i=t.getChild(0);if(!i)return;return cR({id:n,_text:i.data},e)}function dR(t){t.on("attribute:mention",((t,e,n)=>{const i=e.attributeNewValue;if(!e.item.is("$textProxy")||!i)return;const o=e.range.start;(o.textNode||o.nodeAfter).data!=i._text&&n.consumable.consume(e.item,t.name)}),{priority:"highest"})}function uR(t,{writer:e}){if(!t)return;const n={class:"mention","data-mention":t.id},i={id:t.uid,priority:20};return e.createAttributeElement("span",n,i)}function hR(t){if(!t||!t.is("$text")&&!t.is("$textProxy")||!t.hasAttribute("mention"))return!1;return t.data!=t.getAttribute("mention")._text}function mR(t,e){return!!hR(t)&&(e.removeAttribute("mention",t),!0)}var gR=__webpack_require__(6391),pR={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(gR.Z,pR);gR.Z.locals;class fR extends nl{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 Uu.Rect(this.element).contains(new Uu.Rect(t.element))}}class xR extends u{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 bR extends $c{highlight(){this.children.first.isOn=!0}removeHighlight(){this.children.first.isOn=!1}}const kR=[Uu.keyCodes.arrowup,Uu.keyCodes.arrowdown,Uu.keyCodes.esc],wR=[Uu.keyCodes.enter,Uu.keyCodes.tab];class AR extends Yt{static get pluginName(){return"MentionUI"}static get requires(){return[ru]}constructor(t){super(t),this._items=new Uu.Collection,this._mentionsView=this._createMentionView(),this._mentionsConfigurations=new Map,this._requestFeedDebounced=At(this._requestFeed,100),t.config.define("mention",{feeds:[]})}init(){const t=this.editor,n=t.config.get("mention.commitKeys")||wR,i=kR.concat(n);this._balloon=t.plugins.get(ru),t.editing.view.document.on("keydown",((t,e)=>{var o;o=e.keyCode,i.includes(o)&&this._isUIVisible&&(e.preventDefault(),t.stop(),e.keyCode==Uu.keyCodes.arrowdown&&this._mentionsView.selectNext(),e.keyCode==Uu.keyCodes.arrowup&&this._mentionsView.selectPrevious(),n.includes(e.keyCode)&&this._mentionsView.executeSelected(),e.keyCode==Uu.keyCodes.esc&&this._hideUIAndRemoveMarker())}),{priority:"highest"}),e({emitter:this._mentionsView,activator:()=>this._isUIVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUIAndRemoveMarker()});const o=t.config.get("mention.feeds");for(const t of o){const{feed:e,marker:n,dropdownLimit:i}=t;if(!ER(n))throw new Uu.CKEditorError("mentionconfig-incorrect-marker",null,{marker:n});const o={marker:n,feedCallback:"function"==typeof e?e.bind(this.editor):yR(e),itemRenderer:t.itemRenderer,dropdownLimit:i};this._mentionsConfigurations.set(n,o)}this._setupTextWatcher(o),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 fR(t);return e.items.bindTo(this._items).using((n=>{const{item:i,marker:o}=n,{dropdownLimit:r}=this._mentionsConfigurations.get(o),s=r||this.editor.config.get("mention.dropdownLimit")||10;if(e.items.length>=s)return null;const a=new bR(t),c=this._renderItem(i,o);return c.delegate("execute").to(a),a.children.add(c),a.item=i,a.marker=o,a.on("execute",(()=>{e.fire("execute",{item:i,marker:o})})),a})),e.on("execute",((t,e)=>{const n=this.editor,i=n.model,o=e.item,r=e.marker,s=n.model.markers.get("mention"),a=i.createPositionAt(i.document.selection.focus),c=i.createPositionAt(s.getStart()),l=i.createRange(c,a);this._hideUIAndRemoveMarker(),n.execute("mention",{mention:o,text:o.text,marker:r,range:l}),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),i=n(e);i instanceof Promise?i.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}),(0,Uu.logWarning)("mention-feed-callback-error",{marker:t})})):this.fire("requestFeed:response",{feed:i,marker:t,feedText:e})}_setupTextWatcher(t){const e=this.editor,n=t.map((t=>({...t,pattern:CR(t.marker,t.minimumCharacters||0)}))),i=new Yp(e.model,function(t){const e=e=>{const n=vR(t,e);if(!n)return!1;let i=0;0!==n.position&&(i=n.position-1);const o=e.substring(i);return n.pattern.test(o)};return e}(n));i.on("matched",((t,i)=>{const o=vR(n,i.text),r=e.model.document.selection.focus,s=e.model.createPositionAt(r.parent,o.position);if(function(t){const e=t.textNode&&t.textNode.hasAttribute("mention"),n=t.nodeBefore;return e||n&&n.is("$text")&&n.hasAttribute("mention")}(r)||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 i=CR(t.marker,0),o=e.substring(n).match(i);return o[2]}(o,i.text),c=o.marker.length+a.length,l=r.getShiftedBy(-c),d=r.getShiftedBy(-a.length),u=e.model.createRange(l,d);if(IR(e)){const t=e.model.markers.get("mention");e.model.change((e=>{e.updateMarker(t,{range:u})}))}else e.model.change((t=>{t.addMarker("mention",{range:u,usingOperation:!1,affectsData:!1})}));this._requestFeedDebounced(o.marker,a)})),i.on("unmatched",(()=>{this._hideUIAndRemoveMarker()}));const o=e.commands.get("mention");return i.bind("isEnabled").to(o),i}_handleFeedResponse(t){const{feed:e,marker:n}=t;if(!IR(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 i=this.editor.model.markers.get("mention");this._items.length?this._showOrUpdateUI(i):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),IR(this.editor)&&this.editor.model.change((t=>t.removeMarker("mention"))),this._mentionsView.position=void 0}_renderItem(t,e){const n=this.editor;let i,o=t.id;const r=this._getItemRenderer(e);if(r){const e=r(t);"string"!=typeof e?i=new xR(n.locale,e):o=e}if(!i){const t=new U(n.locale);t.label=o,t.withText=!0,i=t}return i}_getBalloonPanelPositionData(t,e){const n=this.editor,i=n.editing,o=i.view.domConverter,r=i.mapper;return{target:()=>{let e=t.getRange();"$graveyard"==e.start.root.rootName&&(e=n.model.document.selection.getFirstRange());const i=r.toViewRange(e);return Uu.Rect.getDomRangeRects(o.viewRangeToDom(i)).pop()},limiter:()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},positions:_R(e,n.locale.uiLanguageDirection)}}}function _R(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 vR(t,e){let n;for(const i of t){const t=e.lastIndexOf(i.marker);t>0&&!e.substring(t-1).match(i.pattern)||(!n||t>=n.position)&&(n={marker:i.marker,position:t,minimumCharacters:i.minimumCharacters,pattern:i.pattern})}return n}function CR(t,e){const n=0==e?"*":`{${e},}`,i=Uu.env.features.isRegExpUnicodePropertySupported?"\\p{Ps}\\p{Pi}\"'":"\\(\\[{\"'";return new RegExp(`(?:^|[ ${i}])([${t}])(.${n})$`,"u")}function yR(t){return e=>t.filter((t=>("string"==typeof t?t:String(t.id)).toLowerCase().includes(e.toLowerCase())))}function ER(t){return t&&1==t.length}function IR(t){return t.model.markers.has("mention")}var SR=__webpack_require__(7583),TR={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(SR.Z,TR);SR.Z.locals;class DR extends Yt{toMentionAttribute(t,e){return lR(t,e)}static get pluginName(){return"Mention"}static get requires(){return[aR,AR]}}class MR extends $t{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const i=function(t,e){const n=u_(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("element","$root"))return i.parent;return i}(t,n);return e.checkChild(i,"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 BR=__webpack_require__(6448),OR={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(BR.Z,OR);BR.Z.locals;class NR extends Yt{static get pluginName(){return"PageBreakEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion;e.register("pageBreak",{inheritAllFrom:"$blockObject"}),i.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"}))}),i.for("editingDowncast").elementToStructure({model:"pageBreak",view:(t,{writer:e})=>{const i=n("Page break"),o=e.createContainerElement("div"),r=e.createRawElement("span",{class:"page-break__label"},(function(t){t.innerText=n("Page break")}));return e.addClass("page-break",o),e.insert(e.createPositionAt(o,0),r),function(t,e,n){return e.setCustomProperty("pageBreak",!0,t),s_(t,e,{label:n})}(o,e,i)}}),i.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 MR(t))}}class PR extends Yt{static get pluginName(){return"PageBreakUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("pageBreak",(n=>{const i=t.commands.get("pageBreak"),o=new U(n);return o.set({label:e("Page break"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("pageBreak"),t.editing.view.focus()})),o}))}}class RR extends Yt{static get requires(){return[NR,PR,I_]}static get pluginName(){return"PageBreak"}}function LR(t,e){if(!t.childCount)return;const n=new Ga(t.document),i=function(t,e){const n=e.createRangeIn(t),i=new ke({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[];for(const t of n)if("elementStart"===t.type&&i.match(t.item)){const e=VR(t.item);o.push({element:t.item,id:e.id,order:e.order,indent:e.indent})}return o}(t,n);if(!i.length)return;let o=null,r=1;i.forEach(((t,s)=>{const a=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;const n=e.element.previousSibling;if(!n)return!0;return i=n,!(i.is("element","ol")||i.is("element","ul"));var i}(i[s-1],t),c=a?null:i[s-1],l=(u=t,(d=c)?u.indent-d.indent:u.indent-1);var d,u;if(a&&(o=null,r=1),!o||0!==l){const i=function(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),i=/mso-level-number-format:([^;]{0,100});/gi,o=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=n.exec(e);let s="decimal",a="ol",c=null;if(r&&r[1]){const e=i.exec(r[1]);if(e&&e[1]&&(s=e[1].trim(),a="bullet"!==s&&"image"!==s?"ol":"ul"),"bullet"===s){const e=function(t){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&&(s=e)}else{const t=o.exec(r[1]);t&&t[1]&&(c=parseInt(t[1]))}}return{type:a,startIndex:c,style:jR(s)}}(t,e);if(o){if(t.indent>r){const t=o.getChild(o.childCount-1),e=t.getChild(t.childCount-1);o=zR(i,e,n),r+=1}else if(t.indent<r){const e=r-t.indent;o=function(t,e){const n=t.getAncestors({parentFirst:!0});let i=null,o=0;for(const t of n)if((t.is("element","ul")||t.is("element","ol"))&&o++,o===e){i=t;break}return i}(o,e),r=t.indent}}else o=zR(i,t.element,n);t.indent<=r&&(o.is("element",i.type)||(o=n.rename(i.type,o)))}const h=function(t,e){return function(t,e){const n=new ke({name:"span",styles:{"mso-list":"Ignore"}}),i=e.createRangeIn(t);for(const t of i)"elementStart"===t.type&&n.match(t.item)&&e.remove(t.item)}(t,e),e.removeStyle("text-indent",t),e.rename("li",t)}(t.element,n);n.appendChild(h,o)}))}function jR(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 zR(t,e,n){const i=e.parent,o=n.createElement(t.type),r=i.getChildIndex(e)+1;return n.insertChild(r,o,i),t.style&&n.setStyle("list-style-type",t.style,o),t.startIndex&&t.startIndex>1&&n.setAttribute("start",t.startIndex,o),o}function VR(t){const e={},n=t.getStyle("mso-list");if(n){const t=n.match(/(^|\s{1,100})l(\d+)/i),i=n.match(/\s{0,100}lfo(\d+)/i),o=n.match(/\s{0,100}level(\d+)/i);t&&i&&o&&(e.id=t[2],e.order=i[1],e.indent=parseInt(o[1]))}return e}function FR(t,e){if(!t.childCount)return;const n=new Ga(t.document),i=function(t,e){const n=e.createRangeIn(t),i=new ke({name:/v:(.+)/}),o=[];for(const t of n){if("elementStart"!=t.type)continue;const e=t.item,n=e.previousSibling,r=n&&n.is("element")?n.name:null;i.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==r&&o.push(t.item.getAttribute("id"))}return o}(t,n);!function(t,e,n){const i=n.createRangeIn(e),o=new ke({name:"img"}),r=[];for(const e of i)if(e.item.is("element")&&o.match(e.item)){const n=e.item,i=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];i.length&&i.every((e=>t.indexOf(e)>-1))?r.push(n):n.getAttribute("src")||r.push(n)}for(const t of r)n.remove(t)}(i,t,n),function(t,e,n){const i=n.createRangeIn(e),o=[];for(const e of i)if("elementStart"==e.type&&e.item.is("element","v:shape")){const n=e.item.getAttribute("id");if(t.includes(n))continue;r(e.item.parent.getChildren(),n)||o.push(e.item)}for(const t of o){const e={src:s(t)};t.hasAttribute("alt")&&(e.alt=t.getAttribute("alt"));const i=n.createElement("img",e);n.insertChild(t.index+1,i,t.parent)}function r(t,e){for(const n of t)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==e)return!0;if(r(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")}}(i,t,n),function(t,e){const n=e.createRangeIn(t),i=new ke({name:/v:(.+)/}),o=[];for(const t of n)"elementStart"==t.type&&i.match(t.item)&&o.push(t.item);for(const t of o)e.remove(t)}(t,n);const o=function(t,e){const n=e.createRangeIn(t),i=new ke({name:"img"}),o=[];for(const t of n)t.item.is("element")&&i.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&o.push(t.item);return o}(t,n);o.length&&function(t,e,n){if(t.length===e.length)for(let i=0;i<t.length;i++){const o=`data:${e[i].type};base64,${UR(e[i].hex)}`;n.setAttribute("src",o,t[i])}}(o,function(t){if(!t)return[];const e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),i=t.match(n),o=[];if(i)for(const t of i){let n=!1;t.includes("\\pngblip")?n="image/png":t.includes("\\jpegblip")&&(n="image/jpeg"),n&&o.push({hex:t.replace(e,"").replace(/[^\da-fA-F]/g,""),type:n})}return o}(e),n)}function UR(t){return btoa(t.match(/\w{2}/g).map((t=>String.fromCharCode(parseInt(t,16)))).join(""))}const HR=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,GR=/xmlns:o="urn:schemas-microsoft-com/i;class qR{constructor(t){this.document=t}isActive(t){return HR.test(t)||GR.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;LR(e,n),FR(e,t.dataTransfer.getData("text/rtf")),function(t){const e=[],n=new Ga(t.document);for(const{item:i}of n.createRangeIn(t))if(i.is("element")){for(const t of i.getClassNames())/\bmso/gi.exec(t)&&n.removeClass(t,i);for(const t of i.getStyleNames())/\bmso/gi.exec(t)&&n.removeStyle(t,i);i.is("element","w:sdt")&&e.push(i)}for(const t of e){const e=t.parent,i=e.getChildIndex(t);n.insertChild(i,t.getChildren(),e),n.remove(t)}}(e),t.content=e}}function WR(t,e,n,{blockElements:i,inlineObjectElements:o}){let r=n.createPositionAt(t,"forward"==e?"after":"before");return r=r.getLastMatchingPosition((({item:t})=>t.is("element")&&!i.includes(t.name)&&!o.includes(t.name)),{direction:e}),"forward"==e?r.nodeAfter:r.nodeBefore}function KR(t,e){return!!t&&t.is("element")&&e.includes(t.name)}const ZR=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class YR{constructor(t){this.document=t}isActive(t){return ZR.test(t)}execute(t){const e=new Ga(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 i=t.getChildIndex(n);e.remove(n),e.insertChild(i,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 oi(e.document.stylesProcessor),i=new Yi(n,{renderingMode:"data"}),o=i.blockElements,r=i.inlineObjectElements,s=[];for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","br")){const n=WR(t,"forward",e,{blockElements:o,inlineObjectElements:r}),i=WR(t,"backward",e,{blockElements:o,inlineObjectElements:r}),a=KR(n,o);(KR(i,o)||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 JR=/<google-sheets-html-origin/i;class $R{constructor(t){this.document=t}isActive(t){return JR.test(t)}execute(t){const e=new Ga(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","google-sheets-html-origin")){const i=t.getChildIndex(n);e.remove(n),e.insertChild(i,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 QR(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 XR(t,e){const n=new DOMParser,i=function(t){return QR(QR(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>",i=t.indexOf(e);if(i<0)return t;const o=t.indexOf(n,i+e.length);return t.substring(0,i+e.length)+(o>=0?t.substring(o):"")}(t=(t=t.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),o=n.parseFromString(i,"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)}))}(o);const r=o.body.innerHTML,s=function(t,e){const n=new oi(e),i=new Yi(n,{renderingMode:"data"}),o=t.createDocumentFragment(),r=t.body.childNodes;for(;r.length>0;)o.appendChild(r[0]);return i.domToView(o,{skipComments:!0})}(o,e),a=function(t){const e=[],n=[],i=Array.from(t.getElementsByTagName("style"));for(const t of i)t.sheet&&t.sheet.cssRules&&t.sheet.cssRules.length&&(e.push(t.sheet),n.push(t.innerHTML));return{styles:e,stylesString:n.join(" ")}}(o);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}class tL extends Yt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[$A]}init(){const t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,i=[];i.push(new qR(n)),i.push(new YR(n)),i.push(new $R(n)),e.on("inputTransformation",((e,o)=>{if(o._isTransformedWithPasteFromOffice)return;if(t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const r=o.dataTransfer.getData("text/html"),s=i.find((t=>t.isActive(r)));s&&(o._parsedData||(o._parsedData=XR(r,n.stylesProcessor)),s.execute(o),o._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}}const eL=["every","createRange","class","previousSibling","_mapManualPageStarterInfoToPageBreakInfo","border-box","all","domRoots","_mapTextPageStarterInfoToPageBreakInfo","ELEMENT_NODE","dataset","pagination","nodeType","div",".page-break","_mapPageStarterInfoToPageBreakInfo","getClientRects","config","closest","root","table-cell","from","round","remove","PaginationLookup","nextElementSibling","mapViewToDom","length","_mapElementPageStarterInfoToPageBreakInfo","calc( ","join","createPositionBefore","map","get","setEnd","figure.image","path","PaginationEditing","getDomRoot","listenTo","startContainer","entries","ceil","_onUiReady","_configuredPaddings","nodeBefore","style","resolve","manual","rootName","_domNode","textOffset","_recalculatePageBreaksDebounced","10mm","height","floor","absolute","editor","bind","findMappedViewAncestor","fromCharCode","context","paddingLeft","TEXT_NODE","isEnabled","append","setStart","ownerDocument","page-break","ck-fake-selection-container","offsetParent","hidden","selectNodeContents","left","createRangeOn","type","load","endOffset","model","top","_pagesContainer","auto","ready","editing","isNaN","childElementCount","parentElement","_updatePageBreaksData","rootElement","render","addEventListener","parent","scrollLeft","startOffset","insertBefore","document","getAncestors","shift","window","getComputedStyle","once","width","pagination.pageMargins","body","toModelElement","ck-pagination-view","float","getRevision","set","plugins","isTouching","paddingRight","assign","bottom","img","then","element","sort","_recalculatePageBreaks","right","toModelPosition","classList","pagination-config-not-found","childNodes","view","low","_offset","toViewElement","error","contains","push","text","_findPageStarterInfos","domConverter","selectNode","parentNode","destroy"," 0 ","className","_getAttachedDomRoot","change:isEnabled","bindTemplate","imageBlock","afterInit","-99999px","getEarlierVisibleRevision","firstChild","mapper","removeEventListener","offset","locale"];var nL,iL;nL=eL,iL=309,function(t){for(;--t;)nL.push(nL.shift())}(++iL);const oL=function(t,e){return eL[t-=0]};class rL extends Yt{constructor(){super(...arguments),this[oL("0x49")]=null}static get pluginName(){return oL("0x11")}init(){if(this[oL("0x65")]({pageBreaks:[]}),!this[oL("0x32")][oL("0xa")].get(oL("0x4")))return void(0,Uu.logWarning)(oL("0x73"),this[oL("0x32")][oL("0xa")]);this[oL("0x2d")]=At((()=>this[oL("0x6f")]()),200),this[oL("0x49")]=null;const t=this.editor[oL("0x66")].get(oL("0x1e"));this[oL("0x33")](oL("0x39")).to(t),this[oL("0x32")].ui[oL("0x5d")](oL("0x4b"),(()=>this[oL("0x24")]())),this.on(oL("0x85"),((t,e,n)=>{n&&this[oL("0x2d")]()}))}[oL("0x88")](){!function(t){function e(t){return t[oL("0x19")]((t=>String[oL("0x35")](t)))[oL("0x17")]("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[oL("0x64")](0),r=i[oL("0x8a")](o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[oL("0x6c")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[oL("0x4d")](Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[oL("0x4d")](Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t[oL("0x36")]:t[oL("0x32")],d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l[oL("0xa")][oL("0x1a")](e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}[oL("0x81")](){super[oL("0x81")](),this[oL("0x49")]&&(this[oL("0x2d")].cancel(),this[oL("0x49")][oL("0x81")](),this._pagesContainer.element[oL("0x10")]())}[oL("0x24")](){const t=this[oL("0x32")],e=t[oL("0x4c")].view,n=this[oL("0x84")]();if(!n||0===n[oL("0x4e")])return void t.ui[oL("0x5d")]("update",(()=>this[oL("0x24")]()));const{pageWidth:i,pageHeight:o}=t[oL("0xa")][oL("0x1a")](oL("0x4")),{top:r,left:s,bottom:a,right:c}=this[oL("0x25")];this[oL("0x49")]=new u(t[oL("0x8f")]);const l=this[oL("0x49")];l[oL("0x65")](oL("0x92"),""),l.setTemplate({tag:oL("0x6"),attributes:{contenteditable:!0,style:{columnWidth:i,width:i,height:oL("0x16")+o+" - "+r+" - "+a+" )",minWidth:oL("0x4a"),minHeight:oL("0x4a"),padding:"0 "+c+oL("0x82")+s,columnGap:"100px",border:0,boxSizing:oL("0x95"),columnCount:"auto",columnFill:oL("0x4a"),overflow:oL("0x40"),position:oL("0x31"),top:oL("0x89"),left:"-99999px"},class:l[oL("0x86")].to(oL("0x92"))}}),l[oL("0x52")](),n.parentNode[oL("0x57")](l[oL("0x6d")],n.nextSibling),this[oL("0x20")](e,oL("0x52"),(()=>this[oL("0x2d")]()),{priority:oL("0x76")}),this._recalculatePageBreaksDebounced()}[oL("0x84")](){for(const t of this.editor.editing[oL("0x75")].domRoots.values())if(t[oL("0x3c")][oL("0x60")].contains(t))return t;return null}[oL("0x6f")](){if(!this[oL("0x39")])return Promise[oL("0x28")]();const t=this[oL("0x32")][oL("0x4c")][oL("0x75")],e=this[oL("0x49")],n=this._getAttachedDomRoot();if(!n)return Promise.resolve();for(e[oL("0x92")]=["ck-reset",oL("0x62"),...n[oL("0x72")]].join(" ");e.element.firstChild;)e[oL("0x6d")][oL("0x8b")][oL("0x10")]();const i=Array.from(t[oL("0x0")]);i[oL("0x6e")]((([,t],[,e])=>t.compareDocumentPosition(e)==Node.DOCUMENT_POSITION_PRECEDING?1:-1));for(const[t,n]of i){const i=document.createElement(oL("0x6"));i[oL("0x3")][oL("0x2a")]=t,e.element[oL("0x3a")](i);for(const t of[...n.cloneNode(!0)[oL("0x74")]])i.append(t)}return(o=Array[oL("0xe")](e.element.querySelectorAll(oL("0x6b"))),Promise[oL("0x96")](o.map((t=>{return Promise.race([(n=t,new Promise((t=>{function e(){n[oL("0x8d")](oL("0x45"),e),n[oL("0x8d")](oL("0x79"),e),t()}n.complete?t():(n.addEventListener(oL("0x45"),e),n[oL("0x53")](oL("0x79"),e))}))),(e=1e3,new Promise((t=>setTimeout(t,e))))]);var e,n}))))[oL("0x6c")]((()=>this[oL("0x50")]()));var o}[oL("0x50")](){const t=this[oL("0x49")][oL("0x6d")];if(!t[oL("0x3c")][oL("0x60")][oL("0x7a")](t))return;const e=new Uu.Rect(t).excludeScrollbarsAndBorders(),n=Uu.global[oL("0x5b")][oL("0x5c")](t),i=parseFloat(n[oL("0x37")])+parseFloat(n[oL("0x68")]),o=Math.floor(e[oL("0x5e")]+100-i),r=uL(t,Math[oL("0x30")](e[oL("0x42")]-t[oL("0x55")]),o)[oL("0x19")]((t=>this._mapPageStarterInfoToPageBreakInfo(t)));r[oL("0x90")]((t=>!!t))&&(this.pageBreaks=r)}[oL("0x8")](t){const e=this[oL("0x32")][oL("0x4c")].view,n=this[oL("0x32")][oL("0x4c")][oL("0x8c")],i=e[oL("0x7e")],o=t[oL("0x1d")][oL("0x5a")](),r=this[oL("0x49")][oL("0x6d")][oL("0x74")][o][oL("0x3")][oL("0x2a")],s=e[oL("0x1f")](r);if(!s)return null;const a=function(t,e){let n=t;for(const t of e[oL("0x1d")]){if(!n)return null;n=n.childNodes[t]}return n}(s,t);if(!a)return null;const c=i.domPositionToView(a,t[oL("0x2c")]||0);return c?oL("0x29")==t[oL("0x44")]?this[oL("0x94")](c,a):oL("0x7c")==t.type&&n[oL("0x71")](c)[oL("0x8e")]?this[oL("0x1")](c,a,t[oL("0x2c")]):this._mapElementPageStarterInfoToPageBreakInfo(c,a,t[oL("0x8e")]):null}[oL("0x94")](t,e){const n=this.editor.model,i=this[oL("0x32")][oL("0x4c")][oL("0x8c")][oL("0x61")](t[oL("0x54")]),o=n[oL("0x43")](i);return new sL({type:oL("0x29"),modelRange:o,domNode:e,offset:0})}[oL("0x1")](t,e,n){const i=this.editor[oL("0x47")],o=this[oL("0x32")][oL("0x4c")][oL("0x8c")],r=this[oL("0x32")][oL("0x4c")][oL("0x75")][oL("0x7e")];if(n>=e.length)return null;const s=o[oL("0x71")](t),a=i[oL("0x91")](s),c=o[oL("0x34")](t),l=r[oL("0x13")](c);return new sL({type:oL("0x7c"),modelRange:a,domNode:e,offset:aL(e,n,l)})}[oL("0x15")](t,e,n){const i=this.editor[oL("0x47")],o=this[oL("0x32")].editing,r=o[oL("0x8c")],s=o[oL("0x75")][oL("0x7e")],a=r[oL("0x34")](t),c=r[oL("0x61")](a),l=function(t){const e=t[oL("0x54")],n=e.root[oL("0x58")][oL("0x47")],i=e[oL("0x59")]({parentFirst:!0,includeSelf:!0});let o=null;for(const e of i){if(e.is(oL("0x51")))return o;if(!n.createPositionBefore(e)[oL("0x67")](t))return o;o=e}}(i[oL("0x18")](c))||c;let d=r[oL("0x78")](l),u=i.createRangeOn(l);const h=i[oL("0x18")](l)[oL("0x26")];if(h&&h.is(oL("0x6d"),oL("0x87"))){const t=r[oL("0x78")](h),e=s[oL("0x13")](t),n=Uu.global[oL("0x5b")][oL("0x5c")](e)[oL("0x63")];oL("0x42")!=n&&"right"!=n||(u=i[oL("0x43")](h))}for(;d[oL("0x54")]!==d[oL("0xc")]&&0===d.index;)d=d[oL("0x54")];const m=new Uu.Rect(fL(e)?e:cL(e)),g=n?m.height-n:0,p=s[oL("0x13")](d),f=new Uu.Rect(p);return new sL({type:oL("0x6d"),modelRange:u,domNode:p,offset:Math[oL("0xf")](g)?g+m.top-f[oL("0x48")]:0})}get[oL("0x25")](){const t=this.editor.config[oL("0x1a")](oL("0x5f"));return Object[oL("0x69")]({top:"10mm",bottom:"10mm",left:oL("0x2e"),right:oL("0x2e")},t)}static[oL("0x7d")](t,e,n,i){return uL(t,e,n,i)}}class sL{constructor({type:t,modelRange:e,domNode:n,offset:i}){this.type=t,this.modelRange=e,this[oL("0x2b")]=n,this[oL("0x77")]=i}get[oL("0x8e")](){if(!this[oL("0x2b")].ownerDocument.body[oL("0x7a")](this[oL("0x2b")]))return 0;const t=new Uu.Rect(fL(this[oL("0x2b")])?this._domNode:cL(this._domNode));return oL("0x29")==this[oL("0x44")]?t[oL("0x48")]+t[oL("0x2f")]/2:t.top+this[oL("0x77")]}}function aL(t,e,n){const i=cL(t),o=function(t){const e=Uu.global[oL("0x58")][oL("0x91")]();return e[oL("0x41")](t),e}(n);let r;r=0==e?dL(o[oL("0x21")],o[oL("0x56")],t[oL("0x80")],Array.from(t[oL("0x80")][oL("0x74")]).indexOf(t)):dL(o[oL("0x21")],o[oL("0x56")],t,e);const s=dL(t,e,o.endContainer,o[oL("0x46")]),a=new Uu.Rect(r)[oL("0x6a")];return(new Uu.Rect(s)[oL("0x48")]+a)/2-new Uu.Rect(i)[oL("0x48")]}function cL(t){const e=Uu.global[oL("0x58")].createRange();return e[oL("0x7f")](t),e}function lL(t,e,n){const i=Uu.global[oL("0x58")].createRange();return i[oL("0x3b")](t,e),i[oL("0x1b")](t,n),i}function dL(t,e,n,i){const o=Uu.global.document.createRange();return o.setStart(t,e),o[oL("0x1b")](n,i),o}function uL(t,e,n,i){const o=[];for(const[r,s]of t.childNodes[oL("0x22")]()){let t=[];fL(s)&&s[oL("0x3f")]&&!s[oL("0x27")].position?t=hL(s,r,e,n,i):s[oL("0x5")]==Node[oL("0x38")]&&(t=mL(s,r,e,n,i)),t[oL("0x14")]&&(o[oL("0x7b")](...t),e+=t.length*n,i=!1)}return o}function hL(t,e,n,i,o){const r=[];var s;(s=t[oL("0x93")])&&fL(s)&&Boolean(s[oL("0x72")].contains(oL("0x3d"))||s.closest(oL("0x7")))&&(r[oL("0x7b")]({type:oL("0x29"),offset:0,path:[e-1]}),o=!0);const a=t[oL("0xb")](oL("0x1c"));if(a&&function(t){let e=!1;const n=t[oL("0x4f")][oL("0x3")][oL("0x2a")],i=t[oL("0x12")],o=t.previousElementSibling,r=i&&Uu.global[oL("0x5b")][oL("0x5c")](i)[oL("0x63")],s=i&&oL("0x3e")===i[oL("0x83")];return!n||i||o||(e=!0),n&&!o&&s&&(e=!0),n&&!o&&"none"!==r&&(e=!0),!e}(a)){const t=Uu.global[oL("0x5b")][oL("0x5c")](a)[oL("0x63")];if(oL("0x42")==t||oL("0x70")==t)return r}const c=uL(t,n,i,o);if(c[oL("0x14")]){for(const t of c)r.push({type:t.type,offset:t.offset,textOffset:t[oL("0x2c")],path:[e,...t[oL("0x1d")]]}),n+=i,o=!1;return r}return r[oL("0x7b")](...function(t,e,n,i,o){const r=[];if(oL("0xd")==Uu.global[oL("0x5b")][oL("0x5c")](t).display)return[];const s=[];for(const e of t.getClientRects())if(e[oL("0x42")]>=n){for(const t of s)t.height+=e.height;s[oL("0x7b")]({height:e[oL("0x2f")]}),n+=i}for(const t of s)o||r[oL("0x7b")]({type:oL("0x6d"),offset:t[oL("0x2f")],textOffset:0,path:[e]}),o=!1;return r}(t,e,n,i,o)),r}function mL(t,e,n,i,o){const r=cL(t),s=[];let a=0;for(const c of r.getClientRects())if(c[oL("0x42")]>=n){const r=gL(t,a,n,i);o||s[oL("0x7b")]({type:oL("0x7c"),path:[e],textOffset:r}),a=r,n+=i,o=!1}return s}function gL(t,e,n,i){let o=e,r=t[oL("0x14")];for(;r-o>1;){const e=Math[oL("0x23")]((o+r)/2);pL(lL(t,o,e),n,i)?r=e:o=e}return o}function pL(t,e,n){for(const i of t[oL("0x9")]())if(i[oL("0x42")]>=e&&i[oL("0x42")]<e+n)return!0;return!1}function fL(t){return t[oL("0x5")]==Node[oL("0x2")]}var xL=__webpack_require__(8805),bL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(xL.Z,bL);xL.Z.locals;const kL=["width","pageNumber","div","bindTemplate","top","isVisible","ck-hidden","setTemplate","ck-pagination-view-line","left","set"];var wL,AL;wL=kL,AL=406,function(t){for(;--t;)wL.push(wL.shift())}(++AL);const _L=function(t,e){return kL[t-=0]},vL=(0,Uu.toUnit)("px");class CL extends u{constructor(){super();const t=this[_L("0x4")];this[_L("0x0")]({isVisible:!1,left:null,top:null,width:null,pageNumber:null}),this[_L("0x8")]({tag:_L("0x3"),attributes:{"data-page-number":t.to(_L("0x2")),class:["ck",_L("0x9"),t.if(_L("0x6"),_L("0x7"),(t=>!t))],style:{left:t.to(_L("0xa"),(t=>vL(t))),top:t.to(_L("0x5"),(t=>vL(t))),width:t.to(_L("0x1"),(t=>vL(t)))}}})}}const yL=["delete","cleanLines","view","_viewCollection","_visibleLines","_hiddenLines","isVisible","size","destroy","set","add"];var EL,IL;EL=yL,IL=105,function(t){for(;--t;)EL.push(EL.shift())}(++IL);const SL=function(t,e){return yL[t-=0]};class TL{constructor(t){this._visibleLines=new Set,this[SL("0xa")]=new Set,this[SL("0x8")]=t.ui[SL("0x7")].body}[SL("0x2")](){for(const t of this[SL("0xa")])t[SL("0x2")]()}[SL("0x6")](){for(const t of this[SL("0x9")])t[SL("0x0")]=!1,this[SL("0xa")][SL("0x4")](t);this[SL("0x9")].clear()}showLine(t,e,n,i){let o;this[SL("0xa")][SL("0x1")]?(o=(0,Uu.first)(this[SL("0xa")].values()),this._hiddenLines[SL("0x5")](o)):(o=new CL,this._viewCollection[SL("0x4")](o)),o.pageNumber=i,o.isVisible=!0,this[SL("0x9")][SL("0x4")](o),o[SL("0x3")]({left:t,top:e,width:n})}}const DL=["_onUiReady","parentElement","editor","ownerDocument","document","pageNumber","_resizeObserver","_updateEditingRootsClass","_updatePageBreakLines","ck-pagination_disabled","plugins","body","getComputedStyle","_renderPageBreakLine","roots","top","once","_getAttachedDomRoot","removeClass","addClass","cleanLines","_scrollableEditingRootDomAncestor","pluginName","width","destroy","height","scrollTo","overflowY","isEnabled","update","set","scrollTop","length","editing","change","left","scrollToPage","excludeScrollbarsAndBorders","change:isEnabled","auto","view","smooth","PaginationEditing","_paginationLookupPlugin","bottom","listenTo","offset","scrollLeft","scroll","resize","get","values","_getPageBreakLineOffset","change:pageBreaks","showLine","ready","contains","_linesRepository","PaginationLookup","window"];var ML,BL;ML=DL,BL=165,function(t){for(;--t;)ML.push(ML.shift())}(++BL);const OL=function(t,e){return DL[t-=0]},NL=OL("0x18");class PL extends Yt{constructor(){super(...arguments),this[OL("0x24")]=null,this[OL("0x15")]=null}static get[OL("0x25")](){return"PaginationRenderer"}init(){this[OL("0x2d")]({pageNumber:1}),this._linesRepository=new TL(this[OL("0x11")]),this[OL("0x24")]=null,this._resizeObserver=null,this[OL("0x3a")]=this[OL("0x11")].plugins.get(OL("0xd")),this.bind(OL("0x2b")).to(this.editor[OL("0x19")][OL("0x5")](OL("0x39"))),this[OL("0x11")].ui[OL("0x1f")](OL("0xa"),(()=>this[OL("0xf")]())),this.on(OL("0x35"),((t,e,n)=>{n||this[OL("0xc")][OL("0x23")](),this[OL("0x16")](n)}))}destroy(){this[OL("0xc")][OL("0x27")](),this[OL("0x24")]=null,this._resizeObserver&&this._resizeObserver[OL("0x27")]()}[OL("0x33")](t){if(!this[OL("0x2b")])return;const e=t>1?this[OL("0x7")](t-1):0;this[OL("0x24")][OL("0x29")]({top:e-10,left:this[OL("0x24")][OL("0x2")],behavior:OL("0x38")})}[OL("0xf")](){const t=this[OL("0x11")],e=this._getAttachedDomRoot();e?(this[OL("0x24")]=function(t){let e=t;do{e=e[OL("0x10")];const t=Uu.global[OL("0xe")][OL("0x1b")](e)[OL("0x2a")];if(OL("0x36")==t||OL("0x3")==t)break}while("BODY"!=e.tagName);return e}(e),t.ui[OL("0x37")].listenTo(this[OL("0x24")],"scroll",(()=>{this[OL("0x17")]()}),{usePassive:!0}),t.ui[OL("0x37")].listenTo(Uu.global[OL("0xe")],OL("0x4"),(()=>this._updatePageBreakLines())),this._resizeObserver=new Uu.ResizeObserver(this._scrollableEditingRootDomAncestor,(()=>{this[OL("0x17")]()})),this[OL("0x0")](this._paginationLookupPlugin,OL("0x8"),(()=>this[OL("0x17")]()))):t.ui.once(OL("0x2c"),(()=>this[OL("0xf")]()))}[OL("0x20")](){for(const t of this[OL("0x11")][OL("0x30")][OL("0x37")].domRoots[OL("0x6")]())if(t[OL("0x12")][OL("0x1a")][OL("0xb")](t))return t;return null}[OL("0x17")](){if(!this[OL("0x2b")])return;const t=this[OL("0x20")](),e=this[OL("0x3a")].pageBreaks;if(this[OL("0xc")][OL("0x23")](),!t||1==e[OL("0x2f")])return void(this[OL("0x14")]=1);const n=new Uu.Rect(t)[OL("0x34")](),i=new Uu.Rect(this._scrollableEditingRootDomAncestor)[OL("0x34")](),o=i[OL("0x1e")]+i[OL("0x28")]/3;let r=!1;for(let t=1;t<e[OL("0x2f")];t++){const e=this[OL("0x7")](t,i);if(!e)continue;const s=i.top+e-this._scrollableEditingRootDomAncestor[OL("0x2e")];this[OL("0x1c")](s,n,i,t),s>o&&!r&&(this[OL("0x14")]=t,r=!0)}r||(this[OL("0x14")]=e[OL("0x2f")])}[OL("0x1c")](t,e,n,i){const{scrollX:o,scrollY:r}=Uu.global[OL("0xe")];n[OL("0x1e")]<t&&t<n[OL("0x3b")]&&this[OL("0xc")][OL("0x9")](e[OL("0x32")]+o,t+r,e[OL("0x26")],i+1)}[OL("0x7")](t,e=null){const n=this[OL("0x3a")].pageBreaks[t][OL("0x1")];return n?(e||(e=new Uu.Rect(this._scrollableEditingRootDomAncestor)[OL("0x34")]()),n-e.top+this[OL("0x24")][OL("0x2e")]):0}[OL("0x16")](t){const e=this.editor[OL("0x30")][OL("0x37")];e[OL("0x31")]((n=>{for(const i of e[OL("0x13")][OL("0x1d")])t?n[OL("0x21")](NL,i):n[OL("0x22")](NL,i)}))}}var RL=__webpack_require__(3857),LL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(RL.Z,LL);RL.Z.locals;const jL=["_setUpDataDowncastConversion","listenTo","createContainerElement","dataDowncast","plugins","pagination-invalid-license-key","model","set","config","info","bind","You are using the trial version of CKEditor 5 pagination plugin with limited usage. Make sure you will not use it in the production environment.","updateMarker","parent","substring","paginationLicenseKeyTrial","length","always","span","paginationLicenseKeyValid","add","_licenseKeyCheckInterval","setAttribute","$text","change:pageBreaks","checkChild","pluginName","setStyle","get","nodeAfter","stop","toViewElement","root","index","schema","mapper","getContainedElement","options","Pagination","totalPages","addMarker:","change","scrollToPage","addMarker","removeMarker","data-pagination-page","editor","pagination-trial-license-key-reached-limit-changes","markers","PaginationEditing","insert","writer","isEnabled","init","has","bindElementToMarker","paginationLicenseKeyTrialLimit:operations","start","licenseKey","name","pagination","conversion","pagination:","_updatePageBreakMarkers"];var zL,VL;zL=jL,VL=447,function(t){for(;--t;)zL.push(zL.shift())}(++VL);const FL=function(t,e){return jL[t-=0]};class UL extends Yt{static get[FL("0x1b")](){return FL("0x32")}static get requires(){return[rL,PL]}[FL("0x36")](){this[FL("0x8")]({pageNumber:1,totalPages:1});const t=this[FL("0x2f")].plugins[FL("0x1d")](FL("0x27")),e=this.editor[FL("0x5")][FL("0x1d")](rL),n=this[FL("0x2f")][FL("0x5")][FL("0x1d")](PL);this.bind(FL("0x35")).to(t),this._setUpDataDowncastConversion(),this[FL("0xb")]("pageNumber").to(n),this[FL("0x2")](e,FL("0x19"),((t,e,n,i)=>{this.totalPages=n[FL("0x11")],this[FL("0x0")](n,i)}));const i=this[FL("0x2f")];this.licenseKey=i[FL("0x9")][FL("0x1d")](FL("0x3b")),this[FL("0x16")]=setInterval((()=>{let t;for(const e in i){const n=e,o=i[n];if(FL("0x10")===o||"paginationLicenseKeyInvalid"===o||FL("0x14")===o||"paginationLicenseKeyTrialLimit:operations"===o){delete i[n],t=o;break}}if("paginationLicenseKeyInvalid"===t)throw clearInterval(this[FL("0x16")]),new Uu.CKEditorError(FL("0x6"),null);if(FL("0x10")===t&&console[FL("0xa")](FL("0xc")),FL("0x39")===t)throw clearInterval(this[FL("0x16")]),new Uu.CKEditorError(FL("0x30"),null);"paginationLicenseKeyValid"===t&&clearInterval(this[FL("0x16")])}),1e3)}destroy(){clearInterval(this[FL("0x16")])}[FL("0x2b")](t){this.isEnabled&&(t<1&&(t=1),t>this.totalPages&&(t=this[FL("0x28")]),this[FL("0x2f")].plugins.get(PL)[FL("0x2b")](t))}[FL("0x0")](t,e){const n=this.editor[FL("0x7")];this[FL("0x35")]&&n[FL("0x2a")]((i=>{for(let e=1;e<t.length;e++){const o=t[e].modelRange,r=FL("0x3f")+(e+1);n[FL("0x31")].has(r)?i[FL("0xd")](r,{range:o}):i[FL("0x2c")](r,{range:o,usingOperation:!1,affectsData:!0})}for(let o=t[FL("0x11")];o<e[FL("0x11")];o++){const t=FL("0x3f")+(o+1);n.markers[FL("0x37")](t)&&i[FL("0x2d")](t)}}))}[FL("0x1")](){const t=FL("0x3d");this[FL("0x2f")][FL("0x3e")].for(FL("0x4"))[FL("0x15")]((e=>{e.on(FL("0x29")+t,((t,{markerRange:e,markerName:n},i)=>{if(!i[FL("0x26")].pagination)return;if(!i.consumable.consume(e,t[FL("0x3c")]))return;const o=e[FL("0x25")]();let r=o?i[FL("0x24")][FL("0x20")](o):null;if(!r){const t=e[FL("0x3a")];if(i[FL("0x23")][FL("0x1a")](t,FL("0x18"))){const e=i[FL("0x24")].toViewPosition(t);r=i[FL("0x34")][FL("0x3")](FL("0x13")),r.getFillerOffset=()=>null,i[FL("0x34")][FL("0x33")](e,r)}else{const e=t[FL("0x1e")];r=i.mapper[FL("0x20")](e)}}for(;r[FL("0xe")]!==r[FL("0x21")]&&0===r[FL("0x22")];)r=r[FL("0xe")];const s=n[FL("0xf")](11);i[FL("0x34")][FL("0x1c")]("page-break-before",FL("0x12"),r),i.writer[FL("0x17")](FL("0x2e"),s,r),i[FL("0x24")][FL("0x38")](r,n),t[FL("0x1f")]()}))}))}}var HL=__webpack_require__(3898),GL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(HL.Z,GL);HL.Z.locals;const qL=["keyCode","firstChild","bindTemplate","div","setTemplate","ck-disabled","isEnabled","element","totalPages","set","bind","valueAsNumber","change:pageNumber","numeric","blur","listenTo","fire","focus","value","ck-page-navigator","max","pageNumberView","pageNumber","checkValidity","isNaN"];var WL,KL;WL=qL,KL=204,function(t){for(;--t;)WL.push(WL.shift())}(++KL);const ZL=function(t,e){return qL[t-=0]};class YL extends u{constructor(t){super(t);const e=this[ZL("0x17")];this[ZL("0x5")]({pageNumber:1,totalPages:1,isEnabled:!0}),this[ZL("0x11")]=new Ot(t,{min:1,step:1}),this[ZL("0x11")][ZL("0x5")]({inputMode:ZL("0x9")}),this[ZL("0x11")][ZL("0x6")](ZL("0x10")).to(this,ZL("0x4")),this[ZL("0x11")][ZL("0x6")]("isReadOnly").to(this,ZL("0x2"),(t=>!t)),this[ZL("0x0")]({tag:ZL("0x18"),attributes:{class:["ck",ZL("0xf"),e.if(ZL("0x2"),ZL("0x1"),(t=>!t))]},children:[this[ZL("0x11")],{tag:"span",children:[{text:e.to(ZL("0x4"))}]}]})}render(){super.render();const t=this.pageNumberView.element,e=t=>{this[ZL("0x11")].element[ZL("0xe")]=String(t)};e(this[ZL("0x12")]),this.on(ZL("0x8"),((t,n,i)=>{e(i)})),this.listenTo(t,"keydown",((e,n)=>{if(n[ZL("0x15")]!==Uu.keyCodes.enter)return;const i=t[ZL("0x7")];Number[ZL("0x14")](i)?t[ZL("0xe")]=String(this[ZL("0x12")]):(t[ZL("0x13")]()?this[ZL("0x12")]=i:i>this.totalPages?(this.pageNumber=this.totalPages,t.value=String(this[ZL("0x4")])):(this[ZL("0x12")]=1,t[ZL("0xe")]="1"),this[ZL("0xc")]("navigation",this[ZL("0x12")]))})),this[ZL("0xb")](t,ZL("0xa"),(()=>{t[ZL("0xe")]=String(this.pageNumber)})),this[ZL("0xb")](t,ZL("0xd"),(()=>{this[ZL("0x11")].select()}))}[ZL("0xd")](){this[ZL("0x3")][ZL("0x16")][ZL("0xd")]()}}class JL extends Yt{static get pluginName(){return"PaginationUI"}init(){const t=this.editor,e=t.plugins.get("PaginationEditing"),n=t.locale.t;t.ui.componentFactory.add("pageNavigation",(t=>{const n=new YL(t);return n.bind("pageNumber").to(e),n.bind("totalPages").to(e),n.bind("isEnabled").to(e),n.on("navigation",((t,n)=>{e.scrollToPage(n)})),n})),t.ui.componentFactory.add("nextPage",(t=>{const i=new U(t);return i.isEnabled=!0,i.label=n("Show next page"),i.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 .75a9.25 9.25 0 110 18.5 9.25 9.25 0 010-18.5zm0 1.5a7.75 7.75 0 100 15.5 7.75 7.75 0 000-15.5zm0 2.022a.75.75 0 01.743.649l.007.101v8.165l2.714-2.705a.75.75 0 01.977-.07l.084.072a.75.75 0 01.07.976l-.072.084-3.994 3.981a.75.75 0 01-.975.073l-.084-.073-3.99-3.98a.75.75 0 01.975-1.135l.085.072 2.71 2.706V5.022a.75.75 0 01.75-.75z"/></svg>\n',i.tooltip=!0,i.bind("isEnabled").to(e),this.listenTo(i,"execute",(()=>{let t=e.pageNumber+1;t>e.totalPages&&(t=e.totalPages),e.scrollToPage(t)})),i})),t.ui.componentFactory.add("previousPage",(t=>{const i=new U(t);return i.isEnabled=!0,i.label=n("Show previous page"),i.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 19.25a9.25 9.25 0 100-18.5 9.25 9.25 0 000 18.5zm0-1.5a7.75 7.75 0 110-15.5 7.75 7.75 0 010 15.5zm0-2.022a.75.75 0 00.743-.649l.007-.101V6.813l2.714 2.705a.75.75 0 00.977.07l.084-.072a.75.75 0 00.07-.976l-.072-.084-3.994-3.981a.75.75 0 00-.975-.073l-.084.073-3.99 3.98a.75.75 0 00.975 1.135l.085-.072 2.71-2.706v8.166c0 .414.336.75.75.75z"/></svg>\n',i.tooltip=!0,i.bind("isEnabled").to(e),this.listenTo(i,"execute",(()=>{let t=e.pageNumber-1;0===t&&(t=1),e.scrollToPage(t)})),i}))}}const $L=["scrollToPage","totalPages","editor","config","requires","bind","pluginName","pagination.enableOnUnsupportedBrowsers","forceDisabled","get","init","plugins","Pagination"];var QL,XL;QL=$L,XL=472,function(t){for(;--t;)QL.push(QL.shift())}(++XL);const tj=function(t,e){return $L[t-=0]};class ej extends Yt{static get[tj("0x2")](){return tj("0x8")}static get[tj("0x0")](){return[UL,JL]}[tj("0x6")](){this.set({pageNumber:1,totalPages:1});const t=this[tj("0xb")][tj("0x7")][tj("0x5")](UL);this[tj("0x1")]("pageNumber").to(t),this[tj("0x1")](tj("0xa")).to(t),Uu.env.isBlink||this[tj("0xb")][tj("0xc")][tj("0x5")](tj("0x3"))||this[tj("0x4")]("browserCheck")}[tj("0x9")](t){this.editor[tj("0x7")].get(UL).scrollToPage(t)}}var nj=__webpack_require__(3521);const ij=["connect","init","CONNECTING","cloudservices-reconnection-error","connection","catch","_shouldPluginsReconnect","pluginName","define","websocketgateway-plugin-already-registered","has","initialReconnectionInterval","online","addToReconnectionStack","isInReconnectionStack","listenTo","WebSocketGateway","plugins","cloudServices.connectionTimeout","code","_domEmitter","DISCONNECTED","connected","config","error","function","Connected users limit exceeded","token","webSocketUrl","create","context","bind","add","get","constructor","_reconnect","_reconnectionStack","cloudservices-init","all","The limit of maximum concurrent connections that the collaboration server can handle has been reached. Try opening the document again in a few minutes. Please contact your system administrator if the problem persists.","change:me","delete","then","CONNECTED","_isBrowserOffline","real-time-collaboration","state","destroy","limitExceeded","websocketgateway-missing-token","requires","CloudServices","set","disconnect","stopListening","cloudServices.requestTimeout","websocketgateway-missing-websocket-url"];var oj,rj;oj=ij,rj=234,function(t){for(;--t;)oj.push(oj.shift())}(++rj);const sj=function(t,e){return ij[t-=0]};class aj extends ne{static get[sj("0x2c")](){return[sj("0x2d"),$d]}static get[sj("0x1")](){return"WebSocketGateway"}constructor(t){super(t),this.set(sj("0x28"),nj.WEB_SOCKET_GATEWAY_STATES[sj("0x25")]),this[sj("0x2e")](sj("0x26"),!1),this[sj("0x1e")]=new Set,this[sj("0x0")]=!1,this[sj("0xe")]=Object[sj("0x17")](Uu.DomEmitterMixin)}[sj("0x34")](){const t=this[sj("0x18")],e=t[sj("0xb")].get("CloudServices"),n=t.plugins[sj("0x1b")]($d);if(!e[sj("0x15")])throw new Uu.CKEditorError(sj("0x2b"),this);if(!e[sj("0x16")])throw new Uu.CKEditorError(sj("0x32"),this);return this._domEmitter[sj("0x9")](window,"offline",(()=>this[sj("0x26")]=!0)),this[sj("0xe")][sj("0x9")](window,sj("0x6"),(()=>this[sj("0x26")]=!1)),this[sj("0x18")][sj("0x11")][sj("0x2")](sj("0xc"),10),this.context[sj("0x11")][sj("0x2")](sj("0x31"),20),aj[sj("0xa")][sj("0x33")](e.token,e[sj("0x16")],{timeout:1e3*this[sj("0x18")][sj("0x11")][sj("0x1b")](sj("0xc")),requestTimeout:1e3*this.context[sj("0x11")][sj("0x1b")](sj("0x31"))})[sj("0x24")]((t=>{if(this[sj("0x37")]=t,this[sj("0x19")](sj("0x28")).to(t,sj("0x28"),this,sj("0x26"),((t,e)=>(sj("0x10")!==t&&(this[sj("0x0")]=!0),e||t!==nj.WEB_SOCKET_GATEWAY_STATES.CONNECTED?nj.WEB_SOCKET_GATEWAY_STATES[sj("0xf")]:this[sj("0x28")]==nj.WEB_SOCKET_GATEWAY_STATES.DISCONNECTED&&this[sj("0x0")]?(this[sj("0x0")]=!1,this[sj("0x1d")](),nj.WEB_SOCKET_GATEWAY_STATES[sj("0x35")]):nj.WEB_SOCKET_GATEWAY_STATES[sj("0x25")]))),this[sj("0x37")].on(sj("0x12"),((t,e)=>{if(sj("0x2a")!==e[sj("0xd")])throw console.error(e),new Uu.CKEditorError("cloudservices-init",null,{originalError:e});n.showWarning(sj("0x21"),{title:sj("0x14"),namespace:sj("0x27")})})),!t.me)return new Promise((e=>t.on(sj("0x22"),e)))}))[sj("0x38")]((t=>{throw console[sj("0x12")](t),new Uu.CKEditorError(sj("0x1f"),null,{originalError:t})}))}[sj("0x7")](t){if(sj("0x13")!=typeof t.reconnect)throw new Uu.CKEditorError("websocketgateway-invalid-plugin-interface",this);if(this[sj("0x8")](t))throw new Uu.CKEditorError(sj("0x3"),this,{name:t[sj("0x1c")][sj("0x1")]});this[sj("0x1e")][sj("0x1a")](t)}removeFromReconnectionStack(t){this._reconnectionStack[sj("0x23")](t)}isInReconnectionStack(t){return this[sj("0x1e")][sj("0x4")](t)}[sj("0x1d")](){return this[sj("0x37")].reconnect()[sj("0x24")]((()=>Promise[sj("0x20")](Array.from(this[sj("0x1e")],(t=>t.reconnect())))))[sj("0x24")]((()=>this.state=nj.WEB_SOCKET_GATEWAY_STATES[sj("0x25")]))[sj("0x38")]((t=>{throw console[sj("0x12")](t),new Uu.CKEditorError(sj("0x36"),this[sj("0x18")])}))}destroy(){this[sj("0x37")]&&this.connection[sj("0x2f")](),this[sj("0x28")]=nj.WEB_SOCKET_GATEWAY_STATES.DISCONNECTED,this[sj("0xe")][sj("0x30")](),super[sj("0x29")]()}}aj.WebSocketGateway=nj.WebSocketGateway,aj[sj("0x5")]=1e3;const cj=["getUser","stopListening","remove","unregister","connection","role","listenTo","_uniqueUsersCount","getUserSessions","Sessions","set","clear","init","plugins","_handleSessionAdd","user","has","values","getUserRole","change:state","connected","get","allConnectedUsers","delete","_registeredSessions","channelSessions","_createUser","mySessionId","register","_users","sessionId","channelConnectedUsers","add","context","sessions-register-already-registered","_handleSessionRemove","pluginName","sessions-unregister-not-exist","orderNumber","assign","state","size"];var lj,dj;lj=cj,dj=280,function(t){for(;--t;)lj.push(lj.shift())}(++dj);const uj=function(t,e){return cj[t-=0]};class hj extends ne{static get[uj("0x8")](){return uj("0x17")}static get requires(){return[aj,Jb]}constructor(t){super(t),this[uj("0x27")]=new Map,this[uj("0x3")]=new Map,this.allConnectedUsers=new Uu.Collection,this._registeredSessions=new Map,this._uniqueUsersCount=0,this._users=this[uj("0x5")][uj("0x1b")].get(Jb)}[uj("0x1a")](){const t=this[uj("0x5")][uj("0x1b")][uj("0x23")](aj);this[uj("0x14")](t,uj("0x21"),((t,e,n)=>{if(uj("0x22")!==n)this.channelSessions.forEach((t=>t[uj("0x19")]())),this[uj("0x3")].forEach((t=>t[uj("0x19")]())),this[uj("0x24")][uj("0x19")]();else for(const[t,e]of this[uj("0x26")])for(const n of e)this[uj("0x1c")](t,n)})),this[uj("0x28")](t.connection.me,!0)}[uj("0x0")](t,e){if(this[uj("0x26")].has(t))throw new Uu.CKEditorError(uj("0x6"),null,{channelId:t});this[uj("0x26")][uj("0x18")](t,e),this[uj("0x27")].set(t,new Uu.Collection),this[uj("0x3")][uj("0x18")](t,new Uu.Collection),this[uj("0x14")](e,"add",((e,n)=>this[uj("0x1c")](t,n))),this[uj("0x14")](e,uj("0x10"),((e,n)=>this[uj("0x7")](t,n)));for(const n of e)this._handleSessionAdd(t,n)}[uj("0x11")](t){if(!this[uj("0x26")][uj("0x1e")](t))throw new Uu.CKEditorError(uj("0x9"),null,{channelId:t});const e=this._registeredSessions[uj("0x23")](t);this[uj("0xf")](e);for(const n of e)uj("0x22")===this[uj("0x5")].plugins[uj("0x23")](aj)[uj("0xc")]&&this[uj("0x7")](t,n);this._registeredSessions[uj("0x25")](t),this[uj("0x27")][uj("0x25")](t),this[uj("0x3")][uj("0x25")](t)}get[uj("0x29")](){return this[uj("0x5")].plugins[uj("0x23")](aj)[uj("0x12")][uj("0x2")]}getUserBySessionId(t){for(const e of this[uj("0x27")].values())for(const n of e)if(n.id===t)return n[uj("0x1d")]}[uj("0x16")](t,e){const n=e?[this[uj("0x27")][uj("0x23")](e)]:this[uj("0x27")][uj("0x1f")](),i=new Set;for(const e of n)for(const n of e)n[uj("0x1d")].id===t.id&&i[uj("0x4")](n.id);return i}[uj("0x20")](t){for(const e of this[uj("0x27")][uj("0x1f")]())for(const n of e)if(n[uj("0x1d")]===t)return n[uj("0x13")]}[uj("0x1c")](t,e){if(uj("0x22")!==this.context[uj("0x1b")][uj("0x23")](aj)[uj("0xc")])return;const n=e.user,i=this[uj("0x1")][uj("0xe")](n.id)||this._createUser(n),o=Object[uj("0xb")]({},e,{user:i});this.channelSessions[uj("0x23")](t).add(o);const r=this[uj("0x3")][uj("0x23")](t);r[uj("0x1e")](i.id)||r[uj("0x4")](i),this.allConnectedUsers.has(i.id)||this[uj("0x24")][uj("0x4")](i),this.fire("sessionAdd:"+t,{channelId:t,session:o})}[uj("0x7")](t,e){if(uj("0x22")!==this[uj("0x5")][uj("0x1b")].get(aj)[uj("0xc")])return;const n=this[uj("0x3")][uj("0x23")](t),i=e[uj("0x1d")];i.id&&(this[uj("0x27")][uj("0x23")](t)[uj("0x10")](e.id),n[uj("0x1e")](i.id)&&!this[uj("0x16")](i,t)[uj("0xd")]&&n.remove(i.id),this.allConnectedUsers[uj("0x23")](i.id)&&!this[uj("0x16")](i).size&&this[uj("0x24")][uj("0x10")](i.id))}[uj("0x28")](t,e){const n=this[uj("0x1")].addUser(t);return e&&this._users.defineMe(t.id),n[uj("0xa")]=this[uj("0x15")]++,n}}var mj=__webpack_require__(8659),gj={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(mj.Z,gj);mj.Z.locals;const pj=["hasContent","getRange","plugins","createUIElement","user:range:","startsWith","$graveyard","for","deletionPosition","createUserMarkerOperations","render","isCollapsed","requires","commands","ck-user__selection","editing","innerHTML","selection","view","markerToElement","removeMarker","root","pluginName","delete","type","element","data-session-id","color","getSelectionClass","nodeAfter","get","editingDowncast","document","ck-user__marker ","getMarkerClass","getNearestSelectionRange","user:","getCustomProperty","has","markerRange","user:range","split","markerName","UserMarkers","createRange","isObject","getFirstRange","editor","isInline","setCustomProperty","batch","start","$text","addMarker","user:position:","newRange","markers","applyOperation","end","model","change:range","afterInit","enqueueChange","updateMarker","highest","conversion","getUserBySessionId","user:position","name","checkChild","_createdBatches","schema","tableCell","oldRange","marker","getAttribute","markerToHighlight","rootName","detach","mySessionId","span"];var fj,xj;fj=pj,xj=287,function(t){for(;--t;)fj.push(fj.shift())}(++xj);const bj=function(t,e){return pj[t-=0]};class kj extends Yt{static get[bj("0x31")](){return[hj]}static get[bj("0x3b")](){return bj("0x50")}init(){const t=this.editor,e=t[bj("0x27")][bj("0x43")](hj);t.conversion[bj("0x2c")](bj("0x44"))[bj("0x38")]({model:bj("0x17"),view:(n,{writer:i})=>function(t,e,n,i){const o=t[bj("0x4f")].split(":")[2],r=n[bj("0x16")](o);if(!r||o===n[bj("0x23")])return;if(!i[bj("0xf")][bj("0x1b")][bj("0x19")](t[bj("0x4c")][bj("0x7")],bj("0x8")))return;const s={class:bj("0x46")+r[bj("0x40")][bj("0x47")](),"data-name":r[bj("0x18")],"data-session-id":o},a=i.model[bj("0xc")].get(t[bj("0x4f")]).getStart(),c=a[bj("0x42")],l=i[bj("0xf")][bj("0x1b")];if(c&&l[bj("0x1")](c)&&l[bj("0x4")](c)&&!i[bj("0xf")][bj("0xc")][bj("0x43")]("user:range:"+o).getRange()[bj("0x30")])return;const d=a.parent;return i[bj("0xf")][bj("0x1b")].isLimit(d)&&!i[bj("0xf")][bj("0x25")](d)&&(s.contenteditable=!1),function(t,e){const n=t[bj("0x28")](bj("0x24"),e);return t[bj("0x5")]("userPositionMarker",!0,n),n[bj("0x2f")]=function(t){const e=this.toDomElement(t);return e[bj("0x35")]='⁠<span class="ck-user__marker-line" contenteditable="false"><span class="ck-user__marker-dot"></span></span>⁠',e},n.isSimilar=function(t){return!(!this[bj("0x4a")]("userPositionMarker")||!t.getCustomProperty("userPositionMarker")||this[bj("0x1f")](bj("0x3f"))!=t[bj("0x1f")](bj("0x3f")))},n}(e,s)}(n,i,e,t)}),t[bj("0x15")][bj("0x2c")](bj("0x44"))[bj("0x20")]({model:bj("0x4d"),view:t=>function(t,e){const n=t[bj("0x4f")].split(":")[2];if(n===e[bj("0x23")])return null;const i=e.getUserBySessionId(n);return i?{id:n,classes:[bj("0x33"),i.color[bj("0x41")]()],attributes:{"data-session-id":n},priority:2e3+i.orderNumber}:{id:n,classes:[]}}(t,e)}),function(t){const e=t[bj("0xf")],n=new Map,i=t[bj("0x27")][bj("0x43")](hj);e[bj("0xc")].on("update:user:range",((o,r,s,a)=>{if(!a&&n[bj("0x43")](r[bj("0x18")]))return n[bj("0x43")](r.name)[bj("0x22")](),void n[bj("0x3c")](r.name);const c=r.name.split(":")[2];if(c===i.mySessionId)return;const l="user:position:"+c;e.markers[bj("0x4b")](l)&&t.editing.reconvertMarker(l),r.on(bj("0x10"),((t,i,o)=>{if("$graveyard"!=i[bj("0x3a")][bj("0x21")]&&"$graveyard"==r[bj("0x26")]().root[bj("0x21")]&&!n[bj("0x4b")](r[bj("0x18")])){const t=e[bj("0x1b")].getNearestSelectionRange(o[bj("0x2d")]);if(t){const i=xr.fromRange(t);n.set(r[bj("0x18")],i),i.on(bj("0x10"),((t,o,s)=>{if(bj("0x2b")==i.root.rootName){const t=e[bj("0x1b")][bj("0x48")](s[bj("0x2d")]);t?(i[bj("0x7")]=t[bj("0x7")],i[bj("0xe")]=t[bj("0xe")]):(n.delete(r[bj("0x18")]),i[bj("0x22")]())}}))}}}))})),e[bj("0x45")].on("change",(()=>{n.size>0&&e[bj("0x12")]({isUndoable:!1},(t=>{for(const[i,o]of n)bj("0x2b")==e[bj("0xc")][bj("0x43")](i).getRange().root[bj("0x21")]&&(wj(i[bj("0x4e")](":")[2],o.toRange(),e,t),o[bj("0x22")]());n.clear()}))}))}(t)}[bj("0x11")](){const t=this[bj("0x3")],e=t[bj("0x32")][bj("0x43")]("undo");e&&t[bj("0xf")].on(bj("0xd"),((n,i)=>{const o=i[0];if(bj("0x1e")!=o[bj("0x3d")]||!o[bj("0x18")][bj("0x2a")](bj("0x49")))return;const r=o[bj("0x6")];e[bj("0x1a")].has(r)&&(o[bj("0xb")]=o[bj("0x1d")]?t[bj("0xf")][bj("0x0")](o[bj("0x1d")][bj("0x7")],o.oldRange[bj("0xe")]):null)}),{priority:bj("0x14")})}[bj("0x2e")](){const t=this[bj("0x3")],e=t.model[bj("0x45")],n=t[bj("0x27")][bj("0x43")](hj);t.model[bj("0x12")]({isUndoable:!1},(i=>{const o=bj("0x29")+n[bj("0x23")],r="user:position:"+n[bj("0x23")],s=t[bj("0xf")][bj("0xc")][bj("0x4b")](o);t[bj("0x34")][bj("0x37")].hasDomSelection?wj(n.mySessionId,e[bj("0x36")][bj("0x2")](),t[bj("0xf")],i):s&&(i[bj("0x39")](o),i[bj("0x39")](r))}))}}function wj(t,e,n,i){const o=bj("0x29")+t,r=bj("0xa")+t,s=e.getContainedElement();let a=e[bj("0x7")];s&&s.is(bj("0x3e"),bj("0x1c"))&&(a=function(t,e){for(const n of t.getPositions())if(e.schema[bj("0x19")](n,bj("0x8")))return n}(e,n),e=i[bj("0x0")](a));const c=i[bj("0x0")](a);n[bj("0xc")].has(o)?(i.updateMarker(o,{range:e}),i[bj("0x13")](r,{range:c})):(i[bj("0x9")](o,{range:e,usingOperation:!0}),i[bj("0x9")](r,{range:c,usingOperation:!0}))}function Aj(t,e,n){const i=t.t;switch(e){case"PENDING_ACTION_SENDING_DATA":return i({string:"Sending data to the server.",id:"PENDING_ACTION_SENDING_DATA"});case"The local document and server document differ and merging them can cause unexpected behavior. To not lose your content save it locally and refresh the editor.":return i("The local document and server document differ and merging them can cause unexpected behavior. To not lose your content save it locally and refresh the editor.");case"The document cannot be connected back to the server. To not lose your content save it locally and refresh the editor.":return i("The document cannot be connected back to the server. To not lose your content save it locally and refresh the editor.");case"The document details could not be taken during the reconnection. To not lose your content save it locally and refresh the editor.":return i("The document details could not be taken during the reconnection. To not lose your content save it locally and refresh the editor.");case"The last saved version of the document does not match the local version. To not lose your content save it locally and refresh the editor.":return i("The last saved version of the document does not match the local version. To not lose your content save it locally and refresh the editor.");case"Synchronization issue":return i("Synchronization issue");case"PENDING_ACTION_REVISION_HISTORY":return i({string:"Unsaved change in revision history.",id:"PENDING_ACTION_REVISION_HISTORY"});case"CONNECTED_USERS":return i({string:"1 connected user (me)",plural:"%0 connected users",id:"CONNECTED_USERS"},n);default:return""}}var _j=__webpack_require__(2100);const vj=["MergeOperation","verify",".AttributeOperation.range: object expected","splitPosition","emptyArray","affectsData: boolean expected","RootOperation",".MoveOperation.targetPosition: object expected","end","/Range",".Position.path: array expected","hasOwnProperty","targetPosition","children","fork","path: integer[] expected","type.googleapis.com","/MergeOperation","roots","insertionPosition.","rootGraveyard","ldelim","decodeDelimited","isString",".InsertOperation.nodes: array expected","encode","stickiness: string expected",".MergeOperation.graveyardPosition: object expected","RenameOperation","newRange","oldValueJson","howMany: integer expected","decode",".MergeOperation.targetPosition: object expected","insertionPosition","nodes","Reader","bool","newRange.","encodeDelimited","range.","targetPosition.","key: string expected","Range","oldName: string expected","oldValueJson: string expected",".Element.children: object expected","toJSON","oldValueBoolean: boolean expected","isInteger","rootMain","keys","range","rootName","getTypeUrl","/RootAttributeOperation",".MarkerOperation.oldRange: object expected","wasUndone: boolean expected","/InsertOperation","len","newName","/MoveOperation","constructor","toObject","newValueBoolean","attributesBoolean: boolean{k:string} expected",".InsertOperation.nodes: object expected","SplitOperation","key","push","oldName","affectsData","default","object","name: string expected","data: string expected","shouldReceiveAttributes: boolean expected","/Element","children: array expected","emptyObject","children.","fromObject","string","root","MarkerOperation","length","newName: string expected","/RenameOperation","attributesJson","prototype","arrays","attributesBoolean","name","isAdd","RootAttributeOperation","oldValueBoolean","toJSONOptions","uint32",".MergeOperation.sourcePosition: object expected",".SplitOperation.splitPosition: object expected","sourcePosition","isAdd: boolean expected","newValueJson","newValueBoolean: boolean expected","elementName: string expected",".Range.end: object expected","isArray","rootMain: boolean expected","shouldReceiveAttributes","MoveOperation","/AttributeOperation","rootGraveyard: boolean expected","nodes.","pos","InsertOperation",".MarkerOperation.newRange: object expected","oldRange","root: string expected","boolean","sourcePosition.","skipType","position","graveyardPosition.","objects","graveyardPosition","call","rootName: string expected","Position","AttributeOperation",".Element.children: array expected","wasUndone","/MarkerOperation","/RootOperation","path","start","stickiness","Element","util","elementName","howMany","create","defaults","start.","object expected",".SplitOperation.insertionPosition: object expected","data","newValueJson: string expected","position."];var Cj,yj;Cj=vj,yj=167,function(t){for(;--t;)Cj.push(Cj.shift())}(++yj);const Ej=function(t,e){return vj[t-=0]},Ij=_j[Ej("0x11")],Sj=_j.Writer,Tj=_j[Ej("0x76")],Dj=_j[Ej("0x93")][Ej("0x35")]||(_j.roots[Ej("0x35")]={}),Mj=Dj.AttributeOperation=(()=>{function t(t){if(t)for(let e=Object[Ej("0x20")](t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t[Ej("0x46")][Ej("0x21")]=null,t.prototype.key="",t.prototype.oldValueBoolean=!1,t[Ej("0x46")][Ej("0xb")]="",t[Ej("0x46")].newValueBoolean=!1,t[Ej("0x46")][Ej("0x53")]="",t[Ej("0x46")][Ej("0x6f")]=!1,t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t.range&&Object[Ej("0x8c")].call(t,"range")&&Dj[Ej("0x18")][Ej("0x6")](t[Ej("0x21")],e[Ej("0x4e")](10)[Ej("0x8f")]())[Ej("0x2")](),null!=t[Ej("0x31")]&&Object.hasOwnProperty[Ej("0x6a")](t,Ej("0x31"))&&e[Ej("0x4e")](18)[Ej("0x3f")](t[Ej("0x31")]),null!=t[Ej("0x4c")]&&Object.hasOwnProperty[Ej("0x6a")](t,"oldValueBoolean")&&e[Ej("0x4e")](24)[Ej("0x12")](t[Ej("0x4c")]),null!=t[Ej("0xb")]&&Object.hasOwnProperty[Ej("0x6a")](t,Ej("0xb"))&&e.uint32(34)[Ej("0x3f")](t.oldValueJson),null!=t[Ej("0x2d")]&&Object[Ej("0x8c")][Ej("0x6a")](t,"newValueBoolean")&&e.uint32(40)[Ej("0x12")](t[Ej("0x2d")]),null!=t.newValueJson&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x53"))&&e[Ej("0x4e")](50)[Ej("0x3f")](t[Ej("0x53")]),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x6f"))&&e.uint32(56)[Ej("0x12")](t[Ej("0x6f")]),e},t[Ej("0x14")]=function(t,e){return this.encode(t,e).ldelim()},t[Ej("0xd")]=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t.len:t.pos+e,i=new(Dj[Ej("0x6d")]);for(;t[Ej("0x5e")]<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i[Ej("0x21")]=Dj.Range.decode(t,t[Ej("0x4e")]());break;case 2:i[Ej("0x31")]=t.string();break;case 3:i[Ej("0x4c")]=t[Ej("0x12")]();break;case 4:i[Ej("0xb")]=t[Ej("0x3f")]();break;case 5:i[Ej("0x2d")]=t.bool();break;case 6:i[Ej("0x53")]=t[Ej("0x3f")]();break;case 7:i[Ej("0x6f")]=t.bool();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return"object expected";if(null!=t[Ej("0x21")]&&t[Ej("0x8c")](Ej("0x21"))){let e=Dj[Ej("0x18")].verify(t.range);if(e)return Ej("0x15")+e}return null!=t[Ej("0x31")]&&t[Ej("0x8c")](Ej("0x31"))&&!Tj.isString(t.key)?Ej("0x17"):null!=t.oldValueBoolean&&t[Ej("0x8c")](Ej("0x4c"))&&"boolean"!=typeof t[Ej("0x4c")]?Ej("0x1d"):null!=t.oldValueJson&&t[Ej("0x8c")](Ej("0xb"))&&!Tj[Ej("0x4")](t[Ej("0xb")])?Ej("0x1a"):null!=t[Ej("0x2d")]&&t[Ej("0x8c")](Ej("0x2d"))&&Ej("0x63")!=typeof t[Ej("0x2d")]?Ej("0x54"):null!=t.newValueJson&&t[Ej("0x8c")](Ej("0x53"))&&!Tj[Ej("0x4")](t.newValueJson)?"newValueJson: string expected":null!=t[Ej("0x6f")]&&t[Ej("0x8c")](Ej("0x6f"))&&"boolean"!=typeof t[Ej("0x6f")]?Ej("0x26"):null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x6d")])return t;let e=new Dj.AttributeOperation;if(null!=t[Ej("0x21")]){if("object"!=typeof t[Ej("0x21")])throw TypeError(Ej("0x83"));e[Ej("0x21")]=Dj[Ej("0x18")][Ej("0x3e")](t[Ej("0x21")])}return null!=t[Ej("0x31")]&&(e[Ej("0x31")]=String(t[Ej("0x31")])),null!=t[Ej("0x4c")]&&(e[Ej("0x4c")]=Boolean(t[Ej("0x4c")])),null!=t[Ej("0xb")]&&(e[Ej("0xb")]=String(t.oldValueJson)),null!=t.newValueBoolean&&(e[Ej("0x2d")]=Boolean(t[Ej("0x2d")])),null!=t[Ej("0x53")]&&(e[Ej("0x53")]=String(t[Ej("0x53")])),null!=t[Ej("0x6f")]&&(e[Ej("0x6f")]=Boolean(t.wasUndone)),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e[Ej("0x7a")]&&(n.range=null,n.key="",n.oldValueBoolean=!1,n.oldValueJson="",n[Ej("0x2d")]=!1,n[Ej("0x53")]="",n.wasUndone=!1),null!=t[Ej("0x21")]&&t.hasOwnProperty(Ej("0x21"))&&(n[Ej("0x21")]=Dj.Range[Ej("0x2c")](t[Ej("0x21")],e)),null!=t[Ej("0x31")]&&t[Ej("0x8c")](Ej("0x31"))&&(n.key=t[Ej("0x31")]),null!=t[Ej("0x4c")]&&t[Ej("0x8c")](Ej("0x4c"))&&(n.oldValueBoolean=t[Ej("0x4c")]),null!=t.oldValueJson&&t[Ej("0x8c")](Ej("0xb"))&&(n[Ej("0xb")]=t.oldValueJson),null!=t[Ej("0x2d")]&&t.hasOwnProperty(Ej("0x2d"))&&(n[Ej("0x2d")]=t.newValueBoolean),null!=t[Ej("0x53")]&&t[Ej("0x8c")](Ej("0x53"))&&(n.newValueJson=t[Ej("0x53")]),null!=t[Ej("0x6f")]&&t[Ej("0x8c")](Ej("0x6f"))&&(n[Ej("0x6f")]=t.wasUndone),n},t[Ej("0x46")].toJSON=function(){return this.constructor.toObject(this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x5b")},t})(),Bj=Dj[Ej("0x5f")]=(()=>{function t(t){if(this[Ej("0x10")]=[],t)for(let e=Object[Ej("0x20")](t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t.prototype[Ej("0x66")]=null,t[Ej("0x46")][Ej("0x10")]=Tj[Ej("0x85")],t[Ej("0x46")][Ej("0x59")]=!1,t.prototype[Ej("0x6f")]=!1,t.create=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){if(e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x66")]&&Object.hasOwnProperty.call(t,"position")&&Dj[Ej("0x6c")].encode(t[Ej("0x66")],e.uint32(10)[Ej("0x8f")]()).ldelim(),null!=t[Ej("0x10")]&&t.nodes.length)for(let n=0;n<t[Ej("0x10")][Ej("0x42")];++n)Dj.Element.encode(t[Ej("0x10")][n],e[Ej("0x4e")](18)[Ej("0x8f")]())[Ej("0x2")]();return null!=t[Ej("0x59")]&&Object[Ej("0x8c")][Ej("0x6a")](t,"shouldReceiveAttributes")&&e[Ej("0x4e")](24)[Ej("0x12")](t[Ej("0x59")]),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x6f"))&&e[Ej("0x4e")](32)[Ej("0x12")](t[Ej("0x6f")]),e},t.encodeDelimited=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t[Ej("0xd")]=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t[Ej("0x5e")]+e,i=new(Dj[Ej("0x5f")]);for(;t.pos<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i[Ej("0x66")]=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 2:i[Ej("0x10")]&&i[Ej("0x10")].length||(i[Ej("0x10")]=[]),i[Ej("0x10")][Ej("0x32")](Dj.Element.decode(t,t[Ej("0x4e")]()));break;case 3:i.shouldReceiveAttributes=t.bool();break;case 4:i[Ej("0x6f")]=t[Ej("0x12")]();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t[Ej("0x66")]&&t[Ej("0x8c")](Ej("0x66"))){let e=Dj.Position[Ej("0x82")](t.position);if(e)return"position."+e}if(null!=t[Ej("0x10")]&&t[Ej("0x8c")](Ej("0x10"))){if(!Array[Ej("0x57")](t.nodes))return"nodes: array expected";for(let e=0;e<t[Ej("0x10")].length;++e){let n=Dj[Ej("0x75")][Ej("0x82")](t[Ej("0x10")][e]);if(n)return Ej("0x5d")+n}}return null!=t[Ej("0x59")]&&t.hasOwnProperty(Ej("0x59"))&&Ej("0x63")!=typeof t[Ej("0x59")]?Ej("0x39"):null!=t[Ej("0x6f")]&&t.hasOwnProperty(Ej("0x6f"))&&Ej("0x63")!=typeof t.wasUndone?"wasUndone: boolean expected":null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x5f")])return t;let e=new Dj.InsertOperation;if(null!=t[Ej("0x66")]){if(Ej("0x36")!=typeof t[Ej("0x66")])throw TypeError(".InsertOperation.position: object expected");e[Ej("0x66")]=Dj[Ej("0x6c")][Ej("0x3e")](t.position)}if(t[Ej("0x10")]){if(!Array.isArray(t[Ej("0x10")]))throw TypeError(Ej("0x5"));e[Ej("0x10")]=[];for(let n=0;n<t[Ej("0x10")][Ej("0x42")];++n){if(Ej("0x36")!=typeof t[Ej("0x10")][n])throw TypeError(Ej("0x2f"));e.nodes[n]=Dj[Ej("0x75")][Ej("0x3e")](t[Ej("0x10")][n])}}return null!=t[Ej("0x59")]&&(e[Ej("0x59")]=Boolean(t[Ej("0x59")])),null!=t[Ej("0x6f")]&&(e[Ej("0x6f")]=Boolean(t[Ej("0x6f")])),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};if((e[Ej("0x47")]||e[Ej("0x7a")])&&(n.nodes=[]),e[Ej("0x7a")]&&(n[Ej("0x66")]=null,n[Ej("0x59")]=!1,n[Ej("0x6f")]=!1),null!=t[Ej("0x66")]&&t.hasOwnProperty(Ej("0x66"))&&(n[Ej("0x66")]=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0x66")],e)),t[Ej("0x10")]&&t[Ej("0x10")].length){n[Ej("0x10")]=[];for(let i=0;i<t[Ej("0x10")].length;++i)n.nodes[i]=Dj.Element[Ej("0x2c")](t[Ej("0x10")][i],e)}return null!=t[Ej("0x59")]&&t.hasOwnProperty(Ej("0x59"))&&(n[Ej("0x59")]=t[Ej("0x59")]),null!=t.wasUndone&&t[Ej("0x8c")](Ej("0x6f"))&&(n[Ej("0x6f")]=t[Ej("0x6f")]),n},t[Ej("0x46")][Ej("0x1c")]=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j.util.toJSONOptions)},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x27")},t})(),Oj=Dj[Ej("0x41")]=(()=>{function t(t){if(t)for(let e=Object[Ej("0x20")](t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t[Ej("0x46")].name="",t[Ej("0x46")][Ej("0x61")]=null,t[Ej("0x46")][Ej("0xa")]=null,t[Ej("0x46")][Ej("0x34")]=!1,t.prototype.wasUndone=!1,t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x49")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x49"))&&e.uint32(10)[Ej("0x3f")](t[Ej("0x49")]),null!=t[Ej("0x61")]&&Object[Ej("0x8c")].call(t,"oldRange")&&Dj[Ej("0x18")][Ej("0x6")](t[Ej("0x61")],e[Ej("0x4e")](18).fork()).ldelim(),null!=t[Ej("0xa")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0xa"))&&Dj[Ej("0x18")][Ej("0x6")](t.newRange,e[Ej("0x4e")](26)[Ej("0x8f")]())[Ej("0x2")](),null!=t[Ej("0x34")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x34"))&&e[Ej("0x4e")](32)[Ej("0x12")](t.affectsData),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,"wasUndone")&&e.uint32(40).bool(t[Ej("0x6f")]),e},t.encodeDelimited=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t[Ej("0xd")]=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t[Ej("0x5e")]+e,i=new(Dj[Ej("0x41")]);for(;t[Ej("0x5e")]<n;){let e=t.uint32();switch(e>>>3){case 1:i[Ej("0x49")]=t[Ej("0x3f")]();break;case 2:i[Ej("0x61")]=Dj[Ej("0x18")][Ej("0xd")](t,t.uint32());break;case 3:i[Ej("0xa")]=Dj[Ej("0x18")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 4:i.affectsData=t[Ej("0x12")]();break;case 5:i[Ej("0x6f")]=t[Ej("0x12")]();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t.uint32())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t[Ej("0x49")]&&t[Ej("0x8c")]("name")&&!Tj[Ej("0x4")](t[Ej("0x49")]))return"name: string expected";if(null!=t[Ej("0x61")]&&t[Ej("0x8c")](Ej("0x61"))){let e=Dj[Ej("0x18")][Ej("0x82")](t[Ej("0x61")]);if(e)return"oldRange."+e}if(null!=t[Ej("0xa")]&&t[Ej("0x8c")]("newRange")){let e=Dj[Ej("0x18")].verify(t[Ej("0xa")]);if(e)return Ej("0x13")+e}return null!=t[Ej("0x34")]&&t[Ej("0x8c")](Ej("0x34"))&&Ej("0x63")!=typeof t[Ej("0x34")]?Ej("0x86"):null!=t[Ej("0x6f")]&&t[Ej("0x8c")]("wasUndone")&&Ej("0x63")!=typeof t[Ej("0x6f")]?Ej("0x26"):null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x41")])return t;let e=new(Dj[Ej("0x41")]);if(null!=t[Ej("0x49")]&&(e[Ej("0x49")]=String(t.name)),null!=t[Ej("0x61")]){if("object"!=typeof t[Ej("0x61")])throw TypeError(Ej("0x25"));e[Ej("0x61")]=Dj[Ej("0x18")][Ej("0x3e")](t[Ej("0x61")])}if(null!=t.newRange){if(Ej("0x36")!=typeof t[Ej("0xa")])throw TypeError(Ej("0x60"));e[Ej("0xa")]=Dj[Ej("0x18")][Ej("0x3e")](t[Ej("0xa")])}return null!=t[Ej("0x34")]&&(e[Ej("0x34")]=Boolean(t.affectsData)),null!=t[Ej("0x6f")]&&(e[Ej("0x6f")]=Boolean(t.wasUndone)),e},t.toObject=function(t,e){e||(e={});let n={};return e.defaults&&(n[Ej("0x49")]="",n[Ej("0x61")]=null,n.newRange=null,n[Ej("0x34")]=!1,n[Ej("0x6f")]=!1),null!=t[Ej("0x49")]&&t.hasOwnProperty("name")&&(n[Ej("0x49")]=t[Ej("0x49")]),null!=t[Ej("0x61")]&&t[Ej("0x8c")]("oldRange")&&(n.oldRange=Dj[Ej("0x18")].toObject(t[Ej("0x61")],e)),null!=t[Ej("0xa")]&&t.hasOwnProperty(Ej("0xa"))&&(n[Ej("0xa")]=Dj[Ej("0x18")].toObject(t[Ej("0xa")],e)),null!=t[Ej("0x34")]&&t[Ej("0x8c")](Ej("0x34"))&&(n[Ej("0x34")]=t[Ej("0x34")]),null!=t[Ej("0x6f")]&&t[Ej("0x8c")]("wasUndone")&&(n[Ej("0x6f")]=t[Ej("0x6f")]),n},t[Ej("0x46")].toJSON=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j.util[Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x70")},t})(),Nj=Dj.MergeOperation=(()=>{function t(t){if(t)for(let e=Object.keys(t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t[Ej("0x46")].sourcePosition=null,t.prototype[Ej("0x8d")]=null,t[Ej("0x46")][Ej("0x69")]=null,t.prototype[Ej("0x78")]=0,t.prototype[Ej("0x6f")]=!1,t[Ej("0x79")]=function(e){return new t(e)},t.encode=function(t,e){return e||(e=Sj.create()),null!=t[Ej("0x51")]&&Object.hasOwnProperty[Ej("0x6a")](t,"sourcePosition")&&Dj[Ej("0x6c")][Ej("0x6")](t[Ej("0x51")],e[Ej("0x4e")](10)[Ej("0x8f")]())[Ej("0x2")](),null!=t.targetPosition&&Object[Ej("0x8c")].call(t,"targetPosition")&&Dj[Ej("0x6c")][Ej("0x6")](t.targetPosition,e.uint32(18)[Ej("0x8f")]())[Ej("0x2")](),null!=t[Ej("0x69")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x69"))&&Dj.Position.encode(t[Ej("0x69")],e[Ej("0x4e")](26)[Ej("0x8f")]()).ldelim(),null!=t[Ej("0x78")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x78"))&&e[Ej("0x4e")](32)[Ej("0x4e")](t[Ej("0x78")]),null!=t[Ej("0x6f")]&&Object.hasOwnProperty.call(t,Ej("0x6f"))&&e.uint32(40)[Ej("0x12")](t[Ej("0x6f")]),e},t[Ej("0x14")]=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t.pos+e,i=new(Dj[Ej("0x81")]);for(;t[Ej("0x5e")]<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i[Ej("0x51")]=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 2:i.targetPosition=Dj.Position[Ej("0xd")](t,t.uint32());break;case 3:i[Ej("0x69")]=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 4:i[Ej("0x78")]=t[Ej("0x4e")]();break;case 5:i.wasUndone=t[Ej("0x12")]();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this.decode(t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t.sourcePosition&&t[Ej("0x8c")](Ej("0x51"))){let e=Dj[Ej("0x6c")][Ej("0x82")](t[Ej("0x51")]);if(e)return Ej("0x64")+e}if(null!=t[Ej("0x8d")]&&t.hasOwnProperty(Ej("0x8d"))){let e=Dj[Ej("0x6c")][Ej("0x82")](t[Ej("0x8d")]);if(e)return"targetPosition."+e}if(null!=t[Ej("0x69")]&&t.hasOwnProperty(Ej("0x69"))){let e=Dj[Ej("0x6c")][Ej("0x82")](t[Ej("0x69")]);if(e)return Ej("0x67")+e}return null!=t.howMany&&t[Ej("0x8c")](Ej("0x78"))&&!Tj.isInteger(t[Ej("0x78")])?Ej("0xc"):null!=t[Ej("0x6f")]&&t.hasOwnProperty(Ej("0x6f"))&&Ej("0x63")!=typeof t[Ej("0x6f")]?"wasUndone: boolean expected":null},t.fromObject=function(t){if(t instanceof Dj[Ej("0x81")])return t;let e=new(Dj[Ej("0x81")]);if(null!=t[Ej("0x51")]){if(Ej("0x36")!=typeof t[Ej("0x51")])throw TypeError(Ej("0x4f"));e[Ej("0x51")]=Dj.Position.fromObject(t[Ej("0x51")])}if(null!=t[Ej("0x8d")]){if("object"!=typeof t[Ej("0x8d")])throw TypeError(Ej("0xe"));e.targetPosition=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x8d")])}if(null!=t[Ej("0x69")]){if(Ej("0x36")!=typeof t[Ej("0x69")])throw TypeError(Ej("0x8"));e[Ej("0x69")]=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x69")])}return null!=t[Ej("0x78")]&&(e[Ej("0x78")]=t.howMany>>>0),null!=t[Ej("0x6f")]&&(e[Ej("0x6f")]=Boolean(t[Ej("0x6f")])),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e[Ej("0x7a")]&&(n[Ej("0x51")]=null,n[Ej("0x8d")]=null,n[Ej("0x69")]=null,n[Ej("0x78")]=0,n[Ej("0x6f")]=!1),null!=t.sourcePosition&&t[Ej("0x8c")](Ej("0x51"))&&(n.sourcePosition=Dj[Ej("0x6c")][Ej("0x2c")](t.sourcePosition,e)),null!=t[Ej("0x8d")]&&t.hasOwnProperty("targetPosition")&&(n[Ej("0x8d")]=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0x8d")],e)),null!=t[Ej("0x69")]&&t[Ej("0x8c")](Ej("0x69"))&&(n[Ej("0x69")]=Dj[Ej("0x6c")][Ej("0x2c")](t.graveyardPosition,e)),null!=t[Ej("0x78")]&&t[Ej("0x8c")](Ej("0x78"))&&(n[Ej("0x78")]=t.howMany),null!=t[Ej("0x6f")]&&t[Ej("0x8c")](Ej("0x6f"))&&(n[Ej("0x6f")]=t.wasUndone),n},t[Ej("0x46")][Ej("0x1c")]=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t="type.googleapis.com"),t+Ej("0x92")},t})(),Pj=Dj[Ej("0x5a")]=(()=>{function t(t){if(t)for(let e=Object[Ej("0x20")](t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t.prototype[Ej("0x51")]=null,t[Ej("0x46")][Ej("0x78")]=0,t[Ej("0x46")].targetPosition=null,t[Ej("0x46")][Ej("0x6f")]=!1,t[Ej("0x79")]=function(e){return new t(e)},t.encode=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x51")]&&Object.hasOwnProperty[Ej("0x6a")](t,"sourcePosition")&&Dj[Ej("0x6c")][Ej("0x6")](t[Ej("0x51")],e.uint32(10)[Ej("0x8f")]()).ldelim(),null!=t[Ej("0x78")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x78"))&&e[Ej("0x4e")](16)[Ej("0x4e")](t[Ej("0x78")]),null!=t.targetPosition&&Object[Ej("0x8c")].call(t,Ej("0x8d"))&&Dj[Ej("0x6c")][Ej("0x6")](t.targetPosition,e[Ej("0x4e")](26)[Ej("0x8f")]()).ldelim(),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x6f"))&&e.uint32(32).bool(t.wasUndone),e},t[Ej("0x14")]=function(t,e){return this.encode(t,e)[Ej("0x2")]()},t.decode=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t.pos+e,i=new Dj.MoveOperation;for(;t.pos<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i.sourcePosition=Dj.Position.decode(t,t[Ej("0x4e")]());break;case 2:i[Ej("0x78")]=t[Ej("0x4e")]();break;case 3:i[Ej("0x8d")]=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 4:i[Ej("0x6f")]=t[Ej("0x12")]();break;default:t.skipType(7&e)}}return i},t.decodeDelimited=function(t){return t instanceof Ij||(t=new Ij(t)),this.decode(t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t.sourcePosition&&t.hasOwnProperty(Ej("0x51"))){let e=Dj.Position.verify(t[Ej("0x51")]);if(e)return Ej("0x64")+e}if(null!=t[Ej("0x78")]&&t.hasOwnProperty(Ej("0x78"))&&!Tj[Ej("0x1e")](t[Ej("0x78")]))return"howMany: integer expected";if(null!=t.targetPosition&&t[Ej("0x8c")](Ej("0x8d"))){let e=Dj[Ej("0x6c")][Ej("0x82")](t[Ej("0x8d")]);if(e)return Ej("0x16")+e}return null!=t.wasUndone&&t[Ej("0x8c")](Ej("0x6f"))&&"boolean"!=typeof t[Ej("0x6f")]?Ej("0x26"):null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x5a")])return t;let e=new(Dj[Ej("0x5a")]);if(null!=t[Ej("0x51")]){if(Ej("0x36")!=typeof t[Ej("0x51")])throw TypeError(".MoveOperation.sourcePosition: object expected");e.sourcePosition=Dj[Ej("0x6c")].fromObject(t[Ej("0x51")])}if(null!=t[Ej("0x78")]&&(e.howMany=t[Ej("0x78")]>>>0),null!=t[Ej("0x8d")]){if(Ej("0x36")!=typeof t[Ej("0x8d")])throw TypeError(Ej("0x88"));e[Ej("0x8d")]=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x8d")])}return null!=t[Ej("0x6f")]&&(e.wasUndone=Boolean(t.wasUndone)),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e.defaults&&(n.sourcePosition=null,n[Ej("0x78")]=0,n[Ej("0x8d")]=null,n[Ej("0x6f")]=!1),null!=t[Ej("0x51")]&&t[Ej("0x8c")](Ej("0x51"))&&(n[Ej("0x51")]=Dj.Position[Ej("0x2c")](t[Ej("0x51")],e)),null!=t[Ej("0x78")]&&t[Ej("0x8c")](Ej("0x78"))&&(n.howMany=t.howMany),null!=t[Ej("0x8d")]&&t[Ej("0x8c")](Ej("0x8d"))&&(n.targetPosition=Dj.Position[Ej("0x2c")](t.targetPosition,e)),null!=t[Ej("0x6f")]&&t[Ej("0x8c")](Ej("0x6f"))&&(n[Ej("0x6f")]=t.wasUndone),n},t.prototype[Ej("0x1c")]=function(){return this[Ej("0x2b")].toObject(this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x2a")},t})(),Rj=Dj[Ej("0x9")]=(()=>{function t(t){if(t)for(let e=Object.keys(t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t.prototype[Ej("0x66")]=null,t[Ej("0x46")].oldName="",t[Ej("0x46")].newName="",t[Ej("0x46")].wasUndone=!1,t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x66")]&&Object[Ej("0x8c")].call(t,Ej("0x66"))&&Dj.Position[Ej("0x6")](t[Ej("0x66")],e[Ej("0x4e")](10)[Ej("0x8f")]())[Ej("0x2")](),null!=t.oldName&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x33"))&&e[Ej("0x4e")](18)[Ej("0x3f")](t.oldName),null!=t[Ej("0x29")]&&Object[Ej("0x8c")].call(t,Ej("0x29"))&&e.uint32(26)[Ej("0x3f")](t[Ej("0x29")]),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x6f"))&&e.uint32(32).bool(t[Ej("0x6f")]),e},t[Ej("0x14")]=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t[Ej("0xd")]=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t.len:t[Ej("0x5e")]+e,i=new(Dj[Ej("0x9")]);for(;t[Ej("0x5e")]<n;){let e=t.uint32();switch(e>>>3){case 1:i[Ej("0x66")]=Dj.Position[Ej("0xd")](t,t[Ej("0x4e")]());break;case 2:i[Ej("0x33")]=t[Ej("0x3f")]();break;case 3:i.newName=t[Ej("0x3f")]();break;case 4:i[Ej("0x6f")]=t.bool();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t[Ej("0x66")]&&t.hasOwnProperty("position")){let e=Dj[Ej("0x6c")].verify(t[Ej("0x66")]);if(e)return Ej("0x80")+e}return null!=t[Ej("0x33")]&&t[Ej("0x8c")](Ej("0x33"))&&!Tj.isString(t[Ej("0x33")])?Ej("0x19"):null!=t[Ej("0x29")]&&t[Ej("0x8c")](Ej("0x29"))&&!Tj[Ej("0x4")](t[Ej("0x29")])?Ej("0x43"):null!=t[Ej("0x6f")]&&t.hasOwnProperty(Ej("0x6f"))&&Ej("0x63")!=typeof t[Ej("0x6f")]?"wasUndone: boolean expected":null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x9")])return t;let e=new(Dj[Ej("0x9")]);if(null!=t[Ej("0x66")]){if(Ej("0x36")!=typeof t[Ej("0x66")])throw TypeError(".RenameOperation.position: object expected");e[Ej("0x66")]=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x66")])}return null!=t.oldName&&(e[Ej("0x33")]=String(t.oldName)),null!=t[Ej("0x29")]&&(e.newName=String(t[Ej("0x29")])),null!=t[Ej("0x6f")]&&(e.wasUndone=Boolean(t.wasUndone)),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e[Ej("0x7a")]&&(n[Ej("0x66")]=null,n[Ej("0x33")]="",n[Ej("0x29")]="",n[Ej("0x6f")]=!1),null!=t[Ej("0x66")]&&t[Ej("0x8c")]("position")&&(n[Ej("0x66")]=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0x66")],e)),null!=t[Ej("0x33")]&&t.hasOwnProperty(Ej("0x33"))&&(n[Ej("0x33")]=t[Ej("0x33")]),null!=t[Ej("0x29")]&&t[Ej("0x8c")](Ej("0x29"))&&(n[Ej("0x29")]=t.newName),null!=t.wasUndone&&t[Ej("0x8c")](Ej("0x6f"))&&(n[Ej("0x6f")]=t[Ej("0x6f")]),n},t.prototype[Ej("0x1c")]=function(){return this[Ej("0x2b")].toObject(this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x44")},t})(),Lj=Dj.RootAttributeOperation=(()=>{function t(t){if(t)for(let e=Object.keys(t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t[Ej("0x46")].root="",t[Ej("0x46")][Ej("0x31")]="",t[Ej("0x46")][Ej("0x4c")]=!1,t[Ej("0x46")][Ej("0xb")]="",t.prototype.newValueBoolean=!1,t.prototype[Ej("0x53")]="",t.prototype.wasUndone=!1,t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x40")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x40"))&&e[Ej("0x4e")](10).string(t[Ej("0x40")]),null!=t.key&&Object.hasOwnProperty[Ej("0x6a")](t,"key")&&e[Ej("0x4e")](18)[Ej("0x3f")](t[Ej("0x31")]),null!=t[Ej("0x4c")]&&Object.hasOwnProperty[Ej("0x6a")](t,Ej("0x4c"))&&e.uint32(24).bool(t.oldValueBoolean),null!=t.oldValueJson&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0xb"))&&e.uint32(34)[Ej("0x3f")](t[Ej("0xb")]),null!=t[Ej("0x2d")]&&Object[Ej("0x8c")].call(t,"newValueBoolean")&&e.uint32(40).bool(t[Ej("0x2d")]),null!=t[Ej("0x53")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x53"))&&e[Ej("0x4e")](50)[Ej("0x3f")](t[Ej("0x53")]),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x6f"))&&e[Ej("0x4e")](56)[Ej("0x12")](t[Ej("0x6f")]),e},t[Ej("0x14")]=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t.decode=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t[Ej("0x5e")]+e,i=new Dj.RootAttributeOperation;for(;t[Ej("0x5e")]<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i.root=t[Ej("0x3f")]();break;case 2:i[Ej("0x31")]=t[Ej("0x3f")]();break;case 3:i.oldValueBoolean=t[Ej("0x12")]();break;case 4:i[Ej("0xb")]=t[Ej("0x3f")]();break;case 5:i[Ej("0x2d")]=t[Ej("0x12")]();break;case 6:i[Ej("0x53")]=t[Ej("0x3f")]();break;case 7:i.wasUndone=t.bool();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t.uint32())},t[Ej("0x82")]=function(t){return"object"!=typeof t||null===t?Ej("0x7c"):null!=t[Ej("0x40")]&&t[Ej("0x8c")]("root")&&!Tj[Ej("0x4")](t[Ej("0x40")])?Ej("0x62"):null!=t.key&&t.hasOwnProperty("key")&&!Tj.isString(t[Ej("0x31")])?Ej("0x17"):null!=t[Ej("0x4c")]&&t[Ej("0x8c")](Ej("0x4c"))&&Ej("0x63")!=typeof t[Ej("0x4c")]?"oldValueBoolean: boolean expected":null!=t[Ej("0xb")]&&t[Ej("0x8c")](Ej("0xb"))&&!Tj[Ej("0x4")](t.oldValueJson)?Ej("0x1a"):null!=t[Ej("0x2d")]&&t[Ej("0x8c")]("newValueBoolean")&&Ej("0x63")!=typeof t[Ej("0x2d")]?Ej("0x54"):null!=t[Ej("0x53")]&&t.hasOwnProperty(Ej("0x53"))&&!Tj[Ej("0x4")](t.newValueJson)?Ej("0x7f"):null!=t[Ej("0x6f")]&&t.hasOwnProperty(Ej("0x6f"))&&Ej("0x63")!=typeof t.wasUndone?"wasUndone: boolean expected":null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x4b")])return t;let e=new(Dj[Ej("0x4b")]);return null!=t[Ej("0x40")]&&(e[Ej("0x40")]=String(t[Ej("0x40")])),null!=t[Ej("0x31")]&&(e.key=String(t[Ej("0x31")])),null!=t[Ej("0x4c")]&&(e[Ej("0x4c")]=Boolean(t.oldValueBoolean)),null!=t[Ej("0xb")]&&(e[Ej("0xb")]=String(t[Ej("0xb")])),null!=t[Ej("0x2d")]&&(e[Ej("0x2d")]=Boolean(t.newValueBoolean)),null!=t[Ej("0x53")]&&(e.newValueJson=String(t.newValueJson)),null!=t[Ej("0x6f")]&&(e[Ej("0x6f")]=Boolean(t[Ej("0x6f")])),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e[Ej("0x7a")]&&(n[Ej("0x40")]="",n[Ej("0x31")]="",n[Ej("0x4c")]=!1,n.oldValueJson="",n[Ej("0x2d")]=!1,n.newValueJson="",n[Ej("0x6f")]=!1),null!=t.root&&t[Ej("0x8c")](Ej("0x40"))&&(n[Ej("0x40")]=t[Ej("0x40")]),null!=t[Ej("0x31")]&&t[Ej("0x8c")](Ej("0x31"))&&(n[Ej("0x31")]=t[Ej("0x31")]),null!=t.oldValueBoolean&&t[Ej("0x8c")](Ej("0x4c"))&&(n[Ej("0x4c")]=t[Ej("0x4c")]),null!=t[Ej("0xb")]&&t[Ej("0x8c")](Ej("0xb"))&&(n[Ej("0xb")]=t[Ej("0xb")]),null!=t[Ej("0x2d")]&&t.hasOwnProperty(Ej("0x2d"))&&(n[Ej("0x2d")]=t[Ej("0x2d")]),null!=t.newValueJson&&t[Ej("0x8c")](Ej("0x53"))&&(n.newValueJson=t.newValueJson),null!=t[Ej("0x6f")]&&t[Ej("0x8c")](Ej("0x6f"))&&(n.wasUndone=t.wasUndone),n},t.prototype[Ej("0x1c")]=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x24")},t})(),jj=Dj[Ej("0x87")]=(()=>{function t(t){if(t)for(let e=Object[Ej("0x20")](t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t.prototype[Ej("0x22")]="",t[Ej("0x46")].elementName="",t[Ej("0x46")].isAdd=!1,t[Ej("0x46")][Ej("0x6f")]=!1,t.create=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t.rootName&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x22"))&&e[Ej("0x4e")](10)[Ej("0x3f")](t[Ej("0x22")]),null!=t[Ej("0x77")]&&Object.hasOwnProperty[Ej("0x6a")](t,Ej("0x77"))&&e[Ej("0x4e")](18)[Ej("0x3f")](t[Ej("0x77")]),null!=t[Ej("0x4a")]&&Object[Ej("0x8c")][Ej("0x6a")](t,"isAdd")&&e.uint32(24)[Ej("0x12")](t.isAdd),null!=t[Ej("0x6f")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x6f"))&&e[Ej("0x4e")](32).bool(t[Ej("0x6f")]),e},t.encodeDelimited=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t[Ej("0xd")]=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t[Ej("0x5e")]+e,i=new(Dj[Ej("0x87")]);for(;t.pos<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i.rootName=t.string();break;case 2:i[Ej("0x77")]=t[Ej("0x3f")]();break;case 3:i[Ej("0x4a")]=t[Ej("0x12")]();break;case 4:i[Ej("0x6f")]=t[Ej("0x12")]();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){return Ej("0x36")!=typeof t||null===t?Ej("0x7c"):null!=t[Ej("0x22")]&&t[Ej("0x8c")](Ej("0x22"))&&!Tj.isString(t[Ej("0x22")])?Ej("0x6b"):null!=t[Ej("0x77")]&&t.hasOwnProperty(Ej("0x77"))&&!Tj[Ej("0x4")](t[Ej("0x77")])?Ej("0x55"):null!=t.isAdd&&t[Ej("0x8c")](Ej("0x4a"))&&Ej("0x63")!=typeof t[Ej("0x4a")]?Ej("0x52"):null!=t[Ej("0x6f")]&&t[Ej("0x8c")](Ej("0x6f"))&&"boolean"!=typeof t[Ej("0x6f")]?Ej("0x26"):null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x87")])return t;let e=new(Dj[Ej("0x87")]);return null!=t[Ej("0x22")]&&(e[Ej("0x22")]=String(t.rootName)),null!=t.elementName&&(e.elementName=String(t[Ej("0x77")])),null!=t.isAdd&&(e[Ej("0x4a")]=Boolean(t[Ej("0x4a")])),null!=t[Ej("0x6f")]&&(e[Ej("0x6f")]=Boolean(t[Ej("0x6f")])),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e.defaults&&(n[Ej("0x22")]="",n[Ej("0x77")]="",n[Ej("0x4a")]=!1,n[Ej("0x6f")]=!1),null!=t[Ej("0x22")]&&t[Ej("0x8c")](Ej("0x22"))&&(n[Ej("0x22")]=t[Ej("0x22")]),null!=t[Ej("0x77")]&&t[Ej("0x8c")](Ej("0x77"))&&(n.elementName=t[Ej("0x77")]),null!=t[Ej("0x4a")]&&t[Ej("0x8c")](Ej("0x4a"))&&(n.isAdd=t[Ej("0x4a")]),null!=t[Ej("0x6f")]&&t[Ej("0x8c")]("wasUndone")&&(n[Ej("0x6f")]=t[Ej("0x6f")]),n},t[Ej("0x46")][Ej("0x1c")]=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j.util[Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t="type.googleapis.com"),t+Ej("0x71")},t})(),zj=Dj.SplitOperation=(()=>{function t(t){if(t)for(let e=Object.keys(t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t.prototype[Ej("0x84")]=null,t.prototype[Ej("0x69")]=null,t[Ej("0x46")][Ej("0x78")]=0,t[Ej("0x46")][Ej("0xf")]=null,t[Ej("0x46")].wasUndone=!1,t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x84")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x84"))&&Dj[Ej("0x6c")][Ej("0x6")](t[Ej("0x84")],e.uint32(10).fork())[Ej("0x2")](),null!=t[Ej("0x69")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x69"))&&Dj[Ej("0x6c")][Ej("0x6")](t[Ej("0x69")],e[Ej("0x4e")](18)[Ej("0x8f")]())[Ej("0x2")](),null!=t[Ej("0x78")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x78"))&&e[Ej("0x4e")](24)[Ej("0x4e")](t[Ej("0x78")]),null!=t[Ej("0xf")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0xf"))&&Dj[Ej("0x6c")].encode(t[Ej("0xf")],e[Ej("0x4e")](34)[Ej("0x8f")]())[Ej("0x2")](),null!=t.wasUndone&&Object[Ej("0x8c")][Ej("0x6a")](t,"wasUndone")&&e[Ej("0x4e")](40).bool(t.wasUndone),e},t[Ej("0x14")]=function(t,e){return this[Ej("0x6")](t,e).ldelim()},t.decode=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t[Ej("0x28")]:t[Ej("0x5e")]+e,i=new Dj.SplitOperation;for(;t[Ej("0x5e")]<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i[Ej("0x84")]=Dj.Position.decode(t,t.uint32());break;case 2:i.graveyardPosition=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 3:i[Ej("0x78")]=t[Ej("0x4e")]();break;case 4:i[Ej("0xf")]=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;case 5:i[Ej("0x6f")]=t[Ej("0x12")]();break;default:t.skipType(7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return"object expected";if(null!=t.splitPosition&&t.hasOwnProperty(Ej("0x84"))){let e=Dj[Ej("0x6c")].verify(t.splitPosition);if(e)return"splitPosition."+e}if(null!=t[Ej("0x69")]&&t[Ej("0x8c")](Ej("0x69"))){let e=Dj[Ej("0x6c")][Ej("0x82")](t.graveyardPosition);if(e)return Ej("0x67")+e}if(null!=t[Ej("0x78")]&&t[Ej("0x8c")](Ej("0x78"))&&!Tj[Ej("0x1e")](t[Ej("0x78")]))return Ej("0xc");if(null!=t.insertionPosition&&t[Ej("0x8c")](Ej("0xf"))){let e=Dj.Position[Ej("0x82")](t[Ej("0xf")]);if(e)return Ej("0x0")+e}return null!=t.wasUndone&&t[Ej("0x8c")](Ej("0x6f"))&&Ej("0x63")!=typeof t[Ej("0x6f")]?Ej("0x26"):null},t[Ej("0x3e")]=function(t){if(t instanceof Dj.SplitOperation)return t;let e=new(Dj[Ej("0x30")]);if(null!=t.splitPosition){if(Ej("0x36")!=typeof t.splitPosition)throw TypeError(Ej("0x50"));e[Ej("0x84")]=Dj[Ej("0x6c")].fromObject(t.splitPosition)}if(null!=t[Ej("0x69")]){if(Ej("0x36")!=typeof t[Ej("0x69")])throw TypeError(".SplitOperation.graveyardPosition: object expected");e.graveyardPosition=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x69")])}if(null!=t[Ej("0x78")]&&(e[Ej("0x78")]=t.howMany>>>0),null!=t.insertionPosition){if("object"!=typeof t[Ej("0xf")])throw TypeError(Ej("0x7d"));e[Ej("0xf")]=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0xf")])}return null!=t[Ej("0x6f")]&&(e.wasUndone=Boolean(t[Ej("0x6f")])),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e[Ej("0x7a")]&&(n[Ej("0x84")]=null,n[Ej("0x69")]=null,n[Ej("0x78")]=0,n[Ej("0xf")]=null,n[Ej("0x6f")]=!1),null!=t[Ej("0x84")]&&t[Ej("0x8c")]("splitPosition")&&(n[Ej("0x84")]=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0x84")],e)),null!=t[Ej("0x69")]&&t.hasOwnProperty("graveyardPosition")&&(n[Ej("0x69")]=Dj[Ej("0x6c")].toObject(t[Ej("0x69")],e)),null!=t[Ej("0x78")]&&t.hasOwnProperty("howMany")&&(n[Ej("0x78")]=t.howMany),null!=t[Ej("0xf")]&&t[Ej("0x8c")]("insertionPosition")&&(n[Ej("0xf")]=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0xf")],e)),null!=t[Ej("0x6f")]&&t[Ej("0x8c")]("wasUndone")&&(n[Ej("0x6f")]=t[Ej("0x6f")]),n},t[Ej("0x46")][Ej("0x1c")]=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/SplitOperation"},t})(),Vj=Dj[Ej("0x6c")]=(()=>{function t(t){if(this[Ej("0x72")]=[],t)for(let e=Object[Ej("0x20")](t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t[Ej("0x46")][Ej("0x40")]="",t[Ej("0x46")].rootMain=!1,t[Ej("0x46")].rootGraveyard=!1,t[Ej("0x46")].path=Tj.emptyArray,t[Ej("0x46")][Ej("0x74")]="",t.create=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){if(e||(e=Sj[Ej("0x79")]()),null!=t.root&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x40"))&&e[Ej("0x4e")](10)[Ej("0x3f")](t[Ej("0x40")]),null!=t[Ej("0x1f")]&&Object.hasOwnProperty.call(t,"rootMain")&&e[Ej("0x4e")](16)[Ej("0x12")](t[Ej("0x1f")]),null!=t[Ej("0x1")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x1"))&&e[Ej("0x4e")](24).bool(t.rootGraveyard),null!=t.path&&t[Ej("0x72")][Ej("0x42")]){e[Ej("0x4e")](34)[Ej("0x8f")]();for(let n=0;n<t.path[Ej("0x42")];++n)e[Ej("0x4e")](t.path[n]);e.ldelim()}return null!=t[Ej("0x74")]&&Object[Ej("0x8c")].call(t,Ej("0x74"))&&e.uint32(42)[Ej("0x3f")](t[Ej("0x74")]),e},t[Ej("0x14")]=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t[Ej("0xd")]=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t.len:t[Ej("0x5e")]+e,i=new(Dj[Ej("0x6c")]);for(;t[Ej("0x5e")]<n;){let e=t.uint32();switch(e>>>3){case 1:i[Ej("0x40")]=t[Ej("0x3f")]();break;case 2:i[Ej("0x1f")]=t.bool();break;case 3:i[Ej("0x1")]=t[Ej("0x12")]();break;case 4:if(i[Ej("0x72")]&&i[Ej("0x72")].length||(i.path=[]),2==(7&e)){let e=t[Ej("0x4e")]()+t.pos;for(;t[Ej("0x5e")]<e;)i[Ej("0x72")][Ej("0x32")](t[Ej("0x4e")]())}else i.path.push(t.uint32());break;case 5:i[Ej("0x74")]=t[Ej("0x3f")]();break;default:t[Ej("0x65")](7&e)}}return i},t[Ej("0x3")]=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t.uint32())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t.root&&t[Ej("0x8c")]("root")&&!Tj.isString(t[Ej("0x40")]))return Ej("0x62");if(null!=t[Ej("0x1f")]&&t[Ej("0x8c")](Ej("0x1f"))&&Ej("0x63")!=typeof t.rootMain)return Ej("0x58");if(null!=t[Ej("0x1")]&&t.hasOwnProperty(Ej("0x1"))&&"boolean"!=typeof t[Ej("0x1")])return Ej("0x5c");if(null!=t[Ej("0x72")]&&t[Ej("0x8c")](Ej("0x72"))){if(!Array[Ej("0x57")](t[Ej("0x72")]))return"path: array expected";for(let e=0;e<t[Ej("0x72")].length;++e)if(!Tj[Ej("0x1e")](t[Ej("0x72")][e]))return Ej("0x90")}return null!=t[Ej("0x74")]&&t[Ej("0x8c")](Ej("0x74"))&&!Tj.isString(t.stickiness)?Ej("0x7"):null},t[Ej("0x3e")]=function(t){if(t instanceof Dj.Position)return t;let e=new(Dj[Ej("0x6c")]);if(null!=t[Ej("0x40")]&&(e.root=String(t[Ej("0x40")])),null!=t.rootMain&&(e.rootMain=Boolean(t[Ej("0x1f")])),null!=t[Ej("0x1")]&&(e[Ej("0x1")]=Boolean(t.rootGraveyard)),t[Ej("0x72")]){if(!Array.isArray(t[Ej("0x72")]))throw TypeError(Ej("0x8b"));e[Ej("0x72")]=[];for(let n=0;n<t[Ej("0x72")][Ej("0x42")];++n)e[Ej("0x72")][n]=t[Ej("0x72")][n]>>>0}return null!=t.stickiness&&(e[Ej("0x74")]=String(t.stickiness)),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};if((e[Ej("0x47")]||e[Ej("0x7a")])&&(n.path=[]),e[Ej("0x7a")]&&(n[Ej("0x40")]="",n[Ej("0x1f")]=!1,n[Ej("0x1")]=!1,n[Ej("0x74")]=""),null!=t[Ej("0x40")]&&t[Ej("0x8c")]("root")&&(n[Ej("0x40")]=t[Ej("0x40")]),null!=t.rootMain&&t[Ej("0x8c")]("rootMain")&&(n.rootMain=t[Ej("0x1f")]),null!=t[Ej("0x1")]&&t[Ej("0x8c")](Ej("0x1"))&&(n[Ej("0x1")]=t[Ej("0x1")]),t[Ej("0x72")]&&t[Ej("0x72")][Ej("0x42")]){n[Ej("0x72")]=[];for(let e=0;e<t[Ej("0x72")][Ej("0x42")];++e)n.path[e]=t.path[e]}return null!=t[Ej("0x74")]&&t[Ej("0x8c")]("stickiness")&&(n[Ej("0x74")]=t.stickiness),n},t[Ej("0x46")].toJSON=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j[Ej("0x76")][Ej("0x4d")])},t[Ej("0x23")]=function(t){return void 0===t&&(t=Ej("0x91")),t+"/Position"},t})(),Fj=Dj.Range=(()=>{function t(t){if(t)for(let e=Object[Ej("0x20")](t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t.prototype.start=null,t[Ej("0x46")].end=null,t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){return e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x73")]&&Object[Ej("0x8c")][Ej("0x6a")](t,"start")&&Dj[Ej("0x6c")][Ej("0x6")](t.start,e[Ej("0x4e")](10)[Ej("0x8f")]()).ldelim(),null!=t[Ej("0x89")]&&Object.hasOwnProperty[Ej("0x6a")](t,Ej("0x89"))&&Dj.Position[Ej("0x6")](t[Ej("0x89")],e[Ej("0x4e")](18)[Ej("0x8f")]())[Ej("0x2")](),e},t[Ej("0x14")]=function(t,e){return this.encode(t,e)[Ej("0x2")]()},t.decode=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n=void 0===e?t.len:t[Ej("0x5e")]+e,i=new Dj.Range;for(;t[Ej("0x5e")]<n;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:i[Ej("0x73")]=Dj[Ej("0x6c")][Ej("0xd")](t,t.uint32());break;case 2:i.end=Dj[Ej("0x6c")][Ej("0xd")](t,t[Ej("0x4e")]());break;default:t[Ej("0x65")](7&e)}}return i},t.decodeDelimited=function(t){return t instanceof Ij||(t=new Ij(t)),this[Ej("0xd")](t,t[Ej("0x4e")]())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t[Ej("0x73")]&&t.hasOwnProperty(Ej("0x73"))){let e=Dj[Ej("0x6c")].verify(t.start);if(e)return Ej("0x7b")+e}if(null!=t.end&&t.hasOwnProperty(Ej("0x89"))){let e=Dj[Ej("0x6c")][Ej("0x82")](t.end);if(e)return"end."+e}return null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x18")])return t;let e=new(Dj[Ej("0x18")]);if(null!=t[Ej("0x73")]){if("object"!=typeof t[Ej("0x73")])throw TypeError(".Range.start: object expected");e[Ej("0x73")]=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x73")])}if(null!=t[Ej("0x89")]){if("object"!=typeof t[Ej("0x89")])throw TypeError(Ej("0x56"));e[Ej("0x89")]=Dj[Ej("0x6c")][Ej("0x3e")](t[Ej("0x89")])}return e},t[Ej("0x2c")]=function(t,e){e||(e={});let n={};return e.defaults&&(n.start=null,n[Ej("0x89")]=null),null!=t[Ej("0x73")]&&t.hasOwnProperty(Ej("0x73"))&&(n.start=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0x73")],e)),null!=t[Ej("0x89")]&&t[Ej("0x8c")](Ej("0x89"))&&(n.end=Dj[Ej("0x6c")][Ej("0x2c")](t[Ej("0x89")],e)),n},t.prototype[Ej("0x1c")]=function(){return this.constructor[Ej("0x2c")](this,_j[Ej("0x76")].toJSONOptions)},t[Ej("0x23")]=function(t){return void 0===t&&(t="type.googleapis.com"),t+Ej("0x8a")},t})(),Uj=Dj.Element=(()=>{function t(t){if(this[Ej("0x8e")]=[],this[Ej("0x48")]={},t)for(let e=Object[Ej("0x20")](t),n=0;n<e[Ej("0x42")];++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return t[Ej("0x46")][Ej("0x49")]="",t[Ej("0x46")][Ej("0x8e")]=Tj[Ej("0x85")],t[Ej("0x46")][Ej("0x7e")]="",t[Ej("0x46")][Ej("0x48")]=Tj[Ej("0x3c")],t[Ej("0x46")][Ej("0x45")]="",t[Ej("0x79")]=function(e){return new t(e)},t[Ej("0x6")]=function(t,e){if(e||(e=Sj[Ej("0x79")]()),null!=t[Ej("0x49")]&&Object[Ej("0x8c")][Ej("0x6a")](t,"name")&&e[Ej("0x4e")](10)[Ej("0x3f")](t[Ej("0x49")]),null!=t.children&&t[Ej("0x8e")][Ej("0x42")])for(let n=0;n<t.children[Ej("0x42")];++n)Dj.Element[Ej("0x6")](t[Ej("0x8e")][n],e.uint32(18)[Ej("0x8f")]()).ldelim();if(null!=t.data&&Object.hasOwnProperty[Ej("0x6a")](t,Ej("0x7e"))&&e[Ej("0x4e")](26)[Ej("0x3f")](t[Ej("0x7e")]),null!=t.attributesBoolean&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x48")))for(let n=Object[Ej("0x20")](t[Ej("0x48")]),i=0;i<n.length;++i)e[Ej("0x4e")](34)[Ej("0x8f")]().uint32(10)[Ej("0x3f")](n[i])[Ej("0x4e")](16)[Ej("0x12")](t[Ej("0x48")][n[i]]).ldelim();return null!=t[Ej("0x45")]&&Object[Ej("0x8c")][Ej("0x6a")](t,Ej("0x45"))&&e[Ej("0x4e")](42)[Ej("0x3f")](t[Ej("0x45")]),e},t.encodeDelimited=function(t,e){return this[Ej("0x6")](t,e)[Ej("0x2")]()},t.decode=function(t,e){t instanceof Ij||(t=Ij[Ej("0x79")](t));let n,i,o=void 0===e?t[Ej("0x28")]:t[Ej("0x5e")]+e,r=new Dj.Element;for(;t[Ej("0x5e")]<o;){let e=t[Ej("0x4e")]();switch(e>>>3){case 1:r[Ej("0x49")]=t[Ej("0x3f")]();break;case 2:r[Ej("0x8e")]&&r.children[Ej("0x42")]||(r[Ej("0x8e")]=[]),r.children[Ej("0x32")](Dj[Ej("0x75")].decode(t,t[Ej("0x4e")]()));break;case 3:r.data=t.string();break;case 4:{r.attributesBoolean===Tj[Ej("0x3c")]&&(r[Ej("0x48")]={});let e=t.uint32()+t.pos;for(n="",i=!1;t.pos<e;){let e=t.uint32();switch(e>>>3){case 1:n=t[Ej("0x3f")]();break;case 2:i=t[Ej("0x12")]();break;default:t[Ej("0x65")](7&e)}}r[Ej("0x48")][n]=i;break}case 5:r.attributesJson=t[Ej("0x3f")]();break;default:t[Ej("0x65")](7&e)}}return r},t.decodeDelimited=function(t){return t instanceof Ij||(t=new Ij(t)),this.decode(t,t.uint32())},t[Ej("0x82")]=function(t){if(Ej("0x36")!=typeof t||null===t)return Ej("0x7c");if(null!=t.name&&t.hasOwnProperty(Ej("0x49"))&&!Tj[Ej("0x4")](t[Ej("0x49")]))return Ej("0x37");if(null!=t.children&&t.hasOwnProperty(Ej("0x8e"))){if(!Array[Ej("0x57")](t[Ej("0x8e")]))return Ej("0x3b");for(let e=0;e<t.children.length;++e){let n=Dj[Ej("0x75")][Ej("0x82")](t[Ej("0x8e")][e]);if(n)return Ej("0x3d")+n}}if(null!=t[Ej("0x7e")]&&t[Ej("0x8c")](Ej("0x7e"))&&!Tj.isString(t[Ej("0x7e")]))return Ej("0x38");if(null!=t[Ej("0x48")]&&t[Ej("0x8c")]("attributesBoolean")){if(!Tj.isObject(t[Ej("0x48")]))return"attributesBoolean: object expected";let e=Object[Ej("0x20")](t[Ej("0x48")]);for(let n=0;n<e[Ej("0x42")];++n)if(Ej("0x63")!=typeof t[Ej("0x48")][e[n]])return Ej("0x2e")}return null!=t[Ej("0x45")]&&t[Ej("0x8c")](Ej("0x45"))&&!Tj.isString(t[Ej("0x45")])?"attributesJson: string expected":null},t[Ej("0x3e")]=function(t){if(t instanceof Dj[Ej("0x75")])return t;let e=new Dj.Element;if(null!=t[Ej("0x49")]&&(e[Ej("0x49")]=String(t[Ej("0x49")])),t[Ej("0x8e")]){if(!Array.isArray(t[Ej("0x8e")]))throw TypeError(Ej("0x6e"));e[Ej("0x8e")]=[];for(let n=0;n<t[Ej("0x8e")].length;++n){if(Ej("0x36")!=typeof t[Ej("0x8e")][n])throw TypeError(Ej("0x1b"));e[Ej("0x8e")][n]=Dj.Element[Ej("0x3e")](t[Ej("0x8e")][n])}}if(null!=t[Ej("0x7e")]&&(e[Ej("0x7e")]=String(t.data)),t[Ej("0x48")]){if(Ej("0x36")!=typeof t[Ej("0x48")])throw TypeError(".Element.attributesBoolean: object expected");e[Ej("0x48")]={};for(let n=Object[Ej("0x20")](t[Ej("0x48")]),i=0;i<n[Ej("0x42")];++i)e[Ej("0x48")][n[i]]=Boolean(t.attributesBoolean[n[i]])}return null!=t[Ej("0x45")]&&(e[Ej("0x45")]=String(t[Ej("0x45")])),e},t[Ej("0x2c")]=function(t,e){e||(e={});let n,i={};if((e[Ej("0x47")]||e.defaults)&&(i.children=[]),(e[Ej("0x68")]||e.defaults)&&(i[Ej("0x48")]={}),e[Ej("0x7a")]&&(i.name="",i[Ej("0x7e")]="",i[Ej("0x45")]=""),null!=t[Ej("0x49")]&&t[Ej("0x8c")](Ej("0x49"))&&(i.name=t.name),t.children&&t[Ej("0x8e")][Ej("0x42")]){i[Ej("0x8e")]=[];for(let n=0;n<t[Ej("0x8e")][Ej("0x42")];++n)i.children[n]=Dj[Ej("0x75")][Ej("0x2c")](t[Ej("0x8e")][n],e)}if(null!=t.data&&t[Ej("0x8c")](Ej("0x7e"))&&(i[Ej("0x7e")]=t[Ej("0x7e")]),t[Ej("0x48")]&&(n=Object.keys(t.attributesBoolean))[Ej("0x42")]){i[Ej("0x48")]={};for(let e=0;e<n[Ej("0x42")];++e)i[Ej("0x48")][n[e]]=t[Ej("0x48")][n[e]]}return null!=t[Ej("0x45")]&&t[Ej("0x8c")](Ej("0x45"))&&(i.attributesJson=t[Ej("0x45")]),i},t[Ej("0x46")][Ej("0x1c")]=function(){return this[Ej("0x2b")][Ej("0x2c")](this,_j[Ej("0x76")][Ej("0x4d")])},t.getTypeUrl=function(t){return void 0===t&&(t=Ej("0x91")),t+Ej("0x3a")},t})(),Hj=["decompress","_protobufRoot","_protobuf","toObject","encode","verify","getDescriptor","create","compress","decode"];var Gj,qj;Gj=Hj,qj=459,function(t){for(;--t;)Gj.push(Gj.shift())}(++qj);const Wj=function(t,e){return Hj[t-=0]};class Kj{constructor(){this._protobufRoot=t}[Wj("0x7")](t){return new Zj(this[Wj("0x2")][t])}}class Zj{constructor(t){this[Wj("0x3")]=t}[Wj("0x9")](t){const e=this[Wj("0x3")][Wj("0x6")](t);if(e)throw Error(e);return this[Wj("0x3")][Wj("0x5")](this[Wj("0x3")][Wj("0x8")](t)).finish()}[Wj("0x1")](t){return this[Wj("0x3")][Wj("0x4")](this._protobuf[Wj("0x0")](t),{oneofs:!0})}}const Yj=["$graveyard","main","rootGraveyard","length","root","path","nodes","rootMain"];var Jj,$j;Jj=Yj,$j=158,function(t){for(;--t;)Jj.push(Jj.shift())}(++$j);const Qj=function(t,e){return Yj[t-=0]};function Xj(t,e){const n=Fo(t);return n.path[n[Qj("0x7")][Qj("0x5")]-1]+=e,n}function tz(t,e){return t[Qj("0x6")]===e.root&&Ls(t[Qj("0x7")],e[Qj("0x7")])}function ez(t){iz(t,(t=>(Qj("0x3")==t[Qj("0x6")]?(t[Qj("0x1")]=!0,delete t[Qj("0x6")]):Qj("0x2")==t.root&&(t[Qj("0x4")]=!0,delete t.root),t)))}function nz(t){iz(t,(t=>(t.rootMain?(t[Qj("0x6")]="main",delete t.rootMain):t.rootGraveyard&&(t[Qj("0x6")]=Qj("0x2"),delete t[Qj("0x4")]),t)))}function iz(t,e){for(const n in t){const i=t[n];Qj("0x0")!==n&&(0,m.Z)(i)&&(i[Qj("0x7")]&&(i[Qj("0x6")]||i[Qj("0x1")]||i[Qj("0x4")])?t[n]=e(i):iz(i,e))}return t}const oz=["types","compress","_protobufDescriptor","shift","_operationName","_id","__className","decompress","push"];var rz,sz;rz=oz,sz=426,function(t){for(;--t;)rz.push(rz.shift())}(++sz);const az=function(t,e){return oz[t-=0]};class cz{constructor(t,e,n){this[az("0x2")]=t,this[az("0x1")]=e,this[az("0x8")]=n}[az("0x7")](t,e){const n=e.shift();return ez(n),t.buffers.push(this[az("0x8")][az("0x7")](n)),t[az("0x6")][az("0x5")](this[az("0x2")]),!0}[az("0x4")](t,e){e[az("0x6")][az("0x0")]();const n=this[az("0x8")].decompress(e.buffers[az("0x0")]());nz(n),n[az("0x3")]=this._operationName,t[az("0x5")](n)}}const lz=["_protobufDescriptor","Boolean","newValue","shift","compress","push","decompress","_id","oldValue","_deserializeOneOf","stringify","boolean","buffers","Json","__className","parse","_serializeOneOf"];var dz,uz;dz=lz,uz=285,function(t){for(;--t;)dz.push(dz.shift())}(++uz);const hz=function(t,e){return lz[t-=0]};class mz extends cz{[hz("0x8")](t,e){const n=e[hz("0x7")]();return this[hz("0x3")]("oldValue",n),this[hz("0x3")](hz("0x6"),n),ez(n),t[hz("0x10")][hz("0x9")](this[hz("0x4")][hz("0x8")](n)),t.types[hz("0x9")](this[hz("0xb")]),!0}[hz("0xa")](t,e){const{types:n,buffers:i}=e,o=this._protobufDescriptor[hz("0xa")](i[hz("0x7")]());n.shift(),this[hz("0xd")](hz("0xc"),o),this[hz("0xd")]("newValue",o),nz(o),o[hz("0x1")]=this._operationName,t.push(o)}[hz("0x3")](t,e){const n=e[t];hz("0xf")==typeof n?e[t+hz("0x5")]=n:e[t+hz("0x0")]=JSON[hz("0xe")](n)}[hz("0xd")](t,e){const n=t+hz("0x0");e[n]?(e[t]=JSON[hz("0x2")](e[n]),delete e[n]):(e[t]=e[t+hz("0x5")],delete e[t+hz("0x5")])}}const gz=["compress","types","boolean","children","every","_serializeNodesAttributes","parse","nodes","_deserializeNodesAttributes","_areValuesBoolean","buffers","keys","attributes","__className","attributesJson","decompress","_operationName","shift","push","_protobufDescriptor","attributesBoolean","_id"];var pz,fz;pz=gz,fz=453,function(t){for(;--t;)pz.push(pz.shift())}(++fz);const xz=function(t,e){return gz[t-=0]};class bz extends cz{[xz("0x9")](t,e){const n=e[xz("0x4")]();return this[xz("0xe")](n[xz("0x10")]),ez(n),t[xz("0x13")][xz("0x5")](this[xz("0x6")][xz("0x9")](n)),t[xz("0xa")][xz("0x5")](this[xz("0x8")]),!0}decompress(t,e){const{types:n,buffers:i}=e,o=this._protobufDescriptor[xz("0x2")](i[xz("0x4")]());n[xz("0x4")](),o[xz("0x10")]||(o[xz("0x10")]=[]),this[xz("0x11")](o[xz("0x10")]),nz(o),o[xz("0x0")]=this[xz("0x3")],t[xz("0x5")](o)}_serializeNodesAttributes(t){for(const e of t){if(e[xz("0x15")]){const t=e[xz("0x15")];this[xz("0x12")](t)?e[xz("0x7")]=t:e[xz("0x1")]=JSON.stringify(t)}e[xz("0xc")]&&this[xz("0xe")](e[xz("0xc")])}}_deserializeNodesAttributes(t){for(const e of t)(e[xz("0x7")]||e.attributesJson)&&(e[xz("0x7")]?(e.attributes=e[xz("0x7")],delete e.attributesBoolean):(e[xz("0x15")]=JSON[xz("0xf")](e.attributesJson),delete e[xz("0x1")])),e[xz("0xc")]&&this[xz("0x11")](e[xz("0xc")])}[xz("0x12")](t){return Object[xz("0x14")](t)[xz("0xd")]((e=>xz("0xb")==typeof t[e]))}}const kz=["newRange","length","oldRange","decompress"];var wz,Az;wz=kz,Az=104,function(t){for(;--t;)wz.push(wz.shift())}(++Az);const _z=function(t,e){return kz[t-=0]};class vz extends cz{decompress(t,e){super[_z("0x3")](t,e);const n=t[t[_z("0x1")]-1];n.oldRange||(n[_z("0x2")]=null),n[_z("0x0")]||(n[_z("0x0")]=null)}}var Cz,yz,Ez=["_id","shift","decompress","push","compress","types"];Cz=Ez,yz=305,function(t){for(;--t;)Cz.push(Cz.shift())}(++yz);var Iz=function(t,e){return Ez[t-=0]};class Sz extends cz{[Iz("0x5")](t,e){return e[Iz("0x2")](),t[Iz("0x0")][Iz("0x4")](this[Iz("0x1")]),!0}[Iz("0x3")](t,e){e[Iz("0x0")].shift(),t[Iz("0x4")]({__className:this._operationName})}}const Tz=["decompress","__className","compress","startsWith","name","MarkerOperation","_omittedNamespace","length"];var Dz,Mz;Dz=Tz,Mz=153,function(t){for(;--t;)Dz.push(Dz.shift())}(++Mz);const Bz=function(t,e){return Tz[t-=0]};class Oz extends vz{constructor(t,e,n,i){super(t,e,n),this._omittedNamespace=i+":"}compress(t,e){return!(Bz("0x4")!=e[0][Bz("0x0")]||!e[0][Bz("0x3")][Bz("0x2")](this._omittedNamespace)||(e[0][Bz("0x3")]=e[0][Bz("0x3")].replace(new RegExp("^"+this[Bz("0x5")]),""),super[Bz("0x1")](t,e),0))}[Bz("0x7")](t,e){super.decompress(t,e);const n=t[t[Bz("0x6")]-1];n[Bz("0x3")]=this[Bz("0x5")]+n[Bz("0x3")]}}const Nz=["types","buffers","compress","_context","_decompressSingleOperation","_splitCurrent","_id","length","_compareOperations","shift","push","_combineNext"];var Pz,Rz;Pz=Nz,Rz=145,function(t){for(;--t;)Pz.push(Pz.shift())}(++Rz);const Lz=function(t,e){return Nz[t-=0]};class jz{constructor(t,e){this._id=t,this[Lz("0x2")]=e}[Lz("0x1")](t,e){let n;for(;e[Lz("0x6")]>1&&this[Lz("0x7")](e[0],e[1]);)n?(n=this[Lz("0xa")](e[Lz("0x8")](),n),t[Lz("0xb")][Lz("0x9")](0)):(n=Fo(e[Lz("0x8")]()),t[Lz("0xb")][Lz("0x9")](this[Lz("0x5")]));return!!n&&(n=this[Lz("0xa")](e.shift(),n),t[Lz("0xb")].push(0),t[Lz("0x0")][Lz("0x9")](this._compressSingleOperation(n)),!0)}decompress(t,e){const n=this[Lz("0x3")](e);for(;0==e[Lz("0xb")][0];)e[Lz("0xb")][Lz("0x8")](),t[Lz("0x9")](this[Lz("0x4")](n));t[Lz("0x9")](n)}}const zz=["_combineNext","compress","keys","position","wasUndone","length","_decompressSingleOperation","_compressSingleOperation","_compareOperations","next","_checkOperation","attributes","_compareAttributes","nodes","_context","__className","substr","decompress","InsertOperation","data","from","_getCompressorByName"];var Vz,Fz;Vz=zz,Fz=247,function(t){for(;--t;)Vz.push(Vz.shift())}(++Fz);const Uz=function(t,e){return zz[t-=0]};class Hz extends jz{[Uz("0x11")](t,e){return e[Uz("0x8")][0][Uz("0xe")]+=t[Uz("0x8")][0][Uz("0xe")],e}_splitCurrent(t){const e=Fo(t),n=e[Uz("0x8")][0],i=t[Uz("0x8")][0],o=i[Uz("0xe")][Symbol.iterator]()[Uz("0x4")]().value,r=o[Uz("0x0")];return n[Uz("0xe")]=o,i[Uz("0xe")]=i[Uz("0xe")][Uz("0xb")](r),t[Uz("0x14")]=Xj(t[Uz("0x14")],r),e}[Uz("0x3")](t,e){if(this._checkOperation(t)&&this[Uz("0x5")](e)){const n=t[Uz("0x8")][0][Uz("0xe")][Uz("0x0")],i=tz(Xj(t[Uz("0x14")],n),e[Uz("0x14")]),o=t[Uz("0x8")][0],r=e[Uz("0x8")][0];return i&&this[Uz("0x7")](o,r)}return!1}[Uz("0x2")](t){const e={types:[],buffers:[],baseVersion:0};return this[Uz("0x9")][Uz("0x10")]("InsertOperation")[Uz("0x12")](e,[t]),e.buffers[0]}[Uz("0x1")](t){const e=[];return this._context[Uz("0x10")](Uz("0xd"))[Uz("0xc")](e,t),e[0]}_checkOperation(t){return Uz("0xd")==t[Uz("0xa")]&&1==t.nodes.length&&t.nodes[0][Uz("0xe")]&&!t[Uz("0x15")]&&1==Array[Uz("0xf")](t[Uz("0x8")][0][Uz("0xe")])[Uz("0x0")]}[Uz("0x7")](t,e){const n=Object[Uz("0x13")](t[Uz("0x6")]||{}),i=Object[Uz("0x13")](e[Uz("0x6")]||{});return n[Uz("0x0")]===i.length&&n.every((n=>e.attributes[n]&&e[Uz("0x6")][n]===t[Uz("0x6")][n]))}}const Gz=["_combineNext","sourcePosition","_getCompressorByName","_context","_compareOperations","root","_checkOperation","$graveyard","MoveOperation","decompress","_splitCurrent","targetPosition","compress","wasUndone","__className","howMany"];var qz,Wz;qz=Gz,Wz=178,function(t){for(;--t;)qz.push(qz.shift())}(++Wz);const Kz=function(t,e){return Gz[t-=0]};class Zz extends jz{[Kz("0xe")](t,e){return e[Kz("0xd")]++,e[Kz("0xf")]=Fo(t.sourcePosition),e}[Kz("0x8")](t){const e=Fo(t);return t[Kz("0xd")]--,e[Kz("0xd")]=1,e.sourcePosition=Xj(e.sourcePosition,t.howMany),e}[Kz("0x2")](t,e){return!(!this._checkOperation(t)||!this[Kz("0x4")](e))&&tz(Xj(t[Kz("0xf")],-1),e[Kz("0xf")])&&tz(t[Kz("0x9")],e.targetPosition)}_compressSingleOperation(t){const e={types:[],buffers:[],baseVersion:0};return this[Kz("0x1")][Kz("0x0")](Kz("0x6"))[Kz("0xa")](e,[t]),e.buffers[0]}_decompressSingleOperation(t){const e=[];return this[Kz("0x1")][Kz("0x0")]("MoveOperation")[Kz("0x7")](e,t),e[0]}[Kz("0x4")](t){return Kz("0x6")==t[Kz("0xc")]&&Kz("0x5")==t[Kz("0x9")][Kz("0x3")]&&1==t[Kz("0xd")]&&!t[Kz("0xb")]}}const Yz=["wasUndone","_compareOperations","_context","_getCompressorByName","__className","root","_compressSingleOperation","MoveOperation","decompress","_checkOperation","sourcePosition","_decompressSingleOperation","compress","howMany","targetPosition"];var Jz,$z;Jz=Yz,$z=106,function(t){for(;--t;)Jz.push(Jz.shift())}(++$z);const Qz=function(t,e){return Yz[t-=0]};class Xz extends jz{_combineNext(t,e){return e[Qz("0xc")]++,e}_splitCurrent(t){const e=Fo(t);return e[Qz("0xc")]=1,t[Qz("0xc")]--,e}[Qz("0x0")](t,e){return!(!this._checkOperation(t)||!this._checkOperation(e))&&tz(t[Qz("0x9")],e[Qz("0x9")])&&tz(t.targetPosition,e[Qz("0xd")])}[Qz("0x5")](t){const e={types:[],buffers:[],baseVersion:0};return this[Qz("0x1")]._getCompressorByName(Qz("0x6"))[Qz("0xb")](e,[t]),e.buffers[0]}[Qz("0xa")](t){const e=[];return this[Qz("0x1")][Qz("0x2")](Qz("0x6"))[Qz("0x7")](e,t),e[0]}[Qz("0x8")](t){return Qz("0x6")==t[Qz("0x3")]&&"$graveyard"==t.targetPosition[Qz("0x4")]&&1==t[Qz("0xc")]&&!t[Qz("0xe")]}}const tV=["newRange","compress","split","toNone","buffers","startsWith","stickiness","_getCompressorByName","oldRange","__className","MarkerOperation","user:position:","name","start","types","end","_compressSingleOperation","_compareOperations","user:","decompress","_context","push","shift"];var eV,nV;eV=tV,nV=138,function(t){for(;--t;)eV.push(eV.shift())}(++nV);const iV=function(t,e){return tV[t-=0]};class oV extends jz{[iV("0x1")](t,e){if(!this[iV("0x11")](e[0],e[1]))return!1;const n=e[iV("0x16")]();return n[iV("0x8")]=null,n[iV("0x0")]&&tz(n.newRange[iV("0xd")],n[iV("0x0")].end)&&(n[iV("0x0")].end=null),e.shift(),t[iV("0xe")][iV("0x15")](this._id),t[iV("0xe")][iV("0x15")](0),t.buffers.push(this[iV("0x10")](n)),!0}decompress(t,e){const n=this._decompressSingleOperation(e);n[iV("0x0")]&&!n[iV("0x0")][iV("0xf")]&&(n[iV("0x0")][iV("0xf")]=Fo(n[iV("0x0")].start));const i=Fo(n);i[iV("0x0")]&&(i.newRange[iV("0xd")][iV("0x6")]=iV("0x3"),i[iV("0x0")][iV("0xf")]=Fo(i[iV("0x0")][iV("0xd")])),i[iV("0xc")]=iV("0xb")+i.name[iV("0x2")](":")[2],e[iV("0xe")][iV("0x16")](),t.push(n),t[iV("0x15")](i)}[iV("0x10")](t){const e={types:[],buffers:[],baseVersion:0};return this[iV("0x14")]._getCompressorByName("MarkerOperation")[iV("0x1")](e,[t]),e[iV("0x4")][0]}_decompressSingleOperation(t){const e=[];return this[iV("0x14")][iV("0x7")](iV("0xa"))[iV("0x13")](e,t),e[0]}[iV("0x11")](t,e){return!!(t&&e&&iV("0xa")==t[iV("0x9")]&&"MarkerOperation"==e[iV("0x9")]&&t[iV("0xc")][iV("0x5")](iV("0x12"))&&e.name[iV("0x5")](iV("0x12"))&&t[iV("0xc")]!=e[iV("0xc")])}}const rV=["MarkerOperation","CommentMarkerOperation","SplitOperation","getDescriptor","set","_protobufFactory","TypingAction","_getCompressorByName","comment","SuggestionMarkerOperation","DeletingAction","_compressorByName","baseVersion","__className","RootAttributeOperation","forEach","AttributeOperation","_compressorById","NoOperation","suggestion","compress","decompress","_registerActionCompressor","MoveOperation","_registerCompressor","_registerOperationCompressor","RenameOperation","length","types","ForwardDeletingAction","UserSelectionAction","get"];var sV,aV;sV=rV,aV=117,function(t){for(;--t;)sV.push(sV.shift())}(++aV);const cV=function(t,e){return rV[t-=0]};class lV{constructor(){this[cV("0x1c")]=new Map,this[cV("0x16")]=new Map,this[cV("0x10")]=new Kj;const t=this[cV("0x10")][cV("0xe")](cV("0xb"));this[cV("0x3")](1,cV("0x1d"),new Sz(1,cV("0x1d"),void 0)),this[cV("0x4")](10,cV("0x1b"),mz),this[cV("0x4")](11,"InsertOperation",bz),this[cV("0x4")](12,"MarkerOperation",vz),this._registerOperationCompressor(13,"MergeOperation",cz),this[cV("0x4")](14,cV("0x2"),cz),this[cV("0x4")](15,cV("0x5"),cz),this[cV("0x4")](16,cV("0x19"),mz),this[cV("0x4")](17,cV("0xd"),cz),this._registerCompressor(18,cV("0xc"),new Oz(18,cV("0xb"),t,cV("0x13"))),this[cV("0x3")](19,cV("0x14"),new Oz(19,cV("0xb"),t,cV("0x1e"))),this[cV("0x4")](20,"RootOperation",cz),this._registerActionCompressor(100,cV("0x11"),Hz),this[cV("0x1")](101,cV("0x15"),Zz),this[cV("0x1")](102,cV("0x8"),Xz),this[cV("0x1")](103,cV("0x9"),oV)}compress(t){if(!t||!t[0])throw new Uu.CKEditorError("no-operations-provided",this);const e={types:[],buffers:[],baseVersion:t[0].baseVersion};for(;t[cV("0x6")];)this._getCompressorByName(cV("0x9")).compress(e,t)||this[cV("0x12")](cV("0x11"))[cV("0x1f")](e,t)||this[cV("0x12")](cV("0x15"))[cV("0x1f")](e,t)||this[cV("0x12")](cV("0x8"))[cV("0x1f")](e,t)||this[cV("0x12")]("CommentMarkerOperation")[cV("0x1f")](e,t)||this[cV("0x12")](cV("0x14"))[cV("0x1f")](e,t)||this[cV("0x12")](t[0][cV("0x18")]).compress(e,t);return e}[cV("0x0")](t){const e=[];for(;t[cV("0x7")][cV("0x6")];)this._compressorById[cV("0xa")](t[cV("0x7")][0])[cV("0x0")](e,t);return e[cV("0x1a")](((e,n)=>e[cV("0x17")]=t[cV("0x17")]+n)),e}[cV("0x12")](t){return this._compressorByName[cV("0xa")](t)}[cV("0x4")](t,e,n){const i=new n(t,e,this[cV("0x10")][cV("0xe")](e));this[cV("0x3")](t,e,i)}[cV("0x1")](t,e,n){const i=new n(t,this);this[cV("0x3")](t,e,i)}[cV("0x3")](t,e,n){this[cV("0x1c")][cV("0xf")](t,n),this[cV("0x16")][cV("0xf")](e,n)}}var dV=__webpack_require__(4916);const uV=["_handleExternalOperations","createPositionFromPath","realtimecollaborationclient-initservice-incorrect-server-operation","path","root","_handleSendingSelectionMarkers","_document","destroy","getIdOfTheLastOperation","_compressor","getRoot","reconnection: flushed session","metadata","change:range","from","message","channelSessions","rtc-destroyed","entries","lastSyncVersion","_authorId","multi-root-editor-root-attributes-no-root","lastOperationId","getUser","change:hasDomSelection","_setUpDataInit","collaboration.channelId","reset","_sendBufferedOperations","_clearPendingAction","type","_handleServerResponse","Synchronization issue","then","catch","get","cs:removeUser","Notification","getOperationAuthor","addUser","__className","attributes","_operationIdentifier","_lastServerVersion","isUndoneOperation","realtimecollaborationclient-init-connection-failed","realtimecollaborationclient-handleserverresponse","_isConnected","start","_isAttached","has","state","roots","add","affectedSelectable","markers","operationsReceived","_hasSynchronizationProblem","isReadOnly","view","filter","_fetchMissingUsers","version","directChange","_shouldSendUpdate","parse","lastDocumentSession","createPositionAt","high","wasUndone","sendOperations","insert","length","decompress","return","_sendBufferedOperationsDelayed","_handleReconnectionResponse","bind","set","differ","applyOperation","document","CommentsOnly","keys","permissions","_baseBufferDelay","_isPendingUpdate","clone","change:_isPendingUpdate","PENDING_ACTION_SENDING_DATA","The last saved version of the document does not match the local version. To not lose your content save it locally and refresh the editor.","_handleReconnectionError","enqueueChange","realtimecollaborationclient-initservice-internal-error","model","cloudDocumentVersion","_updateServerHistory","connection","marker","_disconnectionOperations","_handleReceivedOperations","slice","_decompressOperations","register","removeFromReconnectionStack","disconnected","getDocumentDetails","createdAt","size","_getOperationsFromInitData","init","connect","baseVersion","_waitUntilSynced","mySessionId","_crash","The document details could not be taken during the reconnection. To not lose your content save it locally and refresh the editor.","addOperation","realtimecollaborationclient-init-document-already-initialized","_isLoaded","sessionId","_service","enableReadOnlyMode","_compressOperations","RealTimeCollaborationClient","_applyOperationsSet","The local document and server document differ and merging them can cause unexpected behavior. To not lose your content save it locally and refresh the editor.","serverHistory","define","_operationToId","_ignoredOperations","initData","_bufferedOperations","stopListening","_initSessionsHandling","getConnectedSessions","toJSON","_refreshUserSelectionMarkers","_handleInitialConnectionData","_setPendingAction","stop","wereChangesApplied","compress","code","disconnect","realtimecollaborationclient-init-non-existent-root","data","real-time-collaboration","forEach","getOperations","editor","end","_knownRootNames","cloud-services-internal-error: Not connected.","_saveOperationInBuffer","cloud-services-internal-error: Request timeout.","_connectAfterSessionHasBeenFlushed","sessionCreatedAt","targetPosition","_getAffectedRoot","loadRoot","_hasSelectionChanged","_shouldSendSelectionUpdate","pluginName","history","document:write","unregister","startsWith","disableReadOnlyMode","_lastSyncedOperationId","_connectService","userId","sessionAdd:","lastOperationAcceptedAt","realtimecollaborationclient-init-session-connection-error","_isDisconnection","createUserMarkerOperations","push","_isEditingAllowed","locale","getMany","setIdForTheLastOperation","cloud-services-internal-error: Collaborative Editing Service is not connected.","_pendingAction","_disconnectService","_loadRoot","_channelId","connected","map","isEnabled","InsertOperation","config","_offset","error","404","collaboration-missing-channelid","remove","newRange","Permissions","off","_knownOperations","_sendBufferedOperationsDelayId","rtc-offline","_isInit","isDocumentOperation","_currentBufferDelay","plugins","ready","CollaborativeEditingService","listenTo","_addKnownRoot","affectsData"];var hV,mV;hV=uV,mV=364,function(t){for(;--t;)hV.push(hV.shift())}(++mV);const gV=function(t,e){return uV[t-=0]};let pV=1;class fV extends Yt{static get requires(){return[aj,hj,kj,jc,Jb,$d]}static get[gV("0xb")](){return gV("0xb8")}get[gV("0x9b")](){return this._lastServerVersion+this[gV("0x28")]}get[gV("0x67")](){return this[gV("0xbb")][gV("0x7a")]-this[gV("0x28")]}get[gV("0x4f")](){const t=this[gV("0xbb")][gV("0xd1")]();for(let e=t.length-1;e>=0;e--){const n=t[e];if(!this[gV("0x9f")][gV("0x6e")](n))return n.baseVersion+1-this[gV("0x28")]}return 0}constructor(t){if(super(t),this[gV("0x28")]=0,this[gV("0xb4")]=null,this.serverHistory=new da,this[gV("0xd2")][gV("0x27")][gV("0xbc")]("collaboration",{}),this[gV("0x22")]=this[gV("0xd2")][gV("0x27")][gV("0x5f")](gV("0x56")),!this[gV("0x22")])throw new Uu.CKEditorError(gV("0x2b"),this);const e=t.config[gV("0x5f")]("cloudServices.bundleVersion")||Uu.version;this._service=new(fV[gV("0x38")])(e,this[gV("0x22")]),this[gV("0x42")]=this[gV("0xd2")].model.document,this[gV("0x45")]=new lV,this[gV("0xc0")]=[],this[gV("0x30")]=new WeakSet,this._knownRootNames=new Set,this[gV("0x8a")](gV("0x92"),!1),this.set(gV("0x75"),!1),this[gV("0x1f")]=null,this[gV("0x9")]=!1,this[gV("0x31")]=null,this[gV("0x91")]=300,this[gV("0x35")]=this._baseBufferDelay,this._lastSyncedOperationId=null,this[gV("0x9f")]=new WeakSet,this[gV("0x66")]=new kV(this[gV("0x9f")])}[gV("0xaa")](){const t=this[gV("0xd2")],e=t[gV("0x36")][gV("0x5f")](Jb),n=t[gV("0x36")].get(aj);this.listenTo(e,gV("0x62"),((t,n)=>{const i=n[0];i[gV("0x50")]&&(t[gV("0x86")]=e[gV("0x53")](i[gV("0x50")]),t[gV("0xc8")]()),null===i[gV("0x50")]&&(t[gV("0x86")]=null,t[gV("0xc8")]())}),{priority:"high"}),this.listenTo(t[gV("0x9a")][gV("0x8d")].selection,gV("0x49"),((t,e)=>{e[gV("0x7b")]&&this[gV("0xc5")]()})),this[gV("0x39")](t.editing[gV("0x77")],gV("0x54"),(()=>{this[gV("0xc5")]()})),this._initThrowingOnDataSet(),t[gV("0x9a")].on(gV("0x8c"),((t,e)=>{const n=e[0];n[gV("0x34")]&&(this[gV("0x2")](n),this[gV("0x7c")]()&&this._sendBufferedOperationsDelayed())})),this[gV("0x55")](),this[gV("0x89")]("_isEditingAllowed").to(n,gV("0x6f"),this,gV("0x75"),((t,e)=>gV("0x23")===t&&!e)),this.on("change:_isEditingAllowed",(()=>{this[gV("0x1a")]?t[gV("0x10")](gV("0x32")):t[gV("0xb6")](gV("0x32"))})),this._isEditingAllowed?t.disableReadOnlyMode(gV("0x32")):t[gV("0xb6")](gV("0x32")),this[gV("0x8a")](gV("0x6b"),!1)}async reconnect(){const t=this[gV("0xd2")][gV("0x36")][gV("0x5f")](hj),e=this[gV("0xd2")][gV("0x36")][gV("0x5f")](aj);try{this[gV("0x92")]=!0,t[gV("0xe")](this._channelId);const n=await this[gV("0xb5")].reconnect(e[gV("0x9d")],this[gV("0x4f")]);await this[gV("0x88")](n)&&(this[gV("0x92")]=!1,this._clearPendingAction());const i=await this[gV("0xb5")][gV("0xc3")]();t[gV("0xa3")](this[gV("0x22")],i),this._handleSendingSelectionMarkers(),this._isConnected=!0}catch(t){if(n=t,gV("0x2a")===n[gV("0xcb")]&&this[gV("0xb4")])await this[gV("0x4")]();else if("409"===t[gV("0xcb")]){const t=Aj(this.editor[gV("0x1b")],"The document cannot be connected back to the server. To not lose your content save it locally and refresh the editor.");this[gV("0x97")](t)}else{if(!(t instanceof xV))throw t;this[gV("0x97")]()}}var n}[gV("0x43")](){const t=this[gV("0xd2")].plugins[gV("0x5f")](aj),e=this[gV("0xd2")].plugins[gV("0x5f")](hj);this[gV("0xd2")][gV("0xb6")](gV("0x4d")),e.channelSessions[gV("0x6e")](this._channelId)&&e[gV("0xe")](this[gV("0x22")]),t[gV("0xa4")](this),this[gV("0x20")](),super.destroy()}async[gV("0x88")](t){if(this.sessionId!==t[gV("0xb4")]&&this[gV("0x11")]!==t[gV("0x52")])throw new xV;return this[gV("0xb4")]=t[gV("0xb4")],this[gV("0x5b")]([],{...t,wereChangesApplied:!1,data:t.data},"reconnect")}async[gV("0x12")](t,e=!1){const{connection:n}=this[gV("0xd2")][gV("0x36")][gV("0x5f")](aj);fV.CollaborativeEditingService[gV("0xc3")](n,this[gV("0x22")])[gV("0x5d")]((t=>this[gV("0xc2")](t)))[gV("0x5e")]((t=>{this._crash(gV("0x16"),t)})),this[gV("0x39")](this._service,gV("0x74"),this._handleReceivedOperations[gV("0x89")](this)),this[gV("0x39")](this[gV("0xb5")],gV("0x29"),((t,e)=>{this[gV("0xaf")](gV("0x99"),e)})),this.listenTo(this[gV("0xb5")],gV("0xa5"),(()=>{this[gV("0x6b")]=!1}));const i=this._operationIdentifier[gV("0x44")](t);this._isPendingUpdate=!0;const o=await this[gV("0xb5")][gV("0xab")](n,this[gV("0xb7")](t),i);if(this[gV("0xb4")]=o[gV("0xb4")],e){if(!o[gV("0xc9")])return void this[gV("0x97")]();this[gV("0x92")]=!1,this[gV("0x59")](),this[gV("0xbb")][gV("0x57")](),this._offset=o.offset,this[gV("0xbb")][gV("0x7a")]=this[gV("0x28")],await this[gV("0x5b")](t,o,gV("0x47"))}else await this[gV("0xc6")](o,t);this[gV("0x41")](),this[gV("0x6b")]=!0}[gV("0x41")](){const t=this.editor[gV("0x36")][gV("0x5f")](hj),e=this.editor.plugins[gV("0x5f")](kj),n=t[gV("0x4c")].get(this[gV("0x22")]);n&&n[gV("0x84")]>1?e.createUserMarkerOperations():this[gV("0x39")](t,gV("0x14")+this[gV("0x22")],(()=>{2===t[gV("0x4c")].get(this[gV("0x22")])[gV("0x84")]&&e[gV("0x18")]()}))}async[gV("0xa0")](t,e,n,i){if(!this[gV("0x92")]&&this[gV("0x42")][gV("0x7a")]==e){const t=this[gV("0xa2")](n,i);await this[gV("0x79")](t),this[gV("0x3c")](t,e,n.lastOperationId)||this[gV("0xaf")](gV("0x3e"))}}async[gV("0x4")](){this[gV("0x20")]();const{locale:t}=this[gV("0xd2")];let e;try{e=await this._service[gV("0xa6")]()}catch(e){const n=Aj(t,gV("0xb0"));return void this[gV("0x97")](n)}const n=e.currentDocumentSession||e[gV("0x7e")];if(this[gV("0x11")]===n[gV("0x52")])await this._connectService(this[gV("0xd2")][gV("0x9a")].document[gV("0xc")].getOperations(),!0);else{const e=Aj(t,gV("0x96"));this._handleReconnectionError(e)}}[gV("0x20")](){this[gV("0xb5")][gV("0xcc")](),this[gV("0xc0")]=[],clearTimeout(this._sendBufferedOperationsDelayId),this[gV("0xc1")](this[gV("0xb5")])}[gV("0xc2")](t){const e=this[gV("0xd2")][gV("0x36")][gV("0x5f")](hj);this[gV("0x39")](e,"sessionAdd:"+this[gV("0x22")],((t,{session:n})=>{if(n.id===e[gV("0xae")]){t[gV("0x2f")]();const e=this[gV("0xd2")][gV("0x36")][gV("0x6e")](gV("0x8e"))&&this.editor[gV("0x36")].get(gV("0x8e"));let i=n[gV("0x90")];e&&e[gV("0x25")]&&(i=i[gV("0x78")]((t=>gV("0xd")!==t))),this[gV("0xd2")][gV("0x36")][gV("0x5f")](gV("0x2e")).setPermissions(i,this[gV("0x22")])}})),e.register(this[gV("0x22")],t)}_initThrowingOnDataSet(){const t=this[gV("0xd2")].data[gV("0x8a")];this[gV("0xd2")][gV("0xce")][gV("0x8a")]=(...e)=>{if(!e[e[gV("0x84")]-1].suppressErrorInCollaboration)throw new Uu.CKEditorError("realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration",this);t.apply(this[gV("0xd2")].data,e)}}[gV("0x55")](){this.editor[gV("0xce")].on(gV("0xaa"),((t,[e])=>{if(this[gV("0x42")][gV("0x7a")])throw new Uu.CKEditorError(gV("0xb2"),this);t[gV("0xc8")](),this[gV("0xc7")]();const n=this[gV("0xd2")][gV("0x27")][gV("0x5f")]("rootsAttributes"),i=this[gV("0xa9")](e,n);0==i[gV("0x84")]&&i[gV("0x19")](new zs(0)),t[gV("0x86")]=this[gV("0x12")](i)[gV("0x5d")]((()=>{this.editor.plugins[gV("0x5f")](aj).addToReconnectionStack(this),this[gV("0xd2")].data.fire(gV("0x37"))})).catch((t=>this[gV("0xaf")](gV("0x69"),t))).finally((()=>this[gV("0x59")]()))}),{priority:gV("0x80")}),this[gV("0xd2")].on(gV("0x8"),(async(t,[e,n])=>{t[gV("0xc8")]();const i=this[gV("0xd2")][gV("0x9a")][gV("0x8d")][gV("0x46")](e);if(!this._knownRootNames[gV("0x6e")](e)){const t=n&&n[gV("0xce")]?n[gV("0xce")]:"",i=n&&n[gV("0x65")]?n.attributes:{};await this[gV("0x21")](e,t,i)}this[gV("0xd2")].model.enqueueChange({isUndoable:!1},(()=>{i[gV("0xb3")]=!0,this[gV("0xd2")][gV("0x9a")].document[gV("0x8b")]._bufferRootLoad(i)}))}),{priority:gV("0x80")})}async[gV("0x79")](t){const e=this[gV("0xd2")][gV("0x36")][gV("0x5f")](Jb),{connection:n}=this[gV("0xd2")][gV("0x36")][gV("0x5f")](aj),i=new Set;for(const n of t){const t=n[gV("0x50")];t&&!e[gV("0x53")](t)&&i[gV("0x71")](t)}if(0===i[gV("0xa8")])return;const o=await dV.User[gV("0x1c")](n,Array[gV("0x4a")](i));for(const t of o)e[gV("0x53")](t.id)||e[gV("0x63")](t)}[gV("0xa9")](t,e={}){const n=this.editor.model,i=[];let o=0;const r="string"==typeof t?{main:t}:t;for(const t of Object[gV("0x8f")](r)){if(!this[gV("0x42")][gV("0x70")].has(t))throw new Uu.CKEditorError(gV("0xcd"),this);const e=this[gV("0xd2")][gV("0xce")][gV("0x7d")](r[t]),s=this[gV("0x42")][gV("0x46")](t),a=new Os(n[gV("0x7f")](s,0),e,o++);i[gV("0x19")](a);for(const[t,r]of e[gV("0x73")]){const e=n.createRange(n[gV("0x3d")](s,r[gV("0x6c")][gV("0x3f")][gV("0xa1")]()),n[gV("0x3d")](s,r[gV("0xd3")][gV("0x3f")][gV("0xa1")]())),a=new Rs(t,null,e,n.markers,!0,o++);i[gV("0x19")](a)}}if(e)for(const[t,r]of Object[gV("0x4e")](e)){const e=n[gV("0x8d")][gV("0x46")](t);if(!e)throw new Uu.CKEditorError(gV("0x51"),null);for(const[t,n]of Object.entries(r))if(null!==n){const r=new Fs(e,t,null,n,o++);i[gV("0x19")](r)}}return i}async[gV("0x21")](t,e,n){this[gV("0xa9")]({[t]:e},{[t]:n})[gV("0xd0")](((t,e)=>{t[gV("0xac")]=this._document[gV("0x7a")]+e,t[gV("0x33")]=!0,this[gV("0x2")](t)})),this[gV("0x87")](),await this[gV("0xad")]()}async[gV("0xc6")](t,e){let n;this._offset=t.offset;const i=t[gV("0xc9")]&&!t[gV("0xbf")],o=i?0:t[gV("0xce")][gV("0xac")];if(e[gV("0xd0")]((e=>{e[gV("0x33")]=!0,e[gV("0xa7")]=t[gV("0x5")],e[gV("0x50")]=null})),i)n=e,this[gV("0xb9")](n,i);else{if(t.initData){const e=this._getOperationsFromInitData(t[gV("0xbf")]);this[gV("0x42")].history[gV("0x7a")]=-e[gV("0x84")],e[gV("0xd0")]((n=>{n[gV("0xac")]-=e[gV("0x84")],n[gV("0xa7")]=t[gV("0x5")],n._isInit=!0,n[gV("0x50")]=null})),this._applyOperationsSet(e,!0),this[gV("0xbb")][gV("0x7a")]=-e[gV("0x84")]+this._offset,this._updateServerHistory(e)}this[gV("0x42")][gV("0xc")][gV("0x7a")]=o,n=this[gV("0xa2")](t[gV("0xce")],t[gV("0x48")]),await this[gV("0x79")](n),this._applyOperationsSet(n,i)}t[gV("0x52")]&&(this[gV("0x66")][gV("0x1d")](n,t[gV("0x52")]),this._lastSyncedOperationId=t[gV("0x52")]),this[gV("0xbb")][gV("0x7a")]=o+this[gV("0x28")],this[gV("0x9c")](n),e[gV("0x78")]((t=>{const e=this[gV("0x7")](t);return e&&!this[gV("0x0")][gV("0x6e")](e)}))[gV("0xd0")](((t,e)=>{t[gV("0xac")]=this[gV("0x42")][gV("0x7a")]+e,this._saveOperationInBuffer(t)})),this[gV("0x7c")]()?(this[gV("0x35")]=0,this[gV("0x87")](!0),await this._waitUntilSynced()):(this[gV("0x92")]=!1,this[gV("0x59")]())}_crash(t,e){throw this[gV("0x92")]=!0,e&&console.error(e),new Uu.CKEditorError(t,this[gV("0xd2")])}[gV("0x2")](t){this._knownOperations[gV("0x6e")](t)||(this[gV("0x30")].add(t),this[gV("0xc0")].push(t),this._pendingAction||gV("0x9e")==t[gV("0x5a")]&&!t[gV("0x3b")]||this._setPendingAction())}[gV("0x87")](t=!1){!t&&this._isPendingUpdate||(this[gV("0x92")]=!0,clearTimeout(this[gV("0x31")]),this[gV("0x31")]=setTimeout((()=>{this[gV("0x58")]()[gV("0x5d")]((t=>{t&&(this[gV("0x59")](),this[gV("0x92")]=!1)})).catch((t=>{if(this._clearPendingAction(),this[gV("0x92")]=!1,!((e=t)[gV("0x4b")].startsWith(gV("0x1"))||e[gV("0x4b")][gV("0xf")](gV("0x1e"))||e[gV("0x4b")].startsWith(gV("0x3"))))throw t;var e}))}),this[gV("0x35")]))}_waitUntilSynced(){return new Promise((t=>{this.on(gV("0x94"),(()=>{t()}))}))}async _sendBufferedOperations(){const t=this.editor[gV("0x36")][gV("0x5f")](kj);if(this[gV("0xa")]()&&(t[gV("0x18")](),this._hasSelectionChanged=!1),!this._shouldSendUpdate())return!0;const e=[...this._bufferedOperations];for(const t of e)t[gV("0x81")]=this._document[gV("0xc")][gV("0x68")](t);const n=this[gV("0x66")][gV("0x44")](e),i=pV++,o=this[gV("0xb7")](e),r=await this[gV("0xb5")][gV("0x82")](o,o[gV("0xac")],n);try{return await this[gV("0x5b")](e,r,i)}catch(t){return this[gV("0xaf")]("realtimecollaborationclient-sendbufferedoperations",t)}}async _handleServerResponse(t,e,n){if("error"in e)throw e[gV("0x29")];let i=!1;if(e[gV("0xc9")]){e[gV("0x52")]&&(this[gV("0x11")]=e.lastOperationId),this[gV("0xc0")]=this._bufferedOperations[gV("0x78")]((e=>!t.includes(e)));for(const n of t)n[gV("0xa7")]=gV("0x15")in e&&e[gV("0x15")]||void 0;bV(t,e[gV("0x7a")]-t[gV("0x84")]),this._updateServerHistory(t);const n=t.filter((t=>{if(!t[gV("0x33")])return!1;const e=this[gV("0x7")](t);return e&&!this[gV("0x0")].has(e)}));bV(n,this[gV("0x42")][gV("0x7a")]),this[gV("0xb9")](n),i=!0,this[gV("0x35")]=this._baseBufferDelay}else{const t=this[gV("0xa2")](e[gV("0xce")],e.metadata).filter((t=>t[gV("0xac")]>=this[gV("0x67")]));t[gV("0xd0")]((t=>this._addKnownRoot(t))),this._bufferedOperations=this[gV("0xc0")].filter((t=>!t[gV("0x33")]||!this[gV("0x0")][gV("0x6e")](this._getAffectedRoot(t)))),this[gV("0xc0")].length&&bV(this[gV("0xc0")],this._bufferedOperations[0].baseVersion),await this[gV("0x79")](t),i=this[gV("0x3c")](t,e.version,e[gV("0x52")]),this[gV("0x35")]=Math.round(this[gV("0x35")]/2)}return i?!this[gV("0x7c")]()||(this._sendBufferedOperationsDelayed(!0),!1):this[gV("0xaf")](gV("0x6a"))}[gV("0x3c")](t,e,n){try{const i={document:this._document,useRelations:!1,padWithNoOps:!0},{operationsA:o,operationsB:r,originalOperations:s}=Ys(t,this[gV("0xc0")],i);bV(o,this[gV("0x42")][gV("0x7a")]),bV(r,e);for(const t of o){const e=s.get(t);t[gV("0x50")]=e?e._authorId:null}n&&(this[gV("0x66")][gV("0x1d")](t,n),this._lastSyncedOperationId=n),this[gV("0xc0")]=[...r],this[gV("0xb9")](o),this._updateServerHistory(t)}catch(t){return console.error(t),!1}return!0}[gV("0xb9")](t,e=!1){this.editor[gV("0x9a")][gV("0x98")]({isUndoable:!1,isLocal:!1},(e=>{for(const n of t)this._knownOperations[gV("0x71")](n),this[gV("0x3a")](n),e.batch[gV("0xb1")](n),this[gV("0xd2")].model[gV("0x8c")](n)}))}[gV("0x3a")](t){const e=this._getAffectedRoot(t);e&&this[gV("0x0")][gV("0x71")](e)}[gV("0x7")](t){let e,n;switch(t[gV("0x5a")]){case gV("0x83"):e=t.position[gV("0x40")];break;case gV("0x9e"):if(n=t[gV("0x2d")],!n)return null;e=n[gV("0x40")];break;case"addRootAttribute":e=t[gV("0x40")];break;case"addRoot":e=t[gV("0x72")];break;case"move":e=t[gV("0x6")].root;break;default:return null}return e.rootName}[gV("0x9c")](t){t.forEach((t=>{const e=t[gV("0x93")]();e[gV("0x50")]=t[gV("0x50")],e[gV("0x33")]=!!t._isInit,e[gV("0xa7")]=t[gV("0xa7")],e[gV("0xac")]+=this[gV("0x28")],t[gV("0x17")]&&this[gV("0x9f")][gV("0x71")](e),this[gV("0xbb")][gV("0xb1")](e)}))}_handleReconnectionError(t){const e=this[gV("0xd2")][gV("0x36")][gV("0x5f")](gV("0x61")),n=this[gV("0xd2")][gV("0x1b")];t||(t=Aj(n,gV("0xba"))),e.showWarning(t,{title:Aj(n,gV("0x5c")),namespace:gV("0xcf")}),this[gV("0x75")]=!0,clearTimeout(this[gV("0x31")]),this[gV("0xc0")]=[],this[gV("0xd2")][gV("0x36")][gV("0x5f")](aj)[gV("0x43")]()}[gV("0xc7")](){this[gV("0x1f")]||(this[gV("0x1f")]=this[gV("0xd2")][gV("0x36")][gV("0x5f")](jc)[gV("0x71")](Aj(this[gV("0xd2")].locale,gV("0x95"))))}_clearPendingAction(){this[gV("0x1f")]&&(this[gV("0xd2")][gV("0x36")].get(jc)[gV("0x2c")](this[gV("0x1f")]),this._pendingAction=null)}_compressOperations(t){const e=t[gV("0x24")]((t=>t[gV("0xc4")]()));return this._compressor[gV("0xca")](e)}[gV("0xa2")](t,e){return this[gV("0x45")][gV("0x85")](t).map(((t,n)=>{const i=gV("0xaa")==e[n][gV("0x5a")];if(gV("0x26")==t[gV("0x64")]){const e=t.position.root;!this._document[gV("0x46")](e)&&(this[gV("0x42")].createRoot("$root",e)[gV("0x6d")]=!1)}const o=Gs.fromJSON(t,this[gV("0x42")]);return o.wasUndone=t.wasUndone,o[gV("0x33")]=i,o[gV("0x50")]=i?null:e[n][gV("0x13")],o[gV("0x17")]=gV("0x60")===e[n][gV("0x5a")],o[gV("0xa7")]=e[n][gV("0xa7")],o}))}[gV("0xc5")](){this._hasSelectionChanged=!0,this[gV("0xa")]()?this._sendBufferedOperationsDelayed():this._hasSelectionChanged=!1}[gV("0xa")](){const t=this[gV("0xd2")][gV("0x36")][gV("0x5f")](hj).channelSessions[gV("0x5f")](this._channelId);return!this[gV("0xd2")][gV("0x76")]&&!!t&&t.length>1&&this[gV("0x9")]}_shouldSendUpdate(){return this[gV("0xc0")].length>0||this._shouldSendSelectionUpdate()}}fV[gV("0x38")]=nj.CollaborativeEditingService;class xV extends Error{}function bV(t,e){for(const n of t)n.baseVersion=e++}class kV{constructor(t){this[gV("0xbe")]=t,this._operationToId=new WeakMap}getIdOfTheLastOperation(t){let e=t.length;for(;e--;){const n=t[e];if(!this._ignoredOperations.has(n)){if(!this._operationToId[gV("0x6e")](n)){const t=(0,Uu.uid)()[gV("0xa1")](1,18);this._operationToId[gV("0x8a")](n,t)}return this._operationToId[gV("0x5f")](n)}}}[gV("0x1d")](t,e){if(!e)return;let n=t.length;for(;n--;){const i=t[n];this[gV("0xbe")][gV("0x6e")](i)||this[gV("0xbd")][gV("0x8a")](i,e)}}}var wV,AV,_V=["pluginName","RealTimeCollaborativeEditing","requires"];wV=_V,AV=336,function(t){for(;--t;)wV.push(wV.shift())}(++AV);var vV=function(t,e){return _V[t-=0]};class CV extends Yt{static get[vV("0x2")](){return[fV]}static get[vV("0x0")](){return vV("0x1")}}const yV=["_services","Permissions","reopen","commentThreadAdded","commentRemoved","getComment","adapter","pluginName","code","cloudservicescommentsadapter-connect-already-connected","resolvedBy","setPermissions","cloudservicescommentsadapter-disconnect-not-exist","connect","getCommentThread","off","mySessionId","addComment","catch","has","addCommentThread","CommentsRepository","cloud-services-internal-error: Request timeout.","map","context","from","getMany","resolvedAt","get","_fetchMissingUsersForThreads","attributes","createdAt","init","resolveCommentThread","deletedAt","comments","commentThreadUpdated","authorId","getCommentThreads","commentId","commentThreadResolved","removeCommentThread","_connectService","remove","CloudServicesCommentsAdapter","content","add","unregister","message","destroy","keys","disconnect","register","collaboration.channelId","startsWith","_setUpService","CommentsService","updateCommentThread","update","assign","listenTo","requires","cloud-services-internal-error: Not connected.","reopenCommentThread","commentThreadId","delete","resolve","permissions","userId","removeComment","config","_terminateService","_getService","set","plugins","getUser"];var EV,IV;EV=yV,IV=287,function(t){for(;--t;)EV.push(EV.shift())}(++IV);const SV=function(t,e){return yV[t-=0]};class TV extends ne{static get[SV("0x2")](){return[aj,SV("0x26"),hj,Jb]}static get[SV("0x18")](){return SV("0x3d")}constructor(t){super(t),this[SV("0x11")]=new Map}async[SV("0x31")](){const t=this[SV("0x29")],e=t[SV("0xf")][SV("0x2d")](SV("0x26"));if(t[SV("0xf")].get(aj).addToReconnectionStack(this),e[SV("0x17")]={addCommentThread:async({channelId:t,threadId:e,comments:n,resolvedAt:i,resolvedBy:o,context:r,attributes:s})=>{const a=await this._getService(t).addCommentThread({commentThreadId:e,comments:n[SV("0x28")]((n=>{return o=t,{commentThreadId:e,commentId:(i=n)[SV("0x38")],userId:i[SV("0x36")],content:i[SV("0x3e")],documentId:o,createdAt:i[SV("0x30")],attributes:i[SV("0x2f")]||{}};var i,o})),resolvedAt:i,resolvedBy:o,context:r,attributes:s})[SV("0x23")](MV);return{threadId:a[SV("0x5")],comments:a[SV("0x34")]}},getCommentThread:async({channelId:t,threadId:e})=>{const n=await this[SV("0xd")](t)[SV("0x1f")](e).catch(MV);return await this[SV("0x2e")]([n]),{threadId:n[SV("0x5")],comments:n[SV("0x34")][SV("0x28")](BV),context:n[SV("0x29")],resolvedAt:n[SV("0x2c")],resolvedBy:n[SV("0x1b")],attributes:n.attributes||{}}},updateCommentThread:async({channelId:t,threadId:e,context:n,unlinkedAt:i,attributes:o})=>this[SV("0xd")](t)[SV("0x4a")]({commentThreadId:e,context:n,attributes:o,unlinkedAt:i})[SV("0x23")](DV).catch(MV),resolveCommentThread:async({channelId:t,threadId:e})=>{const n=await this[SV("0xd")](t)[SV("0x32")](e)[SV("0x23")](DV).catch(MV);return{threadId:n[SV("0x5")],resolvedAt:n.resolvedAt,resolvedBy:n[SV("0x1b")]}},reopenCommentThread:async({channelId:t,threadId:e})=>this[SV("0xd")](t)[SV("0x4")](e)[SV("0x23")](DV)[SV("0x23")](MV),removeCommentThread:({channelId:t,threadId:e})=>this[SV("0xd")](t)[SV("0x3a")](e)[SV("0x23")](DV)[SV("0x23")](MV),addComment:({channelId:t,threadId:e,commentId:n,content:i,attributes:o})=>this[SV("0xd")](t)[SV("0x22")](e,n,i,o)[SV("0x23")](MV),updateComment:({channelId:t,threadId:e,commentId:n,content:i,attributes:o})=>this[SV("0xd")](t).updateComment(e,n,i,o).catch(DV)[SV("0x23")](MV),removeComment:({channelId:t,threadId:e,commentId:n})=>this._getService(t)[SV("0xa")](e,n)[SV("0x23")](DV).catch(MV)},t instanceof ee){const e=t.config.get(SV("0x46")),n=t[SV("0xf")][SV("0x2d")](hj);await this._setUpService(e);const i=await this[SV("0x11")][SV("0x2d")](e).getConnectedSessions();this[SV("0x1")](n,"sessionAdd:"+e,((t,{session:i})=>{i.id===n[SV("0x21")]&&(t[SV("0x20")](),this[SV("0x29")][SV("0xf")][SV("0x2d")](SV("0x12"))[SV("0x1c")](i[SV("0x8")],e))})),n[SV("0x45")](e,i)}}async[SV("0x48")](t){if(this[SV("0x11")].has(t))throw new Uu.CKEditorError(SV("0x1a"),null,{channelId:t});const e=this[SV("0x29")][SV("0xf")][SV("0x2d")](SV("0x26")),n=new(TV[SV("0x49")])(t);this[SV("0x11")][SV("0xe")](t,n),this[SV("0x1")](n,SV("0x14"),((t,n)=>{const{commentThreadId:i,documentId:o,context:r,attributes:s,resolvedAt:a,resolvedBy:c,comments:l}=n;e[SV("0x1f")](i)||e.addCommentThread({threadId:i,channelId:o,comments:l?l[SV("0x28")](BV):[],context:r,attributes:s,resolvedAt:a,resolvedBy:c,isFromAdapter:!0})})),this[SV("0x1")](n,SV("0x35"),((t,{commentThreadId:n,documentId:i,context:o,unlinkedAt:r,attributes:s})=>{e[SV("0x1f")](n)&&e[SV("0x4a")]({threadId:n,channelId:i,context:o,unlinkedAt:r,attributes:s,isFromAdapter:!0})})),this[SV("0x1")](n,SV("0x39"),((t,{commentThreadId:n,resolvedBy:i,resolvedAt:o})=>{const r=e[SV("0x1f")](n);r&&r[SV("0x7")]({resolvedBy:i,resolvedAt:o,isFromAdapter:!0})})),this[SV("0x1")](n,"commentThreadReopened",((t,{commentThreadId:n})=>{const i=e.getCommentThread(n);i&&i[SV("0x13")]({isFromAdapter:!0})})),this[SV("0x1")](n,"commentThreadRemoved",((t,{commentThreadId:n})=>{const i=e[SV("0x1f")](n);i&&i[SV("0x3c")]({isFromAdapter:!0})})),this[SV("0x1")](n,"commentAdded",((t,n)=>{const i=n[SV("0x5")],o=e[SV("0x1f")](i);o&&o[SV("0x22")]({...BV(n),isFromAdapter:!0})})),this.listenTo(n,"commentUpdated",((t,{commentThreadId:n,commentId:i,content:o,attributes:r})=>{const s=e[SV("0x1f")](n);if(s){const t=s[SV("0x16")](i);t&&t[SV("0x4b")]({content:o,attributes:r,isFromAdapter:!0})}})),this[SV("0x1")](n,SV("0x15"),((t,{commentThreadId:n,commentId:i})=>{const o=e[SV("0x1f")](n);if(o){const t=o[SV("0x16")](i);t&&t.remove({isFromAdapter:!0})}})),await this[SV("0x3b")](t)}[SV("0x42")](){if(this[SV("0x29")]instanceof ee){const t=this.context[SV("0xb")].get(SV("0x46"));this[SV("0xc")](t)}}[SV("0xc")](t){if(!this._services.has(t))throw new Uu.CKEditorError(SV("0x1d"),null,{channelId:t});this[SV("0xd")](t)[SV("0x44")](),this[SV("0x11")].delete(t)}async reconnect(){for(const t of this[SV("0x11")][SV("0x43")]())await this[SV("0x3b")](t);if(this.context instanceof ee){const t=this[SV("0x29")].config[SV("0x2d")](SV("0x46")),e=this[SV("0x29")].plugins[SV("0x2d")](hj);e[SV("0x40")](t);const n=await this._services.get(t).getConnectedSessions();e[SV("0x45")](t,n)}}async _connectService(t){const{connection:e}=this.context[SV("0xf")][SV("0x2d")](aj),n=this[SV("0x29")][SV("0xf")][SV("0x2d")](SV("0x26")),i=this[SV("0x11")].get(t),o=await i[SV("0x1e")](e);await this[SV("0x2e")](o);const r=new Set(Array[SV("0x2a")](n[SV("0x37")]({channelId:t}),(t=>t.id)));for(const t of o)t[SV("0x33")]||r[SV("0x6")](t.commentThreadId);for(const t of r)n[SV("0x1f")](t)[SV("0x3c")]({isFromAdapter:!0});for(const e of o){let i=n[SV("0x1f")](e[SV("0x5")]);const{commentThreadId:o,context:r,attributes:s,resolvedBy:a,resolvedAt:c,unlinkedAt:l,deletedAt:d}=e;if(d)continue;i||(i=n[SV("0x25")]({channelId:t,threadId:o,context:r,attributes:s||{},resolvedBy:a,resolvedAt:c,unlinkedAt:l,isFromAdapter:!0}));const u=new Set(Array.from(i[SV("0x34")],(t=>t.id)));for(const t of e.comments)u[SV("0x6")](t[SV("0x38")]);for(const t of u)i[SV("0x16")](t)[SV("0x3c")]({isFromAdapter:!0});for(const t of e.comments){const e=i[SV("0x16")](t[SV("0x38")]);e?e.content!==t[SV("0x3e")]&&e[SV("0x4b")]({content:t[SV("0x3e")],isFromAdapter:!0}):i[SV("0x22")](Object[SV("0x0")](BV(t),{isFromAdapter:!0}))}}}[SV("0xd")](t){if(!this[SV("0x11")][SV("0x24")](t))throw new Uu.CKEditorError("cloudservicescommentsadapter-service-not-exist",null,{channelId:t});return this[SV("0x11")][SV("0x2d")](t)}async[SV("0x2e")](t){const e=this.context[SV("0xf")][SV("0x2d")](Jb),{connection:n}=this[SV("0x29")][SV("0xf")][SV("0x2d")](aj),i=new Set;for(const{resolvedBy:n,comments:o}of t){n&&!e[SV("0x10")](n)&&i[SV("0x3f")](n);for(const{userId:t}of o)e[SV("0x10")](t)||i.add(t)}if(0===i.size)return;const o=await dV.User[SV("0x2b")](n,Array[SV("0x2a")](i));for(const t of o)e[SV("0x10")](t.id)||e.addUser(t)}}async function DV(t){if("404"!==t[SV("0x19")])throw t}function MV(t){if((e=t)[SV("0x41")].startsWith("cloud-services-internal-error: Comments Service is not connected.")||e.message[SV("0x47")](SV("0x3"))||e.message.startsWith(SV("0x27")))return new Promise((()=>{}));var e;throw t}function BV(t){return{threadId:t[SV("0x5")],commentId:t[SV("0x38")],content:t[SV("0x3e")],createdAt:t.createdAt,authorId:t[SV("0x9")],attributes:t[SV("0x2f")]||{}}}TV[SV("0x49")]=nj.CommentsService;const OV=["open","get","find","adapter","cloud-services-internal-error: Request timeout.","TrackChangesEditing","_fetchMissingUsersForThreads","editor","suggestionUpdated","startsWith","listenTo","plugins","_saved","delete","attributes","_trackChangesService","connect","originalSuggestionId","connection","requires","init","_waitForServiceReady","hasSuggestion","cloud-services-internal-error: Not connected.","set","TrackChangesService","addUser","addSuggestionData","catch","from","addToReconnectionStack","update","getSuggestion","_bufferedRequests","collaboration.channelId","connected","off","getUser","add","data","message"];var NV,PV;NV=OV,PV=323,function(t){for(;--t;)NV.push(NV.shift())}(++PV);const RV=function(t,e){return OV[t-=0]};class LV extends Yt{static get[RV("0x18")](){return[TV,RV("0xa"),aj]}constructor(t){super(t);const e=this[RV("0xc")].config[RV("0x6")](RV("0x27"));this[RV("0x26")]=new Map,this[RV("0x14")]=new(LV[RV("0x1e")])(e)}[RV("0x19")](){const t=this[RV("0xc")][RV("0x10")][RV("0x6")](aj),e=this[RV("0xc")].plugins[RV("0x6")]("TrackChangesEditing");return e[RV("0x8")]={getSuggestion:async t=>{await this[RV("0x1a")]();const e=await this[RV("0x14")][RV("0x6")](t)[RV("0x21")](jV);return await this._fetchMissingUsersForThreads([e]),e},addSuggestion:async({id:t,type:e,data:n,originalSuggestionId:i,attributes:o})=>{await this[RV("0x1a")]();const r={id:t,type:e,data:n,originalSuggestionId:i,attributes:o},s=await this[RV("0x14")][RV("0x2")](t,e,n,i,o).catch((e=>{if(zV(e))return new Promise((e=>{this[RV("0x26")][RV("0x1d")](t,{resolve:e,suggestionData:r})}));throw e}));return this[RV("0x26")][RV("0x12")](t),s},updateSuggestion:async(t,e)=>{if(await this._waitForServiceReady(),RV("0x5")!==e.state)return this[RV("0x14")][RV("0x24")](t,e)[RV("0x21")](jV)}},this[RV("0xf")](this[RV("0x14")],RV("0xd"),((t,n)=>{e[RV("0x1b")](n.id)&&(e[RV("0x25")](n.id)[RV("0x13")]=n[RV("0x13")])})),this[RV("0x14")].connect(t[RV("0x17")]).then((n=>(t[RV("0x23")](this),this[RV("0xb")](n).then((()=>{for(const t of n)e[RV("0x20")](t)[RV("0x11")]=!0})))))}async reconnect(){const t=this.editor[RV("0x10")][RV("0x6")]("TrackChangesEditing"),{connection:e}=this[RV("0xc")][RV("0x10")][RV("0x6")](aj),n=await this[RV("0x14")][RV("0x15")](e);await this[RV("0xb")](n);for(const{suggestionData:t,resolve:e}of this._bufferedRequests.values()){let i=n[RV("0x7")]((e=>e.id===t.id));i||(i=await this[RV("0x14")][RV("0x2")](t.id,t.type,t[RV("0x3")],t[RV("0x16")])),e(i)}for(const e of n)t.hasSuggestion(e.id)||t[RV("0x20")](e)}async[RV("0x1a")](){this._trackChangesService.isConnected||await new Promise((t=>{this[RV("0xf")](this[RV("0x14")],RV("0x28"),(e=>{e[RV("0x0")](),t()}))}))}async[RV("0xb")](t){const e=this.editor.plugins[RV("0x6")](Jb),{connection:n}=this.editor[RV("0x10")].get(aj),i=new Set;for(const{authorId:n}of t)e.getUser(n)||i[RV("0x2")](n);if(0===i.size)return;const o=await dV.User.getMany(n,Array[RV("0x22")](i));for(const t of o)e[RV("0x1")](t.id)||e[RV("0x1f")](t)}}function jV(t){if(zV(t))return new Promise((()=>{}));throw t}function zV(t){return t[RV("0x4")][RV("0xe")](RV("0x1c"))||t[RV("0x4")].startsWith(RV("0x9"))}LV[RV("0x1e")]=nj.TrackChangesService;const VV=["change:state","destroy","Comments","editor","config","connected","data","listenTo","ready","switchReadOnly","collaboration.channelId","RealTimeCollaborativeComments","isThreadsLoadingPaused","CommentsEditing","pluginName","once","plugins","get"];var FV,UV;FV=VV,UV=244,function(t){for(;--t;)FV.push(FV.shift())}(++UV);const HV=function(t,e){return VV[t-=0]};class GV extends Yt{static get requires(){return[HV("0xa"),TV,CV,aj]}static get[HV("0x4")](){return HV("0x1")}init(){const t=this[HV("0xb")][HV("0x6")][HV("0x7")](aj),e=this[HV("0xb")].plugins[HV("0x7")](HV("0x3")),n=this.editor[HV("0x6")][HV("0x7")](TV);return this[HV("0xb")][HV("0xe")][HV("0x5")](HV("0x10"),(()=>{this[HV("0xf")](t,HV("0x8"),((t,n,i)=>{e[HV("0x2")]="connected"!==i}))})),this[HV("0xf")](t,HV("0x8"),((t,e,n)=>{this[HV("0xb")].plugins[HV("0x7")]("CommentsRepository")[HV("0x11")](HV("0xd")!==n)})),n._setUpService(this[HV("0xb")][HV("0xc")][HV("0x7")](HV("0x0")))}destroy(){this.editor[HV("0x6")][HV("0x7")](TV)._terminateService(this[HV("0xb")][HV("0xc")][HV("0x7")](HV("0x0"))),super[HV("0x9")]()}}var qV,WV,KV=["TrackChanges","requires","RealTimeCollaborativeTrackChanges","pluginName"];qV=KV,WV=286,function(t){for(;--t;)qV.push(qV.shift())}(++WV);var ZV=function(t,e){return KV[t-=0]};class YV extends Yt{static get[ZV("0x3")](){return[GV,LV,ZV("0x2")]}static get[ZV("0x1")](){return ZV("0x0")}}const JV=["catch","serverHistory","sessionId","getMany","isBundleUploaded","once","repository","_revisions","sendBufferedUpdates","currentRevision","reverse","message","baseVersion","adapter","destroy","CONNECTED","remove","authors","get","addToReconnectionStack","off","_update","code","bind","then","map","_createCurrentRevision","_revisionHistoryService","getOperations","startsWith","connection","setSource","_revisionTracker","from","diffData","has","change:_isPendingUpdate","isEnabled","connected","type","affectsData","addRevisionData","_offset","getRevisions","_bufferedUpdates","change:_isConnected","_isConnected","marker","_isPendingUpdate","requires","creatorId","_revisionDataBuilder","_fetchMissingUsers","RevisionTracker","max","buildRevisionData","state","config","cloud-services-internal-error: Request timeout.","length","isConnected","_getLatestVersion","400","authorsIds","connect","data","_startingVersion","wrongRequestId","keys","editor","_lastRequestId","cloudServices.bundleVersion","RevisionHistoryService","getRevision","isEmptyCurrent","_waitForServiceReady","_bufferUpdate","cloud-services-internal-error: Not connected.","getUser","size","createdAt","fromVersion","_handleReconnectionError","toVersion","_fixRevision","_oldOffset","init","_getLatestVersionFromServerOperations","plugins","_handleRevisionsUpdate","_preventResendingRevisionData"];var $V,QV;$V=JV,QV=325,function(t){for(;--t;)$V.push($V.shift())}(++QV);const XV=function(t,e){return JV[t-=0]};class tF extends Yt{static get[XV("0x58")](){return[aj,fV,XV("0x1"),hj,Jb]}constructor(t){super(t);const e=this.editor.config[XV("0x39")]("collaboration.channelId");this[XV("0x12")]=null,this[XV("0x47")]=this.editor[XV("0x24")][XV("0x39")](XV("0x1")),this._revisionHistoryService=new tF.RevisionHistoryService(e)}async[XV("0x22")](){const t=this[XV("0x11")][XV("0x24")].get(fV),e=t[XV("0x28")],n=this[XV("0x11")][XV("0x24")][XV("0x39")](aj);this[XV("0x47")][XV("0x46")]({history:e,getLatestVersion:()=>this[XV("0x9")](),getCurrentRevisionId:()=>t[XV("0x29")]});const i=this[XV("0x11")][XV("0x5")][XV("0x39")](XV("0x13"))||Uu.version,o=await nj.EditorService[XV("0x2b")](n.connection,i);this[XV("0x47")][XV("0x34")]={getRevision:async({revisionId:t})=>(await this[XV("0x17")](),await this[XV("0x42")].getRevision(t)),updateRevisions:async t=>{await this[XV("0x17")]();const e=this._revisionTracker[XV("0x30")];if(o&&1===t[XV("0x7")]&&t[0].id===e.id)return t;for(const n of t)n.id===e.id&&(n[XV("0x16")]=n[XV("0x1d")]===n.toVersion);return this[XV("0x42")].updateRevisions(t,this[XV("0x12")])[XV("0x3f")]((e=>(this[XV("0x12")]=e,t)))[XV("0x27")]((e=>{if(eF(e)||XV("0xa")===e[XV("0x3d")]&&void 0!==e[XV("0xd")][XV("0xf")]){for(const e of t)!this._revisionTracker[XV("0x2d")][XV("0x15")](e.id)||this[XV("0x47")][XV("0x18")](e.id,e,!1);if(eF(e))throw e;return t}throw e}))}},this.listenTo(this[XV("0x42")],"revisionsUpdated",((t,{revisionsData:e,requestId:n})=>{Math[XV("0x2")](...e[XV("0x40")]((t=>t[XV("0x1f")])))>this[XV("0x23")]()-1?this[XV("0x9")]()[XV("0x3f")]((()=>{this[XV("0x25")](e,n)})):this[XV("0x25")](e,n)}));const{revisions:r,requestId:s}=await this[XV("0x42")][XV("0xc")](n[XV("0x45")]);n[XV("0x3a")](this),this[XV("0x12")]=s,await this._fetchMissingUsers(r);for(const t of r)this[XV("0x47")].addRevisionData(t);this.listenTo(t,XV("0x54"),((e,n,i)=>{i&&(this[XV("0x21")]=t[XV("0x51")],e[XV("0x3b")]())})),this._revisionTracker[XV("0x3e")](XV("0x4c")).to(n,XV("0x4"),(t=>t===nj.WEB_SOCKET_GATEWAY_STATES[XV("0x36")]))}async reconnect(){const t=this[XV("0x11")].plugins.get(aj),e=this[XV("0x11")][XV("0x24")][XV("0x39")](fV),n=async()=>{const n=this[XV("0x47")][XV("0x30")],i=n.id,o=i!==e[XV("0x29")];if(o){const t=e[XV("0x51")]-this[XV("0x21")],o=this[XV("0x23")]();if(this[XV("0x47")][XV("0x5a")].reInit(),n.toVersion+t!==o){const e=n[XV("0x1d")]+t,i=this.editor[XV("0x24")][XV("0x39")](Jb),r=this[XV("0x47")].buildRevisionData({revision:n,from:e,to:o});r.id=n.id;const s=r[XV("0xb")][XV("0x40")]((t=>i[XV("0x1a")](t)));n[XV("0x3c")]({...r,authors:s},!0),this[XV("0x47")][XV("0x18")](n.id,r,!0)}this[XV("0x47")][XV("0xe")]=o,n[XV("0x1f")]===n[XV("0x1d")]&&!this._revisionTracker[XV("0x53")][XV("0x4a")](i)&&this[XV("0x47")].repository[XV("0x2e")][XV("0x37")](i),this[XV("0x47")][XV("0x41")](o)}const{revisions:r,requestId:s}=await this._revisionHistoryService.reconnect(t[XV("0x45")],this[XV("0x12")]);o&&r[XV("0x7")]>0?e[XV("0x1e")]():(await this[XV("0x0")](r),this[XV("0x25")](r,s),this._revisionTracker[XV("0x2f")]())};return e[XV("0x55")]?n():new Promise(((t,i)=>{e[XV("0x2c")](XV("0x54"),(()=>{n()[XV("0x3f")](t).catch(i)}))}))}[XV("0x35")](){super[XV("0x35")]()}async[XV("0x17")](){this[XV("0x42")][XV("0x8")]||await new Promise((t=>{this.listenTo(this._revisionHistoryService,XV("0x4d"),(e=>{e[XV("0x3b")](),t()}))}))}[XV("0x23")](){const t=this[XV("0x11")][XV("0x24")][XV("0x39")](fV)[XV("0x28")][XV("0x43")]()[XV("0x31")]();for(const e of t)if(XV("0x56")!==e[XV("0x4e")]||e[XV("0x4f")])return e[XV("0x33")]+1}[XV("0x9")](){const t=this[XV("0x11")].plugins[XV("0x39")](fV);return new Promise((e=>{t[XV("0x57")]?t.once(XV("0x4b"),(()=>{e(this._getLatestVersionFromServerOperations())})):e(this[XV("0x23")]())}))}[XV("0x25")](t,e){const n=this[XV("0x47")].repository;this[XV("0x12")]=e;for(const e of t){const t=n[XV("0x15")](e.id);if(t){if((e[XV("0x1d")]||e[XV("0x1f")])&&(e[XV("0x49")]=null),t===this[XV("0x47")].currentRevision){const n=Math[XV("0x2")](t[XV("0x1f")],e[XV("0x1f")]),i=Math[XV("0x2")](t[XV("0x1d")],e[XV("0x1d")]);let o;t[XV("0x1f")]===e[XV("0x1f")]&&t.fromVersion===e.fromVersion?(o=!0,this[XV("0x26")](e)):e[XV("0x1f")]===n&&e[XV("0x1d")]===i?o=!1:(t[XV("0x1f")]===n&&t[XV("0x1d")]===i||this[XV("0x20")]({revision:t,from:i,to:n}),o=!0),o&&(delete e[XV("0x1d")],delete e[XV("0x1f")],delete e[XV("0x49")],delete e[XV("0x1c")],delete e[XV("0xb")])}this._revisionTracker.setRevisionData(e),this._preventResendingRevisionData(e)}else this[XV("0x47")][XV("0x50")](e)}const i=n[XV("0x52")]();i[XV("0x31")]();for(let t=0;t<i[XV("0x7")]-1;t++){const e=i[t],n=i[t+1];if(e.fromVersion<n[XV("0x1f")]){const t=n[XV("0x1f")],i=Math[XV("0x2")](t,e[XV("0x1f")]);this._fixRevision({revision:e,from:t,to:i})}}}[XV("0x20")]({revision:t,from:e,to:n}={}){const i=this.editor[XV("0x24")][XV("0x39")](Jb),o=this._revisionTracker[XV("0x3")]({revision:t,from:e,to:n});o[XV("0x38")]=o[XV("0xb")][XV("0x40")]((t=>i[XV("0x1a")](t))),t._update(o)}[XV("0x26")](t){const e={};e.id=t.id;for(const n of Object[XV("0x10")](t))"id"!==n&&(e[n]=void 0);this[XV("0x47")][XV("0x18")](e.id,e,!0)}async _fetchMissingUsers(t){const e=this[XV("0x11")][XV("0x24")][XV("0x39")](Jb),{connection:n}=this[XV("0x11")][XV("0x24")][XV("0x39")](aj),i=new Set;for(const e of t){for(const t of e.authorsIds)r(t);e.creatorId&&r(e[XV("0x59")])}if(0===i[XV("0x1b")])return;const o=await dV.User[XV("0x2a")](n,Array[XV("0x48")](i));for(const t of o)e[XV("0x1a")](t.id)||e.addUser(t);function r(t){e[XV("0x1a")](t)||i.add(t)}}}function eF(t){return t[XV("0x32")][XV("0x44")]("cloud-services-internal-error: Revision History Service is not connected.")||t.message[XV("0x44")](XV("0x19"))||t[XV("0x32")][XV("0x44")](XV("0x6"))}tF[XV("0x14")]=nj.RevisionHistoryService;var nF,iF,oF=["RealTimeCollaborativeRevisionHistory","pluginName","RevisionHistory"];nF=oF,iF=167,function(t){for(;--t;)nF.push(nF.shift())}(++iF);var rF=function(t,e){return oF[t-=0]};class sF extends Yt{static get requires(){return[rF("0x0"),tF,CV]}static get[rF("0x2")](){return rF("0x1")}}const aF=["isHidden","setTemplate","ck-presence-list__counter","usersCount","div","set","bindTemplate"];var cF,lF;cF=aF,lF=366,function(t){for(;--t;)cF.push(cF.shift())}(++lF);const dF=function(t,e){return aF[t-=0]};class uF extends u{constructor(t){super(t);const e=this[dF("0x4")];this[dF("0x3")](dF("0x1"),0),this[dF("0x3")](dF("0x5"),!0),this[dF("0x6")]({tag:dF("0x2"),attributes:{class:["ck",dF("0x0"),e.if(dF("0x5"),"ck-presence-list__counter--hidden")]},children:[{text:e.to(dF("0x1"),(e=>Aj(t,"CONNECTED_USERS",e)))}]})}}const hF=["bindTemplate","fire","items","execute","createCollection","ck-presence-list__list"];var mF,gF;mF=hF,gF=225,function(t){for(;--t;)mF.push(mF.shift())}(++gF);const pF=function(t,e){return hF[t-=0]};class fF extends u{constructor(t){super(t),this[pF("0x5")]=this[pF("0x1")]();const e=this[pF("0x3")];this.setTemplate({tag:"div",attributes:{class:["ck",pF("0x2")]},children:this[pF("0x5")],on:{click:e.to((()=>this[pF("0x4")](pF("0x0"))))}})}}var xF=__webpack_require__(9597),bF={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(xF.Z,bF);xF.Z.locals;const kF=["first","ck-reset","listenTo","change","isCollapsed","inlineListView","ck-presence-list","ck-presence-list--collapsed","items","ck-rounded-corners","counterView","div","bindTemplate","tooltipPosition","setTemplate"];var wF,AF;wF=kF,AF=436,function(t){for(;--t;)wF.push(wF.shift())}(++AF);const _F=function(t,e){return kF[t-=0]};class vF extends u{constructor(t){super(t);const e=this[_F("0xb")];this.set(_F("0x3"),!0),this[_F("0x9")]=new uF(this.locale),this[_F("0x4")]=new fF(t),this[_F("0x1")](this[_F("0x4")][_F("0x7")],_F("0x2"),(()=>{for(const t of this[_F("0x4")][_F("0x7")])t[_F("0xc")]="s";this.inlineListView.items[_F("0xe")]&&(this[_F("0x4")][_F("0x7")][_F("0xe")][_F("0xc")]="se")})),this[_F("0xd")]({tag:_F("0xa"),attributes:{class:["ck",_F("0x5"),_F("0x0"),_F("0x8"),e.if(_F("0x3"),_F("0x6"))]},children:[this[_F("0x9")],this.inlineListView]})}}var CF,yF,EF=["ck-presence-list__dropdown-list-wrapper","div","items","createCollection"];CF=EF,yF=489,function(t){for(;--t;)CF.push(CF.shift())}(++yF);var IF=function(t,e){return EF[t-=0]};class SF extends u{constructor(t){super(t),this[IF("0x1")]=this[IF("0x2")](),this.setTemplate({tag:IF("0x0"),attributes:{class:["ck","ck-presence-list__dropdown-list"]},children:[{tag:IF("0x0"),attributes:{class:["ck",IF("0x3")]},children:this[IF("0x1")]}]})}}const TF=["ck-presence-list__dropdown-list-item","bindTemplate","div","fire","userView","color","true","setTemplate","ck-presence-list__marker","button","span","execute","ck-user__full-name","name"];var DF,MF;DF=TF,MF=347,function(t){for(;--t;)DF.push(DF.shift())}(++MF);const BF=function(t,e){return TF[t-=0]};class OF extends u{constructor(t,e,n){super(t);const i=this[BF("0x4")];this[BF("0x7")]=new sk(t,e);const o={tag:BF("0x5"),attributes:{class:["ck",BF("0x3")]},children:[this.userView,{tag:BF("0xd"),attributes:{class:["ck",BF("0x1")]},children:[{text:e[BF("0x2")]}]},{tag:BF("0xd"),attributes:{class:["ck",BF("0xb"),e[BF("0x8")].getBackgroundColorClass()],"aria-hidden":BF("0x9")}}]};n&&(o.tag=BF("0xc"),o.on={click:i.to((()=>this[BF("0x6")](BF("0x0"))))}),this[BF("0xa")](o)}}const NF=["hasTooltip","fire","ck-presence-list__marker","button","name","set","true","tag","setTemplate","execute","ck-presence-list__list-item__tooltip","div","userView","color","ck-presence-list__list-item","bindTemplate","getBackgroundColorClass","tooltipPosition","markerView"];var PF,RF;PF=NF,RF=126,function(t){for(;--t;)PF.push(PF.shift())}(++RF);const LF=function(t,e){return NF[t-=0]};class jF extends u{constructor(t,e,n){super(t);const i=this[LF("0x3")];this[LF("0xc")]("hasTooltip",!0),this[LF("0xc")](LF("0x5"),""),this[LF("0x0")]=new sk(t,e),this[LF("0x6")]=new zF(t,e);const o={tag:LF("0x12"),attributes:{class:["ck",LF("0x2")],"data-cke-tooltip-text":this[LF("0x0")][LF("0xb")],"data-cke-tooltip-position":i.to(LF("0x5")),"data-cke-tooltip-disabled":i.to(LF("0x7"),(t=>!t)),"data-cke-tooltip-class":LF("0x11")},children:[this[LF("0x0")],this[LF("0x6")]]};n&&(o[LF("0xe")]=LF("0xa"),o.on={click:i.to((()=>this[LF("0x8")](LF("0x10"))))}),this[LF("0xf")](o)}}class zF extends u{constructor(t,e){super(t),this[LF("0xf")]({tag:"span",attributes:{class:["ck",LF("0x9"),e[LF("0x1")][LF("0x4")]()],"aria-hidden":LF("0xd")}})}}const VF=["isCollapsed","add","pin","view","_handleUserAdd","presenceList.container","remove","context","init","showDropdown","_allConnectedUsers","requires","plugins","presencelist-missing-container","balloonPanelView","isRendered","number","presenceDropdownView","unpin","counterView","onClick","lastConnectedUsers","set","appendChild","items","bind","render","element","presenceList","using","presencelist-collapseat-invalid-format","hideDropdown","locale","define","listenTo","inlineListView","reverse","destroy","_createView","bodyCollection","config","presenceList.collapseAt","get","length","attachToDom","usersCount","allConnectedUsers","bindTo","_handleUserRemove","execute","content"];var FF,UF;FF=VF,UF=121,function(t){for(;--t;)FF.push(FF.shift())}(++UF);const HF=function(t,e){return VF[t-=0]};class GF extends ne{constructor(t){super(t),this[HF("0x27")].config[HF("0xe")](HF("0x9"),{collapseAt:6});const e=t[HF("0x15")][HF("0x17")](HF("0x16"));if(HF("0x30")!=typeof e)throw new Uu.CKEditorError(HF("0xb"),this);if(e<1)throw new Uu.CKEditorError(HF("0xb"),this);this._allConnectedUsers=this[HF("0x27")][HF("0x2c")][HF("0x17")](hj)[HF("0x1b")],this[HF("0x3")]("usersCount",0),this[HF("0x2")]=new Uu.Collection,this[HF("0x2e")]=new bd,this[HF("0x2e")].class="ck ck-presence-list__balloon",this[HF("0x23")]=this._createView(),this.presenceDropdownView=void 0}static get[HF("0x2b")](){return[hj]}[HF("0x28")](){for(const t of this._allConnectedUsers)this[HF("0x24")](t);this[HF("0xf")](this[HF("0x2a")],HF("0x21"),((t,e)=>{this[HF("0x24")](e)})),this[HF("0xf")](this[HF("0x2a")],HF("0x26"),((t,e)=>{this[HF("0x1d")](e)}))}[HF("0x13")](){const t=this[HF("0x27")],n=new vF(this[HF("0x27")][HF("0xd")]),i=this.balloonPanelView;if(!(0,hd.Z)(t.config[HF("0x17")](HF("0x25"))))throw new Uu.CKEditorError(HF("0x2d"),this);return n[HF("0x0")].bind(HF("0x1a")).to(this),n.bind("isCollapsed").to(this,HF("0x1a"),(e=>{const i=e>=t.config.get("presenceList.collapseAt");return n[HF("0x0")].isHidden=!(1==e||i),i||this[HF("0xc")](),i})),n[HF("0x10")][HF("0x5")][HF("0x1c")](this.lastConnectedUsers)[HF("0xa")]((e=>{const i=t[HF("0x15")].get("presenceList"),o=new jF(t[HF("0xd")],e,!!i[HF("0x1")]);return o[HF("0x6")]("hasTooltip").to(n,"isCollapsed",(t=>!t)),i[HF("0x1")]&&this.listenTo(o,HF("0x1e"),(()=>{this[HF("0x23")][HF("0x20")]||i[HF("0x1")](e,o.element)})),o})),this.listenTo(n.inlineListView,HF("0x1e"),(()=>{this[HF("0x31")]?this.hideDropdown():this[HF("0x23")].isCollapsed&&this.showDropdown()})),n[HF("0x7")](),i[HF("0x7")](),e({emitter:n,activator:()=>i.isVisible,contextElements:[i[HF("0x8")],n.inlineListView.element],callback:()=>this[HF("0xc")]()}),t[HF("0x15")].get(HF("0x25"))[HF("0x4")](n[HF("0x8")]),this[HF("0x14")]=new P(this[HF("0x27")].locale),this.bodyCollection[HF("0x19")](),this[HF("0x14")][HF("0x21")](i),n}[HF("0x24")](t){this.usersCount++,5==this[HF("0x2")][HF("0x18")]&&this[HF("0x2")].remove(0),this[HF("0x2")][HF("0x21")](t)}[HF("0x1d")](t){if(this[HF("0x1a")]--,this.lastConnectedUsers[HF("0x17")](t.id)&&(this[HF("0x2")][HF("0x26")](t.id),this[HF("0x2")][HF("0x18")]<this.usersCount))for(const t of Array.from(this[HF("0x2a")])[HF("0x11")]())if(!this[HF("0x2")][HF("0x17")](t.id))return void this[HF("0x2")][HF("0x21")](t,0)}[HF("0x29")](){if(this[HF("0x31")])return;this[HF("0x31")]=new SF(this[HF("0x27")][HF("0xd")]);const t=this[HF("0x27")][HF("0x15")][HF("0x17")]("presenceList");this[HF("0x31")][HF("0x5")].bindTo(this[HF("0x2a")])[HF("0xa")]((e=>{const n=new OF(this[HF("0x27")][HF("0xd")],e,!!t.onClick);return t[HF("0x1")]&&this.listenTo(n,HF("0x1e"),(()=>{t[HF("0x1")](e,n[HF("0x8")])})),n})),this[HF("0x2e")][HF("0x1f")][HF("0x21")](this[HF("0x31")]),this[HF("0x2e")][HF("0x22")]({target:this[HF("0x23")].inlineListView[HF("0x8")]})}hideDropdown(){this[HF("0x31")]&&(this.balloonPanelView[HF("0x32")](),this.balloonPanelView[HF("0x1f")][HF("0x26")](this[HF("0x31")]),this[HF("0x31")].destroy(),this.presenceDropdownView=void 0)}destroy(){super[HF("0x12")](),this[HF("0x23")]&&this[HF("0x23")][HF("0x2f")]&&this[HF("0x23")][HF("0x12")](),this[HF("0x14")]&&this[HF("0x14")].detachFromDom()}}var qF,WF,KF=["PresenceList","requires"];qF=KF,WF=218,function(t){for(;--t;)qF.push(qF.shift())}(++WF);var ZF=function(t,e){return KF[t-=0]};class YF extends ne{static get[ZF("0x1")](){return[hj,GF]}static get pluginName(){return ZF("0x0")}}const JF="removeFormat";class $F extends Yt{static get pluginName(){return"RemoveFormatUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(JF,(n=>{const i=t.commands.get(JF),o=new U(n);return o.set({label:e("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute(JF),t.editing.view.focus()})),o}))}}class QF extends $t{refresh(){const t=this.editor.model;this.isEnabled=!!(0,Uu.first)(this._getFormattingItems(t.document.selection,t.schema))}execute(){const t=this.editor.model,e=t.schema;t.change((n=>{for(const i of this._getFormattingItems(t.document.selection,e))if(i.is("selection"))for(const t of this._getFormattingAttributes(i,e))n.removeSelectionAttribute(t);else{const t=n.createRangeOn(i);for(const o of this._getFormattingAttributes(i,e))n.removeAttribute(o,t)}}))}*_getFormattingItems(t,e){const n=t=>!!(0,Uu.first)(this._getFormattingAttributes(t,e));for(const i of t.getRanges())for(const t of i.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 XF extends Yt{static get pluginName(){return"RemoveFormatEditing"}init(){const t=this.editor;t.commands.add("removeFormat",new QF(t))}}class tU extends Yt{static get requires(){return[XF,$F]}static get pluginName(){return"RemoveFormat"}}const eU=["diffData","creatorId","fire","_update","removeAttribute","authors","attributes","toVersion","creator","createdAt","toJSON","setAttribute","set","fromVersion","name"];var nU,iU;nU=eU,iU=166,function(t){for(;--t;)nU.push(nU.shift())}(++iU);const oU=function(t,e){return eU[t-=0]};class rU extends((0,Uu.ObservableMixin)()){constructor(t){super(),this.id=t.id||(0,Uu.uid)(),this[oU("0x7")]=t[oU("0x7")]||null,this[oU("0x4")]=t[oU("0x4")]||[],this.diffData=t.diffData||null,this.toVersion=t.toVersion||0,this[oU("0xc")]=t[oU("0xc")]||0,this[oU("0xb")](oU("0xd"),t[oU("0xd")]||""),this[oU("0xb")](oU("0x8"),t.createdAt||new Date),this[oU("0xb")]("attributes",t[oU("0x5")]||{})}setName(t){this._update({name:t})}[oU("0xa")](t,e){const n=Fo(this.attributes);On(n,t,e),this[oU("0x2")]({attributes:n})}[oU("0x3")](t){const e=Fo(this[oU("0x5")]);Ke(e,t),this[oU("0x2")]({attributes:e})}_update(t,e=!1){let n=!1;const i={id:this.id},o=[oU("0xd"),"createdAt",oU("0xe"),oU("0x4"),oU("0x5"),"toVersion",oU("0xc"),oU("0x0")];for(const e of o){const o=t[e];void 0!==o&&o!==this[e]&&(this[e]=o,i[e]=o,n=!0)}n&&(i[oU("0x4")]&&(i.authorsIds=i[oU("0x4")].map((t=>t.id)),delete i[oU("0x4")]),this[oU("0x1")](oU("0x2"),i,e))}[oU("0x9")](){return{id:this.id,name:this[oU("0xd")],creatorId:this[oU("0x7")]?this[oU("0x7")].id:null,authorsIds:this[oU("0x4")].map((t=>t.id)),diffData:this[oU("0xe")],createdAt:this.createdAt,attributes:this[oU("0x5")],fromVersion:this.fromVersion,toVersion:this[oU("0x6")]}}}const sU=["isNaN","_revisions","getRevision","name","addRevision","add","get","requires","config","data","earlier","RevisionsRepository","toVersion","oldRevisionId","diffData","reverse","createRevision","authorsIds","from","getRevisionsIterator","context","getRevisions","join","map","attributes","newRevisionId","toJSON","then","plugins","getLaterVisibleRevision","editor","getRevisionsInDiff","creatorId","getUser","fromCharCode","push","getIndex"];var aU,cU;aU=sU,cU=359,function(t){for(;--t;)aU.push(aU.shift())}(++cU);const lU=function(t,e){return sU[t-=0]};class dU extends Yt{static get[lU("0x12")](){return[Jb]}static get pluginName(){return lU("0x16")}get length(){return this[lU("0xc")].length}constructor(t){super(t),this._revisions=new Uu.Collection}afterInit(){!function(t){function e(t){return t[lU("0x22")]((t=>String[lU("0x8")](t)))[lU("0x21")]("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[lU("0xd")](0),r=i.getEarlierVisibleRevision(o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[lU("0x1")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[lU("0xb")](Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t[lU("0x1f")]:t[lU("0x4")],d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l[lU("0x13")].get(e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}[lU("0x1b")](t){const e=this.editor[lU("0x2")].get("Users");return new rU({id:t.id,name:t[lU("0xe")],creator:t[lU("0x6")]?e[lU("0x7")](t.creatorId):null,diffData:t[lU("0x19")]||t[lU("0x14")],authors:t[lU("0x1c")][lU("0x22")]((t=>e[lU("0x7")](t))),createdAt:new Date(t.createdAt),attributes:t[lU("0x23")],fromVersion:t.fromVersion,toVersion:t[lU("0x17")]})}[lU("0xf")](t,e=0){this[lU("0xc")][lU("0x10")](t,e)}getRevision(t){return this[lU("0xc")].get(t)}[lU("0x20")](t={toJSON:!1}){const e=Array[lU("0x1d")](this[lU("0xc")]);return e[lU("0x1a")](),t.toJSON?e.map((t=>t[lU("0x0")]())):e}[lU("0xa")](t){return this._revisions[lU("0xa")](t)}getEarlierVisibleRevision(t){const[,e]=this[lU("0x1e")](t,{direction:"earlier"});return e}[lU("0x3")](t){const[,e]=this.getRevisionsIterator(t,{direction:"later"});return e}[lU("0x5")](t){const e=[];for(const n of this[lU("0x1e")](t[lU("0x24")]))if(e[lU("0x9")](n),n.id===t[lU("0x18")])break;return e}*[lU("0x1e")](t,{direction:e=lU("0x15"),filter:n=(t=>!0)}={}){const i="earlier"===e?1:-1;let o=this[lU("0xc")][lU("0x11")](t),r=this[lU("0xa")](o);for(yield o;o;){if(r+=i,o=this.getRevision(r),!o)return;n(o)&&(yield o)}}}function uU(t,e,n){const i=t.t;switch(e){case"Revision history":return i("Revision history");case"Open revision history":return i("Open revision history");case"Restored":return i("Restored");case"Empty document":return i("Empty document");case"Initial revision":return i("Initial revision");case"Suggested by":return i("Suggested by");case"Added by":return i("Added by");case"Removed by":return i("Removed by");case"Show more items":return i("Show more items");case"Compare against selected":return i("Compare against selected");case"Name this revision":return i("Name this revision");case"Restore this revision":return i("Restore this revision");case"Back to editing":return i("Back to editing");case"Loading...":return i("Loading...");case"No changes":return i("No changes");case"NUMBER_OF_CHANGES":return i({string:"%0 change",plural:"%0 changes",id:"NUMBER_OF_CHANGES"},n);case"X_OF_Y_CHANGES":return i({string:"%0 of %1",id:"X_OF_Y_CHANGES"},n);case"Show previous change":return i("Show previous change");case"Show next change":return i("Show next change");case"EDIT_X_OF_Y_REVISIONS":return i({string:"Edit",id:"EDIT_X_OF_Y_REVISIONS"});case"Total":return i("Total");case"Revision creator":return i("Revision creator");case"Revision author":return i("Revision author");case"Revision name":return i("Revision name");case"Save current revision":return i("Save current revision");case"Save":return i("Save");case"Cancel":return i("Cancel");case"Name of the revision (optional)":return i("Name of the revision (optional)");case"PENDING_ACTION_REVISION_HISTORY":return i({string:"Unsaved change in revision history.",id:"PENDING_ACTION_REVISION_HISTORY"});default:return e}}const hU=["diffData","tableCell","_cloneOperation","_touched","getTransformedByOperation","_getState","previousPosition","_getFromVersion","_transformMarkers","children","createPositionFromPath","addRevisionData","vid_start","max","insert","_isPendingUpdate","delete","_replaceEditorDataWithRevisionData","_handleRootAttributeOperation","roots","_handleOperation","resolve","isAdd","shift","saveRevision","_removeMetaData","conversion","repository","_fixPosition","getRevisions","_handleSplitOperation","_handleMergeOperation","config","_diffRoots","define","changeRootAttribute","authors","_operations","graveyardPosition","editor-initial-data-replaced-with-revision-data","addRevision","_makeIdsRoot","newValue","useFillerType","revisionHistory.resumeUnsavedRevision","key","then","_continueCurrentRevision","newRange","_initialRevisionId","root","map","_markers","Users","history","text","sendBufferedUpdates","getOperations","stickiness","processor","hasContent","type","_baseRoots","_bufferedUpdates","update","initial","RevisionTracker","Empty document","getRootNames","_handleInsertOperation","_diffRootsAttributes","pluginName","init","merge","PENDING_ACTION_REVISION_HISTORY","_handleMarkerOperation","marker","_loadedStateData","getAncestors","name","attributes","getIndex","keys","Initial revision","userId","add","_savedMetaData","_fixOperation","_calculateMetaData","_source","getChildren","RevisionsRepository","isReady","_baseRootsAttributes","insertionPosition","rootsAttributes","_update","parent","revision-end","isAttached","parse","paragraph","split","_saveMetaData","_makeModelFromViewString","_touchedRoots","clear","_idsRoots","_getBaseVids","getCurrentRevisionId","_lastFrom","plugins","elementEnd","collaboration.channelId","_insertChild","revision:","markerToData","PendingActions","filter","insertions","createRevision","source","_findInsertionIndex","_pendingAction","afterInit","_loadState","getOperation","buildRevisionData","authorsIds","NEGATIVE_INFINITY","elementStart","getRevision","getNodeByPath","end","documentFragment","vid","move","adapter","getRevisionRootsAttributes","createPositionBefore","values","_handleRootOperation","keepParagraph","toView","deletions","upcast","_addPendingAction","isEqual","set","creatorId","startsWith","document","getChild","model","fromEntries","$text","removeRootAttribute","range","baseVersion","getTime","for","RealTimeCollaborationClient","requires","_bufferUpdate","dataDowncast","oldRange","getRange","_startingVersion","markers","get","marked","dataToMarker","createdAt","version","updateRevisions","sort","currentRevision","attributesAfter","view","editor","_setAttribute","_revisionId","nodeAfter","revision-start","setSource","_processRootBeforeSave","_removePendingAction","howMany","_startingRevisionId","stringify","deletion","slice","reverse","attributesBefore","getWalker","_makeRevision","getData","_baseIdsRoots","getAttributes","_appendChild","getUser","fromVersion","from","creator","find","nodes","_setConversion","toVersion","vid_end","attachChange","string","length","_authorId","rootName","_getPreviousFrom","_getVidAttributeName","has","size","_createInitialRevision","data","_loadRevisionData","revision","_fixRange","createRange","getRevisionDocumentData","_revisionDataBuilder","_removeRevisionMarkers","start","_execute","_markChanges","getRoot","getMovedRangeStart","clone","element","getLatestVersion","_getViewJson","_lastTo","offsetSize","_isInit","$graveyard","finally","_isAttached","path","initialData","_prepareViewToSave","_touchedMarkers","_applyOperations","_copyMarkers","createPositionAfter","push","_reset","_createCurrentRevision","getAttribute","item","bind","editing"];var mU,gU;mU=hU,gU=169,function(t){for(;--t;)mU.push(mU.shift())}(++gU);const pU=function(t,e){return hU[t-=0]},fU={c:Vn,a:ri,e:ci,r:mi,u:di};class xU extends Yt{static get[pU("0x9e")](){return pU("0x99")}static get[pU("0xf9")](){return[Jb,dU,jc]}constructor(t){super(t),this.adapter=null,this.currentRevision=null,this[pU("0x38")]=new kU(this[pU("0xa")]),this[pU("0x88")]=this[pU("0xa")][pU("0x77")][pU("0x0")](pU("0xc8"))||pU("0x98"),this[pU("0x96")]=new Map,this[pU("0xa4")]=null;const e=(0,Uu.uid)();this[pU("0xb0")]={history:this[pU("0xa")].model[pU("0xee")][pU("0x8d")],getLatestVersion:()=>Promise[pU("0x6c")](this[pU("0xa")][pU("0xf0")].document[pU("0x4")]),getCurrentRevisionId:()=>e},this[pU("0xeb")](pU("0xb3"),!1),this[pU("0xeb")]("isEnabled",!0),this[pU("0xeb")]("_isPendingUpdate",!1),this[pU("0xa")][pU("0x77")][pU("0x79")](pU("0x83"),!0),this[pU("0xa")][pU("0x71")][pU("0xf7")](pU("0xe8"))[pU("0x2")]({view:pU("0x34")})}[pU("0x9f")](){this.repository=this[pU("0xa")][pU("0xc6")][pU("0x0")](pU("0xb2")),this[pU("0x25")](),this[pU("0xa")][pU("0x32")].on("ready",(()=>{const t=this[pU("0x72")][pU("0xda")](0),e=t&&null===t.creator?t:null;if(this[pU("0x86")]=!!e&&this[pU("0xa")][pU("0x77")][pU("0x0")](pU("0x83")),this[pU("0xa")].plugins[pU("0x2f")](pU("0xf8"))){const n=this._source.getCurrentRevisionId(),i=this.repository.getRevision(n);if(i)this[pU("0xfe")]=i[pU("0x20")],this[pU("0x86")]=!1;else{const n=this[pU("0xb0")][pU("0x8d")][pU("0x7c")][pU("0x23")]((t=>!t[pU("0x45")])),i=n?n.baseVersion:this[pU("0xb0")][pU("0x8d")][pU("0x4")];t?(t[pU("0x26")]<i&&t._update({toVersion:i}),this[pU("0x86")]?(this[pU("0xb0")][pU("0xc4")]=()=>e.id,this._startingVersion=e[pU("0x20")]):(this[pU("0xfe")]=t[pU("0x26")],this[pU("0x86")]=!1)):(this._startingVersion=i,this._continueCurrentRevision=!1)}}else e&&(this[pU("0xa")][pU("0xf0")][pU("0xee")][pU("0x8d")][pU("0x4")]=Math[pU("0x64")](e[pU("0x26")],this[pU("0xa")][pU("0xf0")][pU("0xee")].history[pU("0x4")]),e[pU("0x20")]===e[pU("0x26")]?(0!==e[pU("0x20")]&&(this[pU("0xb0")].getCurrentRevisionId=()=>e.id),this[pU("0x86")]=!1):this[pU("0x86")]&&(this[pU("0xb0")][pU("0xc4")]=()=>e.id,this[pU("0xfe")]=e[pU("0x20")])),this[pU("0x86")]||(this[pU("0xfe")]=this[pU("0xa")][pU("0xf0")].document[pU("0x4")]);this._revisionDataBuilder[pU("0x9f")](this[pU("0xb0")][pU("0x8d")]),this[pU("0x31")](this._startingVersion),this[pU("0x52")](this[pU("0xfe")]),this[pU("0xe0")]&&this[pU("0x8f")]()})),this[pU("0x55")](pU("0xb3")).to(this,pU("0x66"),(t=>!t))}async[pU("0xd3")](){if(this[pU("0x72")][pU("0x2a")]>0){const t=this[pU("0x72")][pU("0xda")](0),e=await this[pU("0x37")](t),n=await this[pU("0xe1")](t);this[pU("0x68")](e,n)}}[pU("0xf")](t){this[pU("0xb0")]=t}async[pU("0x97")](){const t=await this[pU("0xb0")][pU("0x41")]();if(t>this[pU("0x7")][pU("0x26")]){await this[pU("0xd4")]();const e=this.buildRevisionData({revision:this.currentRevision,to:t});e[pU("0x7b")]=e[pU("0xd7")].map((t=>this[pU("0xa")][pU("0xc6")][pU("0x0")](pU("0x8c"))[pU("0x1f")](t))),this[pU("0x7")][pU("0xb7")](e)}}async[pU("0xd4")](){this[pU("0x86")]&&!this[pU("0xa4")]&&(await this._loadRevisionData(this.currentRevision),this[pU("0x38")].loadState(this[pU("0x7")]),this[pU("0xa4")]={fromVersion:this[pU("0x7")][pU("0x20")],authors:this[pU("0x7")][pU("0x7b")][pU("0x16")]()})}async[pU("0x6f")](t={},e=null){const n=[];await this[pU("0xd4")](),this[pU("0x86")]=!1,e>this.currentRevision[pU("0x26")]&&(e=null),null===e&&(e=await this._source[pU("0x41")]());const i=this[pU("0x5e")](e),o=this[pU("0xd6")]({from:i,to:e});if(this[pU("0x7")][pU("0x26")]<e){const t=this.buildRevisionData({revision:this.currentRevision,from:e,to:e});t[pU("0x7b")]=[],t.authorsIds=[],t.id=this[pU("0x7")].id,this[pU("0x7")][pU("0xb7")](t,!0),delete t[pU("0x7b")],n[pU("0x50")](t)}t[pU("0xec")]=this.editor.plugins[pU("0x0")]("Users").me.id,t[pU("0xa6")]=t[pU("0xa6")]||null,t.id=t.id||(0,Uu.uid)(),t={...t,...o};const r=this[pU("0x62")](t);n[pU("0x50")](t);const s=this[pU("0x72")][pU("0xa8")](r);if(0!==s){const i=this[pU("0x72")][pU("0xda")](s-1);if(i[pU("0x20")]!==e){const o=this._revisionDataBuilder.getData(e,i[pU("0x26")]),r={id:i.id,diffData:o[pU("0x57")],authorsIds:o[pU("0xd7")],authors:o[pU("0xd7")][pU("0x8a")]((t=>this[pU("0xa")][pU("0xc6")][pU("0x0")](pU("0x8c"))[pU("0x1f")](t))),fromVersion:e};i===this.currentRevision&&(r[pU("0x3")]=new Date(t[pU("0x3")][pU("0xf6")]()+10)),i[pU("0xb7")](r,!0),delete r[pU("0x7b")],n[pU("0x50")](r)}}if(this[pU("0xe0")]){for(const t of n)this[pU("0xfa")](t.id,t,!0);this[pU("0x8f")]()}return r}[pU("0x62")](t){const e=this[pU("0x72")][pU("0xcf")](t);return this[pU("0xe0")]&&e.on("_update",((t,e,n)=>{n||(this[pU("0xfa")](e.id,e,!0),this[pU("0x8f")]())})),this[pU("0x72")][pU("0x7f")](e,this._findInsertionIndex(e)),e}async[pU("0x37")](t){await this[pU("0x33")](t);const e={};for(const n in t[pU("0x57")]){if(t[pU("0x57")][n][pU("0x28")]&&!t[pU("0x57")][n].attachChange[pU("0xba")])continue;const i=this[pU("0x39")](JSON[pU("0xbb")](t.diffData[n][pU("0xce")])),o=this[pU("0xa")][pU("0x56")][pU("0x9")].document,r=new pi(o,i[pU("0x8a")]((t=>bU(t,this[pU("0xa")]))));this[pU("0xa")].data[pU("0x92")][pU("0x82")](pU("0x1")),e[n]=this[pU("0xa")][pU("0x32")][pU("0x92")].toData(r),this[pU("0xa")][pU("0x32")].processor[pU("0x82")]("default")}return e}async[pU("0xe1")](t){await this[pU("0x33")](t);const e={};for(const n in t[pU("0x57")])t[pU("0x57")][n][pU("0x28")]&&!t[pU("0x57")][n][pU("0x28")][pU("0xba")]||(e[n]=t[pU("0x57")][n][pU("0x8")]||{});return e}[pU("0x8f")](){if(0===this[pU("0x96")][pU("0x30")])return;if(this[pU("0x66")])return;let t=Array[pU("0x21")](this[pU("0x96")][pU("0xe3")]());this[pU("0x96")][pU("0xc1")]();for(let e=0;e<t[pU("0x2a")];e++){const n=t[e];let i=!1;for(const t of Object[pU("0xa9")](n))void 0===n[t]?delete n[t]:"id"!==t&&(i=!0);i||(t[e]=null)}if(t=t[pU("0xcd")]((t=>null!==t)),!t[pU("0x2a")])return;for(let e=0;e<t[pU("0x2a")];e++){const n=t[e];void 0!==n[pU("0x20")]&&void 0===n[pU("0x26")]&&(n.toVersion=this[pU("0x72")].getRevision(n.id)[pU("0x26")]),void 0!==n.toVersion&&void 0===n[pU("0x20")]&&(n[pU("0x20")]=this[pU("0x72")][pU("0xda")](n.id)[pU("0x20")])}const e=this[pU("0xa")][pU("0x77")][pU("0x0")](pU("0xc8"));this[pU("0x66")]=!0,this._addPendingAction(),this[pU("0xe0")][pU("0x5")](t,e)[pU("0x47")]((()=>{this._isPendingUpdate=!1}))[pU("0x85")]((t=>{if(t)for(const e of t)this.setRevisionData({id:e.id,createdAt:e[pU("0x3")]});this._removePendingAction(),this.sendBufferedUpdates()}))}[pU("0x68")](t,e){let n=this[pU("0xa")][pU("0x77")][pU("0x0")](pU("0x4a")),i=this[pU("0xa")].config.get(pU("0xb6"));if(void 0===n){n={};for(const t of this[pU("0xa")].model[pU("0xee")][pU("0x9b")]())n[t]=""}if("string"==typeof n&&(n={main:n}),void 0===i){i={};for(const t of this[pU("0xa")][pU("0xf0")][pU("0xee")].getRootNames())i[t]={}}let o=!1;const r=Object[pU("0xa9")](n),s=Object[pU("0xa9")](t);for(const s of r){if(n[s]!==t[s]&&""!==n[s].trim()){o=!0;break}if(!Ls(i[s],e[s])&&Object[pU("0xa9")](i[s])[pU("0x2a")]>0){o=!0;break}}o||(o=s.some((t=>!this[pU("0xa")][pU("0xf0")][pU("0xee")][pU("0x3d")](t)))),o&&(0,Uu.logWarning)(pU("0x7e"),{editorData:n,editorRootsAttributes:i,revisionData:t,revisionRootsAttributes:e}),this[pU("0xa")][pU("0x77")][pU("0xeb")]("initialData",t),this[pU("0xa")].config.set(pU("0xb6"),e)}[pU("0xe9")](){if(!this[pU("0xd2")]){const t=this[pU("0xa")].plugins[pU("0x0")](pU("0xcc"));this._pendingAction=t[pU("0xac")](uU(this.editor.locale,pU("0xa1")))}}[pU("0x11")](){this[pU("0xd2")]&&(this[pU("0xa")][pU("0xc6")][pU("0x0")]("PendingActions").remove(this[pU("0xd2")]),this._pendingAction=null)}[pU("0xd1")](t){const e=this.repository[pU("0x74")]();e[pU("0x17")]();let n=0;for(;n<e.length;){const i=e[n];if(i===this[pU("0x7")]){n++;continue}if(i.id===this[pU("0x88")])break;const o=t[pU("0x26")]-i[pU("0x26")]||t.fromVersion-i[pU("0x20")];if(o>0)break;if(o<0)n++;else{if(!t[pU("0x22")]&&i[pU("0x22")])break;if(i.creator||!t[pU("0x22")]){if(t.createdAt>i[pU("0x3")])break;n++}else n++}}return n}setRevisionData(t){const e=this.repository[pU("0xda")](t.id);if(t.createdAt&&(t[pU("0x3")]=new Date(t[pU("0x3")])),t[pU("0xd7")]){const e=this.editor[pU("0xc6")][pU("0x0")](pU("0x8c"));t[pU("0x7b")]=t[pU("0xd7")][pU("0x8a")]((t=>e[pU("0x1f")](t)))}e[pU("0xb7")](t,!0)}[pU("0xd6")]({revision:t=null,from:e=null,to:n=null}){e=null!==e?e:t.fromVersion,n=null!==n?n:t[pU("0x26")];const i=this[pU("0x38")][pU("0x1b")](e,n),o={diffData:i[pU("0x57")],authorsIds:i[pU("0xd7")],fromVersion:e,toVersion:n};if(!t||n!==t[pU("0x26")]){const t=n-1,e=this[pU("0xb0")][pU("0x8d")][pU("0xd5")](t);o[pU("0x3")]=e&&e.createdAt||new Date}if(this[pU("0xa4")]&&e===this[pU("0xa4")][pU("0x20")])for(const t of this[pU("0xa4")][pU("0x7b")])o.authorsIds.includes(t.id)||o[pU("0xd7")][pU("0x50")](t.id);return o}[pU("0x33")](t){if(!t||t.diffData)return Promise.resolve();{const e=this.editor.config[pU("0x0")](pU("0xc8"));return this[pU("0xe0")][pU("0xda")]({channelId:e,revisionId:t.id}).then((e=>{t[pU("0x57")]=e[pU("0x57")]}))}}_bufferUpdate(t,e,n){if(this[pU("0x96")].has(t)){const i=this[pU("0x96")][pU("0x0")](t);e=n?{...i,...e}:{...e,...i}}this[pU("0x96")][pU("0xeb")](t,e)}[pU("0x5e")](t){const e=this.repository[pU("0x74")]();e[pU("0x17")](),e[pU("0x6e")]();const n=e[pU("0x23")]((e=>e[pU("0x26")]<=t)).toVersion;return n<this._startingVersion?this[pU("0xfe")]:n}[pU("0x31")](t){const e=this[pU("0x72")].getRevision(this[pU("0x72")].length-1);if(e)this[pU("0x88")]=e.id;else{const e=!this[pU("0xa")].model[pU("0xee")][pU("0x6a")][pU("0x23")]((t=>this[pU("0xa")][pU("0xf0")][pU("0x93")](t))),n=this[pU("0xa")].plugins[pU("0x0")](pU("0x8c")).me.id,i=uU(this[pU("0xa")].locale,pU(e?"0x9a":"0xaa"));this[pU("0x1a")]({from:t,to:t,id:this._initialRevisionId,name:i,creatorId:n})}}[pU("0x52")](t){const e=this._source.getCurrentRevisionId();this.currentRevision=this[pU("0x72")][pU("0xda")](e),this[pU("0x7")]||(this.currentRevision=this[pU("0x1a")]({from:t,to:t,id:e,name:"",creatorId:null}))}_makeRevision({name:t,from:e,to:n,creatorId:i,id:o}){const r=this.buildRevisionData({from:e,to:n});r[pU("0xa6")]=t,r.creatorId=i,r.id=o;const s=this[pU("0x62")](r);return this[pU("0xe0")]&&this._bufferUpdate(r.id,r,!0),s}[pU("0x25")](){this.editor[pU("0x71")][pU("0xf7")](pU("0xfb"))[pU("0xcb")]({model:pU("0x34")})}[pU("0x39")](t){return(t=t[pU("0xcd")]((t=>!t[pU("0xa6")]||pU("0xe")!==t.name&&pU("0xb9")!==t[pU("0xa6")]))).forEach((t=>{pU("0x29")!=typeof t&&(t.children=this[pU("0x39")](t[pU("0x60")]),t[pU("0xa7")]=t[pU("0xa7")][pU("0xcd")]((t=>!t[0][pU("0xed")]("data-revision-"))))})),t}}function bU(t,e){const n=e.editing[pU("0x9")].document;if(pU("0x29")==typeof t)return new fe(n,t);{const i=t[pU("0x60")][pU("0x8a")]((t=>bU(t,e)));return new(fU[t[pU("0x94")]]||jn)(n,t.name,t[pU("0xa7")],i)}}class kU{constructor(t){this[pU("0xa")]=t,this[pU("0xad")]=new Map,this[pU("0xc5")]=-1,this[pU("0x43")]=-1,this._markers=new Map,this[pU("0x78")]=new Map,this._diffRootsAttributes=new Map,this[pU("0x95")]=new Map,this._baseRootsAttributes=new Map,this._idsRoots=new Map,this._baseIdsRoots=new Map,this[pU("0x5a")]=new Map,this._touchedMarkers=new Map,this._touchedRoots=new Map,this[pU("0xc")]=1}[pU("0x9f")](t){this.source=t;const e=new Map,n=new Map,i=this[pU("0xa")][pU("0xf0")][pU("0xee")].roots[pU("0x8a")]((t=>t[pU("0x2c")]));for(const t of i){const i=this[pU("0xa")][pU("0xf0")][pU("0xee")][pU("0x3d")](t),o=wU(i);e[pU("0xeb")](t,o),n[pU("0xeb")](t,Object[pU("0xf1")](i[pU("0x1d")]()))}const o=Array[pU("0x21")](this[pU("0xa")][pU("0xf0")][pU("0xff")])[pU("0x8a")]((t=>[t.name,t[pU("0xfd")]()])),r=this[pU("0xd0")][pU("0x4")];this[pU("0xbe")](r,e,o,n),this[pU("0x13")]=this[pU("0xc")];const s=new Map,a=new Map;for(const t of i){const e=AU(t);s[pU("0xeb")](t,e),a[pU("0xeb")](t,{})}this[pU("0xbe")](Number[pU("0xd8")],s,[],a)}[pU("0x1b")](t,e){if(this[pU("0xc5")]===t&&this[pU("0x43")]<=e)this[pU("0xad")].size>1&&this[pU("0x70")](this[pU("0x43")]),this[pU("0x4d")](this[pU("0x43")],e,!0);else{if(!this[pU("0xad")][pU("0x2f")](t)){const e=this[pU("0x2d")](t);this[pU("0xaf")](e,t,!1)}this[pU("0xaf")](t,e,!0)}return this[pU("0xc5")]=t,this[pU("0x43")]=e,this._getState()}loadState(t){this[pU("0x51")](),this[pU("0xc5")]=t[pU("0x20")],this[pU("0x43")]=t[pU("0x26")];for(const e in t[pU("0x57")]){const n=t[pU("0x57")][e][pU("0x28")],i=Fo(t[pU("0x57")][e][pU("0x18")])||{},o=this[pU("0xbf")](t[pU("0x57")][e][pU("0xe7")]);o.rootName=e,o[pU("0x48")]=!n||!n.isAttached,o[pU("0xba")]=()=>o[pU("0x48")],this[pU("0x95")][pU("0xeb")](e,o),this[pU("0xb4")][pU("0xeb")](e,i),n&&this._touchedRoots[pU("0xeb")](e,n);const r=this[pU("0x80")](o);this._baseIdsRoots[pU("0xeb")](e,r);for(const[t,e]of o[pU("0xff")]){if(!t.startsWith(pU("0xca")))continue;const n=t[pU("0xbd")](":")[2];for(const t of e.getWalker({singleCharacters:!0})){const e=this[pU("0x2e")](t),i=pU("0xc7")==t[pU("0x94")]?t[pU("0x5d")][pU("0x49")].slice(0,-1):t.previousPosition[pU("0x49")],o=r[pU("0xdb")](i)[pU("0x53")](e);this[pU("0x5a")][pU("0xeb")](o,{userId:n})}}}this._startingRevisionId=this[pU("0xc")];const e=[...Array(this._revisionId)[pU("0xa9")]()][pU("0x16")](1)[pU("0xcd")]((t=>!this[pU("0x5a")][pU("0x2f")](t)));let n=0;const i=new Map;for(const o in t[pU("0x57")]){const r=t.diffData[o][pU("0x28")],s=Fo(t[pU("0x57")][o][pU("0x8")])||{},a=this[pU("0xbf")](t[pU("0x57")][o][pU("0xce")]);a[pU("0x2c")]=o,a[pU("0x48")]=!r||r.isAttached,a[pU("0xba")]=()=>a[pU("0x48")],this[pU("0x78")][pU("0xeb")](o,a),this[pU("0x9d")].set(o,s);const c=this[pU("0x80")](a,Number[pU("0xd8")]);this[pU("0xc2")][pU("0xeb")](o,c),i[pU("0xeb")](o,a[pU("0xba")]()?s:{});for(const[t,e]of a[pU("0xff")]){if(!t[pU("0xed")]("revision:"))continue;const n=t[pU("0xbd")](":")[2];for(const t of e[pU("0x19")]({singleCharacters:!0})){const e=this[pU("0x2e")](t),i=this[pU("0xc")]++,o=pU("0xc7")==t[pU("0x94")]?t[pU("0x5d")][pU("0x49")].slice(0,-1):t[pU("0x5d")][pU("0x49")];c[pU("0xdb")](o)[pU("0xb")](e,i),this[pU("0x5a")][pU("0xeb")](i,{userId:n})}}for(const t of this[pU("0xa")][pU("0xf0")].createRangeIn(a)[pU("0x19")]({singleCharacters:!0})){const i=this[pU("0x2e")](t),o=pU("0xc7")==t.type?t[pU("0x5d")][pU("0x49")][pU("0x16")](0,-1):t[pU("0x5d")][pU("0x49")],r=c[pU("0xdb")](o);r[pU("0x53")](i)>0||r._setAttribute(i,e[n++])}for(const[t,e]of a.markers)t[pU("0xed")](pU("0xca"))||this[pU("0x8b")][pU("0xeb")](t,e)}const o=AU(pU("0x46"));this._baseRoots[pU("0xeb")]("$graveyard",o),this[pU("0x1c")][pU("0xeb")](pU("0x46"),this[pU("0x80")](o,1));const r=AU(pU("0x46"));this[pU("0x78")][pU("0xeb")](pU("0x46"),r),this[pU("0xc2")][pU("0xeb")](pU("0x46"),this[pU("0x80")](r,1));const s=Array[pU("0x21")](this[pU("0x78")]).map((([t,e])=>[t,wU(e)]));this[pU("0xbe")](this[pU("0x43")],s,this._markers,i)}[pU("0xbf")](t){const e=JSON[pU("0xbb")](t),n=this[pU("0xa")][pU("0x56")][pU("0x9")].document,i=new pi(n,e.map((t=>bU(t,this[pU("0xa")]))));return this[pU("0xa")][pU("0x32")].toModel(i)}[pU("0xbe")](t,e,n,i){const o=new Map(e),r=new Map(Fo(i)),s=new Map;for(const[t,e]of n)s[pU("0xeb")](t,{start:e[pU("0x3a")][pU("0x3f")](),end:e[pU("0xdc")][pU("0x3f")](),rootName:e[pU("0x89")][pU("0x2c")]});this[pU("0xad")][pU("0xeb")](t,{roots:o,markers:s,rootsAttributes:r})}[pU("0x70")](t){this._savedMetaData[pU("0x67")](t)}reInit(){this[pU("0x51")](),this[pU("0xc5")]=-1,this._lastTo=-1,this[pU("0xad")][pU("0xc1")](),this[pU("0x9f")](this[pU("0xd0")])}_reset(){this._touched[pU("0xc1")](),this[pU("0x4c")][pU("0xc1")](),this[pU("0xc0")][pU("0xc1")](),this[pU("0x78")][pU("0xc1")](),this[pU("0x9d")].clear(),this[pU("0x95")][pU("0xc1")](),this[pU("0xb4")][pU("0xc1")](),this[pU("0xc2")][pU("0xc1")](),this[pU("0x1c")][pU("0xc1")](),this[pU("0x8b")][pU("0xc1")](),this._revisionId=1,this[pU("0x13")]=this[pU("0xc")]}[pU("0x80")](t,e=null){let n=null;t.is(pU("0xdd"))||(n=new Zo(t[pU("0xa6")],{vid_start:null===e?this[pU("0xc")]++:e++}));const i=[];for(const n of t[pU("0xb1")]())if(n.is(pU("0x40"))){i.push(this[pU("0x80")](n,e));const t=i[i.length-1];null!==e&&(e=t.is("element",pU("0xf2"))?t.getAttribute(pU("0xde"))+1:t.getAttribute("vid_end")+1)}else for(let t=0;t<n.offsetSize;t++)i.push(new Zo("$text",{vid:null===e?this[pU("0xc")]++:e++}));if(t.is(pU("0xdd"))){const e=AU(t[pU("0x2c")]);return e[pU("0xc9")](0,i),e}return n[pU("0xb")](pU("0x27"),null===e?this._revisionId++:e++),n[pU("0xc9")](0,i),n}[pU("0xaf")](t,e,n){this[pU("0x51")]();const{roots:i,markers:o,rootsAttributes:r}=this[pU("0xad")][pU("0x0")](t);this[pU("0x95")]=new Map(i),this._baseRootsAttributes=new Map(Fo(r));for(const[t,e]of this[pU("0x95")])if(pU("0x46")!==t&&(this[pU("0x78")][pU("0xeb")](t,wU(e)),this[pU("0x9d")]=new Map(Fo(r)),n)){const n=this[pU("0xc")];this[pU("0xc2")].set(t,this[pU("0x80")](e)),this[pU("0x1c")][pU("0xeb")](t,this[pU("0x80")](e,n))}this[pU("0x13")]=this[pU("0xc")],this[pU("0x78")].set("$graveyard",wU(this[pU("0x95")][pU("0x0")](pU("0x46")))),n&&this[pU("0xc2")].set(pU("0x46"),this._makeIdsRoot(this._baseRoots[pU("0x0")](pU("0x46"))));for(const[t,e]of o){const n=this[pU("0x95")].get(e[pU("0x2c")]),i=this._diffRoots.get(e.rootName),o=new ir(this[pU("0x73")](e[pU("0x3a")],n),this[pU("0x73")](e[pU("0xdc")],n)),r=this[pU("0x35")](o,i);n[pU("0xff")][pU("0xeb")](t,o),this[pU("0x8b")].set(t,r)}this[pU("0x4d")](t,e,n)}[pU("0x4d")](t,e,n){for(const i of this.source[pU("0x90")](t,e))this[pU("0x6b")](i,n);for(const t of this[pU("0x78")][pU("0xe3")]())t[pU("0xff")].clear();for(const[t,e]of this[pU("0x8b")])this._diffRoots[pU("0x0")](e[pU("0x89")].rootName)[pU("0xff")][pU("0xeb")](t,e[pU("0x3f")]());const i=new Map,o=new Map;for(const[t,e]of this[pU("0x78")])i[pU("0xeb")](t,wU(e)),o[pU("0xeb")](t,this[pU("0x9d")][pU("0x0")](t));this._saveMetaData(e,i,this[pU("0x8b")],o)}[pU("0x2d")](t){const e=Array[pU("0x21")](this[pU("0xad")][pU("0xa9")]());e[pU("0x6")](((t,e)=>t-e)),e[pU("0x17")]();for(const n of e)if(n<t)return n;return Number.NEGATIVE_INFINITY}_copyMarkers(t,e){const n=Array[pU("0x21")](e.markers)[pU("0x8a")]((([e,n])=>[e,this[pU("0x35")](n,t)]));t[pU("0xff")]=new Map(n)}_transformMarkers(t){for(const e of this[pU("0x8b")][pU("0xe3")]()){const n=e[pU("0x5b")](t),i=ir._createFromRanges(n);e[pU("0x3a")]=i[pU("0x3a")],e[pU("0xdc")]=i[pU("0xdc")]}}_handleOperation(t,e){if("addRoot"==t[pU("0x94")]||"detachRoot"==t[pU("0x94")])return void this[pU("0xe4")](t,e);if(pU("0x65")==t[pU("0x94")]){const n=t.position[pU("0x89")][pU("0x2c")];this._diffRoots[pU("0x2f")](n)||(this[pU("0x78")][pU("0xeb")](n,AU(n,!0)),this._diffRootsAttributes[pU("0xeb")](n,{}),e&&this[pU("0xc2")][pU("0xeb")](n,AU(n,!0)))}else if("addRootAttribute"==t[pU("0x94")]||pU("0xf3")==t[pU("0x94")]||pU("0x7a")==t[pU("0x94")])return void this[pU("0x69")](t);const n=this._cloneOperation(t,this._diffRoots);if(pU("0xa3")!==t[pU("0x94")]&&(n[pU("0x3b")](),this[pU("0x5f")](n)),e)switch(n.type){case pU("0x65"):this[pU("0x9c")](t);break;case pU("0xdf"):case"remove":case"reinsert":this._handleMoveOperation(t);break;case pU("0xa0"):this._handleMergeOperation(t);break;case"split":this[pU("0x75")](t);break;case"marker":this[pU("0xa2")](t)}}[pU("0x59")](t,e){const n=t[pU("0x3f")]();return n[pU("0x2b")]=t[pU("0x2b")],this._fixOperation(n,e),n}[pU("0xc3")](t){return t.map((t=>{const e=this._getVidAttributeName(t);return Number(t[pU("0x54")][pU("0x53")](e))}))}_generateTape(t,e){if(t.is("element",pU("0xf2")))e[pU("0x50")]({item:t,type:pU("0x8e")});else{t.is(pU("0x40"))&&e[pU("0x50")]({item:t,type:pU("0xd9")});for(const n of t.getChildren())this._generateTape(n,e);t.is("element")&&e[pU("0x50")]({item:t,type:pU("0xc7")})}return e}[pU("0x5c")](){const t=new Map(this[pU("0x5a")]),e=new Map(t),n=new Map,i={insertions:{},deletions:{}},o={insertions:{},deletions:{}},r=new Map,s=new Set([...this[pU("0x95")][pU("0xa9")](),...this[pU("0x78")].keys()]);s[pU("0x67")](pU("0x46"));for(const t of s){const e=this[pU("0x78")][pU("0x0")](t)||AU(t,!1),n=this[pU("0x95")][pU("0x0")](t)||AU(t,!1);e[pU("0xba")]()||n[pU("0xba")]()?(i.insertions[t]=wU(e),i[pU("0xe7")][t]=wU(n),this[pU("0x4e")](i.deletions[t],n),this[pU("0x4e")](i.insertions[t],e),o[pU("0xce")][t]=this._generateTape(this[pU("0xc2")][pU("0x0")](t),[]),o.deletions[t]=this._generateTape(this[pU("0x1c")][pU("0x0")](t)||AU(t,!1),[])):s.delete(t)}for(const i of s){const r=o[pU("0xce")][i];for(const i of r){const o=this[pU("0x2e")](i),r=i.item[pU("0x53")](o);e[pU("0x67")](r),r>=this[pU("0x13")]&&n[pU("0xeb")](r,t[pU("0x0")](r))}}for(const i of s){const s=o[pU("0xce")][i],a=this[pU("0xc3")](o.deletions[i]);let c=0;for(const i of s){const o=this[pU("0x2e")](i),s=i[pU("0x54")][pU("0x53")](o);if(!n[pU("0x2f")](s)&&!r.has(s))if(e[pU("0x2f")](s))c++;else{if(s!=a[c]){const n=t[pU("0x0")](s)||t[pU("0x0")](a[c]);for(;s!=a[c];)e[pU("0x2f")](a[c])||(r[pU("0xeb")](a[c],n),t[pU("0xeb")](a[c],n)),c++}c++}}}for(const t of s){const i=o[pU("0xce")][t];for(const t of i){const i=this[pU("0x2e")](t),o=t[pU("0x54")][pU("0x53")](i);if(r[pU("0x2f")](o)){const t=r[pU("0x0")](o);e[pU("0x2f")](o)||e[pU("0xeb")](o,{...t}),n[pU("0xeb")](o,{...t})}}}for(const t of e[pU("0xa9")]())t>=this[pU("0x13")]&&e.delete(t);const a=new Map;for(const t of s){let i=o[pU("0xce")][t];for(const t of i)if(t.item.is("element",pU("0x58"))){const e=this[pU("0x2e")](t),i=t.item[pU("0x53")](e);if(n.has(i)){const e=t[pU("0x54")][pU("0xb8")][pU("0xb8")][pU("0x53")](pU("0x63")),o=a[pU("0x0")](e)||new Set;o.add(n.get(i)[pU("0xab")]),a.set(e,o)}}i=o.deletions[t];for(const t of i)if(t[pU("0x54")].is(pU("0x40"),pU("0x58"))){const n=this._getVidAttributeName(t),i=t[pU("0x54")][pU("0x53")](n);if(e[pU("0x2f")](i)){const n=t[pU("0x54")][pU("0xb8")][pU("0xb8")][pU("0x53")](pU("0x63")),o=a[pU("0x0")](n)||new Set;o.add(e.get(i).userId),a[pU("0xeb")](n,o)}}for(const t of a.keys())(n[pU("0x2f")](t)||e[pU("0x2f")](t))&&a.delete(t)}for(const t of s){const i=o[pU("0xce")][t];let r=null,s=null;for(const t of i){const i=this[pU("0x2e")](t),o=t.item[pU("0x53")](i),c=a[pU("0x0")](o);c&&"elementStart"==t[pU("0x94")]&&(r=Array[pU("0x21")](c)[0],s=t[pU("0x54")][pU("0x53")](pU("0x27"))),r&&(e[pU("0xeb")](o,{userId:r}),n[pU("0xeb")](o,{userId:r})),o==s&&(r=null,s=null)}}const c={},l=new Set;for(const t of s){const r=i.deletions[t],s=i[pU("0xce")][t];for(const{userId:t}of this[pU("0x4c")].values())null!==t&&l[pU("0xac")](t);for(const{userId:t}of this[pU("0xc0")].values())null!==t&&l.add(t);this[pU("0x3c")](s,o[pU("0xce")][t],n,"insertion",l),this._markChanges(r,o.deletions[t],e,pU("0x15"),l),c[t]={insertions:this[pU("0x4b")](s),deletions:this[pU("0x4b")](r),attachChange:this._touchedRoots[pU("0x0")](t)||null,attributesBefore:Fo(this[pU("0xb4")][pU("0x0")](t))||{},attributesAfter:Fo(this[pU("0x9d")].get(t))}}return{diffData:c,authorsIds:Array[pU("0x21")](l)}}[pU("0x10")](t){for(const[,e]of t[pU("0xff")]){const t=e[pU("0x3a")][pU("0xa5")]()[pU("0xcd")]((t=>"tableCell"==t[pU("0xa6")]));for(const e of t)1==e.childCount&&e[pU("0xef")](0).is(pU("0x40"),pU("0xbc"))&&e[pU("0xef")](0)[pU("0xb")](pU("0xe5"),!0)}}[pU("0x4b")](t){this._processRootBeforeSave(t);const e=this[pU("0xa")][pU("0x32")][pU("0xe6")](t,{}),n=Array[pU("0x21")](e[pU("0xb1")]())[pU("0x8a")]((t=>this[pU("0x42")](t)));return JSON[pU("0x14")](n)}[pU("0x42")](t){if(t.is(pU("0xf2")))return t.data;{const e=t;return{type:Object[pU("0xa9")](fU)[pU("0x23")]((e=>t instanceof fU[e])),name:e[pU("0xa6")],attributes:Array[pU("0x21")](e.getAttributes()),children:Array[pU("0x21")](e[pU("0xb1")]())[pU("0x8a")]((t=>this[pU("0x42")](t)))}}}[pU("0x3c")](t,e,n,i,o){let r=null,s=null,a=0;const c=this.editor[pU("0xf0")];for(let i=0;i<e[pU("0x2a")];i++){const o=this[pU("0x2e")](e[i]),a=e[i][pU("0x54")][pU("0x53")](o),d=n[pU("0x0")](a),u=i==e[pU("0x2a")]-1;!r&&d&&(r=d,s=e[i]),r&&(!d||d.userId!=r[pU("0xab")])&&(l(d,_U(s,t,c),_U(e[i],t,c)),r=d||null,s=d?e[i]:null),r&&u&&l(d,_U(s,t,c),vU(e[i],t,c))}function l(e,n,s){const l=r.userId,d=pU("0xca")+i+":"+l+":"+a++,u=c[pU("0x36")](n,s);t[pU("0xff")][pU("0xeb")](d,u),null!==l&&o[pU("0xac")](l)}}[pU("0x2e")](t){switch(t[pU("0x94")]){case pU("0xd9"):return pU("0x63");case pU("0xc7"):return"vid_end";default:return"vid"}}[pU("0xae")](t,e){t[pU("0xf5")]=null;for(const n in t){const i=t[n];if(i instanceof $o){const o=e[pU("0x0")](i.root[pU("0x2c")]);t[n]=this[pU("0x73")](i,o)}if(i instanceof ir){const o=e[pU("0x0")](i[pU("0x89")][pU("0x2c")]);t[n]=this[pU("0x35")](i,o)}pU("0x89")===n&&(t[pU("0x89")]=e[pU("0x0")](t[pU("0x89")].rootName))}}[pU("0x35")](t,e){return this.editor[pU("0xf0")][pU("0x36")](this[pU("0x73")](t[pU("0x3a")],e),this[pU("0x73")](t.end,e))}_fixPosition(t,e){return this.editor[pU("0xf0")][pU("0x61")](e,t.path,t.stickiness)}[pU("0x9c")](t){const e=this._idsRoots[pU("0x0")](t.position[pU("0x89")][pU("0x2c")]),n=this._fixPosition(t.position,e),i=null===t[pU("0x2b")]?null:t._authorId||this[pU("0xa")][pU("0xc6")][pU("0x0")]("Users").me.id,o=n[pU("0xb8")],r=this[pU("0xc")],s=[];for(const e of t[pU("0x24")])if(e.is(pU("0x40")))s[pU("0x50")](this[pU("0x80")](e));else for(let t=0;t<e[pU("0x44")];t++)s[pU("0x50")](new Zo(pU("0xf2"),{vid:this[pU("0xc")]++}));const a=this[pU("0xc")];for(let t=r;t<a;t++)this[pU("0x5a")][pU("0xeb")](t,{userId:i});o[pU("0xc9")](n.offset,s)}_handleMoveOperation(t){(t=this[pU("0x59")](t,this._idsRoots))[pU("0x3b")]();const e=null===t._authorId?null:t[pU("0x2b")]||this[pU("0xa")][pU("0xc6")].get(pU("0x8c")).me.id,n=t[pU("0x3e")](),i=n[pU("0xb8")],o=n.offset;!function t(n,i,o,r){for(let s=o;s<r;s++){const o=i[pU("0xef")](s);o.is(pU("0x40"),"$text")?n[pU("0xeb")](o[pU("0x53")](pU("0xde")),{userId:e}):(n[pU("0xeb")](o[pU("0x53")](pU("0x63")),{userId:e}),t(n,o,0,o.childCount),n[pU("0xeb")](o[pU("0x53")](pU("0x27")),{userId:e}))}}(this[pU("0x5a")],i,o,o+t[pU("0x12")])}[pU("0x76")](t){const e=null===(t=this._cloneOperation(t,this[pU("0xc2")]))[pU("0x2b")]?null:t[pU("0x2b")]||this[pU("0xa")][pU("0xc6")][pU("0x0")]("Users").me.id,n=t.targetPosition[pU("0xb8")],i=t.sourcePosition.parent,o=n[pU("0x53")](pU("0x27")),r=i.getAttribute(pU("0x63"));n._setAttribute(pU("0x27"),i[pU("0x53")](pU("0x27"))),i[pU("0xb")](pU("0x27"),o),this[pU("0x5a")].set(r,{userId:e}),this[pU("0x5a")][pU("0xeb")](o,{userId:e}),t[pU("0x3b")]()}[pU("0x75")](t){const e=null===(t=this[pU("0x59")](t,this[pU("0xc2")]))[pU("0x2b")]?null:t[pU("0x2b")]||this[pU("0xa")].plugins.get(pU("0x8c")).me.id,n=t[pU("0x7d")],i=t.splitPosition.parent;t[pU("0x3b")]();const o=i[pU("0x53")](pU("0x27")),r=t[pU("0xb5")][pU("0xd")];if(n){const t=r[pU("0x53")](pU("0x27")),n=i.getAttribute(pU("0x27"));i[pU("0xb")](pU("0x27"),t),r[pU("0xb")](pU("0x27"),n),this[pU("0x5a")][pU("0xeb")](i[pU("0x53")](pU("0x27")),{userId:e}),this._touched[pU("0xeb")](r.getAttribute(pU("0x63")),{userId:e})}else{const t=this[pU("0xc")]++,n=this._revisionId++;i[pU("0xb")](pU("0x27"),t),r[pU("0xb")](pU("0x63"),n),r._setAttribute(pU("0x27"),o),this._touched[pU("0xeb")](t,{userId:e}),this._touched[pU("0xeb")](n,{userId:e})}}[pU("0xa2")](t){if(!t.affectsData)return;const e=(t=this._cloneOperation(t,this[pU("0x78")]))[pU("0xfc")]?t[pU("0xfc")][pU("0x89")]:null,n=t[pU("0x87")]?t[pU("0x87")][pU("0x89")]:null;e&&this[pU("0x8b")][pU("0x67")](t[pU("0xa6")]),n&&this[pU("0x8b")][pU("0xeb")](t[pU("0xa6")],t.newRange.clone());const i=null===t._authorId?null:t[pU("0x2b")]||this.editor[pU("0xc6")][pU("0x0")](pU("0x8c")).me.id,o=t[pU("0xa6")];if(!this[pU("0x4c")][pU("0x2f")](o))return void this._touchedMarkers[pU("0xeb")](o,{range:t[pU("0xfc")],userId:i});const r=this[pU("0x4c")][pU("0x0")](o),s=r[pU("0xf4")],a=t[pU("0x87")];null==s&&null==a||s&&a&&s[pU("0xea")](a)?this[pU("0x4c")][pU("0x67")](t[pU("0xa6")]):r[pU("0xab")]=i}_handleRootOperation(t,e){this[pU("0x78")][pU("0x2f")](t[pU("0x2c")])?this[pU("0x78")][pU("0x0")](t[pU("0x2c")])._isAttached=t[pU("0x6d")]:(this[pU("0x78")].set(t[pU("0x2c")],AU(t.rootName,!0)),this[pU("0x9d")].set(t.rootName,{}),e&&this[pU("0xc2")][pU("0xeb")](t.rootName,AU(t[pU("0x2c")],!0)));const n=null===t._authorId?null:t._authorId||this[pU("0xa")][pU("0xc6")][pU("0x0")](pU("0x8c")).me.id,i=this[pU("0xc0")][pU("0x0")](t[pU("0x2c")]);i&&i.userId===n?this[pU("0xc0")].delete(t[pU("0x2c")]):this[pU("0xc0")][pU("0xeb")](t.rootName,{userId:n,isAttached:t[pU("0x6d")]})}[pU("0x69")](t){const e=this[pU("0x9d")].get(t.root.rootName);null===t[pU("0x81")]?delete e[t[pU("0x84")]]:e[t[pU("0x84")]]=t[pU("0x81")]}}function wU(t){const e=AU(t[pU("0x2c")],t[pU("0xba")]());for(const n of t[pU("0xb1")]()){const t=n._clone(!0);e[pU("0x1e")](t)}return e}function AU(t,e=!0){const n=new ba;return n[pU("0x2c")]=t,n._isAttached=e,n.isAttached=()=>n[pU("0x48")],n}function _U(t,e,n){const i="elementEnd"==t[pU("0x94")]?n.createPositionAt(t[pU("0x54")],pU("0xdc")):n[pU("0xe2")](t.item);return n[pU("0x61")](e,i.path,i[pU("0x91")])}function vU(t,e,n){const i=pU("0xd9")==t[pU("0x94")]?n.createPositionAt(t[pU("0x54")],0):n[pU("0x4f")](t[pU("0x54")]);return n[pU("0x61")](e,i.path,i.stickiness)}var CU=__webpack_require__(2148),yU={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(CU.Z,yU);CU.Z.locals;const EU=["cancel","keystrokes","add","submit","value","_createRevisionNameInput","_createButton","fieldView","ck-button-save","Name of the revision (optional)","revisionName","arrowdown","Cancel","render","arrowright","ck-responsive-form","_focusables","tab","delegate","input","set","stopPropagation","arrowleft","cancelButtonView","locale","Save","ck-button-cancel","_focusCycler","focusTracker","trim","saveButtonView","220","arrowup","element","revisionNameInputValue","revisionNameInputView","label","ck-revision-history-save-revision-form","shift + tab","extendTemplate"];var IU,SU;IU=EU,SU=132,function(t){for(;--t;)IU.push(IU.shift())}(++SU);const TU=function(t,e){return EU[t-=0]};class DU extends u{constructor(t){super(t),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this[TU("0x8")](TU("0x16"),""),this[TU("0x17")]=this._createRevisionNameInput(),this[TU("0x12")]=this[TU("0x22")](uU(t,TU("0xd")),Uc.check,TU("0x24")),this[TU("0x12")].type=TU("0x1f"),this[TU("0xb")]=this[TU("0x22")](uU(t,TU("0x0")),Uc.cancel,TU("0xe"),TU("0x1c")),this[TU("0x4")]=new s,this[TU("0xf")]=new Gt({focusables:this[TU("0x4")],focusTracker:this[TU("0x10")],keystrokeHandler:this.keystrokes,actions:{focusPrevious:TU("0x1a"),focusNext:TU("0x5")}}),this.setTemplate({tag:"form",attributes:{class:["ck",TU("0x19"),TU("0x3")],tabindex:"-1"},children:[this.revisionNameInputView,this[TU("0x12")],this[TU("0xb")]]}),function(t){const e=t;e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=()=>{e._isCssTransitionsDisabled=!0},e.enableCssTransitions=()=>{e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}(this)}[TU("0x1")](){super.render(),i({view:this}),[this[TU("0x17")],this[TU("0x12")],this[TU("0xb")]].forEach((t=>{this[TU("0x4")][TU("0x1e")](t),this[TU("0x10")][TU("0x1e")](t[TU("0x15")])})),this[TU("0x1d")].listenTo(this[TU("0x15")]);const t=t=>t[TU("0x9")]();this[TU("0x1d")][TU("0x8")](TU("0x2"),t),this[TU("0x1d")].set(TU("0xa"),t),this[TU("0x1d")][TU("0x8")](TU("0x14"),t),this[TU("0x1d")][TU("0x8")](TU("0x27"),t)}focus(){this[TU("0xf")].focusFirst()}get[TU("0x26")](){return this[TU("0x17")][TU("0x23")][TU("0x15")].value[TU("0x11")]()}set[TU("0x26")](t){this[TU("0x17")].fieldView.element.value=t[TU("0x11")]()}reset(){this[TU("0x17")][TU("0x23")][TU("0x15")].value=""}[TU("0x21")](){const t=new It(this[TU("0xc")],xl),e=t[TU("0x23")];return e[TU("0x1b")]({attributes:{maxlength:TU("0x13")}}),t[TU("0x18")]=uU(this[TU("0xc")],TU("0x25")),e.on(TU("0x7"),(()=>{this[TU("0x16")]=e[TU("0x15")][TU("0x20")][TU("0x11")]()})),t}[TU("0x22")](t,e,n,i){const o=new U(this[TU("0xc")]);return o.set({label:t,icon:e,tooltip:!0}),o[TU("0x1b")]({attributes:{class:n}}),i&&o[TU("0x6")]("execute").to(this,i),o}}const MU=["revisionHistory","isReadOnly","showRevisionViewerCallback","config","plugins","add","change:isOpen","panelView","Revision history","children","length","isEnabled","init","componentFactory","set","isOpen","execute","editor","render","get","items","saveButtonView","submit","focus","reset","cancel","view","Save current revision","editing","bind","revisionName","isReady","Open revision history","remove","history"];var BU,OU;BU=MU,OU=338,function(t){for(;--t;)BU.push(BU.shift())}(++OU);const NU=function(t,e){return MU[t-=0]};class PU extends Yt{static get pluginName(){return"RevisionHistoryUI"}static get requires(){return[xU]}[NU("0x18")](){const t=this[NU("0x1d")],e=t[NU("0x10")][NU("0x1f")]("RevisionTracker");t.ui[NU("0x19")][NU("0x11")](NU("0xc"),(n=>{const i=dl(n),o=i[NU("0x13")][NU("0x15")],r=new nl(n),s=new $c(n),a=new U(n),c=new $c(n),l=new U(n),d=new DU(n);function u(){o[NU("0x16")]&&o[NU("0xa")](0),o[NU("0x11")](r)}function h(){i[NU("0x1b")]=!1,t[NU("0x5")][NU("0x3")][NU("0x0")]()}return i[NU("0x6")](NU("0x17")).to(e,NU("0x8"),e,NU("0x17"),t,"isReadOnly",((t,e,n)=>t&&e&&!n)),i.buttonView.set({icon:Uc[NU("0xb")],label:uU(n,NU("0x14")),tooltip:!0}),a[NU("0x1a")]({label:uU(n,NU("0x4")),withText:!0}),a[NU("0x6")](NU("0x17")).to(e,NU("0x8"),e,"isEnabled",t,NU("0xd"),((t,e,n)=>t&&e&&!n)),a.on(NU("0x1c"),(()=>(o[NU("0x16")]&&o[NU("0xa")](0),d[NU("0x1")](),o[NU("0x11")](d),void d[NU("0x0")]()))),l[NU("0x1a")]({label:uU(n,NU("0x9")),withText:!0}),l[NU("0x6")](NU("0x17")).to(e,NU("0x8"),t,NU("0xd"),((t,e)=>t&&!e)),l.on(NU("0x1c"),(()=>{t[NU("0xf")][NU("0x1f")]("revisionHistory")[NU("0xe")](),h()})),s.children[NU("0x11")](a),c[NU("0x15")].add(l),r[NU("0x20")].addMany([s,c]),i.on(NU("0x12"),(()=>u())),d[NU("0x21")][NU("0x6")](NU("0x17")).to(e,NU("0x8"),e,"isEnabled",t,"isReadOnly",((t,e,n)=>t&&e&&!n)),d.on(NU("0x22"),(()=>(t[NU("0x10")][NU("0x1f")](xU).saveRevision({name:d[NU("0x7")]}),void h()))),d.on(NU("0x2"),(()=>u())),d[NU("0x1e")](),u(),i}))}}const RU=["focus","set","data","div","bindTemplate","setTemplate","span","Suggested by","name","_model","Removed by","element","Added by","add","changeId","type","author","isSuggestion","ck-annotation"];var LU,jU;LU=RU,jU=133,function(t){for(;--t;)LU.push(LU.shift())}(++jU);const zU=function(t,e){return RU[t-=0]};class VU extends u{constructor(t,e){super(t),this[zU("0x9")]=e,this[zU("0xe")]=e.id;const n=this[zU("0x4")],i=uU(t,e[zU("0x2")][zU("0x11")]?zU("0x7"):zU("0xd")==e[zU("0xf")]?zU("0xc"):zU("0xa"));this[zU("0x1")]("type",e[zU("0xf")]),this[zU("0x5")]({tag:zU("0x3"),attributes:{class:[zU("0x12"),"ck-revision-change",n.to(zU("0xf"),(t=>"ck-revision-change__"+t))],tabindex:-1},children:[{tag:zU("0x6"),children:[{tag:"span",attributes:{class:["ck-revision-change__label"]},children:[{text:i}]},{text:" "+e[zU("0x10")][zU("0x8")]}]}]})}[zU("0x0")](){this[zU("0xb")][zU("0x0")]()}}var FU,UU,HU=["author","data","type","set","createdAt","rootName"];FU=HU,UU=481,function(t){for(;--t;)FU.push(FU.shift())}(++UU);var GU=function(t,e){return HU[t-=0]};class qU extends((0,Uu.ObservableMixin)()){constructor(t){super(),this.id=t.id||(0,Uu.uid)(),this[GU("0x5")]=t[GU("0x5")],this[GU("0x1")]=t[GU("0x1")],this[GU("0x0")]=t.data||{},this[GU("0x4")]=t[GU("0x4")],this[GU("0x2")](GU("0x3"),t[GU("0x3")])}toJSON(){return{id:this.id,authorId:this.author.id,type:this[GU("0x1")],data:this.data,createdAt:this[GU("0x3")]}}}const WU=["oldRevisionId","newRevisionId","add","changes"];var KU,ZU;KU=WU,ZU=389,function(t){for(;--t;)KU.push(KU.shift())}(++ZU);const YU=function(t,e){return WU[t-=0]};class JU{constructor(t,e){this[YU("0x0")]=t,this[YU("0x3")]=e,this[YU("0x2")]=new Uu.Collection}_setChanges(t){for(const e of t)this.changes[YU("0x1")](e)}}var $U=__webpack_require__(6447),QU={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()($U.Z,QU);$U.Z.locals;const XU=["default","item","mouseover","ck-suggestion-marker-","push","test","mousedown","_data","markerToHighlight","_activeViewTarget","showNextChange","delete","elementStart","change:isReady","level","getAttributes","toViewElement","suggestion:","vid_end","execute","mapper","getRootNames","vid_start","useFillerType","destroy","softBreak","suggestion","next","_markInsertions","_changeView","high","elementToAttribute","_balloon","conversion","revision-suggestion:","affectsData","setAttribute","rootName","resolve","offsetSize","_removeMissingPairs","map","string","writer","diffData","sort","change:activeView","domEvent","from","init","distance","enqueueChange","_update","downcastDispatcher","loadRevisionData","attributesBefore","end","find","consumable","_getChangeFromId","markers","index","revisionHistoryLabel","remove","ck-suggestion-marker-split","elementEnd","toData","listenTo","-new","_threeWayMerge","getRevision","slice","_setDistance","currentChangeNumber","reconvertMarker","isIncorrect","revision-viewer","parse","_setChanges","getWalker","POSITIVE_INFINITY","target","_cleanMarkers","removeAttribute","updatePosition","start","isAfter","getCustomProperty","right","includes","insertion","createAttributeElement","data-revision-","removeMarker","isRemoved","ck-suggestion-preview-marker","isAttached","changes","_markMarkers","addMarker:revision-suggestion:deletion","code","left","getIndex","first","_sortAndFilterDiffChanges","_markSuggestions","vid","adapter","revision:","merge","_findChangeIdFromDomTarget","change:activeChange","ck-editor__editable__overlay","nextPosition","_joinTapes","set","ck-suggestion-marker--active","concat","split","values","refresh","_changeIdToChange","isAtStart","_getRevisionsRange","addRevision","object","_cleanUp","ck-revision-history-root-add","config","plugins","addRoot","addMarker:revision-suggestion:insertion","abs","isBlock","attribute:vid","parent","isEqual","startIndex","keys","backward","isContent","getRevisionData","bottom","view","element:pre","wrap","createRange","name","comment","has","_removeUnsupportedChanges","isRemoveSuggestion","WidgetToolbarRepository","isAddSuggestion","error","clear","editor","data-change-id","editingDowncast","toModel","showStack","isCollapsed","shift","hasAttribute","isLimit","bind","unbindElementFromMarkerName","restoreRevision","uiElement","splice","revision-end","add","commands","selection","pairId","filter","return","nextSibling","_makeTape","addMarker:revision","createUIElement","deletion","insertions","document","removeMarker:revision-suggestion","_getDiff","dataDowncast","revision-start","activeChange","ck-revision-history-root--active","markerToData","revisionHistory","revision","marked","then","isEnabled","text","isAtEnd","model","done","isReady","deletions","dataToMarker","toViewRange","side","attachChange","attributes","getClientRects","isOnRoot","_setConversion","changeId","low","insert","endIndex","ck-suggestion-preview-marker-","modelRange","children","isAdded","ck-revision-history-root-remove","authors","removeClass","bindElementToMarker","isBefore","upcast","_appendChild","indexOf","getAttribute","_makeModelFromViewString","forward","getChild","hasClass","highest","for","getRoot","detachRoot","_markMismatchedRemovedTags","newRevisionId","editing","consume","isNavigationMode","markerNameToElements","element","isSuggestion","schema","_initInteractions","range","type","_getViewObj","getDomRoot","showPreviousChange","data","_revisions","_step","createRevision","collaboration.channelId","userId","ck-revision-history-root-","_removeRevisionMarkers","ck-suggestion-marker-merge","oldRevisionId","startsWith","revision-suggestion","change:isEnabled","change","viewItem","forEach","get","markerName","repository","getRevisionRootsAttributes","diff","findIndex","unshift","addClass","markersEnd","forceDisabled","_fixObsoleteTags","_refreshStartEndIndex","revisionHistoryAttachChange","observeMarkers","markersStart","span","processor","_processTape","createPositionFromPath","RevisionViewer","previousPosition","_getViewForChange","activeView","maxOffset","isObject","compare","locale","markerRange","length","pluginName","revision-comment:","getItems"];var tH,eH;tH=XU,eH=287,function(t){for(;--t;)tH.push(tH.shift())}(++eH);const nH=function(t,e){return XU[t-=0]},iH={c:Vn,a:ri,e:ci,r:mi,u:di};class oH extends Yt{static get[nH("0x8")](){return nH("0x128")}static get requires(){return[Jb,ru,dU]}constructor(t){super(t),this.repository=this.editor[nH("0x8c")][nH("0x115")]("RevisionsRepository"),this[nH("0x7e")](nH("0xc7"),null),this.set("activeView",null),this._activeViewTarget=null,this[nH("0x7e")]("diff",null),this.set(nH("0xd3"),!1),this.set(nH("0xce"),!0),this.on(nH("0x111"),((t,e,n)=>{this[nH("0xc7")]=null,this[nH("0x1")]=null,this.editor[nH("0xf8")][nH("0x9a")].change((t=>{for(const e of this[nH("0xa7")].editing.view.document.roots)n?t[nH("0xe7")](nH("0x7b"),e):t[nH("0x11c")](nH("0x7b"),e)}))})),this.bind(nH("0xfa")).to(this,nH("0xc7"),(t=>null!==t)),this.bind(nH("0x54")).to(this,nH("0xd3"),this,nH("0x119"),this,nH("0xc7"),((t,e,n)=>t&&n?e[nH("0x6c")][nH("0x71")](n):0)),this[nH("0xb0")]("numberOfChanges").to(this,nH("0xd3"),this,nH("0x119"),((t,e)=>t?e[nH("0x6c")][nH("0x7")]:0)),this[nH("0x28")]=null,this._changeIdToChange=new Map,this[nH("0x76")]=null,this[nH("0x2b")]=this[nH("0xa7")][nH("0x8c")][nH("0x115")](ru)}[nH("0x3c")](){const t=this[nH("0xa7")],e=new aH(t,{direction:nH("0x96")}),n=new aH(t,{direction:nH("0xef")});t.commands.add(nH("0x104"),e),t[nH("0xb7")][nH("0xb6")](nH("0x15"),n),t[nH("0xb7")].add(nH("0xb2"),new sH(t)),this.on("change:numberOfChanges",(()=>{e[nH("0x83")](),n[nH("0x83")]()})),this[nH("0xdc")](),this[nH("0xff")](),t.enableReadOnlyMode("revision-viewer"),t[nH("0x8c")][nH("0xa0")](nH("0xa3"))&&t.plugins[nH("0x115")](nH("0xa3"))[nH("0x11e")](nH("0x57"))}async[nH("0x98")](t){await this[nH("0x41")](t);const e={};for(const n in t[nH("0x37")]){if(t[nH("0x37")][n][nH("0xd8")]&&!t.diffData[n][nH("0xd8")][nH("0x6b")])continue;const i=this[nH("0x10c")](JSON[nH("0x58")](t[nH("0x37")][n][nH("0xc1")])),o=this[nH("0xa7")][nH("0xf8")][nH("0x9a")][nH("0xc2")],r=new pi(o,i[nH("0x34")]((t=>this[nH("0x102")](t))));this[nH("0xa7")][nH("0x105")][nH("0x125")][nH("0x22")](nH("0xcc")),e[n]=this[nH("0xa7")].data[nH("0x125")][nH("0x4d")](r),this[nH("0xa7")][nH("0x105")][nH("0x125")].useFillerType(nH("0xb"))}return e}async[nH("0x118")](t){await this[nH("0x41")](t);const e={};for(const n in t.diffData)t.diffData[n][nH("0xd8")]&&!t.diffData[n].attachChange.isAttached||(e[n]=t[nH("0x37")][n].attributesAfter||{});return e}_removeRevisionMarkers(t){return(t=t[nH("0xba")]((t=>!t.name||nH("0xc6")!==t[nH("0x9e")]&&nH("0xb5")!==t.name)))[nH("0x114")]((t=>{"string"!=typeof t&&(t[nH("0xe3")]=this[nH("0x10c")](t.children),t[nH("0xd9")]=t.attributes[nH("0xba")]((t=>!t[0].startsWith(nH("0x67")))))})),t}async[nH("0x4")](t,e,n=!1){if(!this.isEnabled)return;const i=this[nH("0x119")],o=this.repository,r=nH("0x35")==typeof t?o[nH("0x51")](t):t,s="string"==typeof e?o[nH("0x51")](e):e,a=r.id,c=s?s.id:null;if(!n&&this.diff&&this.diff[nH("0xf7")]===a&&this[nH("0x119")][nH("0x10e")]===c)return Promise[nH("0x31")]();this.isReady=!1,this[nH("0x1")]=null,this[nH("0xc7")]=null,this[nH("0x119")]=new JU(a,c);const l=this[nH("0x86")](r,s,!0)[nH("0x34")]((t=>this[nH("0x41")](t)));return l[nH("0xf")](new Promise((t=>{setTimeout(t,20)}))),Promise.all(l).then((()=>{if(!this.isEnabled)return;this[nH("0x89")]();const t=this._getDiff(a,c);for(const e of t[nH("0x6c")])this[nH("0x84")][nH("0x7e")](e.id,e);this[nH("0xa7")].model[nH("0x3e")]({isUndoable:!1},(e=>{for(const t of this[nH("0xa7")][nH("0xd1")][nH("0xc2")][nH("0x20")]())e[nH("0xf5")](t);for(const n of Object.keys(t[nH("0xd1")])){const i=e[nH("0x8d")](n);for(const o of Object[nH("0x95")](t[nH("0xd9")][n]))e[nH("0x2f")](o,t.attributes[n][o],i);e[nH("0xdf")](t[nH("0xd1")][n],i,0)}})),this[nH("0x119")][nH("0x59")](this[nH("0x73")](t[nH("0x6c")])),this.isReady=!0})).catch((t=>{console[nH("0xa5")](t),this[nH("0x89")](),i&&(this[nH("0x119")]=i),this.isReady=!0}))}addRevisionData(t,e){const n=this[nH("0x117")][nH("0x108")](t);return n.on(nH("0x3f"),((t,i,o)=>e(i,o,n))),this.repository[nH("0x87")](n),n}[nH("0x41")](t){if(!t||t[nH("0x37")])return Promise.resolve();{const e=this[nH("0xa7")][nH("0x8b")][nH("0x115")](nH("0x109"));return this.adapter[nH("0x51")]({channelId:e,revisionId:t.id})[nH("0xcd")]((e=>{t[nH("0x3f")]({diffData:e[nH("0x37")]},!0)}))}}[nH("0x89")](){this[nH("0xc7")]=null,this[nH("0x5d")](),this[nH("0x28")]&&this[nH("0x28")].destroy(),this[nH("0x28")]=null,this[nH("0x84")][nH("0xa6")](),this[nH("0xa7")][nH("0xd1")][nH("0x3e")]({isUndoable:!1},(t=>{for(const e of this.editor[nH("0xd1")][nH("0xc2")][nH("0x20")]())t[nH("0xf5")](e)}))}[nH("0x73")](t){const e=[],n=new Map;for(const t of this[nH("0xa7")][nH("0xd1")][nH("0xc2")][nH("0x20")]()){const i=this[nH("0xa7")].editing[nH("0x9a")].getDomRoot(t);if(!i)continue;const o=i[nH("0xda")]()[nH("0xc")](0);o&&(e[nH("0xf")](t),n[nH("0x7e")](t,o))}return e[nH("0x38")](((t,e)=>{const i=n[nH("0x115")](t),o=n[nH("0x115")](e);return i.y-o.y||i.x-o.x})),(t=t[nH("0xba")]((t=>e[nH("0x64")](t.rootName)))).sort(((t,n)=>e[nH("0xec")](t[nH("0x30")])-e[nH("0xec")](n.rootName))),t}_makeTape(t){const e=Array[nH("0x3b")](t[nH("0x47")])[nH("0xba")]((([t,e])=>t[nH("0x10f")](nH("0x77"))&&!e[nH("0xac")])),n=Array[nH("0x3b")](this[nH("0xa7")][nH("0xd1")].createRangeIn(t)[nH("0x5a")]({singleCharacters:!0}));if(0!=e[nH("0x7")])for(const t of n){const[n,i]=e[0],[,o,r]=n[nH("0x81")](":");if(i.end[nH("0x93")](t[nH("0x7c")])&&e.shift(),(t[nH("0x129")][nH("0x93")](i[nH("0x60")])||t[nH("0x129")].isAfter(i[nH("0x60")]))&&(nH("0x65")==o?t.isAdded={userId:r}:nH("0xc0")==o&&(t[nH("0x69")]={userId:r})),0==e[nH("0x7")])break}return n}[nH("0x120")](t){const e=new Map;for(let n=0;n<t[nH("0x7")];n++)nH("0xcf")===t[n][nH("0x101")]?(t[n][nH("0xc")][nH("0x94")]=n,t[n].item[nH("0xe0")]=n):(nH("0x17")===t[n][nH("0x101")]?t[n][nH("0xc")].startIndex=n:nH("0x4c")===t[n][nH("0x101")]&&(t[n][nH("0xc")][nH("0xe0")]=n),e[nH("0x7e")](t[n].id,n));for(const n of e[nH("0x82")]())nH("0x17")===t[n][nH("0x101")]?t[n][nH("0xc")].endIndex=e[nH("0x115")](t[n][nH("0xb9")]):"elementEnd"===t[n].type&&(t[n].item[nH("0x94")]=e.get(t[n][nH("0xb9")]))}[nH("0x126")](t){for(let e=0;e<t[nH("0x7")];e++){if(nH("0x17")===t[e].type)t[e].item.startIndex=e;else if(nH("0x4c")===t[e][nH("0x101")]){t[e][nH("0xc")][nH("0xe0")]=e;const n=t[e][nH("0xc")].startIndex;t[n][nH("0xb9")]=t[e].id,t[e].pairId=t[n].id}else t[e].item[nH("0x94")]=e,t[e][nH("0xc")][nH("0xe0")]=e,t[e][nH("0xb9")]=null;t[e].markersStart||(t[e][nH("0x123")]=[],t[e].markersEnd=[])}}_markInsertions(t,e){const n=t[nH("0xba")]((t=>!t[nH("0xe4")]));for(let t=0;t<e[nH("0x7")];t++)e[t][nH("0xe4")]&&(n[t][nH("0xe4")]=e[t][nH("0xe4")])}[nH("0xee")](t){const e=JSON.parse(t),n=this.editor[nH("0xf8")].view[nH("0xc2")],i=new pi(n,e.map((t=>this._getViewObj(t))));return this[nH("0xa7")].data[nH("0xaa")](i)}[nH("0x102")](t){const e=this.editor[nH("0xf8")].view[nH("0xc2")];if(nH("0x35")==typeof t)return new fe(e,t);{const n=t[nH("0xe3")][nH("0x34")]((t=>this[nH("0x102")](t)));return new(iH[t[nH("0x101")]]||jn)(e,t[nH("0x9e")],t[nH("0xd9")],n)}}[nH("0xc4")](t,e=null){const n=this.repository[nH("0x51")](t),i=e?this.repository[nH("0x51")](e):null,o=this[nH("0x86")](n,i),r=o[o[nH("0x7")]-1],s=new Map,a={model:{},attributes:{},changes:[]},c=new Set,l=new Map;for(let t=o.length-1;t>=0;t--){const e=o[t];for(const t of Object[nH("0x95")](e.diffData))if(e.diffData[t][nH("0xd8")]){const n=e[nH("0x37")][t].attachChange;n[nH("0x6b")]?(c[nH("0xb6")](t),l[nH("0xa0")](t)&&l[nH("0x115")](t)[nH("0x10a")]==n[nH("0x10a")]?l[nH("0x16")](t):l.set(t,n)):l[nH("0xa0")](t)?(c[nH("0x16")](t),l[nH("0x16")](t)):(c.add(t),l[nH("0x7e")](t,n))}else c[nH("0xb6")](t)}for(const t of c){const e=l[nH("0xa0")](t)&&!l.get(t).isAttached;let n=e?o.length-1:0;const i=e?-1:1;for(;o[n];){const r=o[n];if(r[nH("0x37")][t]){const n=e?r[nH("0x37")][t][nH("0x42")]:r[nH("0x37")][t].attributesAfter;a[nH("0xd9")][t]=n?Fo(n):{};break}n+=i}}for(const t of o){t[nH("0xd1")]={};for(const e of t[nH("0xe6")])s.set(e.id,e);for(const e of c){const n=t.diffData[e]?t.diffData[e][nH("0xc1")]:"[]",i=t[nH("0x37")][e]?t.diffData[e][nH("0xd4")]:"[]";t[nH("0xd1")][e]={insertions:this[nH("0xee")](n),deletions:this[nH("0xee")](i)}}}for(const t of c){let e=null,i=0;const c=new Map(Array.from(n.model[t][nH("0xc1")][nH("0x47")])[nH("0xba")]((([t])=>!t[nH("0x10f")](nH("0x77")))));let d=0;for(const r of o){const o=this[nH("0xbd")](r[nH("0xd1")][t][nH("0xc1")]);r==n?(e=o,i=e[nH("0x7")],e.forEach((t=>{t.id=d++})),this._processTape(e)):this[nH("0x27")](e,o);const s=e[nH("0xba")]((t=>!t[nH("0xe4")]))[nH("0x34")]((t=>t.id));let a=0;const l=this[nH("0xbd")](r.model[t].deletions);l[nH("0x114")]((t=>{t[nH("0x69")]?t.id=i++:t.id=s[a++]})),this[nH("0x126")](l),this[nH("0x53")](e,nH("0xe4")),this[nH("0x53")](l,"isRemoved"),r==n&&this[nH("0x6d")](e,c),e=this[nH("0x7d")](e,l),this[nH("0x120")](e),this[nH("0x53")](e,"isRemoved")}e=e[nH("0xba")]((t=>!(t.isAdded&&t[nH("0x69")])));const u=new Map(r[nH("0xd1")][t].deletions.markers),h=new Set(c[nH("0x95")]());for(const t of u[nH("0x95")]())h.delete(t);this[nH("0x74")](e,h),this[nH("0x11f")](e),e=this[nH("0x33")](e),e=this[nH("0xf6")](e),e=this[nH("0xa1")](e);const{root:m,changes:g}=this._makeModelFromTape(e,s,t);a[nH("0xd1")][t]=m;const p=l[nH("0x115")](t);if(p){const e=s[nH("0x115")](p.userId),n=new qU({author:e,type:p.isAttached?nH("0xb6"):"remove",data:{isOnRoot:!0},createdAt:new Date,rootName:t});g[nH("0x11b")](n),a.attributes[t][nH("0x121")]=n.id}a[nH("0x6c")]=a[nH("0x6c")][nH("0x80")](g)}return a}_markMarkers(t,e){for(let n=0;n<t.length;n++)for(const[i,o]of e)o.start.isEqual(t[n][nH("0x129")])&&t[n][nH("0x123")].push(i),o[nH("0x43")][nH("0x93")](t[n][nH("0x7c")])&&t[n][nH("0x11d")][nH("0xf")](i)}[nH("0x7d")](t,e){let n=[],i=0,o=0;for(;i<t.length||o<e[nH("0x7")];){const r=t[i]||{},s=e[o]||{};if(r.id==s.id)i++,o++,n[nH("0xf")](r);else if(s.isRemoved&&r.isAdded){const{commonTape:r,iEnd:s,jEnd:a}=this[nH("0x50")](t,i,e,o);n=n[nH("0x80")](r),i=s,o=a}else s[nH("0x69")]?(o++,n[nH("0xf")](s)):(i++,n.push(r))}return n}[nH("0x74")](t,e){const n=[];for(let r=0;r<t[nH("0x7")];r++){for(let o=0;o<t[r][nH("0x123")].length;o++){const s=t[r][nH("0x123")][o];if(!e[nH("0xa0")](s))continue;const{group:a,type:c,authorId:l}=i(s);nH("0x110")!=a||nH("0x65")!=c&&nH("0xc0")!=c||(n[nH("0x11b")]({type:c,name:s,userId:l}),t[r][nH("0x123")].splice(o,1),o--)}o(t[r]);for(let o=0;o<t[r][nH("0x11d")][nH("0x7")];o++){const s=t[r][nH("0x11d")][o];if(!e.has(s))continue;const{group:a,type:c}=i(s);if("revision-suggestion"!=a||nH("0x65")!=c&&"deletion"!=c)continue;t[r][nH("0x11d")][nH("0xb4")](o,1),o--;const l=n[nH("0x11a")]((t=>t[nH("0x9e")]==s));l>-1&&n[nH("0xb4")](l,1)}}function i(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[nH("0x7")]<5?e[2]:e[3],authorId:e[nH("0x7")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}function o(t){for(let e=0;e<n[nH("0x7")];e++){if(t[nH("0xe4")]&&nH("0x65")==n[e][nH("0x101")])return t.isAddSuggestion=n[e],void delete t[nH("0xe4")];if(!t[nH("0xe4")]&&!t[nH("0x69")]&&nH("0xc0")==n[e][nH("0x101")])return void(t[nH("0xa2")]=n[e])}}}[nH("0x53")](t,e){let n=0,i=!1;const o=new Map;for(const r of t)r[e]?i&&(n++,i=!1):(n++,i=!0),o[nH("0x7e")](r.id,n);for(let n=0;n<t[nH("0x7")];n++){if(nH("0x69")==e&&t[n][nH("0xe4")]||"isAdded"==e&&t[n][nH("0x69")])continue;if("text"==t[n][nH("0x101")]){t[n].distance=0;continue}const i=o.get(t[n][nH("0xb9")]),r=o[nH("0x115")](t[n].id);t[n].distance=i-r}}_getRevisionsRange(t,e,n=!1){const i=[];let o=this[nH("0x117")][nH("0x71")](t),r=this.repository[nH("0x71")](e);for(-1==r&&(r=this[nH("0x117")][nH("0x106")][nH("0x7")],n=!1);o<r;)i.push(this.repository[nH("0x51")](o)),o++;return n&&i[nH("0xf")](this[nH("0x117")][nH("0x51")](o)),i}[nH("0x50")](t,e,n,i){const o=this.editor.model[nH("0xfe")];let r=e;for(;t[r]&&t[r].isAdded;)r++;let s=i;for(;n[s]&&n[s].isRemoved;)s++;c(t,e,r),c(n,i,s);const a=n[nH("0x52")](i,s)[nH("0x80")](t[nH("0x52")](e,r));return a.sort(((t,e)=>t.side!=e[nH("0xd7")]?t[nH("0xd7")]-e.side:t[nH("0x19")]!=e[nH("0x19")]?t.level-e[nH("0x19")]:t[nH("0x3d")]!=e[nH("0x3d")]?e[nH("0x3d")]-t[nH("0x3d")]:!!t[nH("0xe4")]!=!!e[nH("0xe4")]?-1==t.side||0==t[nH("0xd7")]?t.isAdded?-1:1:t.isAdded?1:-1:t[nH("0x48")]-e[nH("0x48")])),{commonTape:a,iEnd:r,jEnd:s};function c(t,e,n){let i=-1,r=Number[nH("0x5b")],s=!0;for(let a=e;a<n;a++)if(o.isInline(t[a][nH("0xc")])||(s=!1),t[a][nH("0xc")][nH("0x94")]<e&&(i=a),t[a].item.endIndex>=n){r=a;break}s&&(i=n-1);for(let o=e;o<n;o++)t[o][nH("0xd7")]=o<=i?-1:o<r?0:1,t[o][nH("0x48")]=o;let a=0;for(let n=e;n<=i;n++)0==t[n][nH("0x3d")]?t[n][nH("0x19")]=a:(a++,t[n][nH("0x19")]=a,a++);for(let i=e;i<n;i++)0==t[i][nH("0xd7")]&&(t[i].level=a);a=0;for(let e=n-1;e>=r;e--)0==t[e][nH("0x3d")]?t[e][nH("0x19")]=a:(a--,t[e][nH("0x19")]=a,a--)}}[nH("0x11f")](t){const e=new Map,n=this[nH("0xa7")][nH("0xd1")][nH("0xfe")];for(let i=1;i<t[nH("0x7")];i++){let o,r,s;const a=t[i],c=t[i-1];if("text"==a[nH("0x101")])continue;if(a[nH("0x101")]!=c[nH("0x101")])continue;if(!n[nH("0x90")](c[nH("0xc")])||n[nH("0xaf")](c[nH("0xc")]))continue;if(!n[nH("0x90")](a[nH("0xc")])||n[nH("0xaf")](a[nH("0xc")]))continue;if((t[i].isAdded||t[i].isAddSuggestion)&&t[i-1][nH("0x69")])o=t[i],r=t[i-1],s=i-1;else{if(!t[i][nH("0x69")]||!t[i-1].isAdded&&!t[i-1][nH("0xa4")])continue;o=t[i-1],r=t[i],s=i}const l=o[nH("0x19")]==r[nH("0x19")],d=Math[nH("0x8f")](o[nH("0x19")])<Math[nH("0x8f")](r[nH("0x19")])&&0==r[nH("0x3d")];(l||d)&&(e[nH("0x7e")](r.id,o.id),t[nH("0xb4")](s,1),i--,o[nH("0xe4")]=!1)}for(let n=0;n<t[nH("0x7")];n++)e[nH("0xa0")](t[n].pairId)&&(t[n][nH("0xb9")]=e[nH("0x115")](t[n][nH("0xb9")]))}[nH("0x33")](t){const e=new Set(t[nH("0x34")]((t=>t.id)));for(let n=0;n<t[nH("0x7")];n++)e[nH("0xa0")](t[n].pairId)||0==t[n][nH("0x3d")]||(t[n][nH("0x56")]=!0);return t[nH("0xba")]((t=>!t[nH("0x56")]))}_markMismatchedRemovedTags(t){const e=new Set;for(let n=0;n<t[nH("0x7")];n++){if(e[nH("0xa0")](t[n].id)&&t[n].isRemoved&&(t[n][nH("0x56")]=!0),t[n][nH("0x56")])continue;if(0==t[n].distance)continue;if(nH("0x17")!=t[n][nH("0x101")])continue;if(null==t[n][nH("0xb9")])continue;let i=n+1,o=0;for(;t[i].id!=t[n][nH("0xb9")];)nH("0x17")==t[i][nH("0x101")]?o++:"elementEnd"==t[i][nH("0x101")]&&o--,i++;if(0!=o)if(t[n][nH("0x69")])t[n][nH("0x56")]=!0;else for(;i!=n;)t[i][nH("0x69")]&&0!=t[i][nH("0x3d")]&&(t[i][nH("0x56")]=!0,e[nH("0xb6")](t[i][nH("0xb9")])),i--}return t[nH("0xba")]((t=>!t[nH("0x56")]))}[nH("0xa1")](t){const e=this[nH("0xa7")][nH("0xd1")][nH("0xfe")];for(let n=0;n<t[nH("0x7")];n++){if(!(t[n].isAdded||t[n][nH("0xa4")]||t[n][nH("0x69")]||t[n][nH("0xa2")]))continue;if(0==t[n][nH("0x3d")])continue;const i=t[n][nH("0xc")];e[nH("0x90")](i)||e[nH("0xaf")](i)||(t[n].isAdded&&delete t[n][nH("0xe4")],t[n][nH("0xa4")]&&delete t[n][nH("0xa4")],t[n][nH("0xa2")]&&delete t[n].isRemoveSuggestion,t[n][nH("0x69")]&&(t[n].isIncorrect=!0))}return t[nH("0xba")]((t=>!t[nH("0x56")]))}_makeModelFromTape(t,e,n){const i=new ba,o=[],r=new Map,s=this[nH("0xa7")].model,a=s[nH("0xfe")],c=[i],l={},d={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let u=null;const h=[0];for(let e=0;e<t[nH("0x7")];e++){let n,o;if(nH("0x17")===t[e][nH("0x101")]){n=s[nH("0x127")](i,h);const r=new Zo(t[e][nH("0xc")][nH("0x9e")],t[e].item.getAttributes());c[0][nH("0xeb")](r),h.push(0),c.unshift(r),o=s[nH("0x127")](i,h),u=null}else if(nH("0x4c")===t[e][nH("0x101")])c[nH("0xad")](),n=s[nH("0x127")](i,h),h.pop(),h[h.length-1]++,o=s[nH("0x127")](i,h),u=null;else{if(n=s[nH("0x127")](i,h),u&&p(u,t[e][nH("0xc")]))u[nH("0x12")]+=t[e][nH("0xc")].data;else{const n=new Wo(t[e][nH("0xc")].data,t[e].item[nH("0x1a")]());c[0][nH("0xeb")](n),u=n}h[h[nH("0x7")]-1]+=t[e][nH("0xc")][nH("0x32")],o=s[nH("0x127")](i,h)}for(const i of t[e].markersStart)r[nH("0x7e")](i,{start:n,end:null});m(nH("0xa2"),e,n,o),m("isAddSuggestion",e,n,o),m(nH("0x69"),e,n,o),m(nH("0xe4"),e,n,o);for(const n of t[e].markersEnd)r[nH("0x115")](n)[nH("0x43")]=o}for(const[t,e]of r){const n=this[nH("0xa7")][nH("0xd1")][nH("0x9d")](e.start,e[nH("0x43")]);i[nH("0x47")][nH("0x7e")](t,n)}return o[nH("0x38")](((t,e)=>{const n=i[nH("0x47")][nH("0x115")](nH("0x77")+t.id),o=i[nH("0x47")].get(nH("0x77")+e.id);return n.start[nH("0xe9")](o.start)?-1:n.start[nH("0x61")](o[nH("0x60")])?1:n[nH("0x43")][nH("0xe9")](o[nH("0x43")])?-1:n[nH("0x43")].isAfter(o[nH("0x43")])?1:nH("0xb6")===t[nH("0x101")]?-1:1})),{root:i,changes:o};function m(e,n,i,o){const r=!!t[n][e],s=r?t[n][e][nH("0x10a")]:null,c=n===t[nH("0x7")]-1,u=d[e][0],h=a[nH("0x3")](t[n][nH("0xc")]);!l[e]&&r?l[e]={start:i,tapeItem:t[n],userId:s,type:e}:l[e]&&!r?(l[e][nH("0x43")]=i,g(l[e]),l[e]=null):l[e]&&r&&l[e].userId!==s&&(l[e][nH("0x43")]=i,u&&u[nH("0x10a")]===l[e][nH("0x10a")]||g(l[e]),l[e]={start:i,tapeItem:t[n],userId:s,type:e}),l[e]&&h&&(nH("0x17")!==t[n].type||u&&u.userId===s||d[e][nH("0x11b")]({userId:s,object:t[n][nH("0xc")],change:l[e]}),"elementEnd"===t[n][nH("0x101")]&&u&&u[nH("0x88")]===t[n][nH("0xc")]&&(d[e][nH("0xad")](),l[e]=u[nH("0x112")])),l[e]&&c&&(l[e][nH("0x43")]=o,g(l[e]),l[e]=null)}function g({start:t,end:r,tapeItem:a,userId:c,type:l}){const d=a.item,u=s[nH("0xfe")][nH("0x90")](d)&&!s.schema.isLimit(d),h=t.nodeAfter==r[nH("0x92")]&&r[nH("0x85")];if(u&&h)return;const m=s[nH("0x9d")](t,r),g=e[nH("0x115")](c),p=new qU({author:g,type:nH("0xe4")==l||nH("0xa4")==l?"add":nH("0x4a"),data:{isSuggestion:nH("0xa4")==l||nH("0xa2")==l},createdAt:new Date,rootName:n});o.push(p),i[nH("0x47")][nH("0x7e")]("revision:"+p.id,m)}function p(t,e){const n=t[nH("0x1a")](),i=e.getAttributes();for(const t of n){if(t[1]!==e[nH("0xed")](t[0]))return!1;i[nH("0x26")]()}return i[nH("0x26")]()[nH("0xd2")]}}[nH("0xdc")](){this[nH("0xa7")][nH("0x2c")].for(nH("0xea"))[nH("0xd5")]({view:nH("0xcb")}),this[nH("0xa7")][nH("0x2c")].for(nH("0xa9"))[nH("0x13")]({model:nH("0xcb"),view:t=>{const e=t[nH("0x116")][nH("0x81")](":")[1],n=this[nH("0x46")](e);if(!n)return null;const i="add"==n.type?nH("0x65"):nH("0xc0"),o=["ck-suggestion-marker",nH("0xe")+i];return n.data[nH("0xfd")]&&o.push(nH("0xe")+i+nH("0x4f")),this[nH("0xc7")]==n&&o[nH("0xf")]("ck-suggestion-marker--active"),{classes:o,attributes:{"data-change-id":e}}}}),this[nH("0xa7")][nH("0x2c")].for("upcast")[nH("0xb6")]((t=>{t.on(nH("0x9b"),((t,e,n)=>{const i=e[nH("0x113")][nH("0xf0")](0);if(!i||!i.is(nH("0xfc"),nH("0x6f")))return;if(!n[nH("0x45")][nH("0xf9")](i,{attributes:[nH("0x21"),nH("0x1d")]}))return;const o=e.modelRange[nH("0x60")].nodeAfter;n[nH("0x36")].setAttribute(nH("0x21"),i[nH("0xed")]("vid_start"),o),n[nH("0x36")].setAttribute("vid_end",i[nH("0xed")]("vid_end"),o)}),{priority:nH("0xde")})})),this[nH("0xa7")][nH("0x2c")][nH("0xf3")](nH("0xea")).add((t=>{t.on("element",((t,e,n)=>{if(!n[nH("0x45")][nH("0xf9")](e[nH("0x113")],{attributes:[nH("0x21"),"vid_end"]}))return;if(e.modelRange.isCollapsed)return;const i=e[nH("0xe2")][nH("0x60")].nodeAfter;i.hasAttribute("vid_start")||i[nH("0xae")](nH("0x75"))||(n[nH("0x36")].setAttribute("vid_start",e[nH("0x113")][nH("0xed")](nH("0x21")),i),n[nH("0x36")][nH("0x2f")](nH("0x1d"),e[nH("0x113")][nH("0xed")](nH("0x1d")),i))}),{priority:nH("0xde")})})),this[nH("0xa7")][nH("0x2c")][nH("0xf3")]("upcast")[nH("0x2a")]({view:{name:nH("0x124"),attributes:{vid:!0}},model:{key:"vid",value:t=>t[nH("0xed")](nH("0x75"))}}),this[nH("0xa7")][nH("0xd1")][nH("0xfe")].on("checkAttribute",((t,[,e])=>{["vid_start",nH("0x1d"),"vid"].includes(e)&&(t[nH("0xbb")]=!0,t.stop())}),{priority:nH("0xf2")}),this[nH("0xa7")][nH("0x2c")][nH("0xf3")](nH("0xc5"))[nH("0xb6")]((t=>{t.on(nH("0x91"),((t,e,n)=>{if(" "!=e[nH("0xc")][nH("0x105")]||e[nH("0xc")][nH("0x92")][nH("0x2")]>1)return;if(!n.consumable.consume(e[nH("0xc")],t[nH("0x9e")]))return;const i=n.writer,o=n[nH("0x1f")][nH("0xd6")](e[nH("0x100")]);i[nH("0x9c")](o,i[nH("0x66")]("span"))}))})),this.editor[nH("0x2c")][nH("0xf3")](nH("0xc5"))[nH("0xc9")]({model:nH("0xcb")}),this.editor[nH("0xf8")][nH("0x40")].on(nH("0xbe"),function(t){const e=t[nH("0x8c")][nH("0x115")]("RevisionViewer");return(n,i,o)=>{const r=i[nH("0x116")][nH("0x81")](":")[1],s=e[nH("0x46")](r);if(!s)return null;const a="add"==s[nH("0x101")]?nH("0x81"):nH("0x78");if(!o[nH("0x45")][nH("0x10")](i.markerRange,n[nH("0x9e")]))return;const c=i[nH("0x6")][nH("0x5a")](),l=i[nH("0x6")][nH("0x60")],d=t[nH("0xd1")][nH("0xfe")];let u=null,h=null,m=!1,g=!1;for(const t of c){const e=t.item;m=m||d[nH("0x97")](e);const n=o[nH("0x1f")].toViewElement(e);if(n&&n[nH("0x62")]("addHighlight"))return;nH("0x4c")==t[nH("0x101")]&&d[nH("0x90")](e)&&!d[nH("0xaf")](e)&&(e[nH("0xbc")]||l[nH("0xd0")]?u&&u[nH("0x92")]==e||(u=e,p(t[nH("0x129")]),g=!0):h=h||t[nH("0x129")])}function p(t){const n=o[nH("0x36")][nH("0xbf")]("span",{class:nH("0xe")+a}),r=o[nH("0x1f")].toViewPosition(t);s[nH("0x105")][nH("0xfd")]&&o[nH("0x36")][nH("0x11c")](nH("0xe")+a+nH("0x4f"),n),e[nH("0xc7")]==s&&o.writer[nH("0x11c")](nH("0x7f"),n),o.writer.insert(r,n),o.mapper[nH("0xe8")](n,i[nH("0x116")])}m||g||!h||p(h)}}(this[nH("0xa7")]),{priority:nH("0x29")}),this[nH("0xa7")][nH("0xf8")][nH("0x40")].on("removeMarker:revision",((t,e,n)=>{const i=n.mapper.markerNameToElements(e[nH("0x116")]);if(i)for(const t of i)(t[nH("0xf1")](nH("0x4b"))||t[nH("0xf1")](nH("0x10d")))&&(n[nH("0x1f")][nH("0xb1")](t,e[nH("0x116")]),n[nH("0x36")][nH("0x4a")](t))}),{priority:nH("0x29")}),this[nH("0xa7")][nH("0xf8")].downcastDispatcher.on(nH("0xbe"),((t,e,n)=>{const i=e.markerName[nH("0x81")](":")[1],o=this[nH("0x46")](i);if(!o)return null;const r=nH("0xb6")==o[nH("0x101")]?nH("0x81"):nH("0x78");if(n[nH("0x45")][nH("0x10")](e.markerRange,t[nH("0x9e")]))for(const t of e[nH("0x6")][nH("0xa")]()){if(!t.is("element",nH("0x24")))continue;const i=n[nH("0x36")].createUIElement(nH("0x124"),{class:nH("0xe")+r}),s=n.mapper.toViewPosition(this[nH("0xa7")][nH("0xd1")].createPositionBefore(t));o[nH("0x105")][nH("0xfd")]&&n[nH("0x36")][nH("0x11c")]("ck-suggestion-marker-"+r+"-new",i),this[nH("0xc7")]==o&&n[nH("0x36")].addClass(nH("0x7f"),i),n[nH("0x36")][nH("0xdf")](s,i),n[nH("0x1f")][nH("0xe8")](i,e[nH("0x116")])}}),{priority:nH("0x29")}),this[nH("0xa7")][nH("0xd1")][nH("0xc2")].on(nH("0x112"),(()=>{this[nH("0xa7")][nH("0xf8")][nH("0x9a")][nH("0x112")]((t=>{for(const e of this.editor[nH("0xd1")][nH("0xc2")][nH("0x20")]()){const n=this[nH("0xa7")].model[nH("0xc2")][nH("0xf4")](e),i=this[nH("0xa7")].editing[nH("0x9a")][nH("0xc2")][nH("0xf4")](e);if(i){const e=n.getAttribute(nH("0x121"));if(t[nH("0x5e")](nH("0xa8"),i),t[nH("0xe7")](nH("0x8a"),i),t.removeClass(nH("0xe5"),i),t.removeClass(nH("0xc8"),i),e){const n=this[nH("0x46")](e);if(!n)return null;t[nH("0x2f")]("data-change-id",e,i),t[nH("0x11c")](nH("0x10b")+n[nH("0x101")],i),this[nH("0xc7")]==n&&t[nH("0x11c")](nH("0xc8"),i)}}}}))})),this[nH("0xa7")][nH("0x2c")][nH("0xf3")](nH("0xea")).dataToMarker({view:nH("0x9f"),model:t=>nH("0x9")+t,converterPriority:"highest"}),this[nH("0xa7")][nH("0x2c")][nH("0xf3")](nH("0xea"))[nH("0xd5")]({view:nH("0x25"),model:t=>nH("0x2d")+t,converterPriority:nH("0xf2")}),this[nH("0xa7")][nH("0x2c")].for("dataDowncast")[nH("0xc9")]({model:nH("0x110"),view:t=>({name:nH("0x1c")+t,group:"revision-suggestion"}),converterPriority:nH("0xf2")}),this[nH("0xa7")][nH("0x2c")][nH("0xf3")](nH("0xa9"))[nH("0x13")]({model:nH("0x110"),view:t=>{const e=t[nH("0x116")].split(":")[1];return nH("0x65")!=e&&nH("0xc0")!=e?null:{classes:[nH("0x6a"),"ck-suggestion-preview-marker-"+e]}}}),this[nH("0xa7")][nH("0xf8")][nH("0x40")].on(nH("0x6e"),rH(this[nH("0xa7")],"merge"),{priority:"high"}),this.editor[nH("0xf8")][nH("0x40")].on(nH("0x8e"),rH(this.editor,"split"),{priority:nH("0x29")}),this[nH("0xa7")].editing[nH("0x40")].on(nH("0xc3"),((t,e,n)=>{const i=n.mapper[nH("0xfb")](e.markerName);if(i)for(const t of i)t.is(nH("0xb3"))&&(n[nH("0x1f")][nH("0xb1")](t,e[nH("0x116")]),n[nH("0x36")][nH("0x4a")](t))}),{priority:"high"})}[nH("0x46")](t){return this[nH("0x84")][nH("0x115")](t)}[nH("0x0")](t){return this[nH("0x28")]&&this[nH("0x28")][nH("0x23")](),this[nH("0x28")]=new VU(this[nH("0xa7")][nH("0x5")],t),this[nH("0x28")]}[nH("0xff")](){this.editor[nH("0xd1")][nH("0xc2")][nH("0xb8")][nH("0x122")](nH("0xcb")),this.on(nH("0x39"),((t,e,n,i)=>{i&&this[nH("0x2b")][nH("0x4a")](i),n&&(this[nH("0x2b")][nH("0xb6")]({view:n,stackId:"revisionHistoryLabel",position:{target:()=>{const t=this[nH("0xa7")][nH("0xf8")],e=this[nH("0x46")](n[nH("0xdd")]);let i;if(e[nH("0x105")][nH("0xdb")]){const n=t[nH("0x9a")][nH("0x103")](e[nH("0x30")]);i=Array.from(n.getClientRects())}else{const e=this[nH("0xa7")][nH("0xd1")][nH("0x47")].get(nH("0x77")+n[nH("0xdd")]);i=Array[nH("0x3b")](t[nH("0x1f")][nH("0xfb")](e[nH("0x9e")]))[nH("0x34")]((e=>t[nH("0x9a")].domConverter.mapViewToDom(e)))[nH("0x34")]((t=>Array.from(t[nH("0xda")]()))).flat()}return this[nH("0x14")]&&i[nH("0x44")]((t=>t.top-3<=this[nH("0x14")].y&&t[nH("0x99")]+3>=this[nH("0x14")].y&&t[nH("0x70")]-3<=this[nH("0x14")].x&&t[nH("0x63")]+3>=this._activeViewTarget.x))||i[0]}}}),this[nH("0x2b")][nH("0xab")](nH("0x49")))})),this.on(nH("0x7a"),((t,e,n,i)=>{this[nH("0x1")]=n?this[nH("0x0")](n):null,this[nH("0xa7")].model[nH("0x112")]((()=>{const t=this[nH("0xa7")][nH("0xf8")];i&&(i[nH("0x105")][nH("0xdb")]?t[nH("0x9a")].change((e=>{e[nH("0xe7")]("ck-revision-history-root--active",t[nH("0x9a")].document[nH("0xf4")](i[nH("0x30")]))})):t[nH("0x55")](nH("0x77")+i.id)),n&&(n[nH("0x105")].isOnRoot?t.view[nH("0x112")]((e=>{e[nH("0x11c")](nH("0xc8"),t[nH("0x9a")].document[nH("0xf4")](n.rootName))})):t[nH("0x55")](nH("0x77")+n.id))}))})),this[nH("0x4e")](this.editor[nH("0xf8")][nH("0x9a")][nH("0xc2")],nH("0xd"),((t,e)=>{if(this.activeChange)return;const n=this[nH("0x79")](e[nH("0x5c")]),i=this[nH("0x84")].get(n);i?(this[nH("0x14")]={x:e[nH("0x3a")].x,y:e[nH("0x3a")].y},this[nH("0x1")]=this[nH("0x0")](i)):(this[nH("0x14")]=null,this[nH("0x1")]=null)})),this[nH("0x4e")](this[nH("0xa7")][nH("0xf8")][nH("0x9a")].document,nH("0x11"),((t,e)=>{const n=this[nH("0x79")](e.target),i=this[nH("0x84")].get(n);i?(this[nH("0x14")]={x:e[nH("0x3a")].x,y:e[nH("0x3a")].y},i===this[nH("0xc7")]?this[nH("0x2b")][nH("0x5f")]():this[nH("0xc7")]=i):(this[nH("0x14")]=null,this[nH("0xc7")]=null)}))}[nH("0x79")](t){do{const e=t[nH("0xed")](nH("0xa8"));if(e)return e;t=t[nH("0x92")]}while(t);return null}[nH("0x5d")](){this[nH("0xa7")].model[nH("0x112")]((t=>{for(const e of this[nH("0xa7")].model.markers)t[nH("0x68")](e)}))}}function rH(t,e){return(n,i,o)=>{if(!o[nH("0x45")].test(i.markerRange,n[nH("0x9e")]))return;const r=i[nH("0x6")][nH("0x5a")](),s=i.markerRange[nH("0x60")],a=t.model[nH("0xfe")];let c=null,l=null,d=!1,u=!1;for(const t of r){const e=t.item;d=d||a[nH("0x97")](e);const n=o[nH("0x1f")][nH("0x1b")](e);if(n&&n[nH("0x62")]("addHighlight"))return;nH("0x4c")==t[nH("0x101")]&&a[nH("0x90")](e)&&!a[nH("0xaf")](e)&&(e[nH("0xbc")]||s[nH("0xd0")]?c&&c[nH("0x92")]==e||(c=e,h(t.previousPosition),u=!0):l=l||t[nH("0x129")])}function h(t){const n=o[nH("0x1f")].toViewPosition(t),r=o.writer[nH("0xbf")](nH("0x124"),{class:nH("0xe1")+e});o[nH("0x36")][nH("0xdf")](n,r),o[nH("0x1f")].bindElementToMarker(r,i[nH("0x116")])}d||u||!l||h(l)}}class sH extends $t{constructor(t){super(t);const e=t.plugins[nH("0x115")](oH);this[nH("0x2e")]=!1,this[nH("0x4e")](e,nH("0x18"),(()=>this.refresh())),this[nH("0x4e")](e,nH("0x111"),(()=>this.refresh()))}[nH("0x1e")](){const t=this[nH("0xa7")],e=t[nH("0x8c")][nH("0x115")](oH),n=e.isReady?e.diff.newRevisionId:null;t.config[nH("0x115")](nH("0xca")).restoreRevisionCallback(n)}[nH("0x83")](){const{isReady:t,isEnabled:e}=this[nH("0xa7")][nH("0x8c")].get(oH);this[nH("0xce")]=t&&e}}class aH extends $t{constructor(t,{direction:e}){super(t);const n=t[nH("0x8c")].get(oH);this[nH("0x2e")]=!1,this._step="forward"===e?1:-1,this.listenTo(n,nH("0x18"),(()=>this[nH("0x83")]())),this[nH("0x4e")](n,nH("0x111"),(()=>this[nH("0x83")]())),this[nH("0x4e")](n,nH("0x7a"),(()=>this.refresh()))}execute(){const t=this[nH("0xa7")],e=t.plugins[nH("0x115")](oH),{isNavigationMode:n,currentChangeNumber:i}=e;let o;if(e[nH("0xc7")]=n?e[nH("0x119")][nH("0x6c")][nH("0x115")](i+this._step):e.diff[nH("0x6c")][nH("0x72")],e[nH("0xc7")][nH("0x105")][nH("0xdb")])o=t[nH("0xf8")].view[nH("0x103")](e.activeChange[nH("0x30")]);else{const n=t[nH("0xd1")][nH("0x47")][nH("0x115")](nH("0x77")+e[nH("0xc7")].id);o=function(t,e){const n=t[Iw("0x6")].markerNameToElements(e.name);if(!n)return null;const i=(0,Uu.first)(n[Iw("0x1")]());return t[Iw("0x3")][Iw("0x4")][Iw("0x9")](i)||null}(t.editing,n)}(0,Uu.scrollViewportToShowTarget)({target:o,viewportOffset:40})}refresh(){const{isNavigationMode:t,currentChangeNumber:e,numberOfChanges:n,isReady:i,isEnabled:o}=this[nH("0xa7")][nH("0x8c")].get(oH);this[nH("0xce")]=!!(o&&i&&n)&&(!t||(1===this[nH("0x107")]?e<n-1:e>0))}}var cH=__webpack_require__(9313),lH={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(cH.Z,lH);cH.Z.locals;const dH=["forward","set","ck-revision-history-ui__changes-navigation__label","X_OF_Y_CHANGES","isForwardNavigationEnabled","ck-revision-history-ui","EDIT_X_OF_Y_REVISIONS","execute","Show next change","_statusText","currentChangeNumber","NUMBER_OF_CHANGES","ck-revision-history-ui__changes-navigation__navigation","div","fire","backward","bindTemplate","_isStatusLabelVisible","isReady","isEnabled","span","Total","Show previous change","bind","isNavigationMode","numberOfChanges","ck-revision-history-ui__changes-navigation","ck-revision-history-ui__changes-navigation__wrapper","isBackwardNavigationEnabled"];var uH,hH;uH=dH,hH=227,function(t){for(;--t;)uH.push(uH.shift())}(++hH);const mH=function(t,e){return dH[t-=0]};class gH extends u{constructor(t){super(t);const e=this[mH("0x15")],n=new U(t),i=new U(t);this[mH("0x6")](mH("0x0"),!1),this[mH("0x6")]("isReady",!1),this[mH("0x6")](mH("0xf"),0),this[mH("0x6")](mH("0x1"),0),this[mH("0x6")](mH("0x9"),!1),this[mH("0x6")](mH("0x4"),!1),this.bind(mH("0x16")).to(this,mH("0x17"),this,mH("0x1"),((t,e)=>t&&e>0)),this[mH("0x1c")](mH("0xe")).to(this,mH("0x17"),this,mH("0xf"),this,"numberOfChanges",this,mH("0x0"),((e,n,i,o)=>{if(!e)return uU(t,"Loading...");if(!i)return uU(t,"No changes");const r=uU(t,mH("0x10"),i);return o?uU(t,mH("0x8"),[n+1,i]):r})),n[mH("0x6")]({label:uU(t,mH("0x1b")),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.435 14.494a.75.75 0 0 0 1.197-.899l-.067-.089-6.992-8a.75.75 0 0 0-1.05-.078l-.079.078-7.008 8a.75.75 0 0 0 1.049 1.066l.08-.078 6.442-7.354 6.428 7.354z"/></svg>\n'}),i.set({label:uU(t,mH("0xd")),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.435 5.506a.75.75 0 0 1 1.197.899l-.067.089-6.992 8a.75.75 0 0 1-1.05.078l-.079-.078-7.008-8a.75.75 0 0 1 1.049-1.066l.08.078 6.442 7.354 6.428-7.354z"/></svg>\n'}),n[mH("0x1c")](mH("0x18")).to(this,mH("0x4")),i[mH("0x1c")](mH("0x18")).to(this,mH("0x9")),n.on(mH("0xc"),(()=>this[mH("0x13")](mH("0xc"),mH("0x14")))),i.on(mH("0xc"),(()=>this.fire(mH("0xc"),mH("0x5")))),this.setTemplate({tag:mH("0x12"),attributes:{class:["ck",mH("0xa"),mH("0x2")]},children:[{tag:mH("0x19"),attributes:{class:[mH("0x3")]},children:[{tag:mH("0x19"),attributes:{class:[mH("0x7"),e.if(mH("0x16"),"ck-hidden",(t=>!t))]},children:[{text:e.to(mH("0x0"),(e=>e?uU(t,mH("0xb"))+": ":uU(t,mH("0x1a"))+": "))}]},{text:e.to(mH("0xe"))}]},new Wt,{tag:mH("0x12"),attributes:{class:[mH("0x11")]},children:[n,i]}]})}}var pH=__webpack_require__(2986),fH={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(pH.Z,fH);pH.Z.locals;const xH=["roots","editor","hide","ck-editor__editable__loading-overlay","removeClass","view","addClass","change","pluginName","editing","document","RevisionViewerLoadingOverlay","show"];var bH,kH;bH=xH,kH=414,function(t){for(;--t;)bH.push(bH.shift())}(++kH);const wH=function(t,e){return xH[t-=0]},AH=wH("0x5");class _H extends Yt{static get[wH("0xa")](){return wH("0x0")}[wH("0x1")](){const t=this[wH("0x3")][wH("0xb")][wH("0x7")];t[wH("0x9")]((e=>{for(const n of t.document[wH("0x2")])e[wH("0x8")](AH,n)}))}[wH("0x4")](){const t=this[wH("0x3")][wH("0xb")].view;t[wH("0x9")]((e=>{for(const n of t[wH("0xc")][wH("0x2")])e[wH("0x6")](AH,n)}))}}const vH=["plugins","componentFactory","editor","showNextChange","ck-revision-history-ui__back-to-editing","pluginName","bind","get","RevisionViewerUI","isBackwardNavigationEnabled","hide","forward","closeRevisionViewerCallback","Restore this revision","commands","exitToEditing","restoreRevision","listenTo","set","requires","show","isEnabled","changesNavigation","change:isReady","config","currentChangeNumber","revisionHistory","numberOfChanges","isNavigationMode","add","init","showPreviousChange","Back to editing","execute","isReady"];var CH,yH;CH=vH,yH=330,function(t){for(;--t;)CH.push(CH.shift())}(++yH);const EH=function(t,e){return vH[t-=0]};class IH extends Yt{static get[EH("0x19")](){return EH("0x1c")}static get[EH("0x4")](){return[oH,_H]}[EH("0xf")](){const t=this[EH("0x16")],e=t.plugins[EH("0x1b")](oH),n=t[EH("0x14")].get(_H);t.ui[EH("0x15")].add(EH("0x0"),(e=>{const n=new U(e);return n[EH("0x3")]({label:uU(e,EH("0x11")),icon:gv,withText:!0,tooltip:!0,class:EH("0x18")}),this[EH("0x2")](n,EH("0x12"),(()=>{t[EH("0x9")].get(EH("0xb"))[EH("0x20")]()})),n})),t.ui[EH("0x15")].add("restoreRevision",(e=>{const n=new U(e);return n[EH("0x3")]({label:uU(e,EH("0x21")),withText:!0,tooltip:!0}),n[EH("0x1a")](EH("0x6")).to(t[EH("0x22")][EH("0x1b")](EH("0x1"))),this[EH("0x2")](n,"execute",(()=>t[EH("0x12")]("restoreRevision"))),n})),t.ui[EH("0x15")][EH("0xe")](EH("0x7"),(n=>{const i=new gH(n),o=t[EH("0x22")].get(EH("0x10")),r=t.commands[EH("0x1b")](EH("0x17"));return i.bind(EH("0x1d")).to(o,"isEnabled"),i[EH("0x1a")]("isForwardNavigationEnabled").to(r,EH("0x6")),i[EH("0x1a")](EH("0x13"),EH("0xa"),EH("0xc"),EH("0xd")).to(e),this[EH("0x2")](i,EH("0x12"),((e,n)=>{t[EH("0x12")](EH("0x1f")===n?EH("0x17"):EH("0x10"))})),i})),n[EH("0x5")](),e.on(EH("0x8"),((t,e,i)=>{i?n[EH("0x1e")]():n[EH("0x5")]()}))}}var SH=__webpack_require__(8856),TH={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(SH.Z,TH);SH.Z.locals;var DH,MH,BH=["set","ck-revision-history-sidebar__revision-name","Revision name","span"];DH=BH,MH=348,function(t){for(;--t;)DH.push(DH.shift())}(++MH);var OH=function(t,e){return BH[t-=0]};class NH extends It{constructor(t,e){super(t,e),this[OH("0x0")]({label:uU(t,OH("0x2"))}),this.extendTemplate({tag:OH("0x3"),attributes:{class:[OH("0x1")]}})}}var PH=__webpack_require__(8152),RH={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(PH.Z,RH);PH.Z.locals;const LH=["name","Revision author","set","Revision creator","setTemplate","ck-revision-history-sidebar__revision-author"];var jH,zH;jH=LH,zH=190,function(t){for(;--t;)jH.push(jH.shift())}(++zH);const VH=function(t,e){return LH[t-=0]};class FH extends u{constructor(t,e,n){super(t);const i=new j;i[VH("0x4")]({content:'<svg viewBox="0 0 11 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M5.5 5C8.538 5 11 7.015 11 9.5c0 .17-.011.336-.034.5H.034A3.732 3.732 0 0 1 0 9.5C0 7.015 2.462 5 5.5 5zm0-5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z" /></svg>\n',viewBox:"0 0 11 10"});const o=["ck",VH("0x1")];n&&o.push("ck-revision-history-sidebar__revision-author_creator");const r=[{tag:"span",attributes:{class:["ck","ck-revision-history-sidebar__revision-author__name"],title:uU(t,VH(n?"0x5":"0x3"))},children:[i,e[VH("0x2")]]}];this[VH("0x0")]({tag:"li",attributes:{class:o},children:r})}}var UH,HH,GH=["numeric","toLocaleDateString","long"];UH=GH,HH=285,function(t){for(;--t;)UH.push(UH.shift())}(++HH);var qH=function(t,e){return GH[t-=0]};var WH=__webpack_require__(9536),KH={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(WH.Z,KH);WH.Z.locals;const ZH=["source","buttonView","ck-revision-history-sidebar__revision__actions","panelPosition","isEnabled","action","threeVerticalDots","model","bindTemplate","find","ck-on","isActionsDropdownOpen","locale","_action","Show more items","isVisible","listView","Name this revision","add","function","Compare against selected","change:isActionsDropdownOpen","button","stopPropagation","extendTemplate","bind","name","isReady"];var YH,JH;YH=ZH,JH=336,function(t){for(;--t;)YH.push(YH.shift())}(++JH);const $H=function(t,e){return ZH[t-=0]};var QH=__webpack_require__(1845),XH={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(QH.Z,XH);QH.Z.locals;const tG=["ck-disabled","extendTemplate",".ck-thread__remove-confirm","value","isConfirm","div","isActionsDropdownOpen","render","authors","unhighlight","bind","_createdAtFormatted","ck-reset","closest","isHighlighted","unshift","bindTemplate","revisionActionsView","deselect","filter","isReady","ck-revision-history-sidebar__revision-wrapper_confirmation_visible","length","ck-revision-history-sidebar__actions_dropdown_open","name","creator","setName","revisionNameView","ck-revision-history-sidebar__revision__date","element","createdAt","span","change","isSelected","highlight","setTemplate","fire","isEnabled","ck-revision-history-sidebar__revision-wrapper","set","fieldView","srcElement","ck-revision-history-sidebar__revision_selected","ck-revision-history-sidebar__revision_highlighted","ck-revision-history-sidebar__revision__controls-wrapper","select","uiLanguage"];var eG,nG;eG=tG,nG=354,function(t){for(;--t;)eG.push(eG.shift())}(++nG);const iG=function(t,e){return tG[t-=0]};class oG extends(Gw(u)){constructor(t,e,n){super(t);const i=this[iG("0x26")],o=function(t,e){const n=Array.from(e[iG("0x1e")])[iG("0x29")]((t=>t!=e.creator));return e[iG("0x0")]&&n[iG("0x25")](e[iG("0x0")]),n.map((n=>new FH(t,n,n==e[iG("0x0")])))}(t,e);this.id=e.id,this._revision=e,this[iG("0x20")](iG("0x2e"),"createdAt").to(e),this[iG("0x20")](iG("0x21")).to(this,iG("0x5"),(e=>{return e?(n=t[iG("0x15")],(i=e)[qH("0x1")](n,{month:qH("0x2"),day:qH("0x0")})+", "+i.toLocaleTimeString(n,{hour:qH("0x0"),minute:"numeric"})):void 0;var n,i})),this.set("isSelected",!1),this[iG("0xe")](iG("0x24"),!1),this[iG("0xe")](iG("0x1c"),!1),this[iG("0xe")](iG("0x2a"),!1),this[iG("0xe")](iG("0xc"),!1),this[iG("0x2")]=new NH(t,xl),this.revisionNameView[iG("0xf")][iG("0x17")]({attributes:{maxlength:"220"}}),this[iG("0x2")][iG("0xf")][iG("0x20")](iG("0x19"),"placeholder").to(this,"name",iG("0x21")),this[iG("0x2")][iG("0x20")]("isEnabled").to(this,iG("0x8"),this,"isEnabled",((t,e)=>t&&e)),this[iG("0x27")]=n&&n[iG("0x2c")]?function(t,e){const n=t[$H("0x8")],i=t[$H("0xc")],o=dl(i);o[$H("0x3")]="sw";const r=function(t,e){const n=function(t,e){const n=t[$H("0xc")],i={"Compare against selected":uU(n,$H("0x14")),"Name this revision":uU(n,$H("0x11")),"Restore this revision":uU(n,"Restore this revision")};return e.map((t=>{const e=i[t[$H("0x1a")]];return e&&e!==t[$H("0x1a")]&&(t.name=e),t}))}(t,e),i=new Uu.Collection;for(const e of n){const n={type:$H("0x16"),model:new Qd({label:e[$H("0x1a")],class:e.class,withText:!0,_action:e[$H("0x5")]})};n[$H("0x7")][$H("0x19")]($H("0x4")).to(t,$H("0xb"),(n=>$H("0x13")!=typeof e[$H("0x4")]||!n||e[$H("0x4")](t))),i[$H("0x12")](n)}return i}(t,e);return t[$H("0x19")]($H("0xb")).to(o,"isOpen"),o[$H("0x1")].set({label:uU(i,$H("0xe")),tooltip:!0,tooltipPosition:"sw",icon:Uc[$H("0x6")]}),o[$H("0x18")]({attributes:{class:[$H("0x2"),n.if($H("0xb"),$H("0xa"))]},on:{click:n.to((t=>t[$H("0x17")]()))}}),o.on("execute",(e=>{t[$H("0x1b")]&&"function"==typeof e[$H("0x0")][$H("0xd")]&&e[$H("0x0")][$H("0xd")](t)})),ml(o,r),o.listenTo(t,$H("0x15"),((n,i,r)=>{if(r)for(const n of o[$H("0x10")].items){const i=n.children.first,o=e[$H("0x9")]((t=>t[$H("0x5")]===i[$H("0xd")]))[$H("0xf")];n[$H("0xf")]=void 0===o||o(t)}})),o}(this,n):"",this.revisionActionsView&&this.revisionActionsView.bind(iG("0xc")).to(this),this[iG("0xa")]({tag:"div",attributes:{class:["ck",iG("0x22"),iG("0xd"),i.if(iG("0x1a"),iG("0x2b"))]},children:[{tag:iG("0x1b"),attributes:{class:["ck",iG("0x22"),"ck-revision-history-sidebar__revision",i.if(iG("0xc"),iG("0x16"),(t=>!t)),i.if(iG("0x8"),iG("0x11")),i.if(iG("0x24"),iG("0x12")),i.if(iG("0x1c"),iG("0x2d"))]},children:[this[iG("0x2")],{tag:iG("0x6"),attributes:{class:["ck",iG("0x3")]},children:[{text:i.to(iG("0x21"))}]},{tag:iG("0x1b"),attributes:{class:["ck",iG("0x13")]},children:[{tag:"ul",attributes:{class:["ck","ck-revision-history-sidebar__revision-authors"]},children:o}]},this[iG("0x27")]],on:{click:i.to((t=>{t[iG("0x10")][iG("0x23")](iG("0x18"))||this[iG("0x2a")]&&this[iG("0xc")]&&this[iG("0xb")](iG("0x14"),{id:this.id})}))}}]})}render(){super[iG("0x1d")]();const t=this[iG("0x2")].fieldView[iG("0x4")];this.listenTo(t,iG("0x7"),(()=>{this[iG("0xb")](iG("0x1"),{id:this.id,name:t[iG("0x19")]})}))}select(){this[iG("0x8")]=!0}[iG("0x28")](){this[iG("0x8")]=!1}[iG("0x9")](){this[iG("0x24")]=!0}[iG("0x1f")](){this[iG("0x24")]=!1}}var rG=__webpack_require__(9490);const sG=["fromJSDate","setLocale","toRelativeCalendar","startOf","minus","week","toJSDate","hasSame","weekdayLong","year","local","day"];var aG,cG;aG=sG,cG=162,function(t){for(;--t;)aG.push(aG.shift())}(++cG);const lG=function(t,e){return sG[t-=0]};function dG(t,e){const n=rG.ou[lG("0x6")](t)[lG("0x7")](e),i=rG.ou[lG("0x4")](),o=i[lG("0xa")]({days:1})[lG("0x9")]("day");let r,s;return n[lG("0x1")](i,"day")?(r=n[lG("0x9")]("day")[lG("0x0")](),s=n[lG("0x8")]()):n[lG("0x1")](o,lG("0x5"))?(r=o[lG("0x0")](),s=n[lG("0x8")]()):n.hasSame(i,lG("0xb"))?(r=n[lG("0x9")](lG("0xb")).toJSDate(),s=n[lG("0x2")]||""):n.hasSame(i,lG("0x3"))?(r=n[lG("0x9")]("month")[lG("0x0")](),s=n.monthLong||""):(r=n[lG("0x9")](lG("0x3")).toJSDate(),s=String(n.year)),{startDate:r,localizedPeriodName:s}}var uG=__webpack_require__(2387),hG={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(uG.Z,hG);uG.Z.locals;const mG=["delegate","select","_revisionActions","addRevision","removeRevision","remove","setName","locale","add","revisionViews","span","ck-revision-history-sidebar__time-period__revisions","find","createCollection","ck-revision-history-sidebar__time-period__label","div","localizedPeriodName","setTemplate"];var gG,pG;gG=mG,pG=125,function(t){for(;--t;)gG.push(gG.shift())}(++pG);const fG=function(t,e){return mG[t-=0]};class xG extends u{constructor(t,e,n){super(t);const i=dG(e,this.locale.uiLanguage)[fG("0x11")];this.startDate=e,this[fG("0xa")]=this[fG("0xe")](),this[fG("0x3")]=n,this[fG("0xa")].delegate(fG("0x2")).to(this),this[fG("0xa")][fG("0x1")](fG("0x7")).to(this),this[fG("0x0")]({tag:fG("0x10"),attributes:{class:["ck","ck-revision-history-sidebar__time-period"]},children:[{tag:fG("0xb"),attributes:{class:["ck",fG("0xf")]},children:[{text:i}]},{tag:fG("0x10"),attributes:{class:["ck",fG("0xc")]},children:this[fG("0xa")]}]})}[fG("0x4")](t){const e=new oG(this[fG("0x8")],t,this[fG("0x3")]);this.revisionViews[fG("0x9")](e)}[fG("0x5")](t){const e=this.revisionViews[fG("0xd")]((e=>e.id===t.id));this.revisionViews[fG("0x6")](e)}}var bG=__webpack_require__(8769),kG={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(bG.Z,kG);bG.Z.locals;const wG=["ck-revision-history-sidebar__header__label","Revision history","ck-reset_all","span","history","setTemplate","div","content"];var AG,_G;AG=wG,_G=319,function(t){for(;--t;)AG.push(AG.shift())}(++_G);const vG=function(t,e){return wG[t-=0]};class CG extends u{constructor(t){super(t);const e=new j;e[vG("0x0")]=Uc[vG("0x5")],this[vG("0x6")]({tag:vG("0x7"),attributes:{class:["ck",vG("0x3"),"ck-revision-history-sidebar__header"]},children:[e,{tag:vG("0x4"),attributes:{class:["ck",vG("0x1")]},children:[uU(t,vG("0x2"))]}]})}}var yG=__webpack_require__(4708),EG={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(yG.Z,EG);yG.Z.locals;const IG=["unhighlight","fire","ck-rounded-corners","select","highlightRevisions","_revisions","_addRevision","_removeRevision","some","ck-disabled","uiLanguage","highlight","bindTemplate","ck-revision-history-sidebar","timePeriodViews","selectRevision","render","map","setName","ck-reset","delegate","startDate","add","locale","createdAt","remove","revisionViews","revisionSelected","ck-revision-history-sidebar__timeline","div","find","getTime","removeRevision","flat","deselect","_revisionActions","isEnabled","revisionSetName","_getTimePeriodViewByStartDate","get"];var SG,TG;SG=IG,TG=278,function(t){for(;--t;)SG.push(SG.shift())}(++TG);const DG=function(t,e){return IG[t-=0]};class MG extends u{constructor(t,e,n){super(t);const i=this[DG("0xe")];this[DG("0x10")]=this.createCollection(),this.timePeriodViews[DG("0x16")](DG("0x5")).to(this),this.timePeriodViews[DG("0x16")](DG("0x14")).to(this),this._revisions=e,this[DG("0x25")]=n,this.on(DG("0x5"),((t,e)=>{this[DG("0x3")](DG("0x1d"),e)})),this.on(DG("0x14"),((t,e)=>{this.fire(DG("0x27"),e)})),this.set(DG("0x26"),!1),this.setTemplate({tag:"div",attributes:{class:["ck",DG("0x15"),DG("0x4"),DG("0xf")]},children:[new CG(t),{tag:DG("0x1f"),attributes:{class:["ck",DG("0x1e"),i.if(DG("0x26"),DG("0xb"),(t=>!t))]},children:this[DG("0x10")]}]})}[DG("0x12")](){super.render();for(const t of this._revisions)this._addRevision(t);this[DG("0x7")].on(DG("0x18"),((t,e)=>{this[DG("0x8")](e)})),this[DG("0x7")].on(DG("0x1b"),((t,e)=>{this[DG("0x9")](e)}))}get[DG("0x1c")](){return this[DG("0x10")][DG("0x13")]((t=>t[DG("0x1c")][DG("0x13")]((t=>t))))[DG("0x23")]()}[DG("0x11")](t){for(const e of this[DG("0x1c")])t&&t.id===e.id?e.select():e[DG("0x24")]()}[DG("0x6")](t){for(const e of this[DG("0x1c")])t[DG("0xa")]((({id:t})=>t===e.id))?e[DG("0xd")]():e[DG("0x2")]()}[DG("0x8")](t){const e=dG(t.createdAt,this[DG("0x19")].uiLanguage)[DG("0x17")];let n=this.timePeriodViews[DG("0x1")](0);n&&n[DG("0x17")][DG("0x21")]()===e[DG("0x21")]()||(n=new xG(this[DG("0x19")],e,this._revisionActions),this[DG("0x10")].add(n)),n.addRevision(t)}_removeRevision(t){const e=dG(t[DG("0x1a")],this.locale[DG("0xc")]).startDate;this[DG("0x0")](e)[DG("0x22")](t)}[DG("0x0")](t){return this[DG("0x10")][DG("0x20")]((e=>e[DG("0x17")].getTime()===t.getTime()))}}const BG=["compareAgainstSelected","_handleEditorDataReady","ready","length","getRevisionsInDiff","Name this revision","map","revisionHistory.viewerSidebarContainer","_handleRevisionSelected","listenTo","editor","restoreRevisionCallback","get","requires","action","plugins","getLaterVisibleRevision","highlightRevisions","getEarlierVisibleRevision","name","_revisionsRepository","diff","data","isReady","getRevision","render","destroy","_handleRevisionSetName","bind","config","element","timePeriodViews","repository","isSelected","_createRevisionActions","_sidebarView","_revisionViewer","getIndex","nameRevision","pluginName","isVisible","Restore this revision","assign","compare","add","init","defaultRevisionActions","_handleDiffChange","availableRevisionActions","revisionSetName","_revisions","isEnabled","revisionHistory"];var OG,NG;OG=BG,NG=355,function(t){for(;--t;)OG.push(OG.shift())}(++NG);const PG=function(t,e){return BG[t-=0]};class RG extends Yt{static get[PG("0x2")](){return"RevisionsSidebar"}static get[PG("0x1d")](){return[oH]}constructor(t){super(t),this[PG("0x34")]=t[PG("0x1f")][PG("0x1c")](oH),this[PG("0x24")]=this[PG("0x34")].repository,this._sidebarView=null}[PG("0x8")](){const t=this[PG("0x24")][PG("0xd")],e=this[PG("0x32")](),n=this.editor.config.get(PG("0x17"));this._sidebarView=new MG(this[PG("0x1a")].locale,t,e),this[PG("0x33")].on("revisionSelected",this._handleRevisionSelected[PG("0x2c")](this)),this._sidebarView.on(PG("0xc"),this._handleRevisionSetName.bind(this)),this._sidebarView.bind(PG("0xe")).to(this._revisionViewer),this[PG("0x33")][PG("0x2f")].on("add",((t,e)=>{e.revisionViews.on(PG("0x7"),((t,e)=>{e[PG("0x2c")]("isEnabled",PG("0x27")).to(this[PG("0x34")])}))})),this[PG("0x33")][PG("0x29")](),this[PG("0x19")](this[PG("0x1a")][PG("0x26")],PG("0x12"),this[PG("0x11")][PG("0x2c")](this)),this[PG("0x19")](this._revisionViewer,"change:diff",this[PG("0xa")].bind(this)),n.appendChild(this[PG("0x33")].element)}[PG("0x2a")](){this[PG("0x33")][PG("0x2e")].remove(),this[PG("0x33")][PG("0x2a")]()}_handleEditorDataReady(){const t=this[PG("0x24")][PG("0x28")](0);if(t){const e=this[PG("0x24")][PG("0x22")](t.id);this[PG("0x34")][PG("0x6")](t,e)}}[PG("0x18")](t,e){const n=this._revisionsRepository[PG("0x28")](e.id),i=this[PG("0x24")][PG("0x22")](n.id);this._revisionViewer[PG("0x6")](n,i)}[PG("0x2b")](t,e){this._revisionsRepository.getRevision(e.id).setName(e[PG("0x23")])}[PG("0xa")](t,e,n){const i=this._revisionsRepository[PG("0x14")](n);i[PG("0x13")]>2?(this[PG("0x33")][PG("0x21")](i),this[PG("0x33")].selectRevision(null)):(this[PG("0x33")][PG("0x21")]([]),this[PG("0x33")].selectRevision(i[0]))}[PG("0x32")](){const t=this[PG("0x1a")],e=RG[PG("0xb")],n=t[PG("0x2d")].get("revisionHistory.revisionActions")||RG[PG("0x9")];if(n[PG("0x13")])return n[PG("0x16")]((n=>{const i="string"==typeof n?Object[PG("0x5")]({},e[n]):n;return i[PG("0x1e")]=i[PG("0x1e")][PG("0x2c")](this,t),i[PG("0x3")]&&(i[PG("0x3")]=i[PG("0x3")][PG("0x2c")](this,t)),i}))}}RG[PG("0xb")]={compareAgainstSelected:{name:"Compare against selected",action:({plugins:t},e)=>{const n=t[PG("0x1c")](oH),i=n[PG("0x30")];let o=n[PG("0x25")].newRevisionId,r=e.id;i[PG("0x0")](o)>i[PG("0x0")](r)&&([o,r]=[r,o]),n[PG("0x6")](o,r)},isVisible:({plugins:t},e)=>{const n=t.get(oH);return!(n[PG("0x30")][PG("0x14")](n[PG("0x25")])[PG("0x13")]>2||e[PG("0x31")])}},restoreRevision:{name:PG("0x4"),action:(t,{id:e})=>{t[PG("0x2d")].get(PG("0xf"))[PG("0x1b")](e)},isVisible:({plugins:t},e)=>!!t[PG("0x1c")](oH)[PG("0x30")][PG("0x20")](e.id)},nameRevision:{name:PG("0x15"),action:({plugins:t},{id:e,revisionNameView:n})=>{const i=t[PG("0x1c")](oH),o=i[PG("0x30")][PG("0x22")](e);i[PG("0x6")](e,o),n.focus(),n.fieldView.select()}}},RG[PG("0x9")]=[PG("0x10"),"restoreRevision",PG("0x1")];const LG=["stickyPanel","editor","detachDomRoot","attachDomRoot","config","componentFactory","viewportTopOffset","init","element","replace","bind","document","isActive","limiterElement","view","name","editable","_initToolbar","rootName","ready","focusTracker","editing","addToolbar","toolbar","render","_view","isFocused","destroy","_elementReplacer","fire"];var jG,zG;jG=LG,zG=233,function(t){for(;--t;)jG.push(jG.shift())}(++zG);const VG=function(t,e){return LG[t-=0]};class FG extends Vd{get[VG("0x15")](){return this[VG("0x2")]}constructor(t,e){super(t),this._view=e,this._toolbarConfig=Zt(t[VG("0xb")].get(VG("0x0"))),this[VG("0x5")]=new Uu.ElementReplacer}get[VG("0xf")](){return this.view[VG("0xf")]}[VG("0xe")](t){const e=this[VG("0x8")],n=this[VG("0x15")],i=e[VG("0x1c")].view,o=n[VG("0x17")],r=i[VG("0x12")].getRoot();o[VG("0x16")]=r[VG("0x19")],n[VG("0x1")]();const s=o[VG("0xf")];this.setEditableElement(o[VG("0x16")],s),n[VG("0x17")].bind(VG("0x3")).to(this.focusTracker),i[VG("0xa")](s),this._elementReplacer[VG("0x10")](t,this[VG("0xf")]),this[VG("0x18")](),this[VG("0x6")](VG("0x1a"))}[VG("0x4")](){super[VG("0x4")]();const t=this[VG("0x15")],e=this[VG("0x8")][VG("0x1c")][VG("0x15")];this[VG("0x5")].restore(),e[VG("0x9")](t[VG("0x17")][VG("0x16")]),t[VG("0x4")]()}[VG("0x18")](){const t=this.view;t[VG("0x7")][VG("0x11")](VG("0x13")).to(this[VG("0x1b")],VG("0x3")),t[VG("0x7")][VG("0x14")]=t[VG("0xf")],t[VG("0x7")].bind(VG("0xd")).to(this,"viewportOffset",(({top:t})=>t)),t.toolbar.fillFromConfig(this._toolbarConfig,this[VG("0xc")]),this[VG("0x1d")](t.toolbar)}}var UG,HG,GG=["add","shouldToolbarGroupWhenFull","_editable","render","toolbar","editable","content","stickyPanel","top"];UG=GG,HG=372,function(t){for(;--t;)UG.push(UG.shift())}(++HG);var qG=function(t,e){return GG[t-=0]};class WG extends qd{get[qG("0x2")](){return this[qG("0x8")]}constructor(t,e,n={}){super(t),this[qG("0x4")]=new uu(t),this.toolbar=new Kc(t,{shouldGroupWhenFull:n[qG("0x7")]}),this[qG("0x8")]=new Kd(t,e)}render(){super[qG("0x0")](),this[qG("0x4")][qG("0x3")][qG("0x6")](this[qG("0x1")]),this[qG("0x5")][qG("0x6")](this.stickyPanel),this.main[qG("0x6")](this[qG("0x2")])}}const KG=["model","data","editing","locale","updateSourceElement","fire","_ui","create","config","get","document","destroy","initialData","ready","init","createRoot","sourceElement"];var ZG,YG;ZG=KG,YG=224,function(t){for(;--t;)ZG.push(ZG.shift())}(++YG);const JG=function(t,e){return KG[t-=0]};class $G extends(Pc(Rc(Oc))){get ui(){return this[JG("0x3")]}constructor(t,e){super(e),this[JG("0xd")]=t,this[JG("0xe")][JG("0x7")][JG("0xc")]();const n=new WG(this[JG("0x0")],this[JG("0x10")].view,{shouldToolbarGroupWhenFull:!0});this._ui=new FG(this,n)}[JG("0x8")](){return this[JG("0x1")](),this.ui[JG("0x8")](),super[JG("0x8")]()}static async[JG("0x4")](t,e){const n=new this(t,e);return await n.initPlugins(),await n.ui[JG("0xb")](t),await n[JG("0xf")][JG("0xb")](n[JG("0x5")][JG("0x6")](JG("0x9"))||""),n[JG("0x2")](JG("0xa")),n}}const QG=["editor","none","restoreRevision","removeSelectionAttribute","adapter","_restoreRevision","refreshVisibility","includes","revisionHistory.editorContainer","getRevisionRootsAttributes","isReadOnly","plugins","revisionHistory.viewerContainer","revisionHistory.restoreRevisionCallback","_getRevisionViewerEditorConfig","removeMarker","_update","update","RevisionTracker","Annotations","error","revision-history-viewer-opened","revisionHistory","set","bind","toolbar","getRevisions","change","PaginationLookup","isEnabled","enableReadOnlyMode","from","RevisionViewerIntegration","changesNavigation","requires","insert","_cleanUp","isReady","$graveyard","isAnonymous","init","_enhanceShowRevisionViewerCallback","create","has","_enhanceCloseRevisionViewerCallback","result","RevisionViewer","define","createdAt","data","_showRevisionViewer","_recalculatePageBreaks","toJSON","refreshPositioning","disableReadOnlyMode","RevisionHistory","isAttached","revisionHistory.showRevisionViewerCallback","setAttribute","toLocaleTimeString","get","showRevisionViewerCallback","removeAttribute","revisionHistory.viewerEditorElement","parse","toLocaleDateString","remove","pluginName","addRevisionData","repository","model","push","enqueueChange","uiLanguage","getUser","Restored","fromVersion","keys","addRoot","style","rootName","lazyRoots","revisionHistory.closeRevisionViewerCallback","setSelection","then","getRevisionData","Users","RevisionsRepository","_closeRevisionViewer","getAttributeKeys","indexOf","name","commands","getMarkersGroup","revision-history-missing-configuration","catch","users","closeRevisionViewerCallback","saveRevision","RestrictedEditingMode","display","numeric","toVersion","locale","config","document","createRangeIn","getRevision","_viewerEditor","Autosave"];var XG,tq;XG=QG,tq=132,function(t){for(;--t;)XG.push(XG.shift())}(++tq);const eq=function(t,e){return QG[t-=0]},nq=["RevisionHistoryUI",eq("0x4d")];class iq extends Yt{static get[eq("0x2d")](){return eq("0xa")}constructor(t){super(t),this[eq("0x17")]="end"}}class oq extends Yt{static get[eq("0x2d")](){return eq("0x21")}static get[eq("0xc")](){return[xU,PU]}constructor(t){if(super(t),!this[eq("0x58")][eq("0x52")][eq("0x26")]("revisionHistory"))throw new Uu.CKEditorError(eq("0x48"),this);this[eq("0x56")]=null,this[eq("0x58")][eq("0x52")].define(eq("0x23"),(t=>this._showRevisionViewer(t))),this[eq("0x58")].config[eq("0x19")](eq("0x3c"),(t=>this[eq("0x42")](t))),this[eq("0x58")][eq("0x52")][eq("0x19")](eq("0x65"),(t=>this._restoreRevision(t))),this[eq("0x13")](),this[eq("0x16")]()}set[eq("0x5c")](t){this[eq("0x58")][eq("0x63")][eq("0x26")](eq("0x6a"))[eq("0x5c")]=t}get adapter(){return this.editor.plugins.get(eq("0x6a")).adapter}addRevisionData(t){return this[eq("0x58")][eq("0x63")][eq("0x26")](eq("0x6a"))[eq("0x2e")](t)}[eq("0x55")](t){return this.editor[eq("0x63")][eq("0x26")](eq("0x41"))[eq("0x55")](t)}getRevisions(t={toJSON:!1}){return this[eq("0x58")][eq("0x63")].get(eq("0x41"))[eq("0x4")](t)}[eq("0x66")](){const t=this[eq("0x58")],e=cA(t,nq),n=t[eq("0x63")].get(eq("0x6a")),i=t[eq("0x63")].get(eq("0x40"))[eq("0x4a")];return e[eq("0x3")]=["exitToEditing",eq("0x5a"),eq("0xb")],delete e[eq("0x3b")],e[eq("0x63")][eq("0x31")](iq,oH,IH,class extends Yt{static get[eq("0xc")](){return[oH,eq("0x40")]}[eq("0x12")](){const e=this[eq("0x58")][eq("0x63")][eq("0x26")](eq("0x40"));for(const t of i)t[eq("0x11")]||e[eq("0x34")](t.id)||e.addUser(t);const o=n[eq("0x2f")][eq("0x4")]();let r=null;const s=this[eq("0x58")][eq("0x63")][eq("0x26")](eq("0x18"));s[eq("0x5c")]=n[eq("0x5c")],s.bind(eq("0x7")).to(n),this[eq("0x58")][eq("0x46")][eq("0x26")](eq("0x5a"))[eq("0x2")]("isEnabled").to(t,eq("0x62"),(t=>!t));for(const t of o){const e=null===t.creator;if(e&&t[eq("0x50")]===t[eq("0x36")])continue;const i=t[eq("0x1e")]();s[eq("0x2e")](i,((i,o,s)=>{if(e){if(r)r[eq("0x68")](i,o);else if(!o){const t=s[eq("0x1e")]();t.id=(0,Uu.uid)(),n[eq("0x4c")](t,s[eq("0x50")])[eq("0x3e")]((t=>{r=t}))}}else t._update(i,o)}))}}},RG),e}[eq("0x13")](){const t=this.editor[eq("0x52")][eq("0x26")](eq("0x0"))[eq("0x27")];this.editor[eq("0x52")].set(eq("0x23"),(async()=>{this.editor[eq("0x8")]("revision-history-viewer-opened");const e=this[eq("0x58")].plugins[eq("0x26")](eq("0x6a"));if(this[eq("0x58")][eq("0x63")][eq("0x15")](eq("0x57"))){const t=this.editor.plugins[eq("0x26")](eq("0x57"));await t.save()}else await e[eq("0x69")]();this[eq("0x58")][eq("0x63")][eq("0x15")](eq("0x6"))&&this[eq("0x58")][eq("0x63")][eq("0x26")](eq("0x6"))[eq("0x1d")]();const n=this[eq("0x66")]();return t(n)[eq("0x3e")]((t=>(this._viewerEditor=t,this[eq("0x58")].plugins.has(eq("0x6b"))&&this[eq("0x58")][eq("0x63")][eq("0x26")]("Annotations").refreshVisibility(),t)))[eq("0x49")]((t=>(console[eq("0x6c")](t),this.editor[eq("0x20")](eq("0x6d")),null)))}))}_enhanceCloseRevisionViewerCallback(){const t=this[eq("0x58")][eq("0x52")][eq("0x26")](eq("0x0"))[eq("0x4b")];this[eq("0x58")].config[eq("0x1")](eq("0x3c"),(()=>(this[eq("0x58")][eq("0x63")][eq("0x15")](eq("0x6"))&&this[eq("0x58")][eq("0x63")].get(eq("0x6"))[eq("0x1d")](),this[eq("0x56")].plugins.get(eq("0x18"))[eq("0xe")](),t(this._viewerEditor)[eq("0x3e")]((()=>{if(this[eq("0x58")][eq("0x20")](eq("0x6d")),this[eq("0x56")]=null,this[eq("0x58")][eq("0x63")].has(eq("0x6b"))){const t=this[eq("0x58")][eq("0x63")][eq("0x26")](eq("0x6b"));t[eq("0x5e")](),t[eq("0x1f")]()}})))))}[eq("0x1c")](t){const e=this[eq("0x58")][eq("0x52")][eq("0x26")](eq("0x60")),n=this[eq("0x58")][eq("0x52")].get("revisionHistory.viewerContainer"),i=this[eq("0x58")][eq("0x52")].get(eq("0x29"));return $G[eq("0x14")](i,t)[eq("0x3e")]((t=>(n[eq("0x39")][eq("0x4e")]="block",e[eq("0x39")].display=eq("0x59"),t)))}[eq("0x42")](t){const e=this[eq("0x58")].config[eq("0x26")]("revisionHistory.editorContainer");return this[eq("0x58")].config[eq("0x26")](eq("0x64")).style[eq("0x4e")]=eq("0x59"),e[eq("0x39")][eq("0x4e")]="",t.destroy()}async[eq("0x5d")](t){const e=this[eq("0x58")],n=this[eq("0x56")][eq("0x63")][eq("0x26")](eq("0x18")),i=e[eq("0x63")][eq("0x26")](eq("0x6a")),o=n.repository.getRevision(t);let r,s,a;try{r=await n[eq("0x3f")](o),s=await n[eq("0x61")](o)}catch(t){return void console[eq("0x6c")](t)}e.model[eq("0x5")]((t=>{for(const n of Array[eq("0x9")](e.model.markers[eq("0x47")]("restrictedEditingException")))t[eq("0x67")](n)})),n[eq("0xf")]=!1,e.model[eq("0x32")]((t=>{t[eq("0x3d")](null),t[eq("0x5b")](e[eq("0x30")][eq("0x53")].selection.getAttributeKeys());const n=Object[eq("0x37")](r);for(const i of e[eq("0x30")][eq("0x53")].roots)eq("0x10")!=i.rootName&&i[eq("0x22")]()&&!n[eq("0x5f")](i[eq("0x3a")])&&t.detachRoot(i);for(const i of n){let n=e.model.document.getRoot(i);n&&n.isAttached()||(n=t[eq("0x38")](i));const o=s[i],a=Object[eq("0x37")](o),c=r[i];for(const e of n[eq("0x43")]())a[eq("0x5f")](e)||t[eq("0x28")](e,n);for(const e of a)t[eq("0x24")](e,s[i][e],n);t[eq("0x2c")](t[eq("0x54")](n)),t[eq("0xd")](e[eq("0x1b")][eq("0x2a")](c,n),n,0)}}));const c=uU(e.locale,eq("0x35"));return a=o[eq("0x45")]?-1==o[eq("0x45")][eq("0x44")](c)?c+": "+o[eq("0x45")]:o[eq("0x45")]:c+": "+o[eq("0x1a")][eq("0x2b")](e[eq("0x51")][eq("0x33")],{month:"long",day:eq("0x4f")})+", "+o[eq("0x1a")][eq("0x25")](e.locale[eq("0x33")],{hour:eq("0x4f"),minute:eq("0x4f")}),await i[eq("0x4c")]({name:a}),n.isReady=!0,e.config[eq("0x26")](eq("0x0")).closeRevisionViewerCallback()}}var rq=__webpack_require__(2353),sq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(rq.Z,sq);rq.Z.locals;class aq extends $t{refresh(){const t=this.editor.model,e=t.document;this.value=!!e.selection.getAttribute("restrictedEditingException"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"restrictedEditingException")}execute(t={}){const e=this.editor.model,n=e.document.selection,i=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{const o=e.schema.getValidRanges(n.getRanges(),"restrictedEditingException");if(n.isCollapsed)if(i)t.setSelectionAttribute("restrictedEditingException",i);else{const e=t=>t.item.getAttribute("restrictedEditingException")===this.value,i=n.focus,o=i.getLastMatchingPosition(e,{direction:"backward"}),r=i.getLastMatchingPosition(e);t.removeSelectionAttribute("restrictedEditingException"),i.isEqual(o)||i.isEqual(r)||t.removeAttribute("restrictedEditingException",t.createRange(o,r))}else for(const e of o)i?t.setAttribute("restrictedEditingException",i,e):t.removeAttribute("restrictedEditingException",e)}))}}class cq extends Yt{static get pluginName(){return"StandardEditingModeEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:["restrictedEditingException"]}),t.conversion.for("upcast").elementToAttribute({model:"restrictedEditingException",view:{name:"span",classes:"restricted-editing-exception"}}),t.conversion.for("downcast").attributeToElement({model:"restrictedEditingException",view:(t,{writer:e})=>{if(t)return e.createAttributeElement("span",{class:"restricted-editing-exception"},{priority:-10})}}),t.commands.add("restrictedEditingException",new aq(t)),t.editing.view.change((e=>{for(const n of t.editing.view.document.roots)e.addClass("ck-restricted-editing_mode_standard",n)}))}}class lq extends Yt{static get pluginName(){return"StandardEditingModeUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("restrictedEditingException",(n=>{const i=t.commands.get("restrictedEditingException"),o=new U(n);return o.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.25 16a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5h5.5zm0-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5h5.5zm3-5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5h8.5zm6-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 0 1 0-1.5h14.5zm.25 5.5a3.5 3.5 0 0 1 3.143 1.959.75.75 0 0 1-1.36.636A2 2 0 0 0 13.5 10v2H19a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-2l.005-.192A3.5 3.5 0 0 1 15.5 6.5zm0 7.5a.5.5 0 0 0-.492.41L15 14.5v2a.5.5 0 0 0 .992.09L16 16.5v-2a.5.5 0 0 0-.5-.5z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),o.bind("label").to(i,"value",(t=>e(t?"Disable editing":"Enable editing"))),this.listenTo(o,"execute",(()=>{t.execute("restrictedEditingException"),t.editing.view.focus()})),o}))}}class dq extends Yt{static get pluginName(){return"StandardEditingMode"}static get requires(){return[cq,lq]}}class uq extends $t{constructor(t){super(t),this.affectsData=!1,this.value=!1}execute(){const t="ck-show-blocks",e=this.editor.editing.view;e.change((n=>{for(const i of e.document.roots)i.hasClass(t)?(n.removeClass(t,i),this.value=!1):(n.addClass(t,i),this.value=!0)}))}}class hq extends Yt{static get pluginName(){return"ShowBlocksEditing"}init(){const{editor:t}=this;t.commands.add("showBlocks",new uq(t))}}var mq=__webpack_require__(7864),gq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(mq.Z,gq);mq.Z.locals;class pq extends Yt{static get pluginName(){return"ShowBlocksUI"}init(){const t=this.editor;t.ui.componentFactory.add("showBlocks",(e=>{const n=t.commands.get("showBlocks"),i=new U(e),o=e.t;return i.set({label:o("Show blocks"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m6.395 9.196 2.545-.007V6.498a.598.598 0 0 1 .598-.598h.299a.598.598 0 0 1 .598.598v6.877a.598.598 0 0 1-.598.598h-.299a.598.598 0 0 1-.598-.598v-2.691l-2.545.007v2.691a.598.598 0 0 1-.598.598h-.299a.598.598 0 0 1-.598-.598V6.505a.598.598 0 0 1 .598-.598h.299a.598.598 0 0 1 .598.598v2.691Z"/><path d="M15.094 13.417V6.462a.562.562 0 0 0-.562-.562h-.782a1 1 0 0 0-.39.08l-1.017.43a.562.562 0 0 0-.343.517v.197c0 .4.406.67.775.519l.819-.337v6.111c0 .31.251.562.561.562h.377c.31 0 .562-.251.562-.562Z"/><path d="M0 15.417v1.5h1.5v-1.5H0Z"/><path d="M18.5 15.417v1.5H20v-1.5h-1.5Z"/><path d="M18.5 12.333v1.5H20v-1.5h-1.5Z"/><path d="M18.5 9.25v1.5H20v-1.5h-1.5Z"/><path d="M18.5 6.167v1.5H20v-1.5h-1.5Z"/><path d="M0 18.5v.5a1 1 0 0 0 1 1h.5v-1.5H0Z"/><path d="M3.083 18.5V20h1.5v-1.5h-1.5Z"/><path d="M6.167 18.5V20h1.5v-1.5h-1.5Z"/><path d="M9.25 18.5V20h1.5v-1.5h-1.5Z"/><path d="M12.333 18.5V20h1.5v-1.5h-1.5Z"/><path d="M15.417 18.5V20h1.5v-1.5h-1.5Z"/><path d="M18.5 18.5V20h.5a1 1 0 0 0 1-1v-.5h-1.5Z"/><path clip-rule="evenodd" d="M0 1a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v3.583h-1.5V1.5h-17v12.333H0V1Z"/></svg>',tooltip:!0}),i.bind("isOn").to(n,"value",n,"isEnabled",((t,e)=>t&&e)),i.bind("isEnabled").to(n),this.listenTo(i,"execute",(()=>{t.execute("showBlocks"),t.editing.view.focus()})),i}))}}class fq extends Yt{static get pluginName(){return"ShowBlocks"}static get requires(){return[hq,pq]}}class xq extends U{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 u(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 bq=__webpack_require__(3875),kq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(bq.Z,kq);bq.Z.locals;class wq extends u{constructor(t,e){super(t),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const n of e){const e=new xq(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);o({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 Aq=__webpack_require__(9545),_q={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Aq.Z,_q);Aq.Z.locals;class vq extends u{constructor(t,e,n){super(t),this.labelView=new Ct(t),this.labelView.text=e,this.gridView=new wq(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 Cq=__webpack_require__(6746),yq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Cq.Z,yq);Cq.Z.locals;class Eq extends u{constructor(t,e){super(t);const n=t.t;this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.children=this.createCollection(),this.blockStylesGroupView=new vq(t,n("Block styles"),e.block),this.inlineStylesGroupView=new vq(t,n("Text styles"),e.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new s,this._focusCycler=new Gt({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 Iq=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class Sq extends Yt{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 i of e){const e=[],o=[];for(const n of t.getDefinitionsForView(i.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 o.push(n.model)}const r=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);e.length?n.block.push({...i,previewTemplate:r,modelElements:e,isBlock:!0}):n.inline.push({...i,previewTemplate:r,ghsAttributes:o})}return n}isStyleEnabledForBlock(t,e){const n=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(t.element);return!!n.schema.checkAttribute(e,i)&&t.modelElements.includes(e.name)}isStyleActiveForBlock(t,e){const n=this._htmlSupport.getGhsAttributeNameForElement(t.element),i=e.getAttribute(n);return this.hasAllClasses(i,t.classes)}getAffectedBlocks(t,e){return t.modelElements.includes(e.name)?[e]:null}isStyleEnabledForInlineSelection(t,e){const n=this.editor.model;for(const i of t.ghsAttributes)if(n.schema.checkAttributeInSelection(e,i))return!0;return!1}isStyleActiveForInlineSelection(t,e){for(const n of t.ghsAttributes){const i=this._getValueFromFirstAllowedNode(e,n);if(this.hasAllClasses(i,t.classes))return!0}return!1}getAffectedInlineSelectable(t,e){return e}getStylePreview(t,e){const{element:n,classes:i}=t;return{tag:(o=n,Iq.includes(o)?"div":n),attributes:{class:i},children:e};var o}hasAllClasses(t,e){return(0,m.Z)(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(Tq)),n.loadAllowedConfig(e.map(Tq))}_getValueFromFirstAllowedNode(t,e){const n=this.editor.model.schema;if(t.isCollapsed)return t.getAttribute(e);for(const i of t.getRanges())for(const t of i.getItems())if(n.checkAttribute(t,e))return t.getAttribute(e);return null}}function Tq({element:t,classes:e}){return{name:t,classes:e}}var Dq=__webpack_require__(2844),Mq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Dq.Z,Mq);Dq.Z.locals;class Bq extends Yt{static get pluginName(){return"StyleUI"}static get requires(){return[Sq]}init(){const t=this.editor,e=t.plugins.get("DataSchema"),n=t.plugins.get("StyleUtils"),i=t.config.get("style.definitions"),o=n.normalizeConfig(e,i);t.ui.componentFactory.add("style",(e=>{const n=e.t,i=dl(e),r=t.commands.get("style");return i.once("change:isOpen",(()=>{const t=new Eq(e,o);i.panelView.children.add(t),t.delegate("execute").to(i),t.bind("activeStyles").to(r,"value"),t.bind("enabledStyles").to(r,"enabledStyles")})),i.bind("isEnabled").to(r),i.buttonView.withText=!0,i.buttonView.bind("label").to(r,"value",(t=>t.length>1?n("Multiple styles"):1===t.length?t[0]:n("Styles"))),i.bind("class").to(r,"value",(t=>{const e=["ck-style-dropdown"];return t.length>1&&e.push("ck-style-dropdown_multiple-active"),e.join(" ")})),i.on("execute",(e=>{t.execute("style",{styleName:e.source.styleDefinition.name}),t.editing.view.focus()})),i}))}}class Oq extends $t{constructor(t,e){super(t),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=e,this._styleUtils=this.editor.plugins.get(Sq)}refresh(){const t=this.editor.model,e=t.document.selection,n=new Set,i=new Set;for(const t of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(t,e)&&i.add(t.name),this._styleUtils.isStyleActiveForInlineSelection(t,e)&&n.add(t.name);const o=(0,Uu.first)(e.getSelectedBlocks())||e.getFirstPosition().parent;if(o){const e=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of e){if(o.is("rootElement"))break;for(const t of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(t,o)&&(i.add(t.name),this._styleUtils.isStyleActiveForBlock(t,o)&&n.add(t.name));if(t.schema.isObject(o))break}}this.enabledStyles=Array.from(i).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(0,Uu.logWarning)("style-command-executed-with-incorrect-style-name");const n=this.editor.model,i=n.document.selection,o=this.editor.plugins.get("GeneralHtmlSupport"),r=[...this._styleDefinitions.inline,...this._styleDefinitions.block],s=r.filter((({name:t})=>this.value.includes(t))),a=r.find((({name:e})=>e==t)),c=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]}(i),a):[this._styleUtils.getAffectedInlineSelectable(a,i)];for(const e of t)c?o.addModelHtmlClass(a.element,a.classes,e):o.removeModelHtmlClass(a.element,Nq(s,a),e)}))}_findAffectedBlocks(t,e){const n=new Set;for(const i of t){const t=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const i of t){if(i.is("rootElement"))break;const t=this._styleUtils.getAffectedBlocks(e,i);if(t){for(const e of t)n.add(e);break}}}return n}}function Nq(t,e){return t.reduce(((t,n)=>n.name===e.name?t:t.filter((t=>!n.classes.includes(t)))),e.classes)}class Pq extends Yt{static get pluginName(){return"DocumentListStyleSupport"}static get requires(){return[Sq,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("DocumentListEditing")&&(this._styleUtils=t.plugins.get(Sq),this._documentListUtils=this.editor.plugins.get("DocumentListUtils"),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 i=this._getAffectedBlocks(e,n);i&&(t.return=i,t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",((t,[e,n])=>{const i=this._getStylePreview(e,n);i&&(t.return=i,t.stop())}),{priority:"high"}))}_isStyleEnabledForBlock(t,e){const n=this.editor.model;if(!["ol","ul","li"].includes(t.element))return!1;if(!this._documentListUtils.isListItemBlock(e))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(t.element);if("ol"==t.element||"ul"==t.element){if(!n.schema.checkAttribute(e,i))return!1;const o="numbered"==e.getAttribute("listType")?"ol":"ul";return t.element==o}return n.schema.checkAttribute(e,i)}_isStyleActiveForBlock(t,e){const n=this._htmlSupport.getGhsAttributeNameForElement(t.element),i=e.getAttribute(n);return this._styleUtils.hasAllClasses(i,t.classes)}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?"li"==t.element?this._documentListUtils.expandListBlocksToCompleteItems(e,{withNested:!1}):this._documentListUtils.expandListBlocksToCompleteList(e):null}_getStylePreview(t,e){const{element:n,classes:i}=t;return"ol"==n||"ul"==n?{tag:n,attributes:{class:i},children:[{tag:"li",children:e}]}:"li"==n?{tag:"ol",children:[{tag:n,attributes:{class:i},children:e}]}:null}}class Rq extends Yt{static get pluginName(){return"TableStyleSupport"}static get requires(){return[Sq]}init(){const t=this.editor;t.plugins.has("TableEditing")&&(this._styleUtils=t.plugins.get(Sq),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),i=e.parent.parent,o=i.getAttribute("headingRows")||0,r=i.getAttribute("headingColumns")||0,s=n.row<o||n.column<r;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 Lq extends Yt{static get pluginName(){return"LinkStyleSupport"}static get requires(){return[Sq,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("LinkEditing")&&(this._styleUtils=t.plugins.get(Sq),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 i=this._getAffectedSelectable(e,n);i&&(t.return=i,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,i=this._htmlSupport.getGhsAttributeNameForElement(t.element);if(e.isCollapsed){if(e.hasAttribute("linkHref")){const n=e.getAttribute(i);if(this._styleUtils.hasAllClasses(n,t.classes))return!0}return!1}for(const o of e.getRanges())for(const e of o.getItems())if((e.is("$textProxy")||n.schema.isInline(e))&&e.hasAttribute("linkHref")){const n=e.getAttribute(i);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 hf(e.getFirstPosition(),"linkHref",t,n)}const i=[];for(const t of e.getRanges()){const e=n.createRange(jq(t.start,"linkHref",!0,n),jq(t.end,"linkHref",!1,n));for(const t of e.getItems())(t.is("$textProxy")||n.schema.isInline(t))&&t.hasAttribute("linkHref")&&i.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}(i)}}function jq(t,e,n,i){const o=t.textNode||(n?t.nodeAfter:t.nodeBefore);if(!o||!o.hasAttribute(e))return t;return mf(t,e,o.getAttribute(e),n,i)}class zq extends Yt{static get pluginName(){return"StyleEditing"}static get requires(){return["GeneralHtmlSupport",Sq,Pq,Rq,Lq]}init(){const t=this.editor,e=t.plugins.get("DataSchema"),n=t.plugins.get("StyleUtils"),i=t.config.get("style.definitions"),o=n.normalizeConfig(e,i);t.commands.add("style",new Oq(t,o)),n.configureGHSDataFilter(o)}}class Vq extends Yt{static get pluginName(){return"Style"}static get requires(){return[zq,Bq]}}function Fq(t){const e=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=e.map((t=>t.name)).join("|"),i=t.replace(new RegExp(`</?(${n})( .*?)?>`,"g"),"\n$&\n").replace(/<br[^>]*>/g,"$&\n").split("\n");let o=0;return i.filter((t=>t.length)).map((t=>function(t,e){return e.some((e=>!e.isVoid&&!!new RegExp(`<${e.name}( .*?)?>`).test(t)))}(t,e)?Uq(t,o++):function(t,e){return e.some((e=>new RegExp(`</${e.name}>`).test(t)))}(t,e)?Uq(t,--o):Uq(t,o))).join("\n")}function Uq(t,e,n="    "){return`${n.repeat(Math.max(0,e))}${t}`}var Hq=__webpack_require__(671),Gq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Hq.Z,Gq);Hq.Z.locals;const qq="SourceEditingMode";class Wq extends Yt{static get pluginName(){return"SourceEditing"}static get requires(){return[jc]}constructor(t){super(t),this.set("isSourceEditingMode",!1),this._elementReplacer=new Uu.ElementReplacer,this._replacedRoots=new Map,this._dataFromRoots=new Map}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("sourceEditing",(n=>{const i=new U(n);return i.set({label:e("Source"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),i.bind("isOn").to(this,"isSourceEditingMode"),i.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(jc),"hasAny",((t,e,n)=>!!t&&(!e&&!n))),this.listenTo(i,"execute",(()=>{this.isSourceEditingMode=!this.isSourceEditingMode})),i})),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",((t,e,n)=>{n?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())})),this.on("change:isEnabled",((t,e,n)=>this._handleReadOnlyMode(!n))),this.listenTo(t,"change:isReadOnly",((t,e,n)=>this._handleReadOnlyMode(n)))),t.data.on("get",(()=>{this.isSourceEditingMode&&this.updateEditorData()}),{priority:"high"})}afterInit(){const t=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some((e=>t.plugins.has(e)))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),t.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}updateEditorData(){const t=this.editor,e={};for(const[t,n]of this._replacedRoots){const i=this._dataFromRoots.get(t),o=n.dataset.value;i!==o&&(e[t]=o,this._dataFromRoots.set(t,o))}Object.keys(e).length&&t.data.set(e,{batchType:{isUndoable:!0}})}_showSourceEditing(){const t=this.editor,e=t.editing.view,n=t.model;n.change((t=>{t.setSelection(null),t.removeSelectionAttribute(n.document.selection.getAttributeKeys())}));for(const[n,i]of e.domRoots){const o=Kq(t.data.get({rootName:n})),r=(0,Uu.createElement)(i.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),s=(0,Uu.createElement)(i.ownerDocument,"div",{class:"ck-source-editing-area","data-value":o},[r]);r.value=o,r.setSelectionRange(0,0),r.addEventListener("input",(()=>{s.dataset.value=r.value,t.ui.update()})),e.change((t=>{const i=e.document.getRoot(n);t.addClass("ck-hidden",i)})),t.ui.setEditableElement("sourceEditing:"+n,r),this._replacedRoots.set(n,s),this._elementReplacer.replace(i,s),this._dataFromRoots.set(n,o)}this._focusSourceEditing()}_hideSourceEditing(){const t=this.editor.editing.view;this.updateEditorData(),t.change((e=>{for(const[n]of this._replacedRoots)e.removeClass("ck-hidden",t.document.getRoot(n))})),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),t.focus()}_focusSourceEditing(){const t=this.editor,[e]=this._replacedRoots.values(),n=e.querySelector("textarea");t.editing.view.document.isFocused=!1,n.focus()}_disableCommands(){const t=this.editor;for(const e of t.commands.commands())e.forceDisabled(qq)}_enableCommands(){const t=this.editor;for(const e of t.commands.commands())e.clearForceDisabled(qq)}_handleReadOnlyMode(t){if(this.isSourceEditingMode)for(const[,e]of this._replacedRoots)e.querySelector("textarea").readOnly=t}_isAllowedToHandleSourceEditingMode(){const t=this.editor.ui.view.editable;return t&&!t.hasExternalElement}}function Kq(t){return function(t){return t.startsWith("<")}(t)?Fq(t):t}class Zq extends Jd{constructor(t,e){super(t);const n=t.t;this.set("class","ck-special-characters-navigation"),this.groupDropdownView=this._createGroupDropdown(e),this.groupDropdownView.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",this.label=n("Special characters"),this.children.add(this.groupDropdownView)}get currentGroupName(){return this.groupDropdownView.value}focus(){this.groupDropdownView.focus()}_createGroupDropdown(t){const e=this.locale,n=e.t,i=dl(e),o=this._getCharacterGroupListItemDefinitions(i,t),r=n("Character categories");return i.set("value",o.first.model.name),i.buttonView.bind("label").to(i,"value",(e=>t.get(e))),i.buttonView.set({isOn:!1,withText:!0,tooltip:r,class:["ck-dropdown__button_label-width_auto"],ariaLabel:r,ariaLabelledBy:void 0}),i.on("execute",(t=>{i.value=t.source.name})),i.delegate("execute").to(this),ml(i,o,{ariaLabel:r,role:"menu"}),i}_getCharacterGroupListItemDefinitions(t,e){const n=new Uu.Collection;for(const[i,o]of e){const e=new Qd({name:i,label:o,withText:!0,role:"menuitemradio"});e.bind("isOn").to(t,"value",(t=>t===e.name)),n.add({type:"button",model:e})}return n}}var Yq=__webpack_require__(4046),Jq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Yq.Z,Jq);Yq.Z.locals;class $q extends u{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 Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,o({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>Uu.global.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(t,e){const n=new U(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 Qq=__webpack_require__(6158),Xq={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(Qq.Z,Xq);Qq.Z.locals;class tW extends u{constructor(t){super(t);const e=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",eW),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 eW(t){if(null===t)return"";return"U+"+("0000"+t.codePointAt(0).toString(16)).slice(-4)}class nW extends u{constructor(t,e,n,i){super(t),this.navigationView=e,this.gridView=n,this.infoView=i,this.items=this.createCollection(),this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this._focusCycler=new Gt({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.navigationView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.navigationView.groupDropdownView.buttonView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.navigationView.groupDropdownView.buttonView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.navigationView.focus()}}var iW=__webpack_require__(8170),oW={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(iW.Z,oW);iW.Z.locals;const rW="All";class sW extends Yt{static get requires(){return[Kp]}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,e=t.t,n=t.commands.get("insertText");t.ui.componentFactory.add("specialCharacters",(i=>{const o=dl(i);let r;return o.buttonView.set({label:e("Special characters"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(n),o.on("execute",((e,n)=>{t.execute("insertText",{text:n.character}),t.editing.view.focus()})),o.on("change:isOpen",(()=>{if(!r){r=this._createDropdownPanelContent(i,o);const t=new nW(i,r.navigationView,r.gridView,r.infoView);o.panelView.children.add(t)}r.infoView.set({character:null,name:null})})),o}))}addItems(t,e,n={label:t}){if(t===rW)throw new Uu.CKEditorError("special-character-invalid-group-name",null);const i=this._getGroup(t,n.label);for(const t of e)i.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 Uu.CKEditorError("special-character-invalid-order-group-name",null,{invalidGroup:n});return new Set([...e,...t])}getCharactersForGroup(t){if(t===rW)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,e){const n=Array.from(this.getGroups()).map((t=>[t,this._groups.get(t).label])),i=new Map([[rW,this._allSpecialCharactersGroupLabel],...n]),o=new Zq(t,i),r=new $q(t),s=new tW(t);return r.delegate("execute").to(e),r.on("tileHover",((t,e)=>{s.set(e)})),r.on("tileFocus",((t,e)=>{s.set(e)})),o.on("execute",(()=>{this._updateGrid(o.currentGroupName,r)})),this._updateGrid(o.currentGroupName,r),{navigationView:o,gridView:r,infoView:s}}}class aW extends Yt{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 cW extends Yt{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 lW extends Yt{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 dW extends Yt{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 uW extends Yt{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")})}}class hW extends Yt{static get pluginName(){return"SpecialCharactersEssentials"}static get requires(){return[uW,cW,lW,aW,dW]}}function mW(t,e){const{modelAttribute:n,styleName:i,viewElement:o,defaultValue:r,reduceBoxSides:s=!1,shouldUpcast:a=(()=>!0)}=e;t.for("upcast").attributeToAttribute({view:{name:o,styles:{[i]:/[\s\S]+/}},model:{key:n,value:t=>{if(!a(t))return;const e=t.getNormalizedStyle(i),n=s?xW(e):e;return r!==n?n:void 0}}})}function gW(t,e,n,i){t.for("upcast").add((t=>t.on("element:"+e,((t,e,o)=>{if(!e.modelRange)return;const r=["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(!r.length)return;const s={styles:r};if(!o.consumable.test(e.viewItem,s))return;const a=[...e.modelRange.getItems({shallow:!0})].pop();o.consumable.consume(e.viewItem,s);const c={style:e.viewItem.getNormalizedStyle("border-style"),color:e.viewItem.getNormalizedStyle("border-color"),width:e.viewItem.getNormalizedStyle("border-width")},l={style:xW(c.style),color:xW(c.color),width:xW(c.width)};l.style!==i.style&&o.writer.setAttribute(n.style,l.style,a),l.color!==i.color&&o.writer.setAttribute(n.color,l.color,a),l.width!==i.width&&o.writer.setAttribute(n.width,l.width,a)}))))}function pW(t,e){const{modelElement:n,modelAttribute:i,styleName:o}=e;t.for("downcast").attributeToAttribute({model:{name:n,key:i},view:t=>({key:"style",value:{[o]:t}})})}function fW(t,e){const{modelAttribute:n,styleName:i}=e;t.for("downcast").add((t=>t.on(`attribute:${n}:table`,((t,e,n)=>{const{item:o,attributeNewValue:r}=e,{mapper:s,writer:a}=n;if(!n.consumable.consume(e.item,t.name))return;const c=[...s.toViewElement(o).getChildren()].find((t=>t.is("element","table")));r?a.setStyle(i,r,c):a.removeStyle(i,c)}))))}function xW(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 bW(t,e,n,i,o=1){null!=e&&null!=o&&e>o?i.setAttribute(t,e,n):i.removeAttribute(t,n)}function kW(t,e,n={}){const i=t.createElement("tableCell",n);return t.insertElement("paragraph",i),t.insert(i,e),i}function wW(t,e){const n=e.parent.parent,i=parseInt(n.getAttribute("headingColumns")||"0"),{column:o}=t.getCellLocation(e);return!!i&&o<i}function AW(t,e,n){const{modelAttribute:i}=n;t.extend("tableCell",{allowAttributes:[i]}),mW(e,{viewElement:/^(td|th)$/,...n}),pW(e,{modelElement:"tableCell",...n})}function _W(t){const e=t.getSelectedElement();return e&&e.is("element","table")?e:t.getFirstPosition().findAncestor("table")}function vW(){return t=>{t.on("element:table",((t,e,n)=>{const i=e.viewItem;if(!n.consumable.test(i,{name:!0}))return;const{rows:o,headingRows:r,headingColumns:s}=function(t){let e,n=0;const i=[],o=[];let r;for(const s of Array.from(t.getChildren())){if("tbody"!==s.name&&"thead"!==s.name&&"tfoot"!==s.name)continue;"thead"!==s.name||r||(r=s);const t=Array.from(s.getChildren()).filter((t=>t.is("element","tr")));for(const a of t)if(r&&s===r||"tbody"===s.name&&Array.from(a.getChildren()).length&&Array.from(a.getChildren()).every((t=>t.is("element","th"))))n++,i.push(a);else{o.push(a);const t=yW(a);(!e||t<e)&&(e=t)}}return{headingRows:n,headingColumns:e||0,rows:[...i,...o]}}(i),a={};s&&(a.headingColumns=s),r&&(a.headingRows=r);const c=n.writer.createElement("table",a);if(n.safeInsert(c,e.modelCursor)){if(n.consumable.consume(i,{name:!0}),o.forEach((t=>n.convertItem(t,n.writer.createPositionAt(c,"end")))),n.convertChildren(i,n.writer.createPositionAt(c,"end")),c.isEmpty){const t=n.writer.createElement("tableRow");n.writer.insert(t,n.writer.createPositionAt(c,"end")),kW(n.writer,n.writer.createPositionAt(t,"end"))}n.updateConversionResult(c,e)}}))}}function CW(t){return e=>{e.on(`element:${t}`,((t,e,{writer:n})=>{if(!e.modelRange)return;const i=e.modelRange.start.nodeAfter,o=n.createPositionAt(i,0);if(e.viewItem.isEmpty)return void n.insertElement("paragraph",o);const r=Array.from(i.getChildren());if(r.every((t=>t.is("element","$marker")))){const t=n.createElement("paragraph");n.insert(t,n.createPositionAt(i,0));for(const e of r)n.move(n.createRangeOn(e),n.createPositionAt(t,"end"))}}),{priority:"low"})}}function yW(t){let e=0,n=0;const i=Array.from(t.getChildren()).filter((t=>"th"===t.name||"td"===t.name));for(;n<i.length&&"th"===i[n].name;){const t=i[n];e+=parseInt(t.getAttribute("colspan")||"1"),n++}return e}class EW{constructor(t,e={}){this._jumpedToStartRow=!1,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 i=parseInt(n.getAttribute("colspan")||"1"),o=parseInt(n.getAttribute("rowspan")||"1");(i>1||o>1)&&this._recordSpans(n,o,i),this._shouldSkipSlot()||(e=this._formatOutValue(n)),this._nextCellAtColumn=this._column+i}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 IW(this,t,e,n)}}_shouldSkipSlot(){const t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,i=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||i}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const i={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,i)}_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 IW{constructor(t,e,n,i){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=i,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 SW(t,e){return(n,{writer:i})=>{const o=n.getAttribute("headingRows")||0,r=i.createContainerElement("table",null,[]),s=i.createContainerElement("figure",{class:"table"},r);o>0&&i.insert(i.createPositionAt(r,"end"),i.createContainerElement("thead",null,i.createSlot((t=>t.is("element","tableRow")&&t.index<o)))),o<t.getRows(n)&&i.insert(i.createPositionAt(r,"end"),i.createContainerElement("tbody",null,i.createSlot((t=>t.is("element","tableRow")&&t.index>=o))));for(const{positionOffset:t,filter:n}of e.additionalSlots)i.insert(i.createPositionAt(r,t),i.createSlot(n));return i.insert(i.createPositionAt(r,"after"),i.createSlot((t=>!t.is("element","tableRow")&&!e.additionalSlots.some((({filter:e})=>e(t)))))),e.asWidget?function(t,e){return e.setCustomProperty("table",!0,t),s_(t,e,{hasSelectionHandle:!0})}(s,i):s}}function TW(t={}){return(e,{writer:n})=>{const i=e.parent,o=i.parent,r=o.getChildIndex(i),s=new EW(o,{row:r}),a=o.getAttribute("headingRows")||0,c=o.getAttribute("headingColumns")||0;let l=null;for(const i of s)if(i.cell==e){const e=i.row<a||i.column<c?"th":"td";l=t.asWidget?d_(n.createEditableElement(e),n):n.createContainerElement(e);break}return l}}function DW(t={}){return(e,{writer:n})=>{if(!e.parent.is("element","tableCell"))return null;if(!MW(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 MW(t){return 1==t.parent.childCount&&!!t.getAttributeKeys().next().done}class BW extends $t{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){const n=t.getFirstPosition().parent,i=n===n.root?n:n.parent;return e.checkChild(i,"table")}(e,n)}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("TableUtils"),o=e.config.get("table.defaultHeadings.rows"),r=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&o&&(t.headingRows=o),void 0===t.headingColumns&&r&&(t.headingColumns=r),n.change((e=>{const o=i.createTable(e,t);n.insertObject(o,null,null,{findOptimalPosition:"auto"}),e.setSelection(e.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}class OW extends $t{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"),i="above"===this.order,o=n.getSelectionAffectedTableCells(e),r=n.getRowIndexes(o),s=i?r.first:r.last,a=o[0].findAncestor("table");n.insertRows(a,{at:i?s:s+1,copyStructureFromAbove:!i})}}class NW extends $t{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"),i="left"===this.order,o=n.getSelectionAffectedTableCells(e),r=n.getColumnIndexes(o),s=i?r.first:r.last,a=o[0].findAncestor("table");n.insertColumns(a,{columns:1,at:i?s:s+1})}}class PW extends $t{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 RW(t,e,n){const{startRow:i,startColumn:o,endRow:r,endColumn:s}=e,a=n.createElement("table"),c=r-i+1;for(let t=0;t<c;t++)n.insertElement("tableRow",a,"end");const l=[...new EW(t,{startRow:i,endRow:r,startColumn:o,endColumn:s,includeAllSlots:!0})];for(const{row:t,column:e,cell:c,isAnchor:d,cellAnchorRow:u,cellAnchorColumn:h}of l){const l=t-i,m=a.getChild(l);if(d){const i=n.cloneElement(c);n.append(i,m),FW(i,t,e,r,s,n)}else(u<i||h<o)&&kW(n,n.createPositionAt(m,"end"))}return function(t,e,n,i,o){const r=parseInt(e.getAttribute("headingRows")||"0");if(r>0){bW("headingRows",r-n,t,o,0)}const s=parseInt(e.getAttribute("headingColumns")||"0");if(s>0){bW("headingColumns",s-i,t,o,0)}}(a,t,i,o,n),a}function LW(t,e,n=0){const i=[],o=new EW(t,{startRow:n,endRow:e-1});for(const t of o){const{row:n,cellHeight:o}=t;n<e&&e<=n+o-1&&i.push(t)}return i}function jW(t,e,n){const i=t.parent,o=i.parent,r=i.index,s=e-r,a={},c=parseInt(t.getAttribute("rowspan"))-s;c>1&&(a.rowspan=c);const l=parseInt(t.getAttribute("colspan")||"1");l>1&&(a.colspan=l);const d=r+s,u=[...new EW(o,{startRow:r,endRow:d,includeAllSlots:!0})];let h,m=null;for(const e of u){const{row:i,column:o,cell:r}=e;r===t&&void 0===h&&(h=o),void 0!==h&&h===o&&i===d&&(m=kW(n,e.getPositionBefore(),a))}return bW("rowspan",s,t,n),m}function zW(t,e){const n=[],i=new EW(t);for(const t of i){const{column:i,cellWidth:o}=t;i<e&&e<=i+o-1&&n.push(t)}return n}function VW(t,e,n,i){const o=n-e,r={},s=parseInt(t.getAttribute("colspan"))-o;s>1&&(r.colspan=s);const a=parseInt(t.getAttribute("rowspan")||"1");a>1&&(r.rowspan=a);const c=kW(i,i.createPositionAfter(t),r);return bW("colspan",o,t,i),c}function FW(t,e,n,i,o,r){const s=parseInt(t.getAttribute("colspan")||"1"),a=parseInt(t.getAttribute("rowspan")||"1");if(n+s-1>o){bW("colspan",o-n+1,t,r,1)}if(e+a-1>i){bW("rowspan",i-e+1,t,r,1)}}function UW(t,e){const n=e.getColumns(t),i=new Array(n).fill(0);for(const{column:e}of new EW(t))i[e]++;const o=i.reduce(((t,e,n)=>e?t:[...t,n]),[]);if(o.length>0){const n=o[o.length-1];return e.removeColumns(t,{at:n}),!0}return!1}function HW(t,e){const n=[],i=e.getRows(t);for(let e=0;e<i;e++){t.getChild(e).isEmpty&&n.push(e)}if(n.length>0){const i=n[n.length-1];return e.removeRows(t,{at:i}),!0}return!1}function GW(t,e){UW(t,e)||HW(t,e)}function qW(t,e){const n=Array.from(new EW(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((({cellHeight:t})=>1===t)))return e.lastRow;const i=n[0].cellHeight-1;return e.lastRow+i}function WW(t,e){const n=Array.from(new EW(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((({cellWidth:t})=>1===t)))return e.lastColumn;const i=n[0].cellWidth-1;return e.lastColumn+i}class KW extends $t{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],i=this.value,o=this.direction;t.change((t=>{const e="right"==o||"down"==o,r=e?n:i,s=e?i:n,a=s.parent;!function(t,e,n){ZW(t)||(ZW(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end")));n.remove(t)}(s,r,t);const c=this.isHorizontal?"colspan":"rowspan",l=parseInt(n.getAttribute(c)||"1"),d=parseInt(i.getAttribute(c)||"1");t.setAttribute(c,l+d,r),t.setSelection(t.createRangeIn(r));const u=this.editor.plugins.get("TableUtils");GW(a.findAncestor("table"),u)}))}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const i=this.isHorizontal?function(t,e,n){const i=t.parent,o=i.parent,r="right"==e?t.nextSibling:t.previousSibling,s=(o.getAttribute("headingColumns")||0)>0;if(!r)return;const a="right"==e?t:r,c="right"==e?r:t,{column:l}=n.getCellLocation(a),{column:d}=n.getCellLocation(c),u=parseInt(a.getAttribute("colspan")||"1"),h=wW(n,a),m=wW(n,c);if(s&&h!=m)return;return l+u===d?r:void 0}(n,this.direction,e):function(t,e,n){const i=t.parent,o=i.parent,r=o.getChildIndex(i);if("down"==e&&r===n.getRows(o)-1||"up"==e&&0===r)return null;const s=parseInt(t.getAttribute("rowspan")||"1"),a=o.getAttribute("headingRows")||0,c="down"==e&&r+s===a,l="up"==e&&r===a;if(a&&(c||l))return null;const d=parseInt(t.getAttribute("rowspan")||"1"),u="down"==e?r+d:r,h=[...new EW(o,{endRow:u})],m=h.find((e=>e.cell===t)),g=m.column,p=h.find((({row:t,cellHeight:n,column:i})=>i===g&&("down"==e?t===u:u===t+n)));return p&&p.cell?p.cell:null}(n,this.direction,e);if(!i)return;const o=this.isHorizontal?"rowspan":"colspan",r=parseInt(n.getAttribute(o)||"1");return parseInt(i.getAttribute(o)||"1")===r?i:void 0}}function ZW(t){const e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty}class YW extends $t{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),o=t.getRows(i)-1,r=t.getRowIndexes(e),s=0===r.first&&r.last===o;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),i=e.getRowIndexes(n),o=n[0],r=o.findAncestor("table"),s=e.getCellLocation(o).column;t.change((t=>{const n=i.last-i.first+1;e.removeRows(r,{at:i.first,rows:n});const o=function(t,e,n,i){const o=t.getChild(Math.min(e,i-1));let r=o.getChild(0),s=0;for(const t of o.getChildren()){if(s>n)return r;r=t,s+=parseInt(t.getAttribute("colspan")||"1")}return r}(r,i.first,s,e.getRows(r));t.setSelection(t.createPositionAt(o,0))}))}}class JW extends $t{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),o=t.getColumns(i),{first:r,last:s}=t.getColumnIndexes(e);this.isEnabled=s-r<o-1}else this.isEnabled=!1}execute(){const t=this.editor.plugins.get("TableUtils"),[e,n]=function(t,e){const n=e.getSelectionAffectedTableCells(t),i=n[0],o=n.pop(),r=[i,o];return i.isBefore(o)?r:r.reverse()}(this.editor.model.document.selection,t),i=e.parent.parent,o=[...new EW(i)],r={first:o.find((t=>t.cell===e)).column,last:o.find((t=>t.cell===n)).column},s=function(t,e,n,i){const o=parseInt(n.getAttribute("colspan")||"1");return o>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:i.first?t.reverse().find((({column:t})=>t<i.first)).cell:t.reverse().find((({column:t})=>t>i.last)).cell}(o,e,n,r);this.editor.model.change((e=>{const n=r.last-r.first+1;t.removeColumns(i,{at:r.first,columns:n}),e.setSelection(e.createPositionAt(s,0))}))}}class $W extends $t{refresh(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&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,i=e.getSelectionAffectedTableCells(n.document.selection),o=i[0].findAncestor("table"),{first:r,last:s}=e.getRowIndexes(i),a=this.value?r:s+1,c=o.getAttribute("headingRows")||0;n.change((t=>{if(a){const e=LW(o,a,a>c?c:0);for(const{cell:n}of e)jW(n,a,t)}bW("headingRows",a,o,t,0)}))}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n}}class QW extends $t{refresh(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every((t=>wW(e,t)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),o=i[0].findAncestor("table"),{first:r,last:s}=e.getColumnIndexes(i),a=this.value?r:s+1;n.change((t=>{if(a){const e=zW(o,a);for(const{cell:n,column:i}of e)VW(n,i,a,t)}bW("headingColumns",a,o,t,0)}))}}const XW=5,tK=2;function eK(t,e){return 4e3/nK(t,e)}function nK(t,e){const n=iK(t,"tbody",e)||iK(t,"thead",e);return oK(e.editing.view.domConverter.mapViewToDom(n))}function iK(t,e,n){return[...[...n.editing.mapper.toViewElement(t).getChildren()].find((t=>t.is("element","table"))).getChildren()].find((t=>t.is("element",e)))}function oK(t){const e=Uu.global.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 rK(t){const e=Math.pow(10,tK),n="number"==typeof t?t:parseFloat(t);return Math.round(n*e)/e}function sK(t){return t.map((t=>"number"==typeof t?t:parseFloat(t))).filter((t=>!Number.isNaN(t))).reduce(((t,e)=>t+e),0)}function aK(t){let e=function(t){const e=t.filter((t=>"auto"===t)).length;if(0===e)return t.map((t=>rK(t)));const n=sK(t),i=Math.max((100-n)/e,XW);return t.map((t=>"auto"===t?i:t)).map((t=>rK(t)))}(t.map((t=>"auto"===t?t:parseFloat(t.replace("%","")))));const n=sK(e);return 100!==n&&(e=e.map((t=>rK(100*t/n))).map(((t,e,n)=>{if(!(e===n.length-1))return t;return rK(t+100-sK(n))}))),e.map((t=>t+"%"))}function cK(t){const e=Uu.global.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseInt(e.width):parseFloat(e.width)+parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderWidth)}function lK(t,e,n,i){for(let o=0;o<Math.max(n.length,t.length);o++){const r=t[o],s=n[o];s?r?i.setAttribute("columnWidth",s,r):i.appendElement("tableColumn",{columnWidth:s},e):i.remove(r)}}function dK(t){if(t.is("element","tableColumnGroup"))return t;const e=t.getChildren();return Array.from(e).find((t=>t.is("element","tableColumnGroup")))}function uK(t){const e=dK(t);return e?Array.from(e.getChildren()):[]}class hK extends Yt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,i=n.getChildIndex(e),o=new EW(n,{row:i});for(const{cell:e,row:n,column:i}of o)if(e===t)return{row:n,column:i}}createTable(t,e){const n=t.createElement("table"),i=e.rows||2,o=e.columns||2;return mK(t,n,0,i,o),e.headingRows&&bW("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&bW("headingColumns",Math.min(e.headingColumns,o),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,i=e.at||0,o=e.rows||1,r=void 0!==e.copyStructureFromAbove,s=e.copyStructureFromAbove?i-1:i,a=this.getRows(t),c=this.getColumns(t);if(i>a)throw new Uu.CKEditorError("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change((e=>{const n=t.getAttribute("headingRows")||0;if(n>i&&bW("headingRows",n+o,t,e,0),!r&&(0===i||i===a))return void mK(e,t,i,o,c);const l=r?Math.max(i,s):i,d=new EW(t,{endRow:l}),u=new Array(c).fill(1);for(const{row:t,column:n,cellHeight:a,cellWidth:c,cell:l}of d){const d=t+a-1,h=t<=s&&s<=d;t<i&&i<=d?(e.setAttribute("rowspan",a+o,l),u[n]=-c):r&&h&&(u[n]=c)}for(let n=0;n<o;n++){const n=e.createElement("tableRow");e.insert(n,t,i);for(let t=0;t<u.length;t++){const i=u[t],o=e.createPositionAt(n,"end");i>0&&kW(e,o,i>1?{colspan:i}:void 0),t+=Math.abs(i)-1}}}))}insertColumns(t,e={}){const n=this.editor.model,i=e.at||0,o=e.columns||1;n.change((e=>{const n=t.getAttribute("headingColumns");i<n&&e.setAttribute("headingColumns",n+o,t);const r=this.getColumns(t);if(0===i||r===i){for(const n of t.getChildren())n.is("element","tableRow")&&gK(o,e,e.createPositionAt(n,i?"end":0));return}const s=new EW(t,{column:i,includeAllSlots:!0});for(const t of s){const{row:n,cell:r,cellAnchorColumn:a,cellAnchorRow:c,cellWidth:l,cellHeight:d}=t;if(a<i){e.setAttribute("colspan",l+o,r);const t=c+d-1;for(let e=n;e<=t;e++)s.skipRow(e)}else gK(o,e,t.getPositionBefore())}}))}removeRows(t,e){const n=this.editor.model,i=e.rows||1,o=this.getRows(t),r=e.at,s=r+i-1;if(s>o-1)throw new Uu.CKEditorError("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change((e=>{const n={first:r,last:s},{cellsToMove:i,cellsToTrim:o}=function(t,{first:e,last:n}){const i=new Map,o=[];for(const{row:r,column:s,cellHeight:a,cell:c}of new EW(t,{endRow:n})){const t=r+a-1;if(r>=e&&r<=n&&t>n){const t=a-(n-r+1);i.set(s,{cell:c,rowspan:t})}if(r<e&&t>=e){let i;i=t>=n?n-e+1:t-e+1,o.push({cell:c,rowspan:a-i})}}return{cellsToMove:i,cellsToTrim:o}}(t,n);if(i.size){!function(t,e,n,i){const o=new EW(t,{includeAllSlots:!0,row:e}),r=[...o],s=t.getChild(e);let a;for(const{column:t,cell:e,isAnchor:o}of r)if(n.has(t)){const{cell:e,rowspan:o}=n.get(t),r=a?i.createPositionAfter(a):i.createPositionAt(s,0);i.move(i.createRangeOn(e),r),bW("rowspan",o,e,i),a=e}else o&&(a=e)}(t,s+1,i,e)}for(let n=s;n>=r;n--)e.remove(t.getChild(n));for(const{rowspan:t,cell:n}of o)bW("rowspan",t,n,e);!function(t,{first:e,last:n},i){const o=t.getAttribute("headingRows")||0;if(e<o){bW("headingRows",n<o?o-(n-e+1):e,t,i,0)}}(t,n,e),UW(t,this)||HW(t,this)}))}removeColumns(t,e){const n=this.editor.model,i=e.at,o=e.columns||1,r=e.at+o-1;n.change((e=>{!function(t,e,n){const i=t.getAttribute("headingColumns")||0;if(i&&e.first<i){const o=Math.min(i-1,e.last)-e.first+1;n.setAttribute("headingColumns",i-o,t)}}(t,{first:i,last:r},e);const n=uK(t);for(let o=r;o>=i;o--){for(const{cell:n,column:i,cellWidth:r}of[...new EW(t)])i<=o&&r>1&&i+r>o?bW("colspan",r-1,n,e):i===o&&e.remove(n);if(n[o]){const t=0===o?n[1]:n[o-1],i=parseFloat(n[o].getAttribute("columnWidth")),r=parseFloat(t.getAttribute("columnWidth"));e.remove(n[o]),e.setAttribute("columnWidth",i+r+"%",t)}}HW(t,this)||UW(t,this)}))}splitCellVertically(t,e=2){const n=this.editor.model,i=t.parent.parent,o=parseInt(t.getAttribute("rowspan")||"1"),r=parseInt(t.getAttribute("colspan")||"1");n.change((n=>{if(r>1){const{newCellsSpan:i,updatedSpan:s}=pK(r,e);bW("colspan",s,t,n);const a={};i>1&&(a.colspan=i),o>1&&(a.rowspan=o);gK(r>e?e-1:r-1,n,n.createPositionAfter(t),a)}if(r<e){const s=e-r,a=[...new EW(i)],{column:c}=a.find((({cell:e})=>e===t)),l=a.filter((({cell:e,cellWidth:n,column:i})=>e!==t&&i===c||i<c&&i+n>c));for(const{cell:t,cellWidth:e}of l)n.setAttribute("colspan",e+s,t);const d={};o>1&&(d.rowspan=o),gK(s,n,n.createPositionAfter(t),d);const u=i.getAttribute("headingColumns")||0;u>c&&bW("headingColumns",u+s,i,n)}}))}splitCellHorizontally(t,e=2){const n=this.editor.model,i=t.parent,o=i.parent,r=o.getChildIndex(i),s=parseInt(t.getAttribute("rowspan")||"1"),a=parseInt(t.getAttribute("colspan")||"1");n.change((n=>{if(s>1){const i=[...new EW(o,{startRow:r,endRow:r+s-1,includeAllSlots:!0})],{newCellsSpan:c,updatedSpan:l}=pK(s,e);bW("rowspan",l,t,n);const{column:d}=i.find((({cell:e})=>e===t)),u={};c>1&&(u.rowspan=c),a>1&&(u.colspan=a);for(const t of i){const{column:e,row:i}=t;i>=r+l&&e===d&&(i+r+l)%c==0&&gK(1,n,t.getPositionBefore(),u)}}if(s<e){const i=e-s,c=[...new EW(o,{startRow:0,endRow:r})];for(const{cell:e,cellHeight:o,row:s}of c)if(e!==t&&s+o>r){const t=o+i;n.setAttribute("rowspan",t,e)}const l={};a>1&&(l.colspan=a),mK(n,o,r+1,i,1,l);const d=o.getAttribute("headingRows")||0;d>r&&bW("headingRows",d+i,o,n)}}))}getColumns(t){return[...t.getChild(0).getChildren()].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 EW(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 EW(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 i=0;for(const o of t){const{row:t,column:r}=this.getCellLocation(o),s=parseInt(o.getAttribute("rowspan"))||1,a=parseInt(o.getAttribute("colspan"))||1;e.add(t),n.add(r),s>1&&e.add(t+s-1),a>1&&n.add(r+a-1),i+=s*a}const o=function(t,e){const n=Array.from(t.values()),i=Array.from(e.values()),o=Math.max(...n),r=Math.min(...n),s=Math.max(...i),a=Math.min(...i);return(o-r+1)*(s-a+1)}(e,n);return o==i}sortRanges(t){return Array.from(t).sort(fK)}_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),i=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,i))return!1;const o=this.getColumnIndexes(t),r=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(o,r)}_areIndexesInSameSection({first:t,last:e},n){return t<n===e<n}}function mK(t,e,n,i,o,r={}){for(let s=0;s<i;s++){const i=t.createElement("tableRow");t.insert(i,e,n),gK(o,t,t.createPositionAt(i,"end"),r)}}function gK(t,e,n,i={}){for(let o=0;o<t;o++)kW(e,n,i)}function pK(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 fK(t,e){const n=t.start,i=e.start;return n.isBefore(i)?-1:1}class xK extends $t{refresh(){const t=this.editor.plugins.get(hK),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(hK);t.change((n=>{const i=e.getSelectedTableCells(t.document.selection),o=i.shift(),{mergeWidth:r,mergeHeight:s}=function(t,e,n){let i=0,o=0;for(const t of e){const{row:e,column:r}=n.getCellLocation(t);i=wK(t,r,i,"colspan"),o=wK(t,e,o,"rowspan")}const{row:r,column:s}=n.getCellLocation(t),a=i-s,c=o-r;return{mergeWidth:a,mergeHeight:c}}(o,i,e);bW("colspan",r,o,n),bW("rowspan",s,o,n);for(const t of i)bK(t,o,n);GW(o.findAncestor("table"),e),n.setSelection(o,"in")}))}}function bK(t,e,n){kK(t)||(kK(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function kK(t){const e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty}function wK(t,e,n,i){const o=parseInt(t.getAttribute(i)||"1");return Math.max(n,e+o)}class AK extends $t{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),i=e.getRowIndexes(n),o=n[0].findAncestor("table"),r=[];for(let e=i.first;e<=i.last;e++)for(const n of o.getChild(e).getChildren())r.push(t.createRangeOn(n));t.change((t=>{t.setSelection(r)}))}}class _K extends $t{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),i=n[0],o=n.pop(),r=i.findAncestor("table"),s=t.getCellLocation(i),a=t.getCellLocation(o),c=Math.min(s.column,a.column),l=Math.max(s.column,a.column),d=[];for(const t of new EW(r,{startColumn:c,endColumn:l}))d.push(e.createRangeOn(t.cell));e.change((t=>{t.setSelection(d)}))}}function vK(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let i=!1;const o=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")),EK(e)&&(n=e.range.start.findAncestor("table")),n&&!o.has(n)&&(i=CK(n,t)||i,i=yK(n,t)||i,o.add(n))}return i}(e,t)))}function CK(t,e){let n=!1;const i=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),i=[];for(const{row:o,cell:r,cellHeight:s}of new EW(t)){if(s<2)continue;const t=o<e?e:n;if(o+s>t){const e=t-o;i.push({cell:r,rowspan:e})}}return i}(t);if(i.length){n=!0;for(const t of i)bW("rowspan",t.rowspan,t.cell,e,1)}return n}function yK(t,e){let n=!1;const i=function(t){const e=new Array(t.childCount).fill(0);for(const{rowIndex:n}of new EW(t,{includeAllSlots:!0}))e[n]++;return e}(t),o=[];for(const[e,n]of i.entries())!n&&t.getChild(e).is("element","tableRow")&&o.push(e);if(o.length){n=!0;for(const n of o.reverse())e.remove(t.getChild(n)),i.splice(n,1)}const r=i.filter(((e,n)=>t.getChild(n).is("element","tableRow"))),s=r[0];if(!r.every((t=>t===s))){const i=r.reduce(((t,e)=>e>t?e:t),0);for(const[o,s]of r.entries()){const r=i-s;if(r){for(let n=0;n<r;n++)kW(e,e.createPositionAt(t.getChild(o),"end"));n=!0}}}return n}function EK(t){if("attribute"!==t.type)return!1;const e=t.attributeKey;return"headingRows"===e||"colspan"===e||"rowspan"===e}function IK(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let i=!1;for(const e of n)"insert"==e.type&&"table"==e.name&&(i=SK(e.position.nodeAfter,t)||i),"insert"==e.type&&"tableRow"==e.name&&(i=TK(e.position.nodeAfter,t)||i),"insert"==e.type&&"tableCell"==e.name&&(i=DK(e.position.nodeAfter,t)||i),"remove"!=e.type&&"insert"!=e.type||!MK(e)||(i=DK(e.position.parent,t)||i);return i}(e,t)))}function SK(t,e){let n=!1;for(const i of t.getChildren())i.is("element","tableRow")&&(n=TK(i,e)||n);return n}function TK(t,e){let n=!1;for(const i of t.getChildren())n=DK(i,e)||n;return n}function DK(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 MK(t){return!!t.position.parent.is("element","tableCell")&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function BK(t,e){if(!t.is("element","paragraph"))return!1;const n=e.toViewElement(t);return!!n&&MW(t)!==n.is("element","span")}var OK=__webpack_require__(4777),NK={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(OK.Z,NK);OK.Z.locals;class PK extends Yt{static get pluginName(){return"TableEditing"}static get requires(){return[hK]}constructor(t){super(t),this._additionalSlots=[]}init(){const t=this.editor,e=t.model,n=e.schema,i=t.conversion,o=t.plugins.get(hK);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}),i.for("upcast").add((t=>{t.on("element:figure",((t,e,n)=>{if(!n.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;const i=function(t){for(const e of t.getChildren())if(e.is("element","table"))return e}(e.viewItem);if(!i||!n.consumable.test(i,{name:!0}))return;n.consumable.consume(e.viewItem,{name:!0,classes:"table"});const o=n.convertItem(i,e.modelCursor),r=(0,Uu.first)(o.modelRange.getItems());r?(n.convertChildren(e.viewItem,n.writer.createPositionAt(r,"end")),n.updateConversionResult(r,e)):n.consumable.revert(e.viewItem,{name:!0,classes:"table"})}))})),i.for("upcast").add(vW()),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:SW(o,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:SW(o,{additionalSlots:this._additionalSlots})}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add((t=>{t.on("element:tr",((t,e)=>{e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),i.for("downcast").elementToElement({model:"tableRow",view:(t,{writer:e})=>t.isEmpty?e.createEmptyElement("tr"):e.createContainerElement("tr")}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(CW("td")),i.for("upcast").add(CW("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:TW({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:TW()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:DW({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:DW(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:RK("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:RK("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new BW(t)),t.commands.add("insertTableRowAbove",new OW(t,{order:"above"})),t.commands.add("insertTableRowBelow",new OW(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new NW(t,{order:"left"})),t.commands.add("insertTableColumnRight",new NW(t,{order:"right"})),t.commands.add("removeTableRow",new YW(t)),t.commands.add("removeTableColumn",new JW(t)),t.commands.add("splitTableCellVertically",new PW(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new PW(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new xK(t)),t.commands.add("mergeTableCellRight",new KW(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new KW(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new KW(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new KW(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new QW(t)),t.commands.add("setTableRowHeader",new $W(t)),t.commands.add("selectTableRow",new AK(t)),t.commands.add("selectTableColumn",new _K(t)),vK(e),IK(e),this.listenTo(e.document,"change:data",(()=>{!function(t,e){const n=t.document.differ;for(const t of n.getChanges()){let n,i=!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,i="headingRows"==t.attributeKey}else"tableRow"!=t.name&&"tableCell"!=t.name||(n=t.position.findAncestor("table"),i="tableRow"==t.name);if(!n)continue;const o=n.getAttribute("headingRows")||0,r=n.getAttribute("headingColumns")||0,s=new EW(n);for(const t of s){const n=t.row<o||t.column<r?"th":"td",s=e.mapper.toViewElement(t.cell);s&&s.is("element")&&s.name!=n&&e.reconvertItem(i?t.cell.parent:t.cell)}}}(e,t.editing),function(t,e){const n=t.document.differ,i=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","tableCell")&&i.add(e)}for(const t of i.values()){const n=Array.from(t.getChildren()).filter((t=>BK(t,e.mapper)));for(const t of n)e.reconvertItem(t)}}(e,t.editing)}))}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function RK(t){return e=>{const n=parseInt(e.getAttribute(t));return Number.isNaN(n)||n<=0?null:n}}var LK=__webpack_require__(8085),jK={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(LK.Z,jK);LK.Z.locals;class zK extends u{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new Uu.KeystrokeHandler,this.focusTracker=new Uu.FocusTracker,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:i}=e.target.dataset;this.items.get(10*(parseInt(n,10)-1)+(parseInt(i,10)-1)).focus()})),this.focusTracker.on("change:focusedElement",((t,e,n)=>{if(!n)return;const{row:i,column:o}=n.dataset;this.set({rows:parseInt(i),columns:parseInt(o)})})),this.on("change:columns",(()=>this._highlightGridBoxes())),this.on("change:rows",(()=>this._highlightGridBoxes()))}render(){super.render(),o({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)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map(((n,i)=>{const o=Math.floor(i/10)<t&&i%10<e;n.set("isOn",o)}))}_createGridButton(t,e,n,i){const o=new U(t);return o.set({label:i,class:"ck-insert-table-dropdown-grid-box"}),o.extendTemplate({attributes:{"data-row":e,"data-column":n}}),o}_createGridCollection(){const t=[];for(let e=0;e<100;e++){const n=Math.floor(e/10),i=e%10,o=`${n+1} × ${i+1}`;t.push(this._createGridButton(this.locale,n+1,i+1,o))}return this.createCollection(t)}}const VK='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>';class FK extends Yt{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 i=t.commands.get("insertTable"),o=dl(n);let r;return o.bind("isEnabled").to(i),o.buttonView.set({icon:VK,label:e("Insert table"),tooltip:!0}),o.on("change:isOpen",(()=>{r||(r=new zK(n),o.panelView.children.add(r),r.delegate("execute").to(o),o.on("execute",(()=>{t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus()})))})),o})),t.ui.componentFactory.add("tableColumn",(t=>{const i=[{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>',i,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 i=[{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>',i,t)}))}_prepareDropdown(t,e,n,i){const o=this.editor,r=dl(i),s=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0}),r.bind("isEnabled").toMany(s,"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(r,"execute",(t=>{o.execute(t.source.commandName),t.source instanceof q||o.editing.view.focus()})),r}_prepareMergeSplitButtonDropdown(t,e,n,i){const o=this.editor,r=dl(i,rl),s="mergeTableCells",a=o.commands.get(s),c=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([a,...c],"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(r.buttonView,"execute",(()=>{o.execute(s),o.editing.view.focus()})),this.listenTo(r,"execute",(t=>{o.execute(t.source.commandName),o.editing.view.focus()})),r}_fillDropdownWithListOptions(t,e){const n=this.editor,i=[],o=new Uu.Collection;for(const t of e)UK(t,n,i,o);return ml(t,o),i}}function UK(t,e,n,i){if("button"===t.type||"switchbutton"===t.type){const i=t.model=new Qd(t.model),{commandName:o,bindIsOn:r}=t.model,s=e.commands.get(o);n.push(s),i.set({commandName:o}),i.bind("isEnabled").to(s),r&&i.bind("isOn").to(s,"value"),i.set({withText:!0})}i.add(t)}var HK=__webpack_require__(5593),GK={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(HK.Z,GK);HK.Z.locals;class qK extends Yt{static get pluginName(){return"TableSelection"}static get requires(){return[hK,hK]}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(hK),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(hK),e=this.getSelectedTableCells();return e?this.editor.model.change((n=>{const i=n.createDocumentFragment(),{first:o,last:r}=t.getColumnIndexes(e),{first:s,last:a}=t.getRowIndexes(e),c=e[0].findAncestor("table");let l=a,d=r;if(t.isSelectionRectangular(e)){const t={firstColumn:o,lastColumn:r,firstRow:s,lastRow:a};l=qW(c,t),d=WW(c,t)}const u=RW(c,{startRow:s,startColumn:o,endRow:l,endColumn:d},n);return n.insert(u,i,0),i})):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=this.editor.model.document.selection,e=(0,Uu.first)(t.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add((t=>t.on("selection",((t,n,i)=>{const o=i.writer;!function(t){for(const n of e)t.removeClass("ck-editor__editable_selected",n);e.clear()}(o);const r=this.getSelectedTableCells();if(!r)return;for(const t of r){const n=i.mapper.toViewElement(t);o.addClass("ck-editor__editable_selected",n),e.add(n)}const s=i.mapper.toViewElement(r[r.length-1]);o.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 i=n.createPositionAt(e[0],0),o=t.model.schema.getNearestSelectionRange(i);n.setSelection(o)}))}}))}_handleDeleteContent(t,e){const n=this.editor.plugins.get(hK),i=e[0],o=e[1],r=this.editor.model,s=!o||"backward"==o.direction,a=n.getSelectedTableCells(i);a.length&&(t.stop(),r.change((t=>{const e=a[s?a.length-1:0];r.change((t=>{for(const e of a)r.deleteContent(t.createSelection(e,"in"))}));const n=r.schema.getNearestSelectionRange(t.createPositionAt(e,0));i.is("documentSelection")?t.setSelection(n):i.setTo(n)})))}_handleInsertTextEvent(t,e){const n=this.editor,i=this.getSelectedTableCells();if(!i)return;const o=n.editing.view,r=n.editing.mapper,s=i.map((t=>o.createRangeOn(r.toViewElement(t))));e.selection=o.createSelection(s)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(t),o=n.getCellLocation(e),r=Math.min(i.row,o.row),s=Math.max(i.row,o.row),a=Math.min(i.column,o.column),c=Math.max(i.column,o.column),l=new Array(s-r+1).fill(null).map((()=>[])),d={startRow:r,endRow:s,startColumn:a,endColumn:c};for(const{row:e,cell:n}of new EW(t.findAncestor("table"),d))l[e-r].push(n);const u=o.row<i.row,h=o.column<i.column;return u&&l.reverse(),h&&l.forEach((t=>t.reverse())),{cells:l.flat(),backward:u||h}}}class WK extends Yt{static get pluginName(){return"TableClipboard"}static get requires(){return[qK,hK]}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.plugins.get(qK);if(!n.getSelectedTableCells())return;if("cut"==t.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const i=this.editor.data,o=this.editor.editing.view.document,r=i.toView(n.getSelectionAsFragment());o.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:r,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,o=this.editor.plugins.get(hK);let r=this.getTableIfOnlyTableInContent(e,i);if(!r)return;const s=o.getSelectionAffectedTableCells(i.document.selection);s.length?(t.stop(),i.change((t=>{const e={width:o.getColumns(r),height:o.getRows(r)},n=function(t,e,n,i){const o=t[0].findAncestor("table"),r=i.getColumnIndexes(t),s=i.getRowIndexes(t),a={firstColumn:r.first,lastColumn:r.last,firstRow:s.first,lastRow:s.last},c=1===t.length;c&&(a.lastRow+=e.height-1,a.lastColumn+=e.width-1,function(t,e,n,i){const o=i.getColumns(t),r=i.getRows(t);n>o&&i.insertColumns(t,{at:o,columns:n-o});e>r&&i.insertRows(t,{at:r,rows:e-r})}(o,a.lastRow+1,a.lastColumn+1,i));c||!i.isSelectionRectangular(t)?function(t,e,n){const{firstRow:i,lastRow:o,firstColumn:r,lastColumn:s}=e,a={first:i,last:o},c={first:r,last:s};ZK(t,r,a,n),ZK(t,s+1,a,n),KK(t,i,c,n),KK(t,o+1,c,n,i)}(o,a,n):(a.lastRow=qW(o,a),a.lastColumn=WW(o,a));return a}(s,e,t,o),i=n.lastRow-n.firstRow+1,a=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(i,e.height)-1,endColumn:Math.min(a,e.width)-1};r=RW(r,c,t);const l=s[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(r,e,l,n,t);if(this.editor.plugins.get("TableSelection").isEnabled){const e=o.sortRanges(d.map((e=>t.createRangeOn(e))));t.setSelection(e)}else t.setSelection(d[0],0)}))):GW(r,o)}_replaceSelectedCellsWithPasted(t,e,n,i,o){const{width:r,height:s}=e,a=function(t,e,n){const i=new Array(n).fill(null).map((()=>new Array(e).fill(null)));for(const{column:e,row:n,cell:o}of new EW(t))i[n][e]=o;return i}(t,r,s),c=[...new EW(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],l=[];let d;for(const t of c){const{row:e,column:n}=t;n===i.firstColumn&&(d=t.getPositionBefore());const c=e-i.firstRow,u=n-i.firstColumn,h=a[c%s][u%r],m=h?o.cloneElement(h):null,g=this._replaceTableSlotCell(t,m,d,o);g&&(FW(g,e,n,i.lastRow,i.lastColumn,o),l.push(g),d=o.createPositionAfter(g))}const u=parseInt(n.getAttribute("headingRows")||"0"),h=parseInt(n.getAttribute("headingColumns")||"0"),m=i.firstRow<u&&u<=i.lastRow,g=i.firstColumn<h&&h<=i.lastColumn;if(m){const t=KK(n,u,{first:i.firstColumn,last:i.lastColumn},o,i.firstRow);l.push(...t)}if(g){const t=ZK(n,h,{first:i.firstRow,last:i.lastRow},o);l.push(...t)}return l}_replaceTableSlotCell(t,e,n,i){const{cell:o,isAnchor:r}=t;return r&&i.remove(o),e?(i.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 i=e.createRange(n.start,e.createPositionBefore(t));if(e.hasContent(i,{ignoreWhitespaces:!0}))return null;const o=e.createRange(e.createPositionAfter(t),n.end);return e.hasContent(o,{ignoreWhitespaces:!0})?null:t}return null}}function KK(t,e,n,i,o=0){if(e<1)return;return LW(t,e,o).filter((({column:t,cellWidth:e})=>YK(t,e,n))).map((({cell:t})=>jW(t,e,i)))}function ZK(t,e,n,i){if(e<1)return;return zW(t,e).filter((({row:t,cellHeight:e})=>YK(t,e,n))).map((({cell:t,column:n})=>VW(t,n,e,i)))}function YK(t,e,n){const i=t+e-1,{first:o,last:r}=n;return t>=o&&t<=r||t<o&&i>=o}class JK extends Yt{static get pluginName(){return"TableKeyboard"}static get requires(){return[qK,hK]}init(){const t=this.editor.editing.view.document;this.listenTo(t,"arrowKey",((...t)=>this._onArrowKey(...t)),{context:"table"}),this.listenTo(t,"tab",((...t)=>this._handleTabOnSelectedTable(...t)),{context:"figure"}),this.listenTo(t,"tab",((...t)=>this._handleTab(...t)),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change((t=>{t.setSelection(t.createRangeIn(i.getChild(0).getChild(0)))})))}_handleTab(t,e){const n=this.editor,i=this.editor.plugins.get(hK),o=this.editor.plugins.get("TableSelection"),r=n.model.document.selection,s=!e.shiftKey;let a=i.getTableCellsContainingSelection(r)[0];if(a||(a=o.getFocusCell()),!a)return;e.preventDefault(),e.stopPropagation(),t.stop();const c=a.parent,l=c.parent,d=l.getChildIndex(c),u=c.getChildIndex(a),h=0===u;if(!s&&h&&0===d)return void n.model.change((t=>{t.setSelection(t.createRangeOn(l))}));const m=u===c.childCount-1,g=d===i.getRows(l)-1;if(s&&g&&m&&(n.execute("insertTableRowBelow"),d===i.getRows(l)-1))return void n.model.change((t=>{t.setSelection(t.createRangeOn(l))}));let p;if(s&&m){const t=l.getChild(d+1);p=t.getChild(0)}else if(!s&&h){const t=l.getChild(d-1);p=t.getChild(t.childCount-1)}else p=c.getChild(u+(s?1:-1));n.model.change((t=>{t.setSelection(t.createRangeIn(p))}))}_onArrowKey(t,e){const n=this.editor,i=e.keyCode,o=(0,Uu.getLocalizedArrowKeyCodeDirection)(i,n.locale.contentLanguageDirection);this._handleArrowKeys(o,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(hK),i=this.editor.plugins.get("TableSelection"),o=this.editor.model,r=o.document.selection,s=["right","down"].includes(t),a=n.getSelectedTableCells(r);if(a.length){let n;return n=e?i.getFocusCell():s?a[a.length-1]:a[0],this._navigateFromCellInDirection(n,t,e),!0}const c=r.focus.findAncestor("tableCell");if(!c)return!1;if(!r.isCollapsed)if(e){if(r.isBackward==s&&!r.containsEntireContent(c))return!1}else{const t=r.getSelectedElement();if(!t||!o.schema.isObject(t))return!1}return!!this._isSelectionAtCellEdge(r,c,s)&&(this._navigateFromCellInDirection(c,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const i=this.editor.model,o=this.editor.model.schema,r=n?t.getLastPosition():t.getFirstPosition();if(!o.getLimitElement(r).is("element","tableCell")){return i.createPositionAt(e,n?"end":0).isTouching(r)}const s=i.createSelection(r);return i.modifySelection(s,{direction:n?"forward":"backward"}),r.isEqual(s.focus)}_navigateFromCellInDirection(t,e,n=!1){const i=this.editor.model,o=t.findAncestor("table"),r=[...new EW(o,{includeAllSlots:!0})],{row:s,column:a}=r[r.length-1],c=r.find((({cell:e})=>e==t));let{row:l,column:d}=c;switch(e){case"left":d--;break;case"up":l--;break;case"right":d+=c.cellWidth;break;case"down":l+=c.cellHeight}if(l<0||l>s||d<0&&l<=0||d>a&&l>=s)return void i.change((t=>{t.setSelection(t.createRangeOn(o))}));d<0?(d=n?0:a,l--):d>a&&(d=n?a:0,l++);const u=r.find((t=>t.row==l&&t.column==d)).cell,h=["right","down"].includes(e),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){const e=m.getAnchorCell()||t;m.setCellSelection(e,u)}else{const t=i.createPositionAt(u,h?0:"end");i.change((e=>{e.setSelection(t)}))}}}class $K extends io{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class QK extends Yt{static get pluginName(){return"TableMouse"}static get requires(){return[qK,hK]}init(){this.editor.editing.view.addObserver($K),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(hK);let n=!1;const i=t.plugins.get(qK);this.listenTo(t.editing.view.document,"mousedown",((o,r)=>{const s=t.model.document.selection;if(!this.isEnabled||!i.isEnabled)return;if(!r.domEvent.shiftKey)return;const a=i.getAnchorCell()||e.getTableCellsContainingSelection(s)[0];if(!a)return;const c=this._getModelTableCellFromDomEvent(r);c&&XK(a,c)&&(n=!0,i.setCellSelection(a,c),r.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,i=!1,o=!1;const r=t.plugins.get(qK);this.listenTo(t.editing.view.document,"mousedown",((t,n)=>{this.isEnabled&&r.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(n)))})),this.listenTo(t.editing.view.document,"mousemove",((t,s)=>{if(!s.domEvent.buttons)return;if(!e)return;const a=this._getModelTableCellFromDomEvent(s);a&&XK(e,a)&&(n=a,i||n==e||(i=!0)),i&&(o=!0,r.setCellSelection(e,n),s.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{i=!1,o=!1,e=null,n=null})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{o&&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 XK(t,e){return t.parent.parent==e.parent.parent}var tZ=__webpack_require__(4104),eZ={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(tZ.Z,eZ);tZ.Z.locals;class nZ extends Yt{static get requires(){return[PK,FK,qK,QK,JK,WK,I_]}static get pluginName(){return"Table"}}function iZ(t){const e=oZ(t);return e||rZ(t)}function oZ(t){const e=t.getSelectedElement();return e&&sZ(e)?e:null}function rZ(t){const e=t.getFirstPosition();if(!e)return null;let n=e.parent;for(;n;){if(n.is("element")&&sZ(n))return n;n=n.parent}return null}function sZ(t){return!!t.getCustomProperty("table")&&r_(t)}class aZ extends Yt{static get requires(){return[T_]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(T_),i=t.config.get("table.contentToolbar"),o=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:rZ}),o&&n.register("table",{ariaLabel:e("Table toolbar"),items:o,getRelatedElement:oZ})}}var cZ=__webpack_require__(4082),lZ={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(cZ.Z,lZ);cZ.Z.locals;class dZ extends u{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 Uu.FocusTracker,this._focusables=new s,this.dropdownView=this._createDropdownView(),this.inputView=this._createInputTextView(),this.keystrokes=new Uu.KeystrokeHandler,this._stillTyping=!1,this.focusCycler=new Gt({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,i=this._createColorSelector(t),o=dl(t),r=new u;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:n.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",n.if("value","ck-hidden",(t=>""!=t))]}}]}),o.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),o.buttonView.children.add(r),o.buttonView.label=e("Color picker"),o.buttonView.tooltip=!0,o.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",o.panelView.children.add(i),o.bind("isEnabled").to(this,"isReadOnly",(t=>!t)),o.on("change:isOpen",((t,e,n)=>{n&&(i.updateSelectedColors(),i.showColorGridsFragment())})),o}_createInputTextView(){const t=this.locale,e=new Bt(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||"",i=e(n?"Restore default":"Remove color"),o=new ld(t,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:i,colorPickerLabel:e("Color picker"),colorPickerViewConfig:!1!==this.options.colorPickerConfig&&{...this.options.colorPickerConfig,hideInput:!0}});o.appendUI(),o.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 r=this.value;return o.on("colorPicker:cancel",(()=>{this.value=r,this.fire("input"),this.dropdownView.isOpen=!1})),o.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{r=this.value})),o.bind("selectedColor").to(this,"value"),o}_setInputValue(t){if(!this._stillTyping){const e=uZ(t),n=this.options.colorDefinitions.find((t=>e===uZ(t.color)));this.inputView.value=n?n.label:t||""}}}function uZ(t){return t.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const hZ=t=>""===t;function mZ(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 gZ(t){return t('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function pZ(t){return t('The value is invalid. Try "10px" or "2em" or simply "2".')}function fZ(t){return t=t.trim().toLowerCase(),hZ(t)||Qa(t)}function xZ(t){return t=t.trim(),hZ(t)||vZ(t)||nc(t)||oc(t)}function bZ(t){return t=t.trim(),hZ(t)||vZ(t)||nc(t)}function kZ(t,e){const n=new Uu.Collection,i=mZ(t.t);for(const o in i){const r={type:"button",model:new Qd({_borderStyleValue:o,label:i[o],role:"menuitemradio",withText:!0})};"none"===o?r.model.bind("isOn").to(t,"borderStyle",(t=>"none"===e?!t:t===o)):r.model.bind("isOn").to(t,"borderStyle",(t=>t===o)),n.add(r)}return n}function wZ(t){const{view:e,icons:n,toolbar:i,labels:o,propertyName:r,nameToValue:s,defaultValue:a}=t;for(const t in o){const c=new U(e.locale);c.set({label:o[t],icon:n[t],tooltip:o[t]});const l=s?s(t):t;c.bind("isOn").to(e,r,(t=>{let e=t;return""===t&&a&&(e=a),l===e})),c.on("execute",(()=>{e[r]=l})),i.items.add(c)}}const AZ=[{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 _Z(t){return(e,n,i)=>{const o=new dZ(e.locale,{colorDefinitions:(r=t.colorConfig,r.map((t=>({color:t.model,label:t.label,options:{hasBorder:t.hasBorder}})))),columns:t.columns,defaultColorValue:t.defaultColorValue,colorPickerConfig:t.colorPickerConfig});var r;return o.inputView.set({id:n,ariaDescribedById:i}),o.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),o.bind("hasError").to(e,"errorText",(t=>!!t)),o.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused").to(o),o}}function vZ(t){const e=parseFloat(t);return!Number.isNaN(e)&&t===String(e)}var CZ=__webpack_require__(9865),yZ={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(CZ.Z,yZ);CZ.Z.locals;class EZ extends u{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 IZ=__webpack_require__(8027),SZ={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(IZ.Z,SZ);IZ.Z.locals;var TZ=__webpack_require__(198),DZ={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(TZ.Z,DZ);TZ.Z.locals;var MZ=__webpack_require__(5737),BZ={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(MZ.Z,BZ);MZ.Z.locals;const OZ={left:Uc.alignLeft,center:Uc.alignCenter,right:Uc.alignRight,justify:Uc.alignJustify,top:Uc.alignTop,middle:Uc.alignMiddle,bottom:Uc.alignBottom};class NZ extends u{constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:i,borderColorInput:o,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:a,backgroundInput:c}=this._createBackgroundFields(),{widthInput:l,operatorLabel:d,heightInput:u,dimensionsLabel:h}=this._createDimensionFields(),{horizontalAlignmentToolbar:m,verticalAlignmentToolbar:g,alignmentLabel:p}=this._createAlignmentFields();this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=i,this.borderColorInput=o,this.backgroundInput=c,this.paddingInput=this._createPaddingField(),this.widthInput=l,this.heightInput=u,this.horizontalAlignmentToolbar=m,this.verticalAlignmentToolbar=g;const{saveButtonView:f,cancelButtonView:x}=this._createActionButtons();this.saveButtonView=f,this.cancelButtonView=x,this._focusables=new s,this._focusCycler=new Gt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Jd(t,{label:this.t("Cell properties")})),this.children.add(new EZ(t,{labelView:r,children:[r,n,o,i],class:"ck-table-form__border-row"})),this.children.add(new EZ(t,{labelView:a,children:[a,c],class:"ck-table-form__background-row"})),this.children.add(new EZ(t,{children:[new EZ(t,{labelView:h,children:[h,l,d,u],class:"ck-table-form__dimensions-row"}),new EZ(t,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new EZ(t,{labelView:p,children:[p,m,g],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new EZ(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(),i({view:this}),[this.borderColorInput,this.backgroundInput].forEach((t=>{t.fieldView.focusCycler.on("forwardCycle",(t=>{this._focusCycler.focusNext(),t.stop()})),t.fieldView.focusCycler.on("backwardCycle",(t=>{this._focusCycler.focusPrevious(),t.stop()}))})),[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=_Z({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color,colorPickerConfig:this.options.colorPickerConfig}),i=this.locale,o=this.t,r=o("Style"),s=new Ct(i);s.text=o("Border");const a=mZ(o),c=new It(i,wl);c.set({label:r,class:"ck-table-form__border-style"}),c.fieldView.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),c.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>a[t||"none"])),c.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),c.bind("isEmpty").to(this,"borderStyle",(t=>!t)),ml(c.fieldView,kZ(this,e.style),{role:"menu",ariaLabel:r});const l=new It(i,xl);l.set({label:o("Width"),class:"ck-table-form__border-width"}),l.fieldView.bind("value").to(this,"borderWidth"),l.bind("isEnabled").to(this,"borderStyle",PZ),l.fieldView.on("input",(()=>{this.borderWidth=l.fieldView.element.value}));const d=new It(i,n);return d.set({label:o("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",PZ),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((t,n,i,o)=>{PZ(i)||(this.borderColor="",this.borderWidth=""),PZ(o)||(this.borderColor=e.color,this.borderWidth=e.width)})),{borderRowLabel:s,borderStyleDropdown:c,borderColorInput:d,borderWidthInput:l}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new Ct(t);n.text=e("Background");const i=_Z({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),o=new It(t,i);return o.set({label:e("Color"),class:"ck-table-cell-properties-form__background"}),o.fieldView.bind("value").to(this,"backgroundColor"),o.fieldView.on("input",(()=>{this.backgroundColor=o.fieldView.value})),{backgroundRowLabel:n,backgroundInput:o}}_createDimensionFields(){const t=this.locale,e=this.t,n=new Ct(t);n.text=e("Dimensions");const i=new It(t,xl);i.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),i.fieldView.bind("value").to(this,"width"),i.fieldView.on("input",(()=>{this.width=i.fieldView.element.value}));const o=new u(t);o.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new It(t,xl);return r.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:n,widthInput:i,operatorLabel:o,heightInput:r}}_createPaddingField(){const t=this.locale,e=this.t,n=new It(t,xl);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 Ct(t);n.text=e("Table cell text alignment");const i=new Kc(t),o="rtl"===t.contentLanguageDirection;i.set({isCompact:!0,ariaLabel:e("Horizontal text alignment toolbar")}),wZ({view:this,icons:OZ,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 r=new Kc(t);return r.set({isCompact:!0,ariaLabel:e("Vertical text alignment toolbar")}),wZ({view:this,icons:OZ,toolbar:r,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:i,verticalAlignmentToolbar:r,alignmentLabel:n}}_createActionButtons(){const t=this.locale,e=this.t,n=new U(t),i=new U(t),o=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:e("Save"),icon:Uc.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(o,"errorText",((...t)=>t.every((t=>!t)))),i.set({label:e("Cancel"),icon:Uc.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _horizontalAlignmentLabels(){const t=this.locale,e=this.t,n=e("Align cell text to the left"),i=e("Align cell text to the center"),o=e("Align cell text to the right"),r=e("Justify cell text");return"rtl"===t.uiLanguageDirection?{right:o,center:i,left:n,justify:r}:{left:n,center:i,right:o,justify:r}}get _verticalAlignmentLabels(){const t=this.t;return{top:t("Align cell text to the top"),middle:t("Align cell text to the middle"),bottom:t("Align cell text to the bottom")}}}function PZ(t){return"none"!==t}const RZ=bd.defaultPositions,LZ=[RZ.northArrowSouth,RZ.northArrowSouthWest,RZ.northArrowSouthEast,RZ.southArrowNorth,RZ.southArrowNorthWest,RZ.southArrowNorthEast,RZ.viewportStickyNorth];function jZ(t,e){const n=t.plugins.get("ContextualBalloon"),i=t.editing.view.document.selection;let o;"cell"===e?rZ(i)&&(o=VZ(t)):iZ(i)&&(o=zZ(t)),o&&n.updatePosition(o)}function zZ(t){const e=_W(t.model.document.selection),n=t.editing.mapper.toViewElement(e);return{target:t.editing.view.domConverter.mapViewToDom(n),positions:LZ}}function VZ(t){const e=t.editing.mapper,n=t.editing.view.domConverter,i=t.model.document.selection;if(i.rangeCount>1)return{target:()=>function(t,e){const n=e.editing.mapper,i=e.editing.view.domConverter,o=Array.from(t).map((t=>{const e=FZ(t.start),o=n.toViewElement(e);return new Uu.Rect(i.mapViewToDom(o))}));return Uu.Rect.getBoundingRect(o)}(i.getRanges(),t),positions:LZ};const o=FZ(i.getFirstPosition()),r=e.toViewElement(o);return{target:n.mapViewToDom(r),positions:LZ}}function FZ(t){return t.nodeAfter&&t.nodeAfter.is("element","tableCell")?t.nodeAfter:t.findAncestor("tableCell")}function UZ(t){if(!t||!(0,m.Z)(t))return t;const{top:e,right:n,bottom:i,left:o}=t;return e==n&&n==i&&i==o?e:void 0}function HZ(t,e){const n=parseFloat(t);return Number.isNaN(n)||String(n)!==String(t)?t:`${n}${e}`}function GZ(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}const qZ={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class WZ extends Yt{static get requires(){return[ru]}static get pluginName(){return"TableCellPropertiesUI"}constructor(t){super(t),t.config.define("table.tableCellProperties",{borderColors:AZ,backgroundColors:AZ})}init(){const t=this.editor,e=t.t;this._defaultTableCellProperties=GZ(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection}),this._balloon=t.plugins.get(ru),this.view=null,this._isReady=!1,t.ui.componentFactory.add("tableCellProperties",(n=>{const i=new U(n);i.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(i,"execute",(()=>this._showView()));const o=Object.values(qZ).map((e=>t.commands.get(e)));return i.bind("isEnabled").toMany(o,"isEnabled",((...t)=>t.some((t=>t)))),i}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const t=this.editor,n=t.config.get("table.tableCellProperties"),i=K(n.borderColors),o=W(t.locale,i),r=K(n.backgroundColors),s=W(t.locale,r),a=!1!==n.colorPicker,c=new NZ(t.locale,{borderColors:o,backgroundColors:s,defaultTableCellProperties:this._defaultTableCellProperties,colorPickerConfig:!!a&&(n.colorPicker||{})}),l=t.t;c.render(),this.listenTo(c,"submit",(()=>{this._hideView()})),this.listenTo(c,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),c.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),e({emitter:c,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const d=gZ(l),u=pZ(l);return c.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),c.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:c.borderColorInput,commandName:"tableCellBorderColor",errorText:d,validator:fZ})),c.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:c.borderWidthInput,commandName:"tableCellBorderWidth",errorText:u,validator:bZ})),c.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:c.paddingInput,commandName:"tableCellPadding",errorText:u,validator:xZ})),c.on("change:width",this._getValidatedPropertyChangeCallback({viewField:c.widthInput,commandName:"tableCellWidth",errorText:u,validator:xZ})),c.on("change:height",this._getValidatedPropertyChangeCallback({viewField:c.heightInput,commandName:"tableCellHeight",errorText:u,validator:xZ})),c.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:c.backgroundInput,commandName:"tableCellBackgroundColor",errorText:d,validator:fZ})),c.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),c.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),c}_fillViewFormFromCommandValues(){const t=this.editor.commands,e=t.get("tableCellBorderStyle");Object.entries(qZ).map((([e,n])=>{const i=this._defaultTableCellProperties[e]||"";return[e,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:VZ(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;rZ(t.editing.view.document.selection)?this._isViewVisible&&jZ(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,i)=>{this._isReady&&this.editor.execute(t,{value:i,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(t){const{commandName:e,viewField:n,validator:i,errorText:o}=t,r=At((()=>{n.errorText=o}),500);return(t,o,s)=>{r.cancel(),this._isReady&&(i(s)?(this.editor.execute(e,{value:s,batch:this._undoStepBatch}),n.errorText=null):r())}}}class KZ extends $t{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,i=this.editor.model,o=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(i.document.selection),r=this._getValueToSet(e);i.enqueueChange(n,(t=>{r?o.forEach((e=>t.setAttribute(this.attributeName,r,e))):o.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 ZZ extends KZ{constructor(t,e){super(t,"tableCellWidth",e)}_getValueToSet(t){if((t=HZ(t,"px"))!==this._defaultValue)return t}}class YZ extends Yt{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[PK]}init(){const t=this.editor,e=GZ(t.config.get("table.tableCellProperties.defaultProperties"));AW(t.model.schema,t.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:e.width}),t.commands.add("tableCellWidth",new ZZ(t,e.width))}}class JZ extends KZ{constructor(t,e){super(t,"tableCellPadding",e)}_getAttribute(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=HZ(t,"px");if(e!==this._defaultValue)return e}}class $Z extends KZ{constructor(t,e){super(t,"tableCellHeight",e)}_getValueToSet(t){const e=HZ(t,"px");if(e!==this._defaultValue)return e}}class QZ extends KZ{constructor(t,e){super(t,"tableCellBackgroundColor",e)}}class XZ extends KZ{constructor(t,e){super(t,"tableCellVerticalAlignment",e)}}class tY extends KZ{constructor(t,e){super(t,"tableCellHorizontalAlignment",e)}}class eY extends KZ{constructor(t,e){super(t,"tableCellBorderStyle",e)}_getAttribute(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class nY extends KZ{constructor(t,e){super(t,"tableCellBorderColor",e)}_getAttribute(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class iY extends KZ{constructor(t,e){super(t,"tableCellBorderWidth",e)}_getAttribute(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=HZ(t,"px");if(e!==this._defaultValue)return e}}const oY=/^(top|middle|bottom)$/,rY=/^(left|center|right|justify)$/;class sY extends Yt{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[PK,YZ]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableCellProperties.defaultProperties",{});const i=GZ(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection});t.data.addStyleProcessorRules(kc),function(t,e,n){const i={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};t.extend("tableCell",{allowAttributes:Object.values(i)}),gW(e,"td",i,n),gW(e,"th",i,n),pW(e,{modelElement:"tableCell",modelAttribute:i.style,styleName:"border-style"}),pW(e,{modelElement:"tableCell",modelAttribute:i.color,styleName:"border-color"}),pW(e,{modelElement:"tableCell",modelAttribute:i.width,styleName:"border-width"})}(e,n,{color:i.borderColor,style:i.borderStyle,width:i.borderWidth}),t.commands.add("tableCellBorderStyle",new eY(t,i.borderStyle)),t.commands.add("tableCellBorderColor",new nY(t,i.borderColor)),t.commands.add("tableCellBorderWidth",new iY(t,i.borderWidth)),AW(e,n,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:i.height}),t.commands.add("tableCellHeight",new $Z(t,i.height)),t.data.addStyleProcessorRules(Dc),AW(e,n,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:i.padding}),t.commands.add("tableCellPadding",new JZ(t,i.padding)),t.data.addStyleProcessorRules(bc),AW(e,n,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:i.backgroundColor}),t.commands.add("tableCellBackgroundColor",new QZ(t,i.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":rY}},model:{key:"tableCellHorizontalAlignment",value:t=>{const e=t.getStyle("text-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:rY}},model:{key:"tableCellHorizontalAlignment",value:t=>{const e=t.getAttribute("align");return e===n?null:e}}})}(e,n,i.horizontalAlignment),t.commands.add("tableCellHorizontalAlignment",new tY(t,i.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":oY}},model:{key:"tableCellVerticalAlignment",value:t=>{const e=t.getStyle("vertical-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:oY}},model:{key:"tableCellVerticalAlignment",value:t=>{const e=t.getAttribute("valign");return e===n?null:e}}})}(e,n,i.verticalAlignment),t.commands.add("tableCellVerticalAlignment",new XZ(t,i.verticalAlignment))}}class aY extends Yt{static get pluginName(){return"TableCellProperties"}static get requires(){return[sY,WZ]}}class cY extends $t{constructor(t,e,n){super(t),this.attributeName=e,this._defaultValue=n}refresh(){const t=_W(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:i,batch:o}=t,r=_W(n),s=this._getValueToSet(i);e.enqueueChange(o,(t=>{s?t.setAttribute(this.attributeName,s,r):t.removeAttribute(this.attributeName,r)}))}_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 lY extends cY{constructor(t,e){super(t,"tableBackgroundColor",e)}}class dY extends cY{constructor(t,e){super(t,"tableBorderColor",e)}_getValue(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class uY extends cY{constructor(t,e){super(t,"tableBorderStyle",e)}_getValue(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class hY extends cY{constructor(t,e){super(t,"tableBorderWidth",e)}_getValue(t){if(!t)return;const e=UZ(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=HZ(t,"px");if(e!==this._defaultValue)return e}}class mY extends cY{constructor(t,e){super(t,"tableWidth",e)}_getValueToSet(t){if((t=HZ(t,"px"))!==this._defaultValue)return t}}class gY extends cY{constructor(t,e){super(t,"tableHeight",e)}_getValueToSet(t){if((t=HZ(t,"px"))!==this._defaultValue)return t}}class pY extends cY{constructor(t,e){super(t,"tableAlignment",e)}}const fY=/^(left|center|right)$/,xY=/^(left|none|right)$/;class bY extends Yt{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[PK]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableProperties.defaultProperties",{});const i=GZ(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});t.data.addStyleProcessorRules(kc),function(t,e,n){const i={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};t.extend("table",{allowAttributes:Object.values(i)}),gW(e,"table",i,n),fW(e,{modelAttribute:i.color,styleName:"border-color"}),fW(e,{modelAttribute:i.style,styleName:"border-style"}),fW(e,{modelAttribute:i.width,styleName:"border-width"})}(e,n,{color:i.borderColor,style:i.borderStyle,width:i.borderWidth}),t.commands.add("tableBorderColor",new dY(t,i.borderColor)),t.commands.add("tableBorderStyle",new uY(t,i.borderStyle)),t.commands.add("tableBorderWidth",new hY(t,i.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:xY}},model:{key:"tableAlignment",value:t=>{let e=t.getStyle("float");return"none"===e&&(e="center"),e===n?null:e}}}).attributeToAttribute({view:{attributes:{align:fY}},model:{name:"table",key:"tableAlignment",value:t=>{const e=t.getAttribute("align");return e===n?null:e}}})}(e,n,i.alignment),t.commands.add("tableAlignment",new pY(t,i.alignment)),kY(e,n,{modelAttribute:"tableWidth",styleName:"width",defaultValue:i.width}),t.commands.add("tableWidth",new mY(t,i.width)),kY(e,n,{modelAttribute:"tableHeight",styleName:"height",defaultValue:i.height}),t.commands.add("tableHeight",new gY(t,i.height)),t.data.addStyleProcessorRules(bc),function(t,e,n){const{modelAttribute:i}=n;t.extend("table",{allowAttributes:[i]}),mW(e,{viewElement:"table",...n}),fW(e,n)}(e,n,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:i.backgroundColor}),t.commands.add("tableBackgroundColor",new lY(t,i.backgroundColor))}}function kY(t,e,n){const{modelAttribute:i}=n;t.extend("table",{allowAttributes:[i]}),mW(e,{viewElement:/^(table|figure)$/,shouldUpcast:t=>!("table"==t.name&&"figure"==t.parent.name),...n}),pW(e,{modelElement:"table",...n})}var wY=__webpack_require__(9221),AY={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(wY.Z,AY);wY.Z.locals;const _Y={left:Uc.objectLeft,center:Uc.objectCenter,right:Uc.objectRight};class vY extends u{constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:i,borderColorInput:o,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:a,backgroundInput:c}=this._createBackgroundFields(),{widthInput:l,operatorLabel:d,heightInput:u,dimensionsLabel:h}=this._createDimensionFields(),{alignmentToolbar:m,alignmentLabel:g}=this._createAlignmentFields();this.focusTracker=new Uu.FocusTracker,this.keystrokes=new Uu.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=i,this.borderColorInput=o,this.backgroundInput=c,this.widthInput=l,this.heightInput=u,this.alignmentToolbar=m;const{saveButtonView:p,cancelButtonView:f}=this._createActionButtons();this.saveButtonView=p,this.cancelButtonView=f,this._focusables=new s,this._focusCycler=new Gt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Jd(t,{label:this.t("Table properties")})),this.children.add(new EZ(t,{labelView:r,children:[r,n,o,i],class:"ck-table-form__border-row"})),this.children.add(new EZ(t,{labelView:a,children:[a,c],class:"ck-table-form__background-row"})),this.children.add(new EZ(t,{children:[new EZ(t,{labelView:h,children:[h,l,d,u],class:"ck-table-form__dimensions-row"}),new EZ(t,{labelView:g,children:[g,m],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new EZ(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(),i({view:this}),[this.borderColorInput,this.backgroundInput].forEach((t=>{t.fieldView.focusCycler.on("forwardCycle",(t=>{this._focusCycler.focusNext(),t.stop()})),t.fieldView.focusCycler.on("backwardCycle",(t=>{this._focusCycler.focusPrevious(),t.stop()}))})),[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=_Z({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color,colorPickerConfig:this.options.colorPickerConfig}),i=this.locale,o=this.t,r=o("Style"),s=new Ct(i);s.text=o("Border");const a=mZ(o),c=new It(i,wl);c.set({label:r,class:"ck-table-form__border-style"}),c.fieldView.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),c.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>a[t||"none"])),c.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),c.bind("isEmpty").to(this,"borderStyle",(t=>!t)),ml(c.fieldView,kZ(this,e.style),{role:"menu",ariaLabel:r});const l=new It(i,xl);l.set({label:o("Width"),class:"ck-table-form__border-width"}),l.fieldView.bind("value").to(this,"borderWidth"),l.bind("isEnabled").to(this,"borderStyle",CY),l.fieldView.on("input",(()=>{this.borderWidth=l.fieldView.element.value}));const d=new It(i,n);return d.set({label:o("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",CY),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((t,n,i,o)=>{CY(i)||(this.borderColor="",this.borderWidth=""),CY(o)||(this.borderColor=e.color,this.borderWidth=e.width)})),{borderRowLabel:s,borderStyleDropdown:c,borderColorInput:d,borderWidthInput:l}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new Ct(t);n.text=e("Background");const i=_Z({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),o=new It(t,i);return o.set({label:e("Color"),class:"ck-table-properties-form__background"}),o.fieldView.bind("value").to(this,"backgroundColor"),o.fieldView.on("input",(()=>{this.backgroundColor=o.fieldView.value})),{backgroundRowLabel:n,backgroundInput:o}}_createDimensionFields(){const t=this.locale,e=this.t,n=new Ct(t);n.text=e("Dimensions");const i=new It(t,xl);i.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),i.fieldView.bind("value").to(this,"width"),i.fieldView.on("input",(()=>{this.width=i.fieldView.element.value}));const o=new u(t);o.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new It(t,xl);return r.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:n,widthInput:i,operatorLabel:o,heightInput:r}}_createAlignmentFields(){const t=this.locale,e=this.t,n=new Ct(t);n.text=e("Alignment");const i=new Kc(t);return i.set({isCompact:!0,ariaLabel:e("Table alignment toolbar")}),wZ({view:this,icons:_Y,toolbar:i,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:i}}_createActionButtons(){const t=this.locale,e=this.t,n=new U(t),i=new U(t),o=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:e("Save"),icon:Uc.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(o,"errorText",((...t)=>t.every((t=>!t)))),i.set({label:e("Cancel"),icon:Uc.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _alignmentLabels(){const t=this.locale,e=this.t,n=e("Align table to the left"),i=e("Center table"),o=e("Align table to the right");return"rtl"===t.uiLanguageDirection?{right:o,center:i,left:n}:{left:n,center:i,right:o}}}function CY(t){return"none"!==t}const yY={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class EY extends Yt{static get requires(){return[ru]}static get pluginName(){return"TablePropertiesUI"}constructor(t){super(t),this.view=null,t.config.define("table.tableProperties",{borderColors:AZ,backgroundColors:AZ})}init(){const t=this.editor,e=t.t;this._defaultTableProperties=GZ(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=t.plugins.get(ru),t.ui.componentFactory.add("tableProperties",(n=>{const i=new U(n);i.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(i,"execute",(()=>this._showView()));const o=Object.values(yY).map((e=>t.commands.get(e)));return i.bind("isEnabled").toMany(o,"isEnabled",((...t)=>t.some((t=>t)))),i}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const t=this.editor,n=t.config.get("table.tableProperties"),i=K(n.borderColors),o=W(t.locale,i),r=K(n.backgroundColors),s=W(t.locale,r),a=!1!==n.colorPicker,c=new vY(t.locale,{borderColors:o,backgroundColors:s,defaultTableProperties:this._defaultTableProperties,colorPickerConfig:!!a&&(n.colorPicker||{})}),l=t.t;c.render(),this.listenTo(c,"submit",(()=>{this._hideView()})),this.listenTo(c,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),c.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),e({emitter:c,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const d=gZ(l),u=pZ(l);return c.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),c.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:c.borderColorInput,commandName:"tableBorderColor",errorText:d,validator:fZ})),c.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:c.borderWidthInput,commandName:"tableBorderWidth",errorText:u,validator:bZ})),c.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:c.backgroundInput,commandName:"tableBackgroundColor",errorText:d,validator:fZ})),c.on("change:width",this._getValidatedPropertyChangeCallback({viewField:c.widthInput,commandName:"tableWidth",errorText:u,validator:xZ})),c.on("change:height",this._getValidatedPropertyChangeCallback({viewField:c.heightInput,commandName:"tableHeight",errorText:u,validator:xZ})),c.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),c}_fillViewFormFromCommandValues(){const t=this.editor.commands,e=t.get("tableBorderStyle");Object.entries(yY).map((([e,n])=>{const i=e,o=this._defaultTableProperties[i]||"";return[i,t.get(n).value||o]})).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:zZ(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;iZ(t.editing.view.document.selection)?this._isViewVisible&&jZ(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,i)=>{this._isReady&&this.editor.execute(t,{value:i,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(t){const{commandName:e,viewField:n,validator:i,errorText:o}=t,r=At((()=>{n.errorText=o}),500);return(t,o,s)=>{r.cancel(),this._isReady&&(i(s)?(this.editor.execute(e,{value:s,batch:this._undoStepBatch}),n.errorText=null):r())}}}class IY extends Yt{static get pluginName(){return"TableProperties"}static get requires(){return[bY,EY]}}function SY(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let i=!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 o="table"==e.name?e.position.nodeAfter:n,r=Array.from(o.getChildren()).filter((t=>t.is("element","caption"))),s=r.shift();if(!s)continue;for(const e of r)t.move(t.createRangeIn(e),s,"end"),t.remove(e);s.nextSibling&&(t.move(t.createRangeOn(s),o,"end"),i=!0),i=!!r.length||i}}return i}(e,t)))}function TY(t){return!!t&&t.is("element","table")}function DY(t){for(const e of t.getChildren())if(e.is("element","caption"))return e;return null}function MY(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 BY extends $t{refresh(){const t=_W(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?this.value=!!DY(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,i=_W(n.document.selection),o=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(i)||t.createElement("caption");n.insertContent(o,i,"end"),e&&t.setSelection(o,"in")}_hideTableCaption(t){const e=this.editor.model,n=_W(e.document.selection),i=this.editor.plugins.get("TableCaptionEditing"),o=DY(n);i._saveCaption(n,o),e.deleteContent(t.createSelection(o,"on"))}}class OY extends Yt{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,i=t.t;e.isRegistered("caption")?e.extend("caption",{allowIn:"table"}):e.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleTableCaption",new BY(this.editor)),t.conversion.for("upcast").elementToElement({view:MY,model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>TY(t.parent)?e.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>{if(!TY(t.parent))return null;const o=e.createEditableElement("figcaption");return e.setCustomProperty("tableCaption",!0,o),o.placeholder=i("Enter table caption"),ae({view:n,element:o,keepOnFocus:!0}),d_(o,e)}}),SY(t.model)}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?Zo.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}}class NY extends Yt{static get pluginName(){return"TableCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.t;t.ui.componentFactory.add("toggleTableCaption",(i=>{const o=t.commands.get("toggleTableCaption"),r=new U(i);return r.set({icon:Uc.caption,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),r.bind("label").to(o,"value",(t=>n(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(r,"execute",(()=>{if(t.execute("toggleTableCaption",{focusCaptionOnShow:!0}),o.value){const n=function(t){const e=_W(t);return e?DY(e):null}(t.model.document.selection),i=t.editing.mapper.toViewElement(n);if(!i)return;e.scrollToTheSelection(),e.change((t=>{t.addClass("table__caption_highlighted",i)}))}t.editing.view.focus()})),r}))}}var PY=__webpack_require__(9888),RY={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(PY.Z,RY);PY.Z.locals;class LY extends Yt{static get pluginName(){return"TableCaption"}static get requires(){return[OY,NY]}}class jY extends $t{refresh(){this.isEnabled=!0}execute(t={}){const{model:e,plugins:n}=this.editor;let{table:i=e.document.selection.getSelectedElement(),columnWidths:o,tableWidth:r}=t;o&&(o=Array.isArray(o)?o:o.split(",")),e.change((t=>{r?t.setAttribute("tableWidth",r,i):t.removeAttribute("tableWidth",i);const e=n.get("TableColumnResizeEditing").getColumnGroupElement(i);if(!o&&!e)return;if(!o)return t.remove(e);const s=aK(o);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,i)}}))}}function zY(t){return e=>e.on("element:colgroup",((e,n,i)=>{const o=n.modelCursor.findAncestor("table"),r=dK(o);if(!r)return;const s=uK(r),a=t.getColumns(o);let c=(l=r,d=i.writer,uK(l).reduce(((t,e)=>{const n=e.getAttribute("columnWidth"),i=e.getAttribute("colSpan");if(!i)return t.push(n),t;for(let e=0;e<i;e++)t.push(n);return d.removeAttribute("colSpan",e),t}),[]));var l,d;c=Array.from({length:a},((t,e)=>c[e]||"auto")),(c.length!=s.length||c.includes("auto"))&&lK(s,r,aK(c),i.writer)}),{priority:"low"})}class VY extends Yt{static get requires(){return[PK,hK]}static get pluginName(){return"TableColumnResizeEditing"}constructor(t){super(t),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new((0,Uu.DomEmitterMixin)()),this._tableUtilsPlugin=t.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",((e,n,i)=>{const o=i?"removeClass":"addClass";t.editing.view.change((e=>{for(const n of t.editing.view.document.roots)e[o]("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 jY(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 dK(t)}getTableColumnElements(t){return uK(t)}getTableColumnsWidths(t){return function(t){return uK(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 i=n._tableUtilsPlugin.getColumns(e);if(0===i-t.length)return t;const o=t.map((t=>Number(t.replace("%","")))),r=function(t,e){const n=new Set;for(const i of t.getChanges())if("insert"==i.type&&i.position.nodeAfter&&"tableCell"==i.position.nodeAfter.name&&i.position.nodeAfter.getAncestors().includes(e))n.add(i.position.nodeAfter);else if("remove"==i.type){const t=i.position.nodeBefore||i.position.nodeAfter;"tableCell"==t.name&&t.getAncestors().includes(e)&&n.add(t)}return n}(n.editor.model.document.differ,e);for(const t of r){const r=i-o.length;if(0===r)continue;const a=r>0,c=n._tableUtilsPlugin.getCellLocation(t).column;if(a){const t=eK(e,n.editor),i=(s=t,Array(r).fill(s));o.splice(c,0,...i)}else{const t=o.splice(c,Math.abs(r));o[c]+=sK(t)}}var s;return o.map((t=>t+"%"))}t.document.registerPostFixer((n=>{let i=!1;for(const o of function(t){const e=new Set;for(const n of t.document.differ.getChanges()){let i=null;switch(n.type){case"insert":i=["table","tableRow","tableCell"].includes(n.name)?n.position:null;break;case"remove":i=["tableRow","tableCell"].includes(n.name)?n.position:null;break;case"attribute":n.range.start.nodeAfter&&(i=["table","tableRow","tableCell"].includes(n.range.start.nodeAfter.name)?n.range.start:null)}if(!i)continue;const o=i.nodeAfter&&i.nodeAfter.is("element","table")?i.nodeAfter:i.findAncestor("table");for(const n of t.createRangeOn(o).getItems())n.is("element","table")&&dK(n)&&e.add(n)}return e}(t)){const t=this.getColumnGroupElement(o),r=this.getTableColumnElements(t),s=this.getTableColumnsWidths(t);let a=aK(s);a=e(a,o,this),Ls(s,a)||(lK(r,t,a,n),i=!0)}return i}))}_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 i=n.writer,o=e.item,r=n.mapper.toViewElement(o),s=r.is("element","table")?r:Array.from(r.getChildren()).find((t=>t.is("element","table")));dK(o)?i.addClass("ck-table-resized",s):i.removeClass("ck-table-resized",s)}),{priority:"low"}))),t.for("upcast").add(zY(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($K),t.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(Uu.global.window.document,"mousemove",Ed(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(Uu.global.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 i=this.editor,o=i.editing.mapper.toModelElement(n.findAncestor("figure"));if(!i.model.canEditAt(o))return;e.preventDefault(),t.stop();const r=function(t,e,n){const i=Array(e.getColumns(t)),o=new EW(t);for(const t of o){const e=n.editing.mapper.toViewElement(t.cell),o=cK(n.editing.view.domConverter.mapViewToDom(e));(!i[t.column]||o<i[t.column])&&(i[t.column]=rK(o))}return i}(o,this._tableUtilsPlugin,i),s=n.findAncestor("table"),a=i.editing.view;Array.from(s.getChildren()).find((t=>t.is("element","colgroup")))||a.change((t=>{!function(t,e,n){const i=t.createContainerElement("colgroup");for(let n=0;n<e.length;n++){const o=t.createEmptyElement("col"),r=`${rK(e[n]/sK(e)*100)}%`;t.setStyle("width",r,o),t.insert(t.createPositionAt(i,"end"),o)}t.insert(t.createPositionAt(n,0),i)}(t,r,s)})),this._isResizingActive=!0,this._resizingData=this._getResizingData(e,r),a.change((t=>function(t,e,n){const i=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",`${rK(100*i)}%`,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:i,isTableCentered:o,isLtrContent:r},elements:{viewFigure:s,viewLeftColumn:a,viewRightColumn:c},widths:{viewFigureParentWidth:l,tableWidth:d,leftColumnWidth:u,rightColumnWidth:h}}=this._resizingData,m=40-u,g=i?l-d:h-40,p=(r?1:-1)*(i&&o?2:1),f=(x=(e.clientX-n)*p,b=Math.min(m,0),k=Math.max(g,0),rK(x<=b?b:x>=k?k:x));var x,b,k;0!==f&&this.editor.editing.view.change((t=>{const e=rK(100*(u+f)/d);if(t.setStyle("width",`${e}%`,a),i){const e=rK(100*(d+f)/l);t.setStyle("width",`${e}%`,s)}else{const e=rK(100*(h-f)/d);t.setStyle("width",`${e}%`,c)}}))}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:t,modelTable:e,viewFigure:n,viewColgroup:i}=this._resizingData.elements,o=this.editor,r=o.editing.view,s=this.getColumnGroupElement(e),a=Array.from(i.getChildren()).filter((t=>t.is("view:element"))),c=s?this.getTableColumnsWidths(s):null,l=a.map((t=>t.getStyle("width"))),d=!Ls(c,l),u=e.getAttribute("tableWidth"),h=n.getStyle("width"),m=u!==h;(d||m)&&(this._isResizingAllowed?o.execute("resizeTableWidth",{table:e,tableWidth:`${rK(h)}%`,columnWidths:l}):r.change((t=>{if(c)for(const e of a)t.setStyle("width",c.shift(),e);else t.remove(i);m&&(u?t.setStyle("width",u,n):t.removeStyle("width",n)),c||u||t.removeClass("ck-table-resized",[...n.getChildren()].find((t=>"table"===t.name)))}))),r.change((e=>{e.removeClass("ck-table-column-resizer__active",t)})),this._isResizingActive=!1,this._resizingData=null}_getResizingData(t,e){const n=this.editor,i=t.domEvent.clientX,o=t.target,r=o.findAncestor("td")||o.findAncestor("th"),s=n.editing.mapper.toModelElement(r),a=s.findAncestor("table"),c=function(t,e){const n=e.getCellLocation(t).column;return{leftEdge:n,rightEdge:n+(t.getAttribute("colspan")||1)-1}}(s,this._tableUtilsPlugin).rightEdge,l=c===this._tableUtilsPlugin.getColumns(a)-1,d=!a.hasAttribute("tableAlignment"),u="rtl"!==n.locale.contentLanguageDirection,h=r.findAncestor("table"),m=h.findAncestor("figure"),g=[...h.getChildren()].find((t=>t.is("element","colgroup"))),p=g.getChild(c),f=l?void 0:g.getChild(c+1);return{columnPosition:i,flags:{isRightEdge:l,isTableCentered:d,isLtrContent:u},elements:{viewResizer:o,modelTable:a,viewFigure:m,viewColgroup:g,viewLeftColumn:p,viewRightColumn:f},widths:{viewFigureParentWidth:oK(n.editing.view.domConverter.mapViewToDom(m.parent)),viewFigureWidth:oK(n.editing.view.domConverter.mapViewToDom(m)),tableWidth:nK(a,n),leftColumnWidth:e[c],rightColumnWidth:l?void 0:e[c+1]}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add((t=>{t.on("insert:tableCell",((t,e,n)=>{const i=e.item,o=n.mapper.toViewElement(i),r=n.writer;r.insert(r.createPositionAt(o,"end"),r.createUIElement("div",{class:"ck-table-column-resizer"}))}),{priority:"lowest"})}))}}var FY=__webpack_require__(728),UY={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(FY.Z,UY);FY.Z.locals;class HY extends Yt{static get requires(){return[VY,YZ]}static get pluginName(){return"TableColumnResize"}}const GY=["has","_enableCommands","_isEnabledBasedOnSelection","TrackChangesCommand","_enabledCommands","clearForceDisabled","commands","affectsData","forceDisabled","_disableUnsupportedCommands","value","editor","refresh"];var qY,WY;qY=GY,WY=111,function(t){for(;--t;)qY.push(qY.shift())}(++WY);const KY=function(t,e){return GY[t-=0]};class ZY extends $t{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[KY("0x5")](),this[KY("0x8")]=!1}refresh(){this.isEnabled=!0}execute(){this.value=!this[KY("0x3")],this[KY("0x3")]?this[KY("0x2")]():this[KY("0x7")]()}[KY("0x2")](){for(const t of this[KY("0x4")][KY("0xc")][KY("0xc")]())t[KY("0x0")]&&!this._enabledCommands[KY("0x6")](t)&&t[KY("0x1")](KY("0x9"))}[KY("0x7")](){for(const t of this[KY("0x4")].commands[KY("0xc")]())t.affectsData&&!this[KY("0xa")].has(t)&&t[KY("0xb")](KY("0x9"))}}const YY=["acceptSuggestion","editor","canEditAt","get","model","plugins","TrackChangesEditing","execute","refresh","getRanges","track-changes-accept-suggestion-not-found","isEnabled"];var JY,$Y;JY=YY,$Y=363,function(t){for(;--t;)JY.push(JY.shift())}(++$Y);const QY=function(t,e){return YY[t-=0]};class XY extends $t{constructor(t,e){super(t),this._suggestions=e,this[QY("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this[QY("0x8")]=!0}[QY("0x4")](t){const e=this._suggestions[QY("0x0")](t);if(!e)throw new Uu.CKEditorError(QY("0x7"),this);const n=e[QY("0x6")]();this[QY("0xa")][QY("0x1")][QY("0xb")](n)&&this.editor[QY("0x2")].get(QY("0x3"))[QY("0x9")](e)}}const tJ=["editor","getRanges","canEditAt","isEnabled","TrackChangesEditing","discardSuggestion","track-changes-discard-suggestion-not-found","model","get","plugins","_suggestions","refresh"];var eJ,nJ;eJ=tJ,nJ=165,function(t){for(;--t;)eJ.push(eJ.shift())}(++nJ);const iJ=function(t,e){return tJ[t-=0]};class oJ extends $t{constructor(t,e){super(t),this[iJ("0x1")]=e,this[iJ("0x2")](),this._isEnabledBasedOnSelection=!1}[iJ("0x2")](){this[iJ("0x6")]=!0}execute(t){const e=this[iJ("0x1")][iJ("0xb")](t);if(!e)throw new Uu.CKEditorError(iJ("0x9"),this);const n=e[iJ("0x4")]();this[iJ("0x3")][iJ("0xa")][iJ("0x5")](n)&&this[iJ("0x3")][iJ("0x0")][iJ("0xb")](iJ("0x7"))[iJ("0x8")](e)}}const rJ=["end","from","isMultiRange","color","length","isObject","getRanges","add","isIntersecting","createRange","isInContent","value","execute","map","change","createPositionAfter","deletion","createPositionAt","sort","type","replace","isCollapsed","createPositionBefore","start","push"];var sJ,aJ;sJ=rJ,aJ=169,function(t){for(;--t;)sJ.push(sJ.shift())}(++aJ);const cJ=function(t,e){return rJ[t-=0]};function lJ(t){return t[cJ("0x18")](((t,e)=>cJ("0x16")==t[cJ("0x0")]&&cJ("0x16")!=e.type?-1:cJ("0x16")!=t[cJ("0x0")]&&cJ("0x16")==e[cJ("0x0")]?1:0))}function dJ(t,e){let n,i=0;const o=[],r=e.schema;for(;i<t[cJ("0xa")];){const s=t[i],a=t[i+1];n||(n=e.createPositionBefore(s)),uJ(e,s,a)||(o[cJ("0x5")](e[cJ("0xf")](n,r[cJ("0xb")](s)?e[cJ("0x15")](s):e[cJ("0x17")](s,cJ("0x6")))),n=null),i++}return o}function uJ(t,e,n){if(!n)return!1;const i=t.createPositionAfter(e),o=t[cJ("0x3")](n);return i.isTouching(o)}function hJ(t,e,n){for(;n.length;){const i=n.splice(0,100);t[cJ("0x14")]((()=>{for(const t of i)t[cJ("0x10")]&&e[cJ("0x12")](t.id)}))}}const mJ=["_suggestions","getRanges","model","canEditAt","execute","refresh","some","isInContent","values","_isEnabledBasedOnSelection","editor","_command","from","isEnabled"];var gJ,pJ;gJ=mJ,pJ=349,function(t){for(;--t;)gJ.push(gJ.shift())}(++pJ);const fJ=function(t,e){return mJ[t-=0]};class xJ extends $t{constructor(t,e,n){super(t),this[fJ("0xc")]=e,this[fJ("0x1")]=n,this[fJ("0x6")](),this[fJ("0xa")]=!1}[fJ("0x6")](){const t=Array[fJ("0xd")](this[fJ("0x1")][fJ("0x9")]())[fJ("0x7")]((t=>t[fJ("0x8")]));this.isEnabled=this[fJ("0xc")][fJ("0x0")]&&t}[fJ("0x5")](){const t=lJ(Array.from(this[fJ("0x1")][fJ("0x9")]()));for(const e of t){const t=e[fJ("0x2")]();if(!this[fJ("0xb")][fJ("0x3")][fJ("0x4")](t))return}hJ(this[fJ("0xb")].model,this[fJ("0xc")],t)}}const bJ=["getRanges","_suggestions","refresh","size","from","isEnabled","_isEnabledBasedOnSelection","canEditAt","model","values","editor","selection","_selectedSuggestions","_command"];var kJ,wJ;kJ=bJ,wJ=489,function(t){for(;--t;)kJ.push(kJ.shift())}(++wJ);const AJ=function(t,e){return bJ[t-=0]};class _J extends $t{constructor(t,e,n){super(t),this[AJ("0x0")]=e,this[AJ("0x2")]=n,this._selectedSuggestions=new Set,this[AJ("0x3")](),this[AJ("0x7")]=!1}[AJ("0x3")](){const t=this[AJ("0xb")][AJ("0x9")].document[AJ("0xc")],e=Array[AJ("0x5")](this._suggestions[AJ("0xa")]());this[AJ("0xd")]=function(t,e){const n=Array[cJ("0x7")](t[cJ("0xc")]()),i=new Set;for(const o of e)if(o[cJ("0x10")])for(const e of n)for(const n of o[cJ("0xc")]())(e[cJ("0xe")](n)||t[cJ("0x2")]&&!o[cJ("0x8")]&&o.next&&n[cJ("0x6")].isTouching(e[cJ("0x4")]))&&i[cJ("0xd")](o);return i}(t,e),this[AJ("0x6")]=this[AJ("0x0")].isEnabled&&!!this[AJ("0xd")][AJ("0x4")]}execute(){const t=lJ(Array[AJ("0x5")](this[AJ("0xd")]));for(const e of t){const t=e[AJ("0x1")]();if(!this[AJ("0xb")][AJ("0x9")][AJ("0x8")](t))return}hJ(this[AJ("0xb")][AJ("0x9")],this[AJ("0x0")],t)}}const vJ=["from","decorate","_model","getFirstMarker","markers","hasComments","@external","discard","subType","onAttributesChange","getMarkerNames","split","attributes","getMarkers","next","getItems","onAccept","getRanges","creator","reduce","type","_onAccept","clear","nodeAfter","isMultiRange","setAttribute","previous","filter","author","getFirstRange","commentThread","onDiscard","substr","_onAttributesChange","removeMarker","removeMarkers","addMarkerName","getRange","addMarker","authoredAt","get","getMultiRangeId","isExternal","suggestion:","getAllAdjacentSuggestions","size","head","set","length","accept","end","_isDataLoaded","nodeBefore","isIntersectingWithRange","data","_markerNames","removeAttribute","map","createdAt","_onDiscard","change","getContainedElement"];var CJ,yJ;CJ=vJ,yJ=459,function(t){for(;--t;)CJ.push(CJ.shift())}(++yJ);const EJ=function(t,e){return vJ[t-=0]};class IJ extends((0,Uu.ObservableMixin)()){constructor(t,e){super(),this[EJ("0x1a")]=!1,this.id=e.id,this[EJ("0x39")]=e.type,this[EJ("0x2d")]=e[EJ("0x2d")]||null,this[EJ("0x3")]=e[EJ("0x3")],this[EJ("0x37")]=e[EJ("0x37")]||e[EJ("0x3")],this[EJ("0x11")]=Boolean(e[EJ("0x31")]&&e.attributes[EJ("0x2b")]),this.data=null,this[EJ("0x27")]=t,this[EJ("0x3a")]=e[EJ("0x35")],this[EJ("0x22")]=e[EJ("0x6")],this[EJ("0x8")]=e[EJ("0x2e")],this[EJ("0x1e")]=new Set,this[EJ("0x21")]=null,this[EJ("0x16")](EJ("0xe"),null),this[EJ("0x16")](EJ("0x31"),e[EJ("0x31")]||{}),this.set(EJ("0x1"),null),this[EJ("0x16")]("next",null),this[EJ("0x16")](EJ("0x5"),null),this[EJ("0x16")]("_saved",!1),this[EJ("0x26")](EJ("0x18")),this.decorate(EJ("0x2c"))}get head(){let t=this;for(;t[EJ("0x1")];)t=t[EJ("0x1")];return t}get[EJ("0x2a")](){return!!this[EJ("0x5")]&&this[EJ("0x5")].length>0}get[EJ("0x3d")](){return 0!=this[EJ("0x1e")][EJ("0x14")]&&6==Array[EJ("0x25")](this[EJ("0x1e")])[0][EJ("0x30")](":")[EJ("0x17")]}get isInContent(){return null!==this[EJ("0x28")]()}[EJ("0xb")](t){this[EJ("0x1e")].add(t)}[EJ("0x2f")](){return Array[EJ("0x25")](this[EJ("0x1e")])}[EJ("0x32")](){return this[EJ("0x2f")]()[EJ("0x20")]((t=>this[EJ("0x27")][EJ("0x29")][EJ("0xf")](t)))[EJ("0x2")]((t=>t))}[EJ("0x28")](){return this[EJ("0x32")]()[0]||null}[EJ("0xa")](){this._model[EJ("0x23")]((t=>{for(const e of this[EJ("0x32")]())t[EJ("0x9")](e)})),this._markerNames[EJ("0x3b")]()}[EJ("0x9")](t){this._model[EJ("0x23")]((e=>{e[EJ("0x9")](t)})),this._markerNames.delete(t)}addRange(t){const e=EJ("0x12")+this[EJ("0x39")]+":"+this[EJ("0x2d")]+":"+this.id+":"+this[EJ("0x37")].id+":"+IJ[EJ("0x10")]();this[EJ("0xb")](e),this[EJ("0x27")][EJ("0x23")]((n=>{n[EJ("0xd")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[EJ("0x1c")](t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[EJ("0x36")](){return this.getMarkers().map((t=>t[EJ("0xc")]()))}[EJ("0x34")](){return this[EJ("0x36")]()[EJ("0x38")](((t,e)=>[...t,...e.getItems()]),[])}[EJ("0x4")](){var t;return(null===(t=this[EJ("0x28")]())||void 0===t?void 0:t.getRange())||null}[EJ("0x24")](){const t=this[EJ("0x36")]();if(1!=t[EJ("0x17")])return null;const e=t[0],n=e.start[EJ("0x3c")],i=e[EJ("0x19")][EJ("0x1b")];return n instanceof Zo?n!=i?null:n:null}accept(){this[EJ("0x3a")](this.getRanges(),this[EJ("0x1d")],this[EJ("0x31")]),this[EJ("0xa")]()}[EJ("0x2c")](){this[EJ("0x22")](this[EJ("0x36")](),this[EJ("0x1d")],this[EJ("0x31")]),this.removeMarkers()}[EJ("0x13")](){const t=[];let e=this[EJ("0x15")];for(;e;)t.push(e),e=e[EJ("0x33")];return t}[EJ("0x0")](t,e){const n=Fo(this[EJ("0x31")]);On(n,t,e),Ls(n,this[EJ("0x31")])||(this[EJ("0x31")]=n,this._onAttributesChange(n))}[EJ("0x1f")](t){const e=Fo(this.attributes);Ke(e,t),Ls(e,this.attributes)||(this[EJ("0x31")]=e,this[EJ("0x8")](this[EJ("0x31")]))}toJSON(){return{id:this.id,type:this.subType?this.type+":"+this[EJ("0x2d")]:this[EJ("0x39")],authorId:this[EJ("0x37")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this.data,attributes:this[EJ("0x31")]}}static[EJ("0x10")](){return(0,Uu.uid)()[EJ("0x7")](1,5)}}function SJ(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const TJ=["$text","quantity","_locale","get","_itemLabels","removeFormat","format","push","_attributeLabels","map","_handleAttributeSuggestionDescription","end","name","softBreak","match","type","*Remove:* %0","has","*Change to:* %0","isInContent","$1 $2","*Merge:* %0","Container","_handleCustomCallbackDescription","add","text","nextSibling","newValue","_handleRenameSuggestionDescription","addContainer","key","item","getItemLabel","remove","elementStart","getFirstRange","label","pop","registerAttributeLabel","_addDescriptionItems","element","subType","getWalker","start","insertion","_itemLabelsCallbacks","_customCallbacks","registerDescriptionCallback","getDescriptions","set","*Insert:* %0","_handleInsertRemoveSuggestionDescription","*Remove format:* %0","matchingCallback","length","ELEMENT_SPACE","Object","removeEmptyContainer","data","addObject","skip","attribute","*Split:* %0","previousSibling","registerElementLabel","isObject","indexOf","_schema","_resolveDescriptionItems","nodeAfter","elementEnd","removeContainer","EmptyContainer","deletion","replace","addFormat","isEqual","isEmpty","join"];var DJ,MJ;DJ=TJ,MJ=136,function(t){for(;--t;)DJ.push(DJ.shift())}(++MJ);const BJ=function(t,e){return TJ[t-=0]};class OJ{constructor(t,e){this[BJ("0x44")]=[],this[BJ("0x1a")]=new Map,this[BJ("0x43")]=[],this[BJ("0x1e")]=new Map,this[BJ("0xa")]=t,this[BJ("0x18")]=e}[BJ("0x46")](t){const e=[],n=new Set,i=new Set;for(let o=0;o<t[BJ("0x4c")];o++){const r=t[o];if(!r[BJ("0x29")])continue;const s=this._handleCustomCallbackDescription(r);if(s){if(null!=r[BJ("0x3f")]){if(n[BJ("0x27")](r[BJ("0x3f")]))continue;n.add(r.subType)}e[BJ("0x1d")](s)}else if(BJ("0x4")!=r[BJ("0x25")])BJ("0x42")!=r[BJ("0x25")]&&BJ("0x10")!=r.type||this[BJ("0x49")](e,r,t[o+1]);else{const t=r[BJ("0x1")][BJ("0x34")];if(i[BJ("0x27")](t))continue;i[BJ("0x2e")](r[BJ("0x1")][BJ("0x34")]),t==B0?this[BJ("0x32")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this[BJ("0xb")](e)}[BJ("0x45")](t){this._customCallbacks[BJ("0x1d")](t)}[BJ("0x7")](t,e,n=Uu.priorities.normal){"function"==typeof t?(0,Uu.insertToPriorityArray)(this[BJ("0x43")],{matchingCallback:t,label:e,priority:n}):this._itemLabels.set(t,e)}[BJ("0x3c")](t,e){this[BJ("0x1e")][BJ("0x47")](t,e)}[BJ("0x36")](t,e=1){let n;for(const e of this[BJ("0x43")])if(e[BJ("0x4b")](t)){n=e[BJ("0x3a")];break}return n||(n=this[BJ("0x1a")][BJ("0x19")](t[BJ("0x22")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[BJ("0x22")]}[BJ("0x3d")](t,e){const n=e[BJ("0x39")]()[BJ("0x40")](),i=BJ("0x42")==e.type?BJ("0x2e"):BJ("0x37");for(const e of n){const o=e[BJ("0x35")],r=t[t[BJ("0x4c")]-1];if(o.is("$textProxy"))r&&r[BJ("0x25")][BJ("0x9")](BJ("0x2c"))>-1&&t[BJ("0x3b")](),r&&BJ("0x2f")==r[BJ("0x25")]?r[i]+=o.data:t.push({type:BJ("0x2f"),add:BJ("0x2e")==i?o.data:"",remove:"remove"==i?o.data:""});else if(this._schema.isObject(o)){const s=o;if(r&&r[BJ("0x25")][BJ("0x9")](BJ("0x2c"))>-1&&t[BJ("0x3b")](),BJ("0xd")==e[BJ("0x25")])continue;r&&r[BJ("0x25")]==i+BJ("0x4e")&&r[BJ("0x3e")][BJ("0x22")]==s[BJ("0x22")]?r.quantity++:t[BJ("0x1d")]({type:i+BJ("0x4e"),element:s,quantity:1}),n[BJ("0x3")]((t=>!("elementEnd"==t[BJ("0x25")]&&t.item==o)))}else if(this[BJ("0xa")].checkChild(o,BJ("0x16"))||o.is(BJ("0x3e"),BJ("0x23"))){const n=o;if("add"==i&&BJ("0x38")==e[BJ("0x25")]||BJ("0x37")==i&&"elementEnd"==e[BJ("0x25")])continue;if(r&&-1==r[BJ("0x25")][BJ("0x9")](BJ("0x2c"))){BJ("0x2f")==r[BJ("0x25")]&&(r[i]+="\n");continue}let s;if(s=BJ("0x2e")==i?n[BJ("0x30")]&&!this[BJ("0xa")].isObject(n[BJ("0x30")])?n[BJ("0x30")]:null:n[BJ("0x6")]&&!this._schema[BJ("0x8")](n[BJ("0x6")])?n[BJ("0x6")]:null,n[BJ("0x14")]||s&&s.isEmpty){const e=s&&s[BJ("0x14")]?s:n;r&&r[BJ("0x25")]==i+BJ("0xf")&&r[BJ("0x3e")][BJ("0x22")]==e.name?r.quantity++:t[BJ("0x1d")]({type:i+BJ("0xf"),element:e,quantity:1})}else t[BJ("0x1d")]({type:i+BJ("0x2c"),element:n})}}}_resolveDescriptionItems(t){const e=this[BJ("0x18")],n=[],i=[],o=[];for(const r of t)switch(r.type){case BJ("0x2f"):if(r[BJ("0x2e")]=r[BJ("0x2e")][BJ("0x11")](/(\S)\u000A+(\S)/g,BJ("0x2a"))[BJ("0x11")](/\u000A/g,""),r.remove=r[BJ("0x37")][BJ("0x11")](/(\S)\u000A+(\S)/g,BJ("0x2a"))[BJ("0x11")](/\u000A/g,""),""!=r[BJ("0x2e")]&&""!=r.remove){n.push({type:BJ("0x11"),content:SJ(e,"REPLACE_TEXT",['"'+r[BJ("0x37")]+'"','"'+r[BJ("0x2e")]+'"'])});continue}if(null!=r[BJ("0x2e")].match(/^ +$/)){n[BJ("0x1d")]({type:"insertion",content:SJ(e,BJ("0x48"),SJ(e,"ELEMENT_SPACE",r[BJ("0x2e")][BJ("0x4c")]))});continue}if(null!=r.remove[BJ("0x24")](/^ +$/)){n[BJ("0x1d")]({type:"deletion",content:SJ(e,BJ("0x26"),SJ(e,BJ("0x4d"),r[BJ("0x37")][BJ("0x4c")]))});continue}if(""!=r[BJ("0x2e")]){n[BJ("0x1d")]({type:BJ("0x42"),content:SJ(e,BJ("0x48"),'"'+r[BJ("0x2e")]+'"')});continue}n[BJ("0x1d")]({type:BJ("0x10"),content:SJ(e,"*Remove:* %0",'"'+r[BJ("0x37")]+'"')});continue;case"addEmptyContainer":case BJ("0x2"):n[BJ("0x1d")]({type:"insertion",content:SJ(e,BJ("0x48"),this[BJ("0x36")](r[BJ("0x3e")],r[BJ("0x17")]))});continue;case BJ("0x0"):case"removeObject":n[BJ("0x1d")]({type:BJ("0x10"),content:SJ(e,BJ("0x26"),this.getItemLabel(r[BJ("0x3e")],r.quantity))});continue;case BJ("0x33"):n.push({type:BJ("0x42"),content:SJ(e,BJ("0x5"),this[BJ("0x36")](r[BJ("0x3e")],r[BJ("0x17")]))});continue;case BJ("0xe"):n[BJ("0x1d")]({type:"deletion",content:SJ(e,BJ("0x2b"),this[BJ("0x36")](r[BJ("0x3e")],r[BJ("0x17")]))});continue;case BJ("0x12"):i[BJ("0x1d")](r.key);continue;case BJ("0x1b"):o.push(r[BJ("0x34")]);continue;default:n[BJ("0x1d")](r)}if(i[BJ("0x4c")]){const t=i[BJ("0x1f")]((t=>this._attributeLabels.has(t)?this[BJ("0x1e")][BJ("0x19")](t):t))[BJ("0x15")](", ");n[BJ("0x1d")]({type:"format",content:SJ(this[BJ("0x18")],"*Set format:* %0",t)})}if(o[BJ("0x4c")]){const t=o.map((t=>this[BJ("0x1e")][BJ("0x27")](t)?this[BJ("0x1e")][BJ("0x19")](t):t)).join(", ");n[BJ("0x1d")]({type:"format",content:SJ(this._locale,BJ("0x4a"),t)})}return n}[BJ("0x2d")](t){for(const e of this[BJ("0x44")]){const n=e(t);if(n&&BJ("0x25")in n)return n}}[BJ("0x20")](t,e){const n=e[BJ("0x1")],i=void 0===n[BJ("0x31")]?BJ("0x1b"):BJ("0x12");t[BJ("0x1d")]({type:i,key:n[BJ("0x34")]})}[BJ("0x32")](t,e){t.push({type:BJ("0x1c"),content:SJ(this[BJ("0x18")],BJ("0x28"),this[BJ("0x36")](e.getFirstRange().start[BJ("0xc")],1))})}[BJ("0x49")](t,e,n){if(this[BJ("0x3d")](t,e),n&&n[BJ("0x39")]()&&!e[BJ("0x39")]()[BJ("0x21")][BJ("0x13")](n[BJ("0x39")]()[BJ("0x41")])){const n=t[t[BJ("0x4c")]-1],i=BJ("0x42")==e[BJ("0x25")]?BJ("0x2e"):BJ("0x37");n&&BJ("0x2f")==n[BJ("0x25")]&&(n[i]+="\n")}}}const NJ=["TrackChangesEditing","editor","get","afterInit","commands","showAIAssistant","enableCommand"];var PJ,RJ;PJ=NJ,RJ=172,function(t){for(;--t;)PJ.push(PJ.shift())}(++RJ);const LJ=function(t,e){return NJ[t-=0]};class jJ extends Yt{[LJ("0x6")](){const t=this[LJ("0x4")],e=t.plugins[LJ("0x5")](LJ("0x3"));t[LJ("0x0")][LJ("0x5")]("showAIAssistant")&&e[LJ("0x2")](LJ("0x1"))}}const zJ=["value","_descriptionFactory","TrackChangesEditing","_registerLegacyDescription","left","afterInit","FORMAT_ALIGN_TO_RIGHT","editor","commandParams","get","format","right","FORMAT_ALIGN_TO_CENTER","*Format:* %0","locale","FORMAT_ALIGN_TO_LEFT","type","FORMAT_JUSTIFY_TEXT","AlignmentEditing","alignment","_enableDefaultAttributesIntegration","plugins","commandName","has"];var VJ,FJ;VJ=zJ,FJ=250,function(t){for(;--t;)VJ.push(VJ.shift())}(++FJ);const UJ=function(t,e){return zJ[t-=0]};class HJ extends Yt{[UJ("0x13")](){const t=this[UJ("0x15")],e=t[UJ("0x4")];if(!t[UJ("0xb")][UJ("0xd")](UJ("0x8")))return;const n=t[UJ("0xb")].get(UJ("0x10"));n[UJ("0xa")](UJ("0x9"),[],[UJ("0x9")]),n[UJ("0xf")].registerAttributeLabel(UJ("0x9"),SJ(e,"FORMAT_ALIGNMENT")),this._registerLegacyDescription()}[UJ("0x11")](){const t=this[UJ("0x15")],e=t.locale;t[UJ("0xb")][UJ("0x17")](UJ("0x10"))[UJ("0xf")].registerDescriptionCallback((t=>{if("formatBlock"!=t[UJ("0x6")])return;const{data:n}=t;if(n&&UJ("0x9")==n[UJ("0xc")]){const t=n[UJ("0x16")][0][UJ("0xe")];return{type:UJ("0x0"),content:SJ(e,UJ("0x3"),function(t){switch(t){case UJ("0x12"):return SJ(e,UJ("0x5"));case UJ("0x1"):return SJ(e,UJ("0x14"));case"center":return SJ(e,UJ("0x2"));case"justify":return SJ(e,UJ("0x7"))}}(t))}}}))}}const GJ=["type","*Remove format:* %0","TrackChangesEditing","toUpperCase","FORMAT_BOLD","registerDescriptionCallback","superscript","_descriptionFactory","locale","CodeEditing","plugins","FORMAT_CODE","FORMAT_ITALIC","format","SubscriptEditing","commandName","editor","BoldEditing","has","toLowerCase","SuperscriptEditing","FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","code","FORMAT_UNDERLINE","formatInline","_enableDefaultAttributesIntegration","FORMAT_SUPERSCRIPT","underline","get","subscript","registerAttributeLabel","italic","*Format:* %0","FORMAT_"];var qJ,WJ;qJ=GJ,WJ=304,function(t){for(;--t;)qJ.push(qJ.shift())}(++WJ);const KJ=function(t,e){return GJ[t-=0]},ZJ=[KJ("0x1c"),"ItalicEditing","UnderlineEditing",KJ("0x14"),"StrikethroughEditing",KJ("0x19"),KJ("0x1f")];class YJ extends Yt{afterInit(){const t=this[KJ("0x1b")],e=t[KJ("0x15")][KJ("0x5")](KJ("0xd")),n=t[KJ("0x13")];for(const i of ZJ){if(!t[KJ("0x15")][KJ("0x1d")](i))continue;const o=i.slice(0,-7)[KJ("0x1e")](),r=KJ("0xa")+o[KJ("0xe")]();e[KJ("0x2")](o,[o]),e[KJ("0x12")][KJ("0x7")](o,SJ(n,r))}this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[KJ("0x1b")],e=t[KJ("0x13")],n=t[KJ("0x15")][KJ("0x5")](KJ("0xd"));function i(t,i){n[KJ("0x12")][KJ("0x10")]((n=>{if(KJ("0x1")!=n[KJ("0xb")])return;const{data:o}=n;return o&&o[KJ("0x1a")]===t?o.commandParams[0].forceValue?{type:KJ("0x18"),content:SJ(e,KJ("0x9"),i)}:{type:KJ("0x18"),content:SJ(e,KJ("0xc"),i)}:void 0}))}i("bold",SJ(e,KJ("0xf"))),i(KJ("0x8"),SJ(e,KJ("0x17"))),i(KJ("0x4"),SJ(e,KJ("0x0"))),i(KJ("0x22"),SJ(e,KJ("0x16"))),i("strikethrough",SJ(e,KJ("0x21"))),i(KJ("0x6"),SJ(e,KJ("0x20"))),i(KJ("0x11"),SJ(e,KJ("0x3")))}}const JJ=["TrackChangesEditing","markBlockFormat","commandParams","plugins","schema","afterInit","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","name","locale","model","commands","blockQuote","$root","selection","editor","get","checkChild","forceValue","registerDescriptionCallback","getSelectedBlocks","format","commandName","value","from","*Set format:* %0","filter","parent","has"];var $J,QJ;$J=JJ,QJ=475,function(t){for(;--t;)$J.push($J.shift())}(++QJ);const XJ=function(t,e){return JJ[t-=0]};class t$ extends Yt{[XJ("0x17")](){const t=this[XJ("0x4")],e=t[XJ("0x1b")];if(!t[XJ("0x15")][XJ("0x11")](XJ("0x19")))return;const n=t[XJ("0x15")][XJ("0x5")](XJ("0x12")),i=this.editor[XJ("0x0")][XJ("0x5")](XJ("0x1"));n.enableCommand(XJ("0x1"),((e,o={})=>{const r=this[XJ("0x4")][XJ("0x1c")].document[XJ("0x3")],s=o&&void 0!==o.forceValue?o[XJ("0x7")]:!i[XJ("0xc")];let a=[];if(s){const e=Array[XJ("0xd")](r[XJ("0x9")]())[XJ("0xf")]((t=>e$(t)||function(t,e){const n=e.checkChild(t[XJ("0x10")],XJ("0x1")),i=e[XJ("0x6")]([XJ("0x2"),"blockQuote"],t);return n&&i}(t,this[XJ("0x4")][XJ("0x1c")][XJ("0x16")])));a=dJ(e,t[XJ("0x1c")])}else{const e=Array.from(r.getSelectedBlocks()).filter((t=>e$(t)));a=dJ(e,t[XJ("0x1c")])}t.model.change((()=>{for(const t of a)n[XJ("0x13")](t,{commandName:XJ("0x1"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[XJ("0x8")]((t=>{const{data:n}=t;if(n&&XJ("0x1")==n[XJ("0xb")]){const t=SJ(e,XJ("0x18"));return n[XJ("0x14")][0][XJ("0x7")]?{type:XJ("0xa"),content:SJ(e,XJ("0xe"),t)}:{type:XJ("0xa"),content:SJ(e,"*Remove format:* %0",t)}}}))}}function e$(t){return XJ("0x1")==t[XJ("0x10")][XJ("0x1a")]}const n$=["editor","TrackChangesEditing","enableCommand","commands","get","plugins","ckbox"];var i$,o$;i$=n$,o$=314,function(t){for(;--t;)i$.push(i$.shift())}(++o$);const r$=function(t,e){return n$[t-=0]};class s$ extends Yt{afterInit(){const t=this[r$("0x1")];t[r$("0x4")][r$("0x5")](r$("0x0"))&&t[r$("0x6")].get(r$("0x2"))[r$("0x3")](r$("0x0"))}}const a$=["format","find","indentCodeBlock","languages","change","type","model","from","CodeBlock","enableCommand","commandName","schema","*Remove format:* %0","checkChild","config","commands","registerElementLabel","commandParams","filter","value","editor","toLowerCase","plugins","markBlockFormat","_descriptionFactory","get","codeBlock","parent","has","formatBlock","registerDescriptionCallback","TrackChangesEditing","outdentCodeBlock","name","blockName","language","forceValue","getSelectedBlocks","ELEMENT_CODE_BLOCK","label"];var c$,l$;c$=a$,l$=372,function(t){for(;--t;)c$.push(c$.shift())}(++l$);const d$=function(t,e){return a$[t-=0]};class u$ extends Yt{afterInit(){const t=this[d$("0x8")];if(!t[d$("0xa")][d$("0x10")](d$("0x24")))return;const e=t[d$("0xa")][d$("0xd")](d$("0x13")),n=t.locale,i=t[d$("0x2")][d$("0xd")](d$("0xe"))[d$("0x1f")],o=t[d$("0x3")][d$("0xd")](d$("0xe"));e[d$("0x25")](d$("0x1e")),e[d$("0x25")](d$("0x14")),e[d$("0x25")](d$("0xe"),((n,r={})=>{const s=t[d$("0x22")],a=t.model.document.selection,c=r&&void 0!==r[d$("0x18")]?r[d$("0x18")]:!o[d$("0x7")];let l;r[d$("0x17")]||(r[d$("0x17")]=i[0][d$("0x17")]),l=c?Array[d$("0x23")](a[d$("0x19")]())[d$("0x6")]((t=>{return h$(t)||(e=t,n=s[d$("0x27")],!e.is("rootElement")&&!n.isLimit(e)&&n[d$("0x1")](e[d$("0xf")],d$("0xe")));var e,n})):Array[d$("0x23")](a[d$("0x19")]())[d$("0x6")]((t=>h$(t)));const d=dJ(l,s);s[d$("0x20")]((()=>{for(const t of d)e[d$("0xb")](t,{commandName:d$("0xe"),commandParams:[{...r,forceValue:c}],formatGroupId:d$("0x16")})}))})),e[d$("0xc")][d$("0x4")](d$("0xe"),(t=>SJ(n,d$("0x1a"),t))),e._descriptionFactory[d$("0x12")]((t=>{if(d$("0x11")!=t[d$("0x21")])return;const e=n.t,{data:o}=t;if(!o||d$("0xe")!=o[d$("0x26")])return;const r=o.commandParams[0][d$("0x17")],s=e(i[d$("0x1d")]((t=>t.language===r))[d$("0x1b")])[d$("0x9")]();return o[d$("0x5")][0][d$("0x18")]?{type:"format",content:SJ(n,"*Set format:* %0",SJ(n,d$("0x1a"),1)+" ("+s+")")}:{type:d$("0x1c"),content:SJ(n,d$("0x0"),SJ(n,d$("0x1a"),1))}}))}}function h$(t){return d$("0xe")==t[d$("0x15")]}const m$=["afterInit","has","get","addCommentThread","CommentsEditing","enableCommand","editor"];var g$,p$;g$=m$,p$=190,function(t){for(;--t;)g$.push(g$.shift())}(++p$);const f$=function(t,e){return m$[t-=0]};class x$ extends Yt{[f$("0x6")](){const t=this[f$("0x5")];t.plugins[f$("0x0")](f$("0x3"))&&t.plugins[f$("0x1")]("TrackChangesEditing")[f$("0x4")](f$("0x2"))}}const b$=["plugins","writer","activeMarkers","push","schema","getAttribute","getWalker","isAtEnd","ck-suggestion-marker--active","mapper","addClass","isContent","consumable","name","element","nextSibling","createUIElement","test","insert","type","elementEnd","get","markerName","getItems","isLimit","createRangeOn","toViewPosition","includes","parent","markerRange","previousPosition","listItem","item","getCustomProperty"];var k$,w$;k$=b$,w$=466,function(t){for(;--t;)k$.push(k$.shift())}(++w$);const A$=function(t,e){return b$[t-=0]};function _$(t,e,n){const i=[];for(const o of e[A$("0x21")]())o.hasAttribute(t)&&i[A$("0xd")](n[A$("0x1")](o));return i}function v$(t,e,{showActiveMarker:n=!0}={}){const i=t[A$("0xa")][A$("0x1f")]("TrackChangesEditing");return(o,r,s)=>{if(!s[A$("0x16")][A$("0x1b")](r.markerRange,o[A$("0x17")]))return;const a=r[A$("0x5")][A$("0x10")](),c=r[A$("0x5")].start,l=t.model[A$("0xe")];let d=null,u=null,h=!1,m=!1;for(const t of a){const e=t[A$("0x8")];h=h||l[A$("0x15")](e);const n=s[A$("0x13")].toViewElement(e);if(n&&n[A$("0x9")]("addHighlight"))return;A$("0x1e")==t[A$("0x1d")]&&l.isBlock(e)&&!l[A$("0x0")](e)&&(e[A$("0x19")]||c[A$("0x11")]?d&&d[A$("0x4")]==e||(d=e,g(t[A$("0x6")]),m=!0):u=u||t[A$("0x6")])}function g(t){const o=s[A$("0xb")][A$("0x1a")]("span",{class:"ck-suggestion-marker-"+e}),a=s[A$("0x13")][A$("0x2")](t);n&&i[A$("0xc")][A$("0x3")](r[A$("0x20")])&&s.writer[A$("0x14")](A$("0x12"),o),s[A$("0xb")][A$("0x1c")](a,o),s[A$("0x13")].bindElementToMarker(o,r[A$("0x20")])}h||m||!u||g(u)}}const C$=["requires","editor","init","markerName","remove","addMarker:suggestion:deletion","deleteForward","buffer","showSuggestionHighlights","modifySelection","unlock","start","document","downcastDispatcher","removeMarker:suggestion:deletion","merge","forward","createSelection","editing","unbindElementFromMarkerName","data","unit","model","createRange","setSelection","rootName","fromRange","isCollapsed","delete","high","getFirstRange","root","TrackChangesEditing","$graveyard","end","detach","mapper","writer","enableCommand","markerNameToElements"];var y$,E$;y$=C$,E$=140,function(t){for(;--t;)y$.push(y$.shift())}(++E$);const I$=function(t,e){return C$[t-=0]};class S$ extends Yt{static get[I$("0x14")](){return[Wp]}[I$("0x16")](){const t=this[I$("0x15")],e=t.plugins.get(I$("0xc"));e[I$("0x12")](I$("0x8"));const n=t.commands.get(I$("0x1a"));e[I$("0x12")](I$("0x1a"),((e,i={})=>{const o=t[I$("0x2")][I$("0x25")](t.model[I$("0x20")].selection);o[I$("0x7")]&&t.model[I$("0x1d")](o,{direction:I$("0x24"),unit:i[I$("0x1")]});const r=o[I$("0xa")](),s=xr[I$("0x6")](r);let a;e(i),a=I$("0xd")==s[I$("0xb")][I$("0x5")]?t[I$("0x2")][I$("0x3")](r[I$("0x1f")]):t[I$("0x2")][I$("0x3")](s[I$("0x1f")],s[I$("0xe")]),s[I$("0xf")](),t[I$("0x2")].enqueueChange(n[I$("0x1b")].batch,(t=>{n[I$("0x1b")].lock(),t[I$("0x4")](t[I$("0x3")](a[I$("0xe")])),n.buffer[I$("0x1e")]()}))})),t[I$("0x26")][I$("0x21")].on(I$("0x19"),v$(t,I$("0x23")),{priority:I$("0x9")}),t[I$("0x0")][I$("0x21")].on(I$("0x19"),((e,n,i)=>{i.options[I$("0x1c")]&&v$(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,i)}),{priority:I$("0x9")}),t[I$("0x26")].downcastDispatcher.on(I$("0x22"),((t,e,n)=>{const i=n[I$("0x10")][I$("0x13")](e[I$("0x17")]);if(i)for(const t of i)t.is("uiElement")&&(n.mapper[I$("0x27")](t,e[I$("0x17")]),n[I$("0x11")][I$("0x18")](t))}),{priority:I$("0x9")})}}const T$=["mergeListItemBackward","isObject","*Indent:* %0","commandName","from","previousSibling","change","fromRange","*Format:* insert into %0","locale","listType","list.multiBlock","start","ELEMENT_NUMBERED_LIST","documentList","markBlockFormat","formatBlock","model","ELEMENT_BULLETED_LIST","config","commandParams","enableCommand","plugins","selection","listItemId","afterInit","format","mergeListItemForward","findIndex","end","nextSibling","numberedList","*Format:* remove from %0","push","_suggestionFactory","getRanges","containsItem","*Merge:* %0","before","registerCustomCallback","createRange","getSelectedBlocks","document","listIndent","createPositionAt","_descriptionFactory","getFirstRange","DocumentListUtils","toUpperCase","getAttribute","after","value","splitListItemBefore","execute","bulletedList","commands","refresh","DocumentListEditing","deletion","*Outdent:* %0","ELEMENT_","markMultiRangeBlockFormat","parent","type","registerDescriptionCallback","nodeAfter","schema","slice","expandListBlocksToCompleteList","outdentList","length","*Change to:* %0","registerElementLabel","splitListItemAfter","next","hasAttribute","has","formatInline","forceValue","ELEMENT_LIST_ITEM","get"];var D$,M$;D$=T$,M$=123,function(t){for(;--t;)D$.push(D$.shift())}(++M$);const B$=function(t,e){return T$[t-=0]};class O$ extends Yt{[B$("0x40")](){const t=this.editor;if(!t[B$("0x3d")][B$("0x22")](B$("0xf")))return;const e=t[B$("0x30")],n=t[B$("0x3d")][B$("0x26")]("TrackChangesEditing"),i=t.plugins[B$("0x26")](B$("0x5"));function o(e){return()=>{const o=t[B$("0xd")][B$("0x26")](e);if(o[B$("0x9")]&&!t.config[B$("0x26")](B$("0x32")))return void t[B$("0xb")]("paragraph",{});let r=Array[B$("0x2b")](t[B$("0x38")][B$("0x0")][B$("0x3e")].getSelectedBlocks());if(a(e)){r=i[B$("0x1a")](r);const t=[];for(const e of r)i.isFirstBlockOfListItem(e)&&t[B$("0x48")](e);r=t}t[B$("0x38")].change((()=>{n[B$("0x13")](r,{commandName:e,commandParams:[{forceValue:!o[B$("0x9")]}],formatGroupId:B$("0x31")},[],B$("0x35"))}))}}function r(e){return()=>{const i=function(t){let e=Array[B$("0x2b")](t);const n=e[B$("0x43")]((t=>!t[B$("0x21")]("listItemId")));return n>-1&&(e=e[B$("0x19")](0,n)),e}(t[B$("0x38")][B$("0x0")][B$("0x3e")][B$("0x50")]()),o=i[i[B$("0x1c")]-1],r=t[B$("0x38")][B$("0x18")][B$("0x28")](o)?B$("0x8"):"end",s=t.model.createRange(t.model[B$("0x2")](i[0],B$("0x4d")),t[B$("0x38")][B$("0x2")](o,r));t[B$("0x38")][B$("0x2d")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[B$("0x45")];for(;t&&t.getAttribute("listIndent")>n[B$("0x7")]("listIndent");)e.add(t),t=t.nextSibling}return Array[B$("0x2b")](e)}(i))}))}}function s(e){return()=>{const i=t[B$("0x38")].document[B$("0x3e")].getSelectedBlocks()[B$("0x20")]().value,o=t.model.createPositionAt(i,B$("0x4d")),r=t[B$("0x38")].createPositionAt(i,0),s=t.model[B$("0x4f")](o,r);t[B$("0x38")][B$("0x2d")]((()=>{n[B$("0x36")](s,{commandName:e,commandParams:[],formatGroupId:B$("0x31")})}))}}function a(e){const n=t[B$("0xd")][B$("0x26")]("bulletedList")[B$("0x9")],i=t[B$("0xd")][B$("0x26")](B$("0x46"))[B$("0x9")];return B$("0x46")===e?n:i}n[B$("0x3c")]("numberedList",o("numberedList")),n[B$("0x3c")](B$("0xc"),o(B$("0xc"))),n[B$("0x3c")]("indentList",r("indentList")),n[B$("0x3c")](B$("0x1b"),r(B$("0x1b"))),n[B$("0x3c")](B$("0x1f"),s("splitListItemAfter")),n[B$("0x3c")](B$("0xa"),s(B$("0xa"))),n[B$("0x3")][B$("0x1e")]((function(e){const n=!t.model[B$("0x18")][B$("0x28")](e),i=e[B$("0x2c")],o=e.nextSibling,r=e[B$("0x7")](B$("0x3f")),s=!i||i[B$("0x7")]("listItemId")!==r,a=!o||o[B$("0x7")]("listItemId")!==r;return n&&Boolean(r)&&s&&a}),(t=>SJ(e,B$("0x25"),t))),n[B$("0x3")][B$("0x16")]((function(n){if(B$("0x37")!=n[B$("0x15")]&&B$("0x23")!=n.type)return;const{data:i}=n;if(!i)return;let o,r,s,c;switch(i[B$("0x2a")]){case"bulletedList":s=i[B$("0x3b")][0][B$("0x24")],c=a(i[B$("0x2a")]),o=s?"*Format:* insert into %0":B$("0x47"),!c&&t[B$("0x3a")][B$("0x26")](B$("0x32"))||(o=B$("0x1d")),r={type:B$("0x41"),content:SJ(e,o,SJ(e,B$("0x39")))};break;case B$("0x46"):s=i[B$("0x3b")][0].forceValue,c=a(i.commandName),o=B$(s?"0x2f":"0x47"),!c&&t[B$("0x3a")].get(B$("0x32"))||(o=B$("0x1d")),r={type:"format",content:SJ(e,o,SJ(e,B$("0x34")))};break;case"indentList":o=B$("0x29"),r={type:B$("0x41"),content:SJ(e,o,SJ(e,B$("0x25")))};break;case B$("0x1b"):o=function(t){const e=t[B$("0x4")]();let n=e[B$("0x33")].nodeAfter;for(;n&&e[B$("0x4b")](n);){if(n.getAttribute(B$("0x1"))>0)return!1;n=n[B$("0x45")]}return!0}(n)?SJ(e,"*Format:* remove from %0",SJ(e,function(t){const e=t.getFirstRange()[B$("0x33")][B$("0x17")];return B$("0x12")+e[B$("0x7")](B$("0x31"))[B$("0x6")]()+"_LIST"}(n))):SJ(e,B$("0x11"),SJ(e,B$("0x25"))),r={type:B$("0x41"),content:o};break;case B$("0x27"):case B$("0x42"):!1===i.multipleBlocks&&(o=B$("0x4c"),r={type:B$("0x10"),content:SJ(e,o,SJ(e,B$("0x25")))})}return r})),n[B$("0x49")][B$("0x4e")](B$("0x37"),B$("0x35"),"accept",(function(e,n){const i=[];for(let n of e)n.start[B$("0x17")]===n[B$("0x44")][B$("0x14")]&&(n=t[B$("0x38")][B$("0x4f")](t.model[B$("0x2")](n[B$("0x33")][B$("0x17")],0))),i[B$("0x48")](n);t[B$("0x38")][B$("0x2d")]((e=>{const o=t[B$("0x38")][B$("0x0")][B$("0x3e")],r=Array[B$("0x2b")](o[B$("0x4a")]()).map((t=>xr[B$("0x2e")](t)));e.setSelection(i),t[B$("0xd")][B$("0x26")](n.commandName)[B$("0xe")](),n[B$("0x3b")][B$("0x48")]({forceDefaultExecution:!0}),t[B$("0xb")](n.commandName,...n[B$("0x3b")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}const N$=["filter","listStyle","listStart","_LIST_","ELEMENT_","from","getSelectedBlocks","afterInit","_getTranslationKeyForListStyle","listReversed","push","registerDescriptionCallback","get","*Format:* set start index to %0","format","reversed","editor","startIndex","bind","*Format:* set order to reversed","DocumentListPropertiesUtils","handleListStyleCommand","numbered","*Change to:* %0","enableCommand","getListTypeFromListStyleType","markMultiRangeBlockFormat","isFirstBlockOfListItem","handleDescriptions","DocumentListPropertiesEditing","*Format:* set order to regular","toUpperCase","change","document","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","handleListStartCommand","commandName","formatBlock","model","type","handleListReversedCommand","DocumentListUtils","selection","TrackChangesEditing","listType","replace","commandParams","plugins","isListItemBlock","expandListBlocksToCompleteList"];var P$,R$;P$=N$,R$=132,function(t){for(;--t;)P$.push(P$.shift())}(++R$);const L$=function(t,e){return N$[t-=0]};class j$ extends Yt{[L$("0x1c")](){if(!this[L$("0x25")].plugins.has(L$("0x32")))return;const t=this.editor.config[L$("0x21")]("list.properties"),e=this[L$("0x25")][L$("0x12")].get(L$("0xe"));t.styles&&e[L$("0x2d")](L$("0x16"),this[L$("0x2a")][L$("0x27")](this)),t[L$("0x24")]&&e[L$("0x2d")](L$("0x1e"),this[L$("0xb")][L$("0x27")](this)),t[L$("0x26")]&&e[L$("0x2d")](L$("0x17"),this[L$("0x6")][L$("0x27")](this)),e._descriptionFactory[L$("0x20")](this[L$("0x31")].bind(this))}[L$("0x2a")](t,e={}){const n=this[L$("0x25")][L$("0x12")][L$("0x21")](L$("0xe")),i=this[L$("0x4")]();this[L$("0x25")].model[L$("0x2")]((()=>{n[L$("0x2f")](i,{commandName:L$("0x16"),commandParams:[{type:e[L$("0xa")]}],formatGroupId:L$("0x16")})}))}[L$("0xb")](t,e={}){const n=this[L$("0x25")].plugins[L$("0x21")](L$("0xe")),i=this[L$("0x25")][L$("0x12")][L$("0x21")]("DocumentListUtils"),o=this._getSuggestionBlocks((t=>i[L$("0x13")](t)&&"numbered"===t.getAttribute(L$("0xf"))));null!==o&&this.editor[L$("0x9")][L$("0x2")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:L$("0x1e"),commandParams:[{reversed:e.reversed}],formatGroupId:L$("0x1e")})}))}handleListStartCommand(t,e={}){const n=this[L$("0x25")].plugins[L$("0x21")](L$("0xe")),i=this[L$("0x25")][L$("0x12")][L$("0x21")]("DocumentListUtils"),o=this[L$("0x5")]((t=>i[L$("0x13")](t)&&L$("0x2b")===t.getAttribute(L$("0xf"))));null!==o&&this.editor[L$("0x9")].change((()=>{n[L$("0x2f")](o,{commandName:L$("0x17"),commandParams:[{startIndex:e[L$("0x26")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){if(L$("0x8")!=t[L$("0xa")]&&"formatInline"!=t[L$("0xa")])return;const e=this[L$("0x25")].locale,{data:n}=t;if(!n)return;let i,o;switch(n[L$("0x7")]){case L$("0x16"):i=L$("0x2c"),o={type:"format",content:SJ(e,i,SJ(e,this[L$("0x1d")](n[L$("0x11")][0][L$("0xa")])))};break;case L$("0x1e"):i=n[L$("0x11")][0][L$("0x24")]?L$("0x28"):L$("0x0"),o={type:L$("0x23"),content:SJ(e,i)};break;case"listStart":i=L$("0x22"),o={type:L$("0x23"),content:SJ(e,i,n.commandParams[0][L$("0x26")])}}return o}[L$("0x4")](){const t=this[L$("0x25")][L$("0x12")][L$("0x21")](L$("0xc"));let e=Array[L$("0x1a")](this[L$("0x25")][L$("0x9")].document[L$("0xd")][L$("0x1b")]());return e.push(...t[L$("0x14")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[L$("0x25")][L$("0x12")][L$("0x21")]("DocumentListUtils");let n=Array[L$("0x1a")](this[L$("0x25")][L$("0x9")][L$("0x3")][L$("0xd")].getSelectedBlocks())[L$("0x15")](t);if(!n.length)return null;n=e[L$("0x14")](n);const i=[];for(const t of n)e[L$("0x30")](t)&&i[L$("0x1f")](t);return i}[L$("0x1d")](t){return L$("0x19")+this[L$("0x25")][L$("0x12")][L$("0x21")](L$("0x29"))[L$("0x2e")](t)[L$("0x1")]()+L$("0x18")+t[L$("0x1")]()[L$("0x10")](/-/g,"_")}}const z$=["model","high","getFirstRange","remove","hasClass","markerNameToElements","change","fromRange","fire","data","plugins","commands","editing","parent","showSuggestionHighlights","init","options","end","bind","markInsertion","createRange","afterExecute","unbindElementFromMarkerName","ck-suggestion-marker-split","downcastDispatcher","mapper","enableCommand","addMarker:suggestion:insertion","getFirstPosition","get","document","markerName","split","TrackChangesEditing"];var V$,F$;V$=z$,F$=184,function(t){for(;--t;)V$.push(V$.shift())}(++F$);const U$=function(t,e){return z$[t-=0]};class H$ extends Yt{static get requires(){return[lx]}[U$("0x1")](){const t=this.editor,e=t[U$("0x1e")][U$("0xf")](U$("0x13")),n=t[U$("0x1f")][U$("0xf")]("enter");e[U$("0xc")]("enter",(()=>{t[U$("0x14")][U$("0x1a")]((i=>{const o=t.model[U$("0x10")].selection,r=o[U$("0xe")](),s=xr[U$("0x1b")](o[U$("0x16")]());if(n.enterBlock(i)){const n=t.model.createPositionAt(r[U$("0x21")].nextSibling,0),o=i.createRange(r,n);e[U$("0x5")](o)}else i.setSelection(i[U$("0x6")](s[U$("0x3")]));s.detach(),n[U$("0x1c")](U$("0x7"),{writer:i})}))})),t[U$("0x20")][U$("0xa")].on("addMarker:suggestion:insertion",v$(t,U$("0x12")),{priority:"high"}),t[U$("0x20")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const i=n[U$("0xb")][U$("0x19")](e[U$("0x11")]);if(i)for(const t of i)t[U$("0x18")](U$("0x9"))&&(n.mapper[U$("0x8")](t,e.markerName),n.writer[U$("0x17")](t))}),{priority:"high"}),t[U$("0x1d")].downcastDispatcher.on(U$("0xd"),((e,n,i)=>{i[U$("0x2")][U$("0x0")]&&v$(t,U$("0x12"),{showActiveMarker:!1})[U$("0x4")](this)(e,n,i)}),{priority:U$("0x15")})}}const G$=["start","FindAndReplaceUtils","plugins","has","filter","createPositionAt","enableCommand","editor","findPrevious","end","FindAndReplaceEditing","model","get","handleFindCommand","findNext","_isInDeletionRange","find","bind","item","getRange","getIntersection","suggestion:deletion","getMarkersGroup"];var q$,W$;q$=G$,W$=417,function(t){for(;--t;)q$.push(q$.shift())}(++W$);const K$=function(t,e){return G$[t-=0]};class Z$ extends Yt{afterInit(){if(!this.editor.plugins[K$("0x0")](K$("0x7")))return;const t=this.editor[K$("0x16")][K$("0x9")]("TrackChangesEditing");t[K$("0x3")](K$("0xd"),this[K$("0xa")][K$("0xe")](this)),t[K$("0x3")](K$("0xb")),t[K$("0x3")](K$("0x5")),t[K$("0x3")]("replace"),t.enableCommand("replaceAll")}[K$("0xa")](t,e,n={}){const i=this.editor[K$("0x16")][K$("0x9")](K$("0x15"));return t((t=>("string"==typeof e?i.findByTextCallback(e,n):e)(t)[K$("0x1")]((e=>!1===this._isInDeletionRange(e,t[K$("0xf")])))),n)}[K$("0xc")](t,e){const n=this[K$("0x4")][K$("0x8")].createRange(this[K$("0x4")][K$("0x8")][K$("0x2")](e,t[K$("0x14")]),this[K$("0x4")][K$("0x8")][K$("0x2")](e,t[K$("0x6")]));for(const t of this[K$("0x4")].model.markers[K$("0x13")](K$("0x12")))if(null!==n[K$("0x11")](t[K$("0x10")]()))return!0;return!1}}const Y$=["fontBackgroundColor","formatInline","FORMAT_FONT_FAMILY","get","*Reset font color*","TrackChangesEditing","value","*Set font family:* %0","trim","fontFamily","registerAttributeLabel","_registerLegacyDescription","FontSizeEditing","fontColor","FORMAT_FONT_COLOR","config","title","find","commandParams","toLowerCase","fontSize","FontFamilyEditing","*Set font color:* %0","normalizeSizeOptions","afterInit","type","model","_enableDefaultAttributesIntegration","format","*Set font background color:* %0","editor","_descriptionFactory","*Reset font size*","has","fontColor.colors","*Reset font family*","locale","FORMAT_FONT_BACKGROUND","commandName","plugins","fontBackgroundColor.colors","FORMAT_FONT_SIZE","label"];var J$,$$;J$=Y$,$$=340,function(t){for(;--t;)J$.push(J$.shift())}(++$$);const Q$=function(t,e){return Y$[t-=0]},X$=[{pluginName:Q$("0x10"),commandName:"fontSize"},{pluginName:Q$("0x19"),commandName:Q$("0xd")},{pluginName:"FontColorEditing",commandName:Q$("0x11")},{pluginName:"FontBackgroundColorEditing",commandName:Q$("0x4")}];class tQ extends Yt{[Q$("0x1c")](){const t=this[Q$("0x22")][Q$("0x28")],e=this[Q$("0x22")][Q$("0x0")].get(Q$("0x9"));for(const{pluginName:t,commandName:n}of X$)this.editor[Q$("0x0")][Q$("0x25")](t)&&e[Q$("0x1f")](n,[n]);t.t,e[Q$("0x23")][Q$("0xe")](Q$("0x18"),SJ(t,Q$("0x2"))),e[Q$("0x23")][Q$("0xe")](Q$("0xd"),SJ(t,Q$("0x6"))),e[Q$("0x23")][Q$("0xe")](Q$("0x11"),SJ(t,Q$("0x12"))),e[Q$("0x23")][Q$("0xe")]("fontBackgroundColor",SJ(t,Q$("0x29"))),this[Q$("0xf")]()}[Q$("0xf")](){const t=this[Q$("0x22")],e=t[Q$("0x28")];t[Q$("0x0")][Q$("0x7")](Q$("0x9"))[Q$("0x23")].registerDescriptionCallback((t=>{const n=e.t;if(Q$("0x5")!=t[Q$("0x1d")])return;const{data:i}=t;if(null!=i){if(Q$("0x18")==i[Q$("0x2a")]){const t=i[Q$("0x16")][0][Q$("0xa")];if(t){const i=n(this[Q$("0x22")].plugins[Q$("0x7")]("FontSize")[Q$("0x1b")](this[Q$("0x22")][Q$("0x13")][Q$("0x7")]("fontSize.options"))[Q$("0x15")]((e=>e.model==t))[Q$("0x14")]).toLowerCase();return{type:Q$("0x20"),content:SJ(e,"*Set font size:* %0",i)}}return{type:Q$("0x20"),content:SJ(e,Q$("0x24"))}}if(Q$("0xd")==i.commandName){const t=i[Q$("0x16")][0].value;return t?{type:Q$("0x20"),content:SJ(e,Q$("0xb"),t)}:{type:Q$("0x20"),content:SJ(e,Q$("0x27"))}}if("fontColor"==i[Q$("0x2a")]){const t=i[Q$("0x16")][0][Q$("0xa")];if(t){const i=K(this[Q$("0x22")].config[Q$("0x7")](Q$("0x26")))[Q$("0x15")]((e=>e[Q$("0x1e")]==t));let o=t,r="";return i&&(o=i[Q$("0x3")],r=n(o)[Q$("0x17")]()),{type:Q$("0x20"),content:SJ(e,Q$("0x1a"),r)[Q$("0xc")](),color:{value:t,title:r||o}}}return{type:Q$("0x20"),content:SJ(e,Q$("0x8"))}}if("fontBackgroundColor"==i[Q$("0x2a")]){const t=i.commandParams[0][Q$("0xa")];if(t){const i=K(this.editor[Q$("0x13")][Q$("0x7")](Q$("0x1")))[Q$("0x15")]((e=>e[Q$("0x1e")]==t));let o=t,r="";return i&&(o=i[Q$("0x3")],r=n(o).toLowerCase()),{type:Q$("0x20"),content:SJ(e,Q$("0x21"),r)[Q$("0xc")](),color:{value:t,title:r||o}}}return{type:Q$("0x20"),content:SJ(e,"*Reset font background color*")}}}}))}}const eQ=["length","title","join","formatInline","copyFormat","get","fontSize","toUpperCase","model","*Remove all formatting*","entries","charAt","find","commandName","commands","formatBlock","plugins","label","fontBackgroundColor","locale","afterInit","registerDescriptionCallback","TrackChangesEditing","toLowerCase","fontSize.options","editor","format","fontColor","fontColor.colors","config","*Set format to:* %0","FontSize","normalizeSizeOptions","slice","pasteFormat","_registerLegacyDescription"];var nQ,iQ;nQ=eQ,iQ=239,function(t){for(;--t;)nQ.push(nQ.shift())}(++iQ);const oQ=function(t,e){return eQ[t-=0]};class rQ extends Yt{[oQ("0x21")](){const t=this[oQ("0x2")],e=t[oQ("0x1d")][oQ("0x12")](oQ("0x23")),n=t[oQ("0x1b")][oQ("0x12")]("copyFormat"),i=t[oQ("0x1b")].get(oQ("0xb"));n&&i&&(e._enableDefaultAttributesIntegration(oQ("0xb")),e.enableCommand(oQ("0x11")),this[oQ("0xc")]())}[oQ("0xc")](){const t=this.editor,e=t[oQ("0x20")];t[oQ("0x1d")][oQ("0x12")]("TrackChangesEditing")._descriptionFactory[oQ("0x22")]((n=>{if(oQ("0x1c")!=n.type&&oQ("0x10")!=n.type)return;const{data:i}=n;if(i&&oQ("0xb")===i[oQ("0x1a")]){const n=[],o=i.commandParams[0];for(const[e,i]of Object[oQ("0x17")](o))n.push(sQ(t,e,i));return n[oQ("0xd")]?{type:oQ("0x3"),content:SJ(e,oQ("0x7"),n[oQ("0xf")](", "))}:{type:oQ("0x3"),content:SJ(e,oQ("0x16"))}}}))}}function sQ(t,e,n){const i=t.locale.t,o=e.split(/(?=[A-Z])/)[oQ("0xf")](" "),r=i(o[oQ("0x18")](0)[oQ("0x14")]()+o[oQ("0xa")](1))[oQ("0x0")]();if("boolean"==typeof n)return r;if(oQ("0x4")===e||oQ("0x1f")===e){const e=K(t.config.get(oQ("0x5")))[oQ("0x19")]((t=>t[oQ("0x15")]==n));return r+" ("+(e?i(e[oQ("0x1e")]).toLowerCase():n)+")"}if(oQ("0x13")===e&&isNaN(parseFloat(n))){const e=t.plugins[oQ("0x12")](oQ("0x8"))[oQ("0x9")](t[oQ("0x6")][oQ("0x12")](oQ("0x1"))).find((t=>t[oQ("0x15")]==n));return r+" ("+(e?i(e[oQ("0xe")])[oQ("0x0")]():n)+")"}return r+" ("+n+")"}const aQ=["afterInit","*Change to:* %0","formatBlock","heading","name","plugins","has","commandParams","get","registerElementLabel","locale","paragraph","match","model","_registerLegacyDescription","ELEMENT_HEADING","format","TrackChangesEditing","_descriptionFactory","_getHeadingLevel","find","_headingOptions","config","editor","value","heading.options","view","ELEMENT_HEADING_CUSTOM"];var cQ,lQ;cQ=aQ,lQ=395,function(t){for(;--t;)cQ.push(cQ.shift())}(++lQ);const dQ=function(t,e){return aQ[t-=0]};class uQ extends Yt{[dQ("0x19")](){const t=this.editor;if(!t[dQ("0x2")][dQ("0x3")]("HeadingEditing"))return;this[dQ("0x12")]=t[dQ("0x13")].get(dQ("0x16"));const e=t[dQ("0x7")],n=t[dQ("0x2")].get(dQ("0xe"));n._enableDefaultAttributesIntegration(dQ("0x0"));for(const t of this[dQ("0x12")])dQ("0x8")!=t.model&&n._descriptionFactory[dQ("0x6")](t.model,(n=>{const i=this._getHeadingLevel(t.model);return null!==i?(s=n,a=i,SJ(e,dQ("0xc"),[s,a])):(o=n,r=t.title,SJ(e,dQ("0x18"),[o,r]));var o,r,s,a}));this[dQ("0xb")]()}_registerLegacyDescription(){const t=this[dQ("0x14")],e=t[dQ("0x7")];t[dQ("0x2")][dQ("0x5")](dQ("0xe"))[dQ("0xf")].registerDescriptionCallback((t=>{if(dQ("0x1b")!=t.type)return;const{data:n}=t;if(n&&"heading"==n.commandName){const t=n[dQ("0x4")][0][dQ("0x15")],s=this[dQ("0x10")](t);if(null!==s)return{type:dQ("0xd"),content:SJ(e,dQ("0x1a"),(1,r=s,SJ(e,dQ("0xc"),[1,r])))};const a=this[dQ("0x12")][dQ("0x11")]((e=>e[dQ("0xa")]===t)).title;return{type:dQ("0xd"),content:SJ(e,dQ("0x1a"),(i=1,o=a,SJ(e,"ELEMENT_HEADING_CUSTOM",[i,o])))}}var i,o,r}))}[dQ("0x10")](t){var e,n;const i=t[dQ("0x9")](/^heading(\d+)/);if(i)return i[1];const o=null===(e=this._headingOptions)||void 0===e?void 0:e[dQ("0x11")]((e=>e[dQ("0xa")]==t));if(o&&o[dQ("0x17")]){const t=o.view,e=(null!==(n=t[dQ("0x1")])&&void 0!==n?n:t)[dQ("0x9")](/^h(\d+)/);if(e)return e[1]}return null}}const hQ=["model","title","*Set highlight:* %0","get","*Remove highlight*","highlight","FORMAT_HIGHLIGHT","registerAttributeLabel","toLowerCase","format","formatInline","find","_enableDefaultAttributesIntegration","TrackChangesEditing","afterInit","_registerLegacyDescription","commandName","locale","config","editor","highlight.options","commandParams","_descriptionFactory","plugins","has"];var mQ,gQ;mQ=hQ,gQ=440,function(t){for(;--t;)mQ.push(mQ.shift())}(++gQ);const pQ=function(t,e){return hQ[t-=0]};class fQ extends Yt{[pQ("0x18")](){const t=this[pQ("0x4")];if(!t[pQ("0x8")][pQ("0x9")]("HighlightEditing"))return;const e=t[pQ("0x8")].get(pQ("0x17")),n=t[pQ("0x2")];e[pQ("0x16")]("highlight",[pQ("0xf")]),e._descriptionFactory[pQ("0x11")](pQ("0xf"),SJ(n,pQ("0x10"))),this[pQ("0x0")]()}[pQ("0x0")](){const t=this[pQ("0x4")],e=t[pQ("0x2")];t[pQ("0x8")][pQ("0xd")]("TrackChangesEditing")[pQ("0x7")].registerDescriptionCallback((n=>{if(pQ("0x14")!=n.type)return;const{data:i}=n;if(i&&pQ("0xf")==i[pQ("0x1")]){const n=e.t,o=i[pQ("0x6")][0].value;if(o){const i=t[pQ("0x3")].get(pQ("0x5"))[pQ("0x15")]((t=>t[pQ("0xa")]==o)),r=n(i[pQ("0xb")])[pQ("0x12")]();return{type:pQ("0x13"),content:SJ(e,pQ("0xc"),r),color:{value:i.color,title:i[pQ("0xb")]}}}return{type:pQ("0x13"),content:SJ(e,pQ("0xe"),SJ(e,pQ("0x10")))}}}))}}const xQ=["ck-horizontal-line","div","afterInit","has","elementToStructure","dataDowncast","get","HorizontalLineEditing","enableCommand","horizontalLine","conversion","addClass","TrackChangesEditing","insert","registerElementLabel","editor","locale","plugins","createEmptyElement","ELEMENT_HORIZONTAL_LINE","createContainerElement"];var bQ,kQ;bQ=xQ,kQ=365,function(t){for(;--t;)bQ.push(bQ.shift())}(++kQ);const wQ=function(t,e){return xQ[t-=0]};class AQ extends Yt{[wQ("0xf")](){const t=this[wQ("0x7")];if(!t[wQ("0x9")][wQ("0x10")](wQ("0x14")))return;t.plugins.get("TrackChangesEditing")[wQ("0x0")]("horizontalLine");const e=t.plugins[wQ("0x13")](wQ("0x4")),n=t[wQ("0x8")];e._descriptionFactory[wQ("0x6")](wQ("0x1"),(t=>SJ(n,wQ("0xb"),t))),t[wQ("0x2")].for(wQ("0x12"))[wQ("0x11")]({model:wQ("0x1"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const i=e[wQ("0xc")](wQ("0xe")),o=e[wQ("0xa")]("hr");return e[wQ("0x3")](wQ("0xd"),i),e[wQ("0x5")](e.createPositionAt(i,0),o),i},converterPriority:"high"})}}const _Q=["_registerLegacyDescription","nodeAfter","editor","_descriptionFactory","attribute","format","_enableDefaultAttributesIntegration","value","commandName","get","rawHtml","plugins","formatBlock","getFirstRange","TrackChangesEditing","key","has","ELEMENT_HTML_EMBED","locale","type","htmlEmbed","afterInit"];var vQ,CQ;vQ=_Q,CQ=159,function(t){for(;--t;)vQ.push(vQ.shift())}(++CQ);const yQ=function(t,e){return _Q[t-=0]};class EQ extends Yt{[yQ("0x10")](){const t=this.editor;if(!t[yQ("0x6")][yQ("0xb")]("HtmlEmbed"))return;const e=t[yQ("0x6")][yQ("0x4")](yQ("0x9")),n=t[yQ("0xd")];e._descriptionFactory.registerElementLabel(yQ("0x5"),(t=>SJ(n,yQ("0xc"),t))),e[yQ("0x1")](yQ("0xf"),[],[yQ("0x2")]),e[yQ("0x14")].registerDescriptionCallback((t=>{if(yQ("0x15")!=t[yQ("0xe")])return;const{data:e}=t;if(e&&yQ("0x2")==e[yQ("0xa")]&&t[yQ("0x8")]().start[yQ("0x12")].is("element",yQ("0x5"))){const t=SJ(n,yQ("0xc"));return{type:yQ("0x0"),content:SJ(n,"*Change %0 content*",t)}}})),this[yQ("0x11")]()}[yQ("0x11")](){const t=this[yQ("0x13")],e=t[yQ("0xd")];t.plugins[yQ("0x4")](yQ("0x9"))[yQ("0x14")].registerDescriptionCallback((t=>{if(yQ("0x7")!=t[yQ("0xe")])return;const{data:n}=t;if(n&&yQ("0xf")==n[yQ("0x3")]){const t=SJ(e,yQ("0xc"));return{type:yQ("0x0"),content:SJ(e,"*Change %0 content*",t)}}}))}}const IQ=["insertImage","join","ELEMENT_CAPTION","markBlockFormat","resizedWidth","uploadImage","ImageResize","registerDescriptionCallback","getClosestSelectedImageElement","insertion","ImageCaptionUtils","Inline image to block image","forceDefaultExecution","plugins","ImageUploadEditing","schema","toggleImageCaption","_registerLegacyDescription","ELEMENT_IMAGE","accept","*Set image width:* %0","discard","convertBlockImageToInline","chain","imageTextAlternative","imageTypeBlock","filter","type","markInsertion","addObject","ImageBlockEditing","getFirstRange","registerAttributeLabel","has","subType","*Reset image width*","element","newValue","imageStylePreApply","isBlockImage","selection","backward","attribute","isCollapsed","TrackChangesEditing","getContainedElement","_descriptionFactory","commandName","imageTypeInline","caption","removeObject","previous","alt","fromPosition","findIndex","length","commandParams","formatBlock","_enableDefaultAttributesIntegration","deletion","*Remove image text alternative*","width","*Set image text alternative:* %0","start","change","Block image to inline image","formatInline","detach","document","createRangeOn","ELEMENT_INLINE_IMAGE","imageInline","get","createRange","forward","registerCustomCallback","ImageInlineEditing","resizeImage","end","ImageUtils","ImageCaptionEditing","_findSuggestions","isBefore","_suggestionFactory","ImageEditing","imageCaption","toPrevious","afterInit","locale","markDeletion","getSuggestionCallback","isEqual","registerElementLabel","getCaptionFromImageModelElement","format","getNearestSelectionRange","model","convertInlineImageToBlock","editor","enableCommand"];var SQ,TQ;SQ=IQ,TQ=155,function(t){for(;--t;)SQ.push(SQ.shift())}(++TQ);const DQ=function(t,e){return IQ[t-=0]};class MQ extends Yt{[DQ("0x20")](){const t=this[DQ("0x2b")];if(!t.plugins[DQ("0x4e")](DQ("0x1d")))return;const e=t[DQ("0x3a")][DQ("0x11")](DQ("0x59")),n=t[DQ("0x3a")][DQ("0x11")](DQ("0x18")),i=t[DQ("0x21")];e[DQ("0x2c")](DQ("0x2d")),e[DQ("0x5b")][DQ("0x25")]("imageBlock",(t=>SJ(i,DQ("0x3f"),t))),e[DQ("0x5b")][DQ("0x25")](DQ("0x10"),(t=>SJ(i,DQ("0xf"),t))),e._descriptionFactory[DQ("0x25")](DQ("0x5e"),(()=>SJ(i,DQ("0x2f")))),t[DQ("0x3a")][DQ("0x4e")](DQ("0x3b"))&&e[DQ("0x2c")](DQ("0x32")),t[DQ("0x3a")][DQ("0x4e")](DQ("0x4b"))&&t[DQ("0x3a")].has(DQ("0x15"))&&(e.enableCommand(DQ("0x5d"),((i,o)=>{const r=n[DQ("0x35")](t[DQ("0x29")][DQ("0xd")][DQ("0x55")]);t.model[DQ("0x9")]((()=>{e[DQ("0x30")](r,{commandName:DQ("0x5d"),commandParams:[o]},[],"convertBlockImageToInline")}))})),e.enableCommand(DQ("0x46"),((i,o)=>{t.model[DQ("0x9")]((r=>{let s=n[DQ("0x35")](t.model[DQ("0xd")][DQ("0x55")]),a=r[DQ("0xe")](s);const c=na[DQ("0x62")](a[DQ("0x8")],DQ("0x1f")),l=na[DQ("0x62")](a[DQ("0x17")],"toNext");e[DQ("0x39")]((()=>i(o))),s=n[DQ("0x35")](t[DQ("0x29")][DQ("0xd")].selection),a=r[DQ("0xe")](s);const d=r[DQ("0x12")](c,l);c[DQ("0xc")](),l[DQ("0xc")](),e.markBlockFormat(s,{commandName:DQ("0x5d"),commandParams:[o]},[],DQ("0x2a")),d[DQ("0x8")][DQ("0x1b")](a[DQ("0x8")])&&e[DQ("0x49")](r.createRange(d[DQ("0x8")],a[DQ("0x8")]),DQ("0x2a")),a[DQ("0x17")].isBefore(d.end)&&e.markInsertion(r[DQ("0x12")](a.end,d[DQ("0x17")]),DQ("0x2a"))}))})),e._suggestionFactory[DQ("0x14")]("formatBlock","convertInlineImageToBlock",DQ("0x2e"),(()=>!1)),e[DQ("0x1c")][DQ("0x14")]("formatBlock",DQ("0x2a"),DQ("0x40"),(()=>!1)),e._suggestionFactory[DQ("0x14")](DQ("0x2"),"convertInlineImageToBlock",DQ("0x42"),e[DQ("0x1c")].getSuggestionCallback(DQ("0x2"),"",DQ("0x40"))),e[DQ("0x1c")][DQ("0x14")](DQ("0x36"),DQ("0x2a"),DQ("0x2e"),(()=>!1)),e._suggestionFactory[DQ("0x14")]("insertion",DQ("0x2a"),DQ("0x42"),(([n])=>{const i=e[DQ("0x1c")][DQ("0x23")]("insertion","",DQ("0x42"));let o=n[DQ("0x8")],r=n.end;const s=t[DQ("0x29")].schema[DQ("0x28")](o,DQ("0x56")),a=t[DQ("0x29")][DQ("0x3c")][DQ("0x28")](r,DQ("0x13"));s[DQ("0x58")]&&(o=s[DQ("0x8")]),a[DQ("0x58")]&&(r=a[DQ("0x17")]),i([t[DQ("0x29")][DQ("0x12")](o,r)])})),e[DQ("0x1c")][DQ("0x14")](DQ("0x2"),"convertInlineImageToBlock","chain",s),e[DQ("0x1c")].registerCustomCallback(DQ("0x36"),DQ("0x2a"),DQ("0x44"),s)),t.plugins[DQ("0x4e")](DQ("0x19"))&&(e.enableCommand(DQ("0x3d"),((i,o)=>{const r=t[DQ("0x3a")][DQ("0x11")](DQ("0x37"));let s=n[DQ("0x35")](t[DQ("0x29")][DQ("0xd")][DQ("0x55")]),a=r[DQ("0x26")](s);t.model[DQ("0x9")]((()=>{if(a)return void e[DQ("0x22")](t[DQ("0x29")][DQ("0xe")](a));const c=n[DQ("0x54")](s);i(o),s=n[DQ("0x35")](t[DQ("0x29")][DQ("0xd")][DQ("0x55")]),a=r[DQ("0x26")](s),e.markInsertion(t[DQ("0x29")][DQ("0xe")](a),c?null:DQ("0x1e"))}))})),e._suggestionFactory[DQ("0x14")](DQ("0x36"),"imageCaption",DQ("0x44"),s));const o=[{type:DQ("0x2"),subType:DQ("0x53")},{type:DQ("0x36"),subType:DQ("0x1e")},{type:DQ("0x2"),subType:"convertInlineImageToBlock"},{type:DQ("0x36"),subType:DQ("0x2a")}];function r(t,i){const r=o[DQ("0x63")]((({type:e,subType:n})=>t[DQ("0x48")]==e&&t.subType==n)),s=o[DQ("0x63")]((({type:t,subType:e})=>i.type==t&&i[DQ("0x4f")]==e));if(r<0||s<0)return!1;const a=t[DQ("0x4c")](),c=i.getFirstRange();if((0==r||1==r)&&2==s&&a.isIntersecting(c))return!0;if(2==r&&3==s){const t=e[DQ("0x1a")](a,DQ("0x36"))[DQ("0x47")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[DQ("0x4f")]));if(t[DQ("0x0")]>1&&c[DQ("0x17")][DQ("0x24")](a[DQ("0x8")]))return!0;if(1==t[DQ("0x0")]&&(a.start[DQ("0x24")](c.end)||a[DQ("0x17")][DQ("0x24")](c[DQ("0x8")])))return!0}if(3==r&&3==s&&a.start[DQ("0x1b")](c.start)){const t=a[DQ("0x17")].nodeAfter,e=c[DQ("0x8")].nodeBefore;return n[DQ("0x54")](t)&&t===e}return!1}function s(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[DQ("0x3a")][DQ("0x4e")](DQ("0x33"))&&(e[DQ("0x3")](DQ("0x16"),[],[DQ("0x31")]),e[DQ("0x5b")][DQ("0x4d")](DQ("0x31"),SJ(i,"FORMAT_IMAGE_SIZE"))),t[DQ("0x3a")][DQ("0x4e")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration(DQ("0x45"),[],["alt"]),e._descriptionFactory[DQ("0x34")]((t=>{if(o.find((({type:e,subType:n})=>t[DQ("0x48")]==e&&t[DQ("0x4f")]==n)))return t[DQ("0x60")]?{}:void 0})),e[DQ("0x5b")][DQ("0x34")]((t=>{if(DQ("0x36")==t[DQ("0x48")]||DQ("0x4")==t.type){const e=t[DQ("0x5a")]();if(e&&e.is(DQ("0x51"),"caption"))return{type:DQ("0x36")==t[DQ("0x48")]?DQ("0x4a"):DQ("0x5f"),element:e,quantity:1}}})),e._descriptionFactory[DQ("0x34")]((t=>"formatBlock"==t.type&&DQ("0x2a")==t[DQ("0x4f")]?{type:DQ("0x27"),content:DQ("0x38")}:DQ("0x2")==t[DQ("0x48")]&&DQ("0x43")==t[DQ("0x4f")]?{type:DQ("0x27"),content:DQ("0xa")}:void 0)),e[DQ("0x5b")][DQ("0x34")]((t=>{if(DQ("0x57")!=t[DQ("0x48")])return;const{data:e}=t;if(!e||DQ("0x61")!=e.key)return;const n=e[DQ("0x52")];return n?{type:"format",content:SJ(i,DQ("0x7"),'"'+n+'"')}:{type:DQ("0x27"),content:SJ(i,DQ("0x5"))}})),this[DQ("0x3e")]()}[DQ("0x3e")](){const t=this[DQ("0x2b")],e=t[DQ("0x21")];t[DQ("0x3a")][DQ("0x11")](DQ("0x59"))._descriptionFactory[DQ("0x34")]((t=>{if(DQ("0x2")!=t.type&&DQ("0xb")!=t[DQ("0x48")])return;const{data:n}=t;if(n){if(DQ("0x45")==n[DQ("0x5c")]){const t=n[DQ("0x1")][0][DQ("0x52")];return t?{type:"format",content:SJ(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:DQ("0x27"),content:SJ(e,DQ("0x5"))}}if(DQ("0x16")==n.commandName){const t=n[DQ("0x1")][0][DQ("0x6")];return t?{type:"format",content:SJ(e,DQ("0x41"),t)}:{type:DQ("0x27"),content:SJ(e,DQ("0x50"))}}}}))}}const BQ=["_suggestionFactory","editor","ImageEditing","has","_handleLegacySuggestions","getSuggestionCallback","format","TrackChangesEditing","registerCustomCallback","_registerLegacyDescription","afterInit","attribute","discard","_descriptionFactory","get","locale","plugins","formatInline","accept","type","registerDescriptionCallback","newValue","_enableDefaultAttributesIntegration","src","*Replace image URL*","replaceImageSource","formatBlock"];var OQ,NQ;OQ=BQ,NQ=439,function(t){for(;--t;)OQ.push(OQ.shift())}(++NQ);const PQ=function(t,e){return BQ[t-=0]};class RQ extends Yt{[PQ("0x3")](){if(!this[PQ("0x15")][PQ("0x9")][PQ("0x17")](PQ("0x16")))return;const t=this[PQ("0x15")][PQ("0x8")],e=this.editor[PQ("0x9")][PQ("0x7")](PQ("0x0"));e[PQ("0xf")]("replaceImageSource",[],["src"]),e._descriptionFactory.registerDescriptionCallback((e=>{if(PQ("0x4")!=e[PQ("0xc")])return;const{data:n}=e;return n&&PQ("0x10")==n.key?n[PQ("0xe")]&&n.oldValue?{type:PQ("0x1a"),content:SJ(t,PQ("0x11"))}:{type:"format",content:""}:void 0})),this[PQ("0x18")]()}[PQ("0x18")](){const t=this[PQ("0x15")].plugins[PQ("0x7")](PQ("0x0"));t._suggestionFactory[PQ("0x1")](PQ("0x13"),PQ("0x12"),PQ("0xb"),t[PQ("0x14")][PQ("0x19")](PQ("0x13"),null,PQ("0x5"))),t[PQ("0x14")].registerCustomCallback("formatBlock",PQ("0x12"),PQ("0x5"),t[PQ("0x14")][PQ("0x19")](PQ("0x13"),null,PQ("0xb"))),this[PQ("0x2")]()}_registerLegacyDescription(){const t=this[PQ("0x15")],e=t[PQ("0x8")];t.plugins[PQ("0x7")](PQ("0x0"))[PQ("0x6")][PQ("0xd")]((t=>{if(PQ("0x13")!=t[PQ("0xc")]&&PQ("0xa")!=t[PQ("0xc")])return;const{data:n}=t;return n&&PQ("0x12")==n.commandName?{type:PQ("0x1a"),content:SJ(e,"*Format:* replace image URL")}:void 0}))}}const LQ=["has","start","isEqual","document","getContainedElement","getClosestSelectedImageElement","nodeAfter","imageStylePostApply","commandReversedParams","isBlockImage","isIntersecting","ImageStyleEditing","length","refresh","chain","newRange","getFirstRange","isInlineImage","normalizedStyles","value","getSuggestion","Users","plugins","head","shouldConvertImageType","filter","_findSuggestions","subType","type","markBlockFormat","join","locale","isOwn","markInlineFormat","_suggestionFactory","formatInline","commandName","side","imageStyle","findIndex","_descriptionFactory","ImageUtils","format","setImageNaturalSizeAttributes","next","accept","title","isInContent","get","discard","_registerLegacyDescription","isBefore","editor","registerDescriptionCallback","model","selection","name","discardSuggestion","end","imageTypeInline","convertInlineImageToBlock","imageStylePreApply","toLowerCase","hasSuggestion","formatBlock","suggestion","commands","_splitMarkerName","registerCustomCallback","imageCaption","author","insertion","createRangeOn","TrackChangesEditing"];var jQ,zQ;jQ=LQ,zQ=453,function(t){for(;--t;)jQ.push(jQ.shift())}(++zQ);const VQ=function(t,e){return LQ[t-=0]};class FQ extends Yt{afterInit(){const t=this[VQ("0x2b")];if(!t.plugins[VQ("0x41")]("ImageStyleEditing"))return;const e=t.plugins[VQ("0x27")](VQ("0x40")),n=t.plugins[VQ("0x27")](VQ("0x20")),i={};e.enableCommand(VQ("0x1d"),((i,o)=>{const r=t[VQ("0xd")][VQ("0x27")](VQ("0xc")).me,s=t[VQ("0x39")].get(VQ("0x1d"));let a=n[VQ("0x46")](t[VQ("0x2d")][VQ("0x44")].selection),c=t[VQ("0x2d")][VQ("0x3f")](a),l=s.value;if(l==o[VQ("0xa")])return;const d={commandName:VQ("0x1d"),commandParams:[o],formatGroupId:(0,Uu.uid)()};t[VQ("0x2d")].change((()=>{if(e.getSuggestions().filter((t=>t.isInContent&&r==t[VQ("0x3d")]&&("formatBlock"==t[VQ("0x13")]||"formatInline"==t[VQ("0x13")])&&(VQ("0x34")==t[VQ("0x12")]||"imageStylePostApply"==t[VQ("0x12")])&&t[VQ("0x7")]()[VQ("0x43")](c))).forEach((t=>e[VQ("0x30")](t[VQ("0xe")]))),a=n[VQ("0x46")](t[VQ("0x2d")][VQ("0x44")].selection),c=t[VQ("0x2d")][VQ("0x3f")](a),s[VQ("0x4")](),t[VQ("0x39")][VQ("0x27")](VQ("0x32"))[VQ("0x4")](),t[VQ("0x39")][VQ("0x27")]("imageTypeBlock")[VQ("0x4")](),l=s[VQ("0xa")],l!=o[VQ("0xa")])return n[VQ("0x8")](a)&&s[VQ("0xf")](o[VQ("0xa")],a)?(i({...o,setImageSizes:!1}),a=n[VQ("0x46")](t.model[VQ("0x44")][VQ("0x2e")]),void e.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],VQ("0x34"))):void(n.isBlockImage(a)?e[VQ("0x14")](a,d,[],VQ("0x48")):e[VQ("0x18")](c,d,VQ("0x48")))}))}));for(const e of t.plugins[VQ("0x27")](VQ("0x2"))[VQ("0x9")])i[e[VQ("0x2f")]]=e[VQ("0x25")][VQ("0x35")]();e[VQ("0x19")].registerCustomCallback(VQ("0x37"),VQ("0x34"),"join",(()=>!1)),e[VQ("0x19")][VQ("0x3b")](VQ("0x37"),VQ("0x48"),VQ("0x15"),(()=>!1)),e[VQ("0x19")].registerCustomCallback(VQ("0x1a"),VQ("0x48"),VQ("0x15"),(()=>!1)),e[VQ("0x19")].registerCustomCallback(VQ("0x37"),"imageStylePreApply",VQ("0x24"),(([t])=>{n[VQ("0x22")](t[VQ("0x45")]())})),e[VQ("0x19")][VQ("0x3b")]("formatBlock",VQ("0x34"),VQ("0x28"),((t,n)=>{e[VQ("0x19")].getSuggestionCallback(VQ("0x37"),"","accept")(t,{commandName:n.commandName,commandParams:n[VQ("0x49")]})})),e[VQ("0x19")][VQ("0x3b")](VQ("0x37"),VQ("0x34"),VQ("0x5"),(function(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}));const o=[{type:"formatBlock",subType:VQ("0x34")},{type:VQ("0x3e"),subType:VQ("0x3c")},{type:VQ("0x37"),subType:VQ("0x33")},{type:VQ("0x3e"),subType:VQ("0x33")}];function r(t,i){const r=o.findIndex((({type:e,subType:n})=>t[VQ("0x13")]==e&&t[VQ("0x12")]==n)),s=o[VQ("0x1e")]((({type:t,subType:e})=>i[VQ("0x13")]==t&&i.subType==e));if(r<0||s<0)return!1;const a=t[VQ("0x7")](),c=i[VQ("0x7")]();if((0==r||1==r)&&2==s&&a[VQ("0x1")](c))return!0;if(2==r&&3==s){const t=e[VQ("0x11")](a,VQ("0x3e"))[VQ("0x10")]((({suggestion:t,meta:e})=>e[VQ("0x17")]&&"convertInlineImageToBlock"==t[VQ("0x12")]));if(t[VQ("0x3")]>1&&c[VQ("0x31")][VQ("0x43")](a[VQ("0x42")]))return!0;if(1==t[VQ("0x3")]&&(a[VQ("0x42")][VQ("0x43")](c.end)||a.end[VQ("0x43")](c[VQ("0x42")])))return!0}if(3==r&&3==s&&a[VQ("0x42")][VQ("0x2a")](c.start)){const t=a.end[VQ("0x47")],e=c.start.nodeBefore;return n[VQ("0x0")](t)&&t===e}return!1}t[VQ("0x2d")][VQ("0x44")].registerPostFixer((()=>{let i=!1;const o=Array.from(t[VQ("0x2d")].document.differ.getChangedMarkers());for(const{name:t,data:r}of o){const{group:o,type:s,subType:a,id:c}=e[VQ("0x3a")](t);if(VQ("0x38")==o&&e[VQ("0x36")](c)){if(VQ("0x37")==s&&(VQ("0x34")==a||VQ("0x48")==a)){const t=e.getSuggestion(c);if(r[VQ("0x6")]){const o=t[VQ("0x7")]()[VQ("0x45")]();if(n[VQ("0x0")](o))continue;e.discardSuggestion(t),i=!0}}if(VQ("0x3e")==s&&VQ("0x3c")==a&&!r[VQ("0x6")]){const t=e[VQ("0xb")](c);t[VQ("0x23")]&&t[VQ("0x23")][VQ("0x26")]&&(e[VQ("0x30")](t[VQ("0x23")]),i=!0)}}}return i})),this[VQ("0x29")](i)}[VQ("0x29")](t){const e=this[VQ("0x2b")],n=e[VQ("0x16")];e.plugins.get("TrackChangesEditing")[VQ("0x1f")][VQ("0x2c")]((e=>{if("formatBlock"!=e[VQ("0x13")]&&VQ("0x1a")!=e[VQ("0x13")])return;const{data:i}=e;if(!i||VQ("0x1d")!=i[VQ("0x1b")])return;const o=i.commandParams[0][VQ("0xa")];return r=VQ("0x1c")===o?SJ(n,"FORMAT_SIDE_IMAGE"):t[o]||o,{type:VQ("0x21"),content:SJ(n,"*Format:* %0",r)};var r}))}}const UQ=["commands","listenTo","dataInsert","editor","_trackChangesExecuted","get","_handleImportedData","high","track_changes","lowest","trackChanges","plugins","enableCommand","collaboration_features","bind","forEach","afterInit","value","_trackChangesValueDuringImport","TrackChangesEditing","importWord","execute","_setSuggestionData"];var HQ,GQ;HQ=UQ,GQ=118,function(t){for(;--t;)HQ.push(HQ.shift())}(++GQ);const qQ=function(t,e){return UQ[t-=0]};class WQ extends Yt{constructor(t){super(t),this[qQ("0xf")]=!1,this._trackChangesExecuted=!1}[qQ("0xd")](){const t=this[qQ("0x0")],e=t[qQ("0x14")][qQ("0x2")]("importWord"),n=t.commands.get(qQ("0x7"));e&&(e.on("execute",((t,[,e])=>{this[qQ("0xf")]=n[qQ("0xe")],e[qQ("0xa")][qQ("0x5")]=!this[qQ("0xf")]}),{priority:qQ("0x4")}),this.listenTo(e,"dataInsert",this[qQ("0x3")][qQ("0xb")](this)),this[qQ("0x15")](e,qQ("0x16"),(()=>{this[qQ("0x1")]&&(n[qQ("0x12")](),this[qQ("0x1")]=!1)}),{priority:qQ("0x6")}),t[qQ("0x8")][qQ("0x2")](qQ("0x10"))[qQ("0x9")]("importWord"))}[qQ("0x3")](t,e){const{suggestions:n}=e,i=this[qQ("0x0")][qQ("0x14")][qQ("0x2")](qQ("0x7")),o=i[qQ("0xe")];this._trackChangesValueDuringImport!==o&&(i[qQ("0x12")](),this._trackChangesExecuted=!0),n&&n[qQ("0xc")]((({id:t,type:e,author:n,created_at:i})=>{const o={id:t,type:e,authorId:this[qQ("0x0")][qQ("0x8")][qQ("0x2")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:qQ("0x11")}}};this[qQ("0x0")][qQ("0x8")][qQ("0x2")](qQ("0x10"))[qQ("0x13")](o)}))}}const KQ=["_registerLegacyDescription","formatBlock","outdentBlock","enableCommand","commandName","registerAttributeLabel","get","locale","TrackChangesEditing","registerDescriptionCallback","indentBlock","has","blockIndent","IndentBlock","_descriptionFactory","afterInit","getItems","_registerBlockAttribute","format","indent","plugins","type","_enableDefaultAttributesIntegration","IndentEditing","editor","outdent","getItemLabel"];var ZQ,YQ;ZQ=KQ,YQ=359,function(t){for(;--t;)ZQ.push(ZQ.shift())}(++YQ);const JQ=function(t,e){return KQ[t-=0]};class $Q extends Yt{[JQ("0x7")](){const t=this[JQ("0x10")],e=t[JQ("0xc")][JQ("0x19")](JQ("0x0"));if(t[JQ("0xc")][JQ("0x3")](JQ("0xf"))&&(e[JQ("0x16")](JQ("0xb")),e.enableCommand(JQ("0x11"))),t[JQ("0xc")][JQ("0x3")](JQ("0x5")))for(const t of[JQ("0x2"),JQ("0x15")])e[JQ("0xe")](t);const n=t[JQ("0x1a")];e[JQ("0x9")](JQ("0x4")),e[JQ("0x6")][JQ("0x18")](JQ("0x4"),SJ(n,"FORMAT_INDENT")),this[JQ("0x13")]()}_registerLegacyDescription(){const t=this[JQ("0x10")],e=t[JQ("0x1a")],n=t[JQ("0xc")][JQ("0x19")]("TrackChangesEditing");n[JQ("0x6")][JQ("0x1")]((t=>{if(JQ("0x14")!=t[JQ("0xd")])return;const{data:i}=t;if(!i)return;if(JQ("0x2")!=i[JQ("0x17")]&&JQ("0x15")!=i.commandName)return;const o=t[JQ("0x8")]()[0],r=n._descriptionFactory[JQ("0x12")](o);return JQ("0x2")==i[JQ("0x17")]?{type:JQ("0xa"),content:SJ(e,"*Indent:* %0",r)}:JQ("0x15")==i[JQ("0x17")]?{type:JQ("0xa"),content:SJ(e,"*Outdent:* %0",r)}:void 0}))}}var QQ,XQ,tX=["init","plugins","get","editor","enableCommand","TrackChangesEditing","requires"];QQ=tX,XQ=171,function(t){for(;--t;)QQ.push(QQ.shift())}(++XQ);var eX=function(t,e){return tX[t-=0]};class nX extends Yt{static get[eX("0x3")](){return[Lp]}[eX("0x4")](){this[eX("0x0")][eX("0x5")][eX("0x6")](eX("0x2"))[eX("0x1")]("input")}}const iX=["key","label","format","LinkEditing","type","has","commandParams","plugins","locale","registerDescriptionCallback","*Remove link*","_descriptionFactory","_enableDefaultAttributesIntegration","get","commandName","unlink","newValue","*Set link:* %0","attribute","editor","manualDecorators","linkHref","link","toLowerCase","commands","TrackChangesEditing","map","_registerLegacyDescription"];var oX,rX;oX=iX,rX=444,function(t){for(;--t;)oX.push(oX.shift())}(++rX);const sX=function(t,e){return iX[t-=0]};class aX extends Yt{afterInit(){const t=this.editor;if(!t[sX("0xb")][sX("0x9")](sX("0x7")))return;const e=t[sX("0xb")][sX("0x11")](sX("0x1")),n=t[sX("0x0")][sX("0x11")](sX("0x1a"));e[sX("0x10")](sX("0x1a"),["linkHref",...n[sX("0x18")][sX("0x2")]((t=>t.id))]),e._enableDefaultAttributesIntegration(sX("0x13"));for(const t of n[sX("0x18")])e._descriptionFactory.registerAttributeLabel(t.id,"link ("+t[sX("0x5")][sX("0x1b")]()+")");e[sX("0xf")][sX("0xd")]((e=>{if(sX("0x16")!=e[sX("0x8")])return;const{data:n}=e;if(!n||sX("0x19")!=n[sX("0x4")])return;const i=n[sX("0x14")],o=t.locale;return{type:"format",content:null==i?SJ(o,"*Remove link*"):SJ(o,sX("0x15"),'"'+i+'"')}})),this[sX("0x3")]()}[sX("0x3")](){const t=this[sX("0x17")],e=t[sX("0xc")];t[sX("0xb")][sX("0x11")](sX("0x1"))[sX("0xf")][sX("0xd")]((t=>{if("formatInline"!=t[sX("0x8")])return;const{data:n}=t;if(n){if(sX("0x1a")==n[sX("0x12")]){const t=n[sX("0xa")][0];return{type:"format",content:SJ(e,sX("0x15"),'"'+t+'"')}}return sX("0x13")==n[sX("0x12")]?{type:sX("0x6"),content:SJ(e,sX("0xe"))}:void 0}}))}}const cX=["ListEditing","parent","enableCommand","document","end","has","bulleted","*Uncheck item*","getAttribute","format","checkChild","outdentList","element","before","model","_descriptionFactory","commandName","get","registerDescriptionCallback","registerElementLabel","execute","formatInline","slice","checkTodoList","createPositionAt","value","replace","numbered","locale","paragraph","nextSibling","ELEMENT_TODO_LIST","blockName","getSelectedBlocks","*Change to:* %0","numberedList","change","name","plugins","_selectedElements","ELEMENT_LIST_ITEM","bulletedList","List","isObject","filter","formatBlock","schema","previousSibling","listItem","TodoListEditing","length","selection","listType","listIndent","indentList","todoList","commands","todoListChecked","TrackChangesEditing","type","add","markBlockFormat","from"];var lX,dX;lX=cX,dX=465,function(t){for(;--t;)lX.push(lX.shift())}(++dX);const uX=function(t,e){return cX[t-=0]};class hX extends Yt{afterInit(){const t=this.editor,e=t[uX("0x4")];if(!t[uX("0xe")].has(uX("0x27")))return;const n=t[uX("0xe")][uX("0x38")](uX("0x22")),i=t[uX("0xe")][uX("0x2c")](uX("0x19"));function o(e){return()=>{const i=t[uX("0x35")][uX("0x2a")].selection,o=t.commands[uX("0x38")](e);if(o.value)return void t[uX("0x3b")](uX("0x5"),{});const r=e[uX("0x3d")](0,-4),s=function(t,e,n){let i=Array[uX("0x26")](t).filter((t=>{return e=t,(i=n)[uX("0x31")](e[uX("0x28")],uX("0x18"))&&!i[uX("0x13")](e);var e,i}));i=i[uX("0x14")]((t=>!t.is(uX("0x33"),uX("0x18"))||t[uX("0x2f")](uX("0x1c"))!=e));const o=new Set;for(const t of i)t.is(uX("0x33"),uX("0x18"))?o.add(mX(t)):o[uX("0x24")](t);return Array[uX("0x26")](o)}(i[uX("0x9")](),r,t.model[uX("0x16")]);t[uX("0x35")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!o.value}],formatGroupId:uX("0x8")},gX(t))}))}}function r(e){return()=>{const i=function(t){let e=Array[uX("0x26")](t);const n=e.findIndex((t=>uX("0x18")!=t[uX("0xd")]));return n>-1&&(e=e[uX("0x3d")](0,n)),e}(t.model[uX("0x2a")][uX("0x1b")][uX("0x9")]()),o=t[uX("0x35")].createRange(t[uX("0x35")].createPositionAt(i[0],uX("0x34")),t[uX("0x35")][uX("0x0")](i[i[uX("0x1a")]-1],uX("0x2b")));t[uX("0x35")][uX("0xc")]((()=>{n[uX("0x25")](o,{commandName:e,commandParams:[],formatGroupId:uX("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[uX("0x6")];for(;t&&t[uX("0x2f")]("listIndent")>n.getAttribute(uX("0x1d"));)e[uX("0x24")](t),t=t[uX("0x6")]}return Array.from(e)}(i))}))}}n[uX("0x29")](uX("0xb"),o("numberedList")),n[uX("0x29")](uX("0x11"),o(uX("0x11"))),i&&n.enableCommand(uX("0x1f"),o(uX("0x1f"))),n.enableCommand(uX("0x1e"),r(uX("0x1e"))),n.enableCommand("outdentList",r(uX("0x32"))),i&&n[uX("0x29")](uX("0x3e"),(()=>{const e=t[uX("0x20")][uX("0x38")]("checkTodoList"),i=Array[uX("0x26")](e[uX("0xf")]);i[uX("0x14")]((t=>t[uX("0x2f")](uX("0x21"))!=e[uX("0x1")])),t[uX("0x35")][uX("0xc")]((()=>{for(const t of i)n[uX("0x25")](t,{commandName:uX("0x3e"),commandParams:[{forceValue:!e[uX("0x1")]}]})}))})),n[uX("0x36")][uX("0x3a")](uX("0x18"),(t=>SJ(e,"ELEMENT_LIST_ITEM",t))),n[uX("0x36")][uX("0x39")]((t=>{if(uX("0x15")!=t.type&&uX("0x3c")!=t[uX("0x23")])return;const{data:n}=t;if(n){if(uX("0xb")==n[uX("0x37")]||uX("0x11")==n[uX("0x37")]||uX("0x1f")==n.commandName)switch(n.commandName[uX("0x2")](uX("0x12"),"")){case uX("0x2d"):return i(SJ(e,"ELEMENT_BULLETED_LIST"));case uX("0x3"):return i(SJ(e,"ELEMENT_NUMBERED_LIST"));case"todo":return i(SJ(e,uX("0x7")))}if("indentList"==n[uX("0x37")])return{type:uX("0x30"),content:SJ(e,"*Indent:* %0",SJ(e,"ELEMENT_LIST_ITEM"))};if(uX("0x32")==n[uX("0x37")])return{type:uX("0x30"),content:SJ(e,"*Outdent:* %0",SJ(e,uX("0x10")))};if(uX("0x3e")==n[uX("0x37")])return n.commandParams[0].forceValue?{type:"format",content:SJ(e,"*Check item*")}:{type:uX("0x30"),content:SJ(e,uX("0x2e"))}}function i(t){return{type:uX("0x30"),content:SJ(e,uX("0xa"),t)}}}))}}function mX(t){const e=t.getAttribute(uX("0x1d"));if(0==e)return t;let n=t;for(;t[uX("0x17")]&&t.previousSibling.is(uX("0x33"),uX("0x18"));){const i=t[uX("0x17")][uX("0x2f")]("listIndent");if(i==e)n=t[uX("0x17")];else if(i<e)break;t=t[uX("0x17")]}return n}function gX(t){const e=[];if(t.is(uX("0x33"),"listItem")&&t.getAttribute(uX("0x1d"))>0){let n=t.nextSibling;for(;n&&uX("0x18")==n[uX("0xd")]&&n[uX("0x2f")](uX("0x1d"))==t.getAttribute("listIndent");)e.push(n),n=n.nextSibling}return e}const pX=["forward","markMultiRangeBlockFormat","listReversed","listStyle","get","has","plugins","reversed","backward","flat","model","toUpperCase","listStart","startIndex","from","selection","_getSuggestionBlocks","_getSuggestionBlocksForListStyle","format","ListUtils","createRange","config","createPositionAt","ELEMENT_","getFirstPosition","*Format:* set order to regular","styles","formatInline","unshift","filter","type","length","getSelectedBlocks","parent","getSiblingNodes","_getTranslationKeyForListStyle","getAttribute","registerDescriptionCallback","map","element","*Format:* set order to reversed","TrackChangesEditing","editor","formatBlock","enableCommand","listItem","handleListStyleCommand","handleDescriptions","afterInit","*Format:* set start index to %0","replace","ListPropertiesEditing","getListTypeFromListStyleType","numbered","_LIST_","before","bind","handleListReversedCommand","change","document","push","commandParams"];var fX,xX;fX=pX,xX=231,function(t){for(;--t;)fX.push(fX.shift())}(++xX);const bX=function(t,e){return pX[t-=0]};class kX extends Yt{[bX("0x3")](){if(!this[bX("0x3b")][bX("0x17")][bX("0x16")](bX("0x6")))return;const t=this[bX("0x3b")][bX("0x26")][bX("0x15")]("list.properties"),e=this[bX("0x3b")][bX("0x17")][bX("0x15")](bX("0x3a"));t[bX("0x2b")]&&e.enableCommand(bX("0x14"),this[bX("0x1")].bind(this)),t[bX("0x18")]&&e[bX("0x3d")](bX("0x13"),this[bX("0xc")][bX("0xb")](this)),t[bX("0x1e")]&&e[bX("0x3d")](bX("0x1d"),this.handleListStartCommand.bind(this)),e._descriptionFactory[bX("0x36")](this[bX("0x2")][bX("0xb")](this))}[bX("0x1")](t,e={}){const n=this[bX("0x3b")][bX("0x17")][bX("0x15")](bX("0x3a")),i=this[bX("0x22")]();this[bX("0x3b")][bX("0x1b")].change((()=>{n[bX("0x12")](i,{commandName:"listStyle",commandParams:[{type:e[bX("0x2f")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[bX("0x3b")].plugins[bX("0x15")](bX("0x3a")),i=this[bX("0x21")]((t=>t.is(bX("0x38"),bX("0x0"))&&bX("0x8")===t[bX("0x35")]("listType")));if(i[bX("0x30")]<1)return;const o=i.map((t=>this.editor[bX("0x1b")][bX("0x25")](this[bX("0x3b")].model[bX("0x27")](t,bX("0xa")),this[bX("0x3b")][bX("0x1b")].createPositionAt(t,0))));this[bX("0x3b")][bX("0x1b")][bX("0xd")]((()=>{n[bX("0x12")](o,{commandName:bX("0x13"),commandParams:[{reversed:e.reversed}],formatGroupId:bX("0x13")})}))}handleListStartCommand(t,e={}){const n=this[bX("0x3b")].plugins[bX("0x15")](bX("0x3a")),i=this[bX("0x21")]((t=>t.is(bX("0x38"),bX("0x0"))&&bX("0x8")===t[bX("0x35")]("listType")));if(i[bX("0x30")]<1)return;const o=i[bX("0x37")]((t=>this[bX("0x3b")][bX("0x1b")][bX("0x25")](this[bX("0x3b")].model.createPositionAt(t,bX("0xa")),this[bX("0x3b")][bX("0x1b")][bX("0x27")](t,0))));this[bX("0x3b")][bX("0x1b")][bX("0xd")]((()=>{n[bX("0x12")](o,{commandName:bX("0x1d"),commandParams:[{startIndex:e[bX("0x1e")]}],formatGroupId:bX("0x1d")})}))}[bX("0x2")](t){if(bX("0x3c")!=t.type&&bX("0x2c")!=t[bX("0x2f")])return;const e=this[bX("0x3b")].locale,{data:n}=t;if(!n)return;let i,o;switch(n.commandName){case bX("0x14"):i="*Change to:* %0",o={type:"format",content:SJ(e,i,SJ(e,this[bX("0x34")](n[bX("0x10")][0].type)))};break;case bX("0x13"):i=n[bX("0x10")][0][bX("0x18")]?bX("0x39"):bX("0x2a"),o={type:bX("0x23"),content:SJ(e,i)};break;case bX("0x1d"):i=bX("0x4"),o={type:"format",content:SJ(e,i,n[bX("0x10")][0][bX("0x1e")])}}return o}[bX("0x22")](){var t,e,n,i;const o=this[bX("0x3b")].plugins.get("ListUtils");let r=Array[bX("0x1f")](this[bX("0x3b")][bX("0x1b")][bX("0xe")].selection[bX("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(bX("0x38"),bX("0x0")))&&r[bX("0x2d")](...o[bX("0x33")](this.editor[bX("0x1b")][bX("0xe")][bX("0x20")][bX("0x29")](),bX("0x19"))),(null===(e=r[r[bX("0x30")]-1])||void 0===e?void 0:e.is(bX("0x38"),"listItem"))&&r[bX("0xf")](...o[bX("0x33")](this.editor[bX("0x1b")][bX("0xe")][bX("0x20")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(i=null===(n=this.editor[bX("0x1b")][bX("0xe")].selection[bX("0x29")]())||void 0===n?void 0:n[bX("0x32")])||void 0===i?void 0:i.is(bX("0x38"),bX("0x0")))&&(r=r[bX("0x2e")]((t=>t.is(bX("0x38"),bX("0x0"))))),r}_getSuggestionBlocks(t){const e=this[bX("0x3b")][bX("0x17")][bX("0x15")]("ListUtils");let n=Array.from(this.editor[bX("0x1b")].document[bX("0x20")][bX("0x31")]())[bX("0x2e")](t)[bX("0x37")]((t=>{const n=this[bX("0x3b")].model.createPositionAt(t,0);return[...e.getSiblingNodes(n,bX("0x19")),...e[bX("0x33")](n,bX("0x11"))]}))[bX("0x1a")]();return n=[...new Set(n)],n}[bX("0x34")](t){return bX("0x28")+this.editor.plugins[bX("0x15")](bX("0x24"))[bX("0x7")](t)[bX("0x1c")]()+bX("0x9")+t[bX("0x1c")]()[bX("0x5")](/-/g,"_")}}const wX=["has","dataDowncast","high","for","elementToElement","_descriptionFactory","afterInit","MediaEmbedEditing","data","registerElementLabel","TrackChangesEditing","media","stop","options","get","locale","plugins","editor","attribute:url:media"];var AX,_X;AX=wX,_X=141,function(t){for(;--t;)AX.push(AX.shift())}(++_X);const vX=function(t,e){return wX[t-=0]};class CX extends Yt{[vX("0x11")](){const t=this[vX("0x9")];if(!t[vX("0x8")][vX("0xb")](vX("0x12")))return;const e=t[vX("0x8")][vX("0x6")](vX("0x2")),n=t[vX("0x7")];e.enableCommand("mediaEmbed"),e[vX("0x10")][vX("0x1")](vX("0x3"),(t=>SJ(n,"ELEMENT_MEDIA",t))),t.conversion[vX("0xe")](vX("0xc"))[vX("0xf")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement("div")},converterPriority:vX("0xd")}),t[vX("0x0")].downcastDispatcher.on(vX("0xa"),((t,e,n)=>{n[vX("0x5")].showSuggestionHighlights&&t[vX("0x4")]()}),{priority:vX("0xd")})}}const yX=["editor","plugins","TrackChangesEditing","MentionEditing","mention"];var EX,IX;EX=yX,IX=208,function(t){for(;--t;)EX.push(EX.shift())}(++IX);const SX=function(t,e){return yX[t-=0]};class TX extends Yt{afterInit(){const t=this[SX("0x2")];t[SX("0x3")].has(SX("0x0"))&&t.plugins.get(SX("0x4")).enableCommand(SX("0x1"))}}const DX=["enableCommand","registerElementLabel","ELEMENT_PAGE_BREAK","get","_descriptionFactory","TrackChangesEditing","pageBreak","locale","editor","plugins","afterInit"];var MX,BX;MX=DX,BX=500,function(t){for(;--t;)MX.push(MX.shift())}(++BX);const OX=function(t,e){return DX[t-=0]};class NX extends Yt{[OX("0x5")](){const t=this[OX("0x3")];if(!t[OX("0x4")].has("PageBreakEditing"))return;t[OX("0x4")][OX("0x9")]("TrackChangesEditing")[OX("0x6")](OX("0x1"));const e=t[OX("0x4")][OX("0x9")](OX("0x0")),n=t[OX("0x2")];e[OX("0xa")][OX("0x7")](OX("0x1"),(t=>SJ(n,OX("0x8"),t)))}}const PX=["options","span","*Insert:* %0","isTouching","*Change to:* %0","editor","bindElementToMarker","get","model","$text","addMarker:suggestion:insertion","enableCommand","consume","plugins","consumable","includes","ELEMENT_PARAGRAPH","mapper","nodeAfter","_registerLegacyDescription","name","isLimit","type","activeMarkers","locale","schema","getFirstRange","highest","commandName","markerRange","paragraph","downcastDispatcher","ck-suggestion-marker--active","markerName","insertParagraph","addClass","format","writer","start","_descriptionFactory","registerDescriptionCallback","insert","editing","TrackChangesEditing","isBlock","showSuggestionHighlights","insertion"];var RX,LX;RX=PX,LX=104,function(t){for(;--t;)RX.push(RX.shift())}(++LX);const jX=function(t,e){return PX[t-=0]};class zX extends Yt{afterInit(){const t=this[jX("0x2a")];if(!t[jX("0x3")].has("Paragraph"))return;const e=t[jX("0xe")],n=t[jX("0x3")].get(jX("0x21"));n[jX("0x1d")].registerElementLabel(jX("0x14"),(t=>SJ(e,jX("0x6"),t))),n._enableDefaultAttributesIntegration(jX("0x14")),n[jX("0x1")](jX("0x18")),t[jX("0x20")][jX("0x15")].on(jX("0x0"),VX(t),{priority:jX("0x11")}),t.data[jX("0x15")].on(jX("0x0"),((e,n,i)=>{i[jX("0x25")][jX("0x23")]&&VX(t,{showActiveMarker:!1})(e,n,i)}),{priority:jX("0x11")});const i=n._descriptionFactory;i[jX("0x1e")]((n=>{if(jX("0x24")!==n[jX("0xc")])return;const{start:o,end:r}=n[jX("0x10")]();if(!o[jX("0x28")](r)||!o[jX("0x8")])return;const s=t.model[jX("0xf")],a=o.nodeAfter;return s[jX("0x22")](a)&&!s[jX("0xb")](a)&&s.checkChild(a,jX("0x2e"))?{type:jX("0x24"),content:SJ(e,jX("0x27"),i.getItemLabel(a,1))}:void 0})),this._registerLegacyDescription()}[jX("0x9")](){const t=this[jX("0x2a")],e=t.locale;t[jX("0x3")][jX("0x2c")](jX("0x21"))[jX("0x1d")][jX("0x1e")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&jX("0x14")==n[jX("0x12")]?{type:jX("0x1a"),content:SJ(e,jX("0x29"),SJ(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function VX(t,{showActiveMarker:e=!0}={}){return(n,i,o)=>{const r=t.plugins[jX("0x2c")](jX("0x21")),s=i.markerRange[jX("0x1c")],a=i.markerRange.end,c=t[jX("0x2d")][jX("0xf")];if(!s[jX("0x28")](a)||!s[jX("0x8")])return;const l=s[jX("0x8")];if(c[jX("0x22")](l)&&!c[jX("0xb")](l)&&c.checkChild(l,jX("0x2e"))){if(!o[jX("0x4")][jX("0x2")](i[jX("0x13")],n[jX("0xa")]))return;const t=o[jX("0x1b")].createUIElement(jX("0x26"),{class:"ck-suggestion-marker-split"}),s=o[jX("0x7")].toViewPosition(a);e&&r[jX("0xd")][jX("0x5")](i.markerName)&&o.writer[jX("0x19")](jX("0x16"),t),o[jX("0x1b")][jX("0x1f")](s,t),o[jX("0x7")][jX("0x2b")](t,i[jX("0x17")])}}}const FX=["afterInit","_registerLegacyDescription","get","type","formatInline","editor","_enableDefaultAttributesIntegration","plugins","commandName","removeFormat","format","*Remove all formatting*","_descriptionFactory","locale","TrackChangesEditing"];var UX,HX;UX=FX,HX=297,function(t){for(;--t;)UX.push(UX.shift())}(++HX);const GX=function(t,e){return FX[t-=0]};class qX extends Yt{[GX("0x3")](){const t=this[GX("0x8")];t.plugins.has("RemoveFormatEditing")&&(t[GX("0xa")][GX("0x5")](GX("0x2"))[GX("0x9")](GX("0xc")),this[GX("0x4")]())}[GX("0x4")](){const t=this[GX("0x8")];t.plugins[GX("0x5")](GX("0x2"))[GX("0x0")].registerDescriptionCallback((e=>{if("formatBlock"!=e[GX("0x6")]&&GX("0x7")!=e[GX("0x6")])return;const{data:n}=e;return n&&GX("0xc")==n[GX("0xb")]?{type:GX("0xd"),content:SJ(t[GX("0x1")],GX("0xe"))}:void 0}))}}const WX=["goToPreviousRestrictedEditingException","enableCommand","acceptSuggestion","acceptAllSuggestions","get","plugins","has","RestrictedEditingModeEditing","afterInit","discardSuggestion","TrackChangesEditing","editor","discardAllSuggestions","discardSelectedSuggestions","acceptSelectedSuggestions"];var KX,ZX;KX=WX,ZX=473,function(t){for(;--t;)KX.push(KX.shift())}(++ZX);const YX=function(t,e){return WX[t-=0]};class JX extends Yt{[YX("0x0")](){const t=this[YX("0x3")];if(!t[YX("0xc")][YX("0xd")](YX("0xe")))return;const e=t[YX("0xc")][YX("0xb")](YX("0x2"));e[YX("0x8")](YX("0x7")),e[YX("0x8")]("goToNextRestrictedEditingException");const n=t[YX("0xc")][YX("0xb")](YX("0xe"));n.enableCommand("trackChanges"),n.enableCommand(YX("0x9")),n.enableCommand(YX("0x1")),n[YX("0x8")](YX("0xa")),n[YX("0x8")](YX("0x4")),n[YX("0x8")](YX("0x6")),n[YX("0x8")](YX("0x5"))}}const $X=["consumable","get","softBreak","plugins","insert","element","enableCommand","_descriptionFactory","addClass","span","TrackChangesEditing","editing","addMarker:suggestion:deletion","addMarker:suggestion:insertion","toViewPosition","activeMarkers","bindElementToMarker","getItems","data","mapper","options","split","downcastDispatcher","writer","init","high","markerName","name","model","shiftEnter","test","ELEMENT_LINE_BREAK","registerElementLabel","ck-suggestion-marker-","createPositionBefore","locale","merge","requires","markerRange"];var QX,XX;QX=$X,XX=465,function(t){for(;--t;)QX.push(QX.shift())}(++XX);const t1=function(t,e){return $X[t-=0]};class e1 extends Yt{static get[t1("0x1")](){return[mx]}[t1("0x1b")](){const t=this.editor,e=t[t1("0x6")][t1("0x4")](t1("0xd"));e[t1("0x9")](t1("0x20")),t.editing[t1("0x19")].on(t1("0x10"),n1(t),{priority:t1("0x1c")}),t[t1("0xe")][t1("0x19")].on(t1("0xf"),n1(t),{priority:t1("0x1c")}),t[t1("0x15")][t1("0x19")].on("addMarker:suggestion",((e,n,i)=>{i[t1("0x17")].showSuggestionHighlights&&n1(t,{showActiveMarker:!1})(e,n,i)})),e[t1("0xa")][t1("0x23")]("softBreak",(e=>SJ(t[t1("0x26")],t1("0x22"),e)))}}function n1(t,{showActiveMarker:e=!0}={}){return(n,i,o)=>{const r=t[t1("0x6")][t1("0x4")](t1("0xd"));if(!o[t1("0x3")][t1("0x21")](i[t1("0x2")],n[t1("0x1e")]))return;const s=t[t1("0x1f")];for(const t of i[t1("0x2")][t1("0x14")]()){if(!t.is(t1("0x8"),t1("0x5")))continue;const n="deletion"==i[t1("0x1d")].split(":")[1]?t1("0x0"):t1("0x18"),a=o[t1("0x1a")].createUIElement(t1("0xc"),{class:t1("0x24")+n}),c=o[t1("0x16")][t1("0x11")](s[t1("0x25")](t));e&&r[t1("0x12")].includes(i[t1("0x1d")])&&o.writer[t1("0xb")]("ck-suggestion-marker--active",a),o[t1("0x1a")][t1("0x7")](c,a),o.mapper[t1("0x13")](a,i[t1("0x1d")])}}}const i1=["commandParams","document","FORMAT_RESTRICTED_ENABLED","get","value","forceValue","formatBlock","afterInit","markInlineFormat","selection","editor","restrictedEditingException","has","type","TrackChangesEditing","change","getRanges","StandardEditingModeEditing","format","plugins","registerDescriptionCallback","model","formatInline","locale","commandName","commands","isCollapsed"];var o1,r1;o1=i1,r1=329,function(t){for(;--t;)o1.push(o1.shift())}(++r1);const s1=function(t,e){return i1[t-=0]};class a1 extends Yt{[s1("0x2")](){const t=this[s1("0x5")],e=t[s1("0x10")],n=t[s1("0x12")];if(!t[s1("0xe")][s1("0x7")](s1("0xc")))return;const i=t[s1("0xe")][s1("0x19")](s1("0x9")),o=s1("0x6"),r=t[s1("0x14")][s1("0x19")](o);i.enableCommand(o,((t,n={})=>{const s=e[s1("0x17")][s1("0x4")];if(s[s1("0x15")])return void t(n);const a=void 0!==n[s1("0x0")]?n.forceValue:!r[s1("0x1a")];e[s1("0xa")]((()=>{const t=Array.from(s[s1("0xb")]());for(const n of t){const t=a?[n]:_$(o,n,e);for(const e of t)i[s1("0x3")](e,{commandName:o,commandParams:[{forceValue:a}]})}}))})),i._descriptionFactory[s1("0xf")]((t=>{if(s1("0x1")!=t.type&&s1("0x11")!=t[s1("0x8")])return;const{data:e}=t;return e&&e[s1("0x13")]==o?e[s1("0x16")][0][s1("0x0")]?{type:s1("0xd"),content:SJ(n,s1("0x18"))}:{type:s1("0xd"),content:SJ(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const c1=["commandName","element","GeneralHtmlSupport","has","block","_descriptionFactory","locale","inline","plugins","FORMAT_STYLE","normalizeConfig","toLowerCase","getGhsAttributeNameForElement","forceValue","TrackChangesEditing","formatInline","registerAttributeLabel","styleName","StyleUtils","_registerInlineAttribute","formatBlock","registerDescriptionCallback","*Remove format:* %0","add","*Set format:* %0","config","format","_registerLegacyDescription","DataSchema","editor","style","get","commandParams","type"];var l1,d1;l1=c1,d1=215,function(t){for(;--t;)l1.push(l1.shift())}(++d1);const u1=function(t,e){return c1[t-=0]};class h1 extends Yt{afterInit(){const t=this[u1("0x12")];if(!t[u1("0x1f")][u1("0x1a")]("Style")||!t[u1("0x1f")][u1("0x1a")](u1("0x11")))return;const e=t.plugins[u1("0x14")](u1("0x3")),n=t[u1("0x1d")],i=t[u1("0xe")][u1("0x14")](u1("0x13")),o=t[u1("0x1f")].get(u1("0x19")),r=t[u1("0x1f")][u1("0x14")](u1("0x7"))[u1("0x21")](t[u1("0x1f")].get("DataSchema"),i.definitions);e._enableDefaultAttributesIntegration(u1("0x13"));const s=new Set;for(const t of r[u1("0x1b")]){const e=o.getGhsAttributeNameForElement(t[u1("0x18")]);s[u1("0xc")](e)}const a=new Set;for(const t of r[u1("0x1e")]){const e=o[u1("0x1")](t[u1("0x18")]);a.add(e);for(const e of t.ghsAttributes)a[u1("0xc")](e)}for(const t of s)e._registerBlockAttribute(t),e[u1("0x1c")][u1("0x5")](t,SJ(n,"FORMAT_STYLE"));for(const t of a)e[u1("0x8")](t),e[u1("0x1c")][u1("0x5")](t,SJ(n,u1("0x20")));this[u1("0x10")]()}[u1("0x10")](){const t=this[u1("0x12")],e=t.locale;t[u1("0x1f")][u1("0x14")](u1("0x3"))[u1("0x1c")][u1("0xa")]((t=>{if(u1("0x9")!=t[u1("0x16")]&&u1("0x4")!=t[u1("0x16")])return;const{data:n}=t;return n&&u1("0x13")===n[u1("0x17")]?n[u1("0x15")][0][u1("0x2")]?{type:"format",content:SJ(e,u1("0xd"),n[u1("0x15")][0][u1("0x6")][u1("0x0")]())}:{type:u1("0xf"),content:SJ(e,u1("0xb"),n[u1("0x15")][0][u1("0x6")][u1("0x0")]())}:void 0}))}}const m1=["_tableSuggestions","forceValue","map","length","type","add","ELEMENT_TABLE","has","document","accept","filter","getColumnIndexes","insertion","enableCommand","afterInit","removeTableColumn","writer","editor","minColumn","data","end","getChanges","toLowerCase","insertTable","rootName","showSuggestionHighlights","_splitMarkerName","every","root","change","getRanges","startsWith","discard","getSelectionAffectedTableCells","join","registerDescriptionCallback","refresh","isArray","substr","change:data","insertTableColumnLeft","getSuggestion","differ","position","getContainedElement","span","highest","_tablePostFixingSubtypes","first","addClass","selection","MIN_SAFE_INTEGER","commands","addRange","registerPostFixer","last","low","nodeAfter","fromRange","markMultiRangeInsertion","downcastDispatcher","colspan","MAX_SAFE_INTEGER","_suggestionFactory","markMultiRangeDeletion","from","*Remove:* %0","TableEditing","deletion","registerElementLabel","_setupColumnsRowsFixing","$graveyard","plugins","getAttribute","detach","above","findAncestor","ELEMENT_TABLE_ROW_WITH_TEXT","insert","_getSuggestionCoords","ELEMENT_TABLE_ROW","_getCoordsForCells","removeTableRow","tableRow","getRowIndexes","ELEMENT_TABLE_WITH_TEXT","get","order","*Insert:* %0","enqueueChange","createTableWalker","model","name","TableUtils","oldRange","rowspan","options","isInContent","addMarker:suggestion","cell","left","TrackChangesEditing","min","ELEMENT_TABLE_COLUMN","isIntersectingWithRange","createRangeOn","tableColumn","getFirstRange","_acceptFormatSuggestionCallbackFactory","table","some","registerCustomCallback","_descriptionFactory","$textProxy","tableCell","mapper","maxColumn","classes","element","execute","isEqual","hasAttribute","getItems","setSelection","ELEMENT_TABLE_COLUMN_WITH_TEXT","push","insertTableColumnRight","getCellLocation","selectTableColumn","subType","createPositionAt","max","includes","start"];var g1,p1;g1=m1,p1=192,function(t){for(;--t;)g1.push(g1.shift())}(++p1);const f1=function(t,e){return m1[t-=0]};class x1 extends Yt{constructor(t){super(t),this[f1("0x7b")]=["tableRow",f1("0x30")],this._tableSuggestions=new Set}[f1("0x5a")](){const t=this[f1("0x5d")],e=t.model[f1("0x54")].selection;if(!t[f1("0xe")][f1("0x53")](f1("0x9")))return;const n=t.locale,i=t[f1("0xe")][f1("0x1c")](f1("0x2b")),o=t[f1("0xe")][f1("0x1c")](f1("0x23"));i[f1("0x36")][f1("0xb")](f1("0x33"),(t=>SJ(n,f1("0x52"),t))),this[f1("0xc")](),i.enableCommand(f1("0x63")),i[f1("0x59")]("selectTableRow"),i[f1("0x59")](f1("0x46"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const r=t[f1("0x80")][f1("0x1c")](n);i[f1("0x59")](n,(n=>{t[f1("0x21")][f1("0x69")]((t=>{n();const s=f1("0x11")===r[f1("0x1d")],a=o[f1("0x6d")](e),c=o[f1("0x1a")](a),l=s?c[f1("0x7c")]-1:c[f1("0x83")]+1,d=a[0][f1("0x12")](f1("0x33")),u=o[f1("0x20")](d,{startRow:l,endRow:l}),h=Array[f1("0x7")](u)[f1("0x4e")]((e=>t[f1("0x2f")](e[f1("0x29")])));i[f1("0x1")](h,f1("0x19"))}))}))}for(const n of[f1("0x74"),f1("0x44")]){const r=t.commands[f1("0x1c")](n);i[f1("0x59")](n,(n=>{t[f1("0x21")].change((t=>{n();const s=f1("0x2a")===r[f1("0x1d")],a=o[f1("0x6d")](e),c=o.getColumnIndexes(a),l=s?c.first-1:c.last+1,d=a[0][f1("0x12")](f1("0x33")),u=o[f1("0x20")](d,{startRow:0,column:l,includeAllSlots:!1}),h=Array[f1("0x7")](u)[f1("0x4e")]((e=>t[f1("0x2f")](e.cell)));i[f1("0x1")](h,f1("0x30"))}))}))}for(const n of["removeTableRow",f1("0x5b")]){const r=n[f1("0x72")](11),s=r[f1("0x62")](),a=s[f1("0x72")](0,3)+f1("0x79"),c=f1("0x33")+r,l=f1("0x2c")+r,d=f1("0x49")+r;i.enableCommand(n,(()=>{t[f1("0x21")].change((t=>{const r=o[f1("0x6d")](e),u=r[0].findAncestor(f1("0x33"));let h;if(f1("0x18")==n){const t=o[f1("0x1a")](r);h={startRow:t.first,endRow:t[f1("0x83")],includeAllSlots:!0}}else{const t=o[f1("0x57")](r);h={startColumn:t[f1("0x7c")],endColumn:t[f1("0x83")],includeAllSlots:!0}}const m=o[f1("0x20")](u,h),g=Array[f1("0x7")](m)[f1("0x4e")]((({cell:t})=>t)),p=b1(g[f1("0x56")]((t=>t[f1("0x3f")](a)))),f=b1(g[f1("0x56")]((t=>!t[f1("0x3f")](a))))[f1("0x4e")]((e=>t.createRangeOn(e))),x=i[f1("0x6")](f,c);if(x&&("tableRow"==x[f1("0x47")]||f1("0x30")==x[f1("0x47")])){const e=this[f1("0x15")](x);for(const n of p){const i=t[f1("0x2f")](n),r=o[f1("0x45")](n),c=n[f1("0xf")](a)-1,u=e[l],h=e[d];u<=r[s]&&r[s]+c<=h&&x.addRange(i)}}}))}))}function r(n){const i=Array[f1("0x7")](e.getRanges())[f1("0x4e")]((t=>xr[f1("0x0")](t)));t[f1("0x21")][f1("0x69")]((e=>{const o=e.batch;n=n[f1("0x56")]((t=>f1("0xd")!=t.root.rootName)),e.setSelection(n),t.commands[f1("0x1c")](f1("0x18"))[f1("0x70")](),t[f1("0x3d")](f1("0x18"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[f1("0x21")][f1("0x1f")](o,(t=>{const e=i[f1("0x56")]((t=>"$graveyard"!=t[f1("0x68")][f1("0x64")]));e.length>0&&t[f1("0x41")](e);for(const t of i)t[f1("0x10")]()}))}))}))}function s(n){t[f1("0x21")][f1("0x69")]((i=>{const o=Array[f1("0x7")](e.getRanges())[f1("0x4e")]((t=>xr.fromRange(t))),r=[];for(const t of n)for(const e of t[f1("0x40")]({shallow:!0}))r[f1("0x43")](e);for(const e of r)f1("0xd")!=e[f1("0x68")][f1("0x64")]&&(i[f1("0x41")](i[f1("0x48")](e,0)),t[f1("0x80")][f1("0x1c")]("removeTableColumn")[f1("0x70")](),t[f1("0x3d")](f1("0x5b"),{forceDefaultExecution:!0}));const s=o[f1("0x56")]((t=>f1("0xd")!=t.root[f1("0x64")]));s[f1("0x4f")]>0&&i.setSelection(s);for(const t of o)t[f1("0x10")]()}))}function a(t,e){return e[f1("0x67")]((e=>t[f1("0x34")]((t=>t[f1("0x60")][f1("0x3e")](e[f1("0x4b")])||e[f1("0x60")].isEqual(t[f1("0x4b")])))))}function c(t,e){return t[f1("0x34")]((t=>e[f1("0x34")]((e=>t.end.isTouching(e.start)))))}t.data[f1("0x2")].on(f1("0x28"),((t,e,n)=>{if(!n[f1("0x26")][f1("0x65")])return;const i=e.item;if(!i)return;const o=n[f1("0x39")].toViewElement(i);function r(t){return Array[f1("0x71")](t)?t:[t]}o&&f1("0x38")===i.name&&l_(o,n[f1("0x5c")],((t,e,n)=>n[f1("0x7d")](r(e[f1("0x3b")]),t)),((t,e,n)=>n.removeClass(r(e[f1("0x3b")]),t)))}),{priority:f1("0x7a")}),i[f1("0x36")][f1("0x6f")]((t=>{if(f1("0x58")!=t[f1("0x50")]&&f1("0xa")!=t.type)return;const e=t[f1("0x78")]();if(null!=e&&e.is(f1("0x3c"),"table")){if(f1("0x58")==t.type){const e=t[f1("0x40")]()[f1("0x56")]((t=>t.is(f1("0x37"))))[f1("0x4e")]((t=>t.data));if(e[f1("0x4f")])return{type:f1("0x58"),content:SJ(n,f1("0x1e"),SJ(n,f1("0x1b"),'"'+e.join(" ")+'"'))}}if(f1("0xa")==t[f1("0x50")]){const e=t[f1("0x40")]()[f1("0x56")]((t=>t.is("$textProxy")))[f1("0x4e")]((t=>t[f1("0x5f")]));if(e[f1("0x4f")])return{type:"deletion",content:SJ(n,"*Remove:* %0",SJ(n,f1("0x1b"),'"'+e[f1("0x6e")](" ")+'"'))}}}})),i[f1("0x36")].registerDescriptionCallback((t=>{if(f1("0x19")==t.subType){const e=t[f1("0x40")]()[f1("0x56")]((t=>t.is("$textProxy")))[f1("0x4e")]((t=>t.data)),i=this[f1("0x15")](t),o=i.maxRow-i.minRow+1;if(f1("0x58")==t.type)return e[f1("0x4f")]?{type:f1("0x58"),content:SJ(n,f1("0x1e"),SJ(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e[f1("0x6e")](" ")+'"']))}:{type:"insertion",content:SJ(n,f1("0x1e"),SJ(n,f1("0x16"),o))};if("deletion"==t.type)return e[f1("0x4f")]?{type:"deletion",content:SJ(n,f1("0x8"),SJ(n,f1("0x13"),[o,'"'+e[f1("0x6e")](" ")+'"']))}:{type:f1("0xa"),content:SJ(n,f1("0x8"),SJ(n,f1("0x16"),o))}}if("tableColumn"==t[f1("0x47")]){const e=t[f1("0x40")]()[f1("0x56")]((t=>t.is(f1("0x37"))))[f1("0x4e")]((t=>t[f1("0x5f")])),i=this[f1("0x15")](t),o=i[f1("0x3a")]-i[f1("0x5e")]+1;if(f1("0x58")==t[f1("0x50")])return e[f1("0x4f")]?{type:f1("0x58"),content:SJ(n,f1("0x1e"),SJ(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[o,'"'+e[f1("0x6e")](" ")+'"']))}:{type:f1("0x58"),content:SJ(n,f1("0x1e"),SJ(n,f1("0x2d"),o))};if(f1("0xa")==t.type)return e.length?{type:f1("0xa"),content:SJ(n,"*Remove:* %0",SJ(n,f1("0x42"),[o,'"'+e[f1("0x6e")](" ")+'"']))}:{type:f1("0xa"),content:SJ(n,"*Remove:* %0",SJ(n,"ELEMENT_TABLE_COLUMN",o))}}})),i[f1("0x5")][f1("0x35")](f1("0x58"),f1("0x19"),f1("0x6c"),r),i[f1("0x5")][f1("0x35")](f1("0xa"),f1("0x19"),"accept",r),i._suggestionFactory[f1("0x35")](f1("0x58"),"tableColumn","discard",s),i[f1("0x5")][f1("0x35")](f1("0xa"),f1("0x30"),f1("0x55"),s),i._suggestionFactory[f1("0x35")](f1("0x58"),f1("0x30"),"join",a),i[f1("0x5")][f1("0x35")]("deletion",f1("0x30"),"join",a),i._suggestionFactory[f1("0x35")]("insertion",f1("0x19"),f1("0x6e"),c),i._suggestionFactory.registerCustomCallback(f1("0xa"),"tableRow",f1("0x6e"),c)}[f1("0x32")](){const t=this[f1("0x5d")],e=t[f1("0x21")].document[f1("0x7e")];return(n,i)=>{t.model[f1("0x69")]((o=>{const{commandName:r,commandParams:s}=i;let a=n[0][f1("0x60")].nodeBefore;s&&s[0]&&!1===s[0][f1("0x4d")]&&(a=n[0][f1("0x4b")][f1("0x85")]);const c=o.createRangeIn(a);if(f1("0xd")==c[f1("0x68")].rootName)return;const l=Array[f1("0x7")](e.getRanges())[f1("0x4e")]((t=>xr[f1("0x0")](t)));o[f1("0x41")](c),t[f1("0x80")].get(r).refresh(),s[f1("0x43")]({forceDefaultExecution:!0}),t.execute(r,...s);const d=l[f1("0x56")]((t=>f1("0xd")!=t[f1("0x68")][f1("0x64")]));d[f1("0x4f")]>0&&o.setSelection(d);for(const t of l)t.detach()}))}}[f1("0x17")](t){const e=this[f1("0x5d")][f1("0xe")].get(f1("0x23"));let n=Number[f1("0x4")],i=Number[f1("0x7f")],o=Number[f1("0x4")],r=Number.MIN_SAFE_INTEGER;for(const s of t){if("$graveyard"==s[f1("0x68")].rootName)continue;const{row:t,column:a}=e[f1("0x45")](s),c=s.hasAttribute(f1("0x25"))?s[f1("0xf")](f1("0x25"))-1:0,l=s[f1("0x3f")](f1("0x3"))?s[f1("0xf")](f1("0x3"))-1:0;n=t<n?t:n,i=t+c>i?t+c:i,o=a<o?a:o,r=a+l>r?a+l:r}return{minRow:n,maxRow:i,minColumn:o,maxColumn:r}}[f1("0xc")](){const t=this[f1("0x5d")],e=t.plugins.get(f1("0x2b")),n=t[f1("0xe")][f1("0x1c")](f1("0x23"));t[f1("0x21")].document.on(f1("0x73"),(()=>{const n=Array[f1("0x7")](t[f1("0x21")][f1("0x54")][f1("0x76")].getChangedMarkers());for(const{name:t,data:i}of n){const{group:n,id:o,subType:r}=e[f1("0x66")](t);if("suggestion"!=n)continue;if(null!=i[f1("0x24")])continue;const s=e[f1("0x75")](o);this[f1("0x7b")][f1("0x4a")](r)&&this[f1("0x4c")][f1("0x51")](s)}}),{priority:f1("0x84")});const i=(t,e)=>{let i=!1;const o=e[f1("0x2f")](t),r=t[f1("0x12")]("table"),s=n[f1("0x45")](t);for(const e of this._tableSuggestions){const n=e[f1("0x47")],a=n[f1("0x6b")]("tablePaste"),c=n[f1("0x72")](a?10:5),l=c[f1("0x62")](),d=l[f1("0x72")](0,3)+f1("0x79"),u="min"+c,h="max"+c;if(!e[f1("0x27")])continue;if(r!=e[f1("0x31")]()[f1("0x4b")].findAncestor(f1("0x33")))continue;if(e[f1("0x2e")](o))continue;const m=t[f1("0x3f")](d)?t[f1("0xf")](d)-1:0,g=this[f1("0x15")](e),p=g[u],f=g[h];p<=s[l]&&s[l]+m<=f&&(e[f1("0x81")](o),i=!0)}return i};t[f1("0x21")][f1("0x54")][f1("0x82")]((e=>{let n=!1;for(const o of t[f1("0x21")].document[f1("0x76")][f1("0x61")]())if(f1("0x14")==o.type)if(f1("0x19")==o[f1("0x22")])for(const t of o[f1("0x77")][f1("0x85")].getChildren())n=n||i(t,e);else"tableCell"==o.name&&(n=n||i(o[f1("0x77")][f1("0x85")],e));return n}))}[f1("0x15")](t){return this._getCoordsForCells(t[f1("0x6a")]()[f1("0x4e")]((t=>t[f1("0x4b")][f1("0x85")])))}}function b1(t){return Array[f1("0x7")](new Set(t).values())}const k1=["trackChanges","editor","*Split cell:* horizontally","_descriptionFactory","return","has","insertion","subType","filter","createRangeOn","_acceptFormatSuggestionCallbackFactory","TableEditing","mergeTableCellLeft","low","document","from","element","format","mergeTableCellRight","mergeTableCellUp","markBlockFormat","deletion","requires","_areSelectedCellsMergable","createTableWalker","formatInline","TableUtils","commandName","change","table","execute","splitTableCellHorizontally","horizontally","author","rootName","get","getFirstPosition","getRanges","commands","_areMergableCells","getAncestors","mergeTableCells","accept","splitTableCellVertically","getCellLocation","find","markMultiRangeBlockFormat","value","set:isEnabled","detach","formatBlock","registerDescriptionCallback","_suggestionFactory","selection","*Merge cells*","map","length","root","plugins","mergeTableCellDown","getSelectionAffectedTableCells","model","add","_tablePostFixingSubtypes","type","containsRange","findAncestor","enableCommand","registerCustomCallback","cell","$graveyard","tableCell"];var w1,A1;w1=k1,A1=317,function(t){for(;--t;)w1.push(w1.shift())}(++A1);const _1=function(t,e){return k1[t-=0]};class v1 extends Yt{static get[_1("0x41")](){return[x1]}afterInit(){const t=this[_1("0x2c")],e=t[_1("0x20")][_1("0x39")][_1("0x18")],n=t.locale;if(!t[_1("0x1d")][_1("0x30")](_1("0x36")))return;const i=t[_1("0x1d")][_1("0x6")]("TrackChangesEditing"),o=t[_1("0x1d")][_1("0x6")]("TableUtils"),r=t.plugins[_1("0x6")](x1);r[_1("0x22")].push(_1("0xc")),i[_1("0x26")](_1("0xc"),(()=>{const e=o[_1("0x1f")](t[_1("0x20")][_1("0x39")][_1("0x18")]);t[_1("0x20")][_1("0x47")]((()=>{i[_1("0x11")](e,{commandName:_1("0xc"),commandParams:[]},[],_1("0xc"))}))})),t[_1("0x9")][_1("0x6")]("mergeTableCells").on(_1("0x1"),((e,n)=>{t.commands.get(_1("0x2b"))[_1("0x12")]&&(n.length>0&&n[n.length-1]&&n[n[_1("0x1b")]-1].forceDefaultExecution||i._isForcedDefaultExecutionBlock||this[_1("0x42")]()||e.stop())}),{priority:"highest"});for(const e of[_1("0x3e"),_1("0x3d"),_1("0x1e"),_1("0x37")]){const n=t[_1("0x9")][_1("0x6")](e);i.enableCommand(e,(()=>{const e=t[_1("0x20")][_1("0x39")][_1("0x18")].getFirstPosition()[_1("0xb")]()[_1("0x10")]((t=>t.is("element",_1("0x2a")))),o=n[_1("0x12")];t[_1("0x20")][_1("0x47")]((()=>{i.markMultiRangeBlockFormat([e,o],{commandName:"mergeTableCells",commandParams:[]},[],_1("0xc"))}))}))}for(const e of[_1("0xe"),_1("0x2")]){const n=t[_1("0x9")][_1("0x6")](e);i.enableCommand(e,(()=>{const r=o[_1("0x1f")](t[_1("0x20")][_1("0x39")][_1("0x18")])[0],s=r[_1("0x25")](_1("0x0")),{column:a,row:c}=o[_1("0xf")](r);let l=[];if(_1("0x3")==n.direction){const t=o[_1("0x43")](s,{startRow:c,endRow:c,includeAllSlots:!0});l=Array[_1("0x3a")](t)[_1("0x1a")]((t=>t[_1("0x28")]))}else{const t=o[_1("0x43")](s,{column:a,includeAllSlots:!0});l=Array[_1("0x3a")](t).map((t=>t[_1("0x28")]))}t.model[_1("0x47")]((t=>{i[_1("0x3f")](t.createRangeOn(r),{commandName:e,commandParams:[]},l,e)}))}))}i._descriptionFactory.registerDescriptionCallback((t=>{if(_1("0x15")!=t.type&&_1("0x44")!=t[_1("0x23")])return;const{data:e}=t;return e&&"mergeTableCells"==e[_1("0x46")]?{type:"format",content:SJ(n,_1("0x19"))}:void 0})),i[_1("0x2e")][_1("0x16")]((t=>{if(_1("0x15")!=t[_1("0x23")]&&"formatInline"!=t.type)return;const{data:e}=t;return e?_1("0xe")==e[_1("0x46")]?{type:_1("0x3c"),content:SJ(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[_1("0x46")]?{type:_1("0x3c"),content:SJ(n,_1("0x2d"))}:void 0:void 0}));const s=r[_1("0x35")]();for(const t of[_1("0x3e"),_1("0x3d"),_1("0x1e"),_1("0x37")])i[_1("0x17")][_1("0x27")]("formatBlock",t,"accept",s);for(const t of["splitTableCellVertically",_1("0x2")])i[_1("0x17")][_1("0x27")](_1("0x15"),t,"accept",s);i[_1("0x17")].registerCustomCallback(_1("0x15"),_1("0xc"),_1("0xd"),(n=>{t.model.change((i=>{const o=Array[_1("0x3a")](e[_1("0x8")]())[_1("0x1a")]((t=>xr.fromRange(t)));i.setSelection(n),t[_1("0x9")][_1("0x6")](_1("0xc")).refresh(),t.execute(_1("0xc"),{forceDefaultExecution:!0});const r=o[_1("0x33")]((t=>_1("0x29")!=t[_1("0x1c")][_1("0x5")]));r[_1("0x1b")]>0&&i.setSelection(r);for(const t of o)t[_1("0x14")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown","mergeTableCellLeft",_1("0x3d")]){const n=t[_1("0x9")][_1("0x6")](e);n.on(_1("0x13"),((e,i,o)=>{if(o){const i=t[_1("0x20")][_1("0x39")][_1("0x18")][_1("0x7")]()[_1("0xb")]()[_1("0x10")]((t=>t.is(_1("0x3b"),"tableCell")));this[_1("0xa")](n[_1("0x12")],i)||(e[_1("0x2f")]=!1,e.stop())}}),{priority:_1("0x38")})}}[_1("0x42")](){const t=this[_1("0x2c")][_1("0x9")][_1("0x6")](_1("0xc")),e=this[_1("0x2c")][_1("0x1d")][_1("0x6")](_1("0x45"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[_1("0x2c")][_1("0x20")][_1("0x39")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[_1("0xa")](t,e){const n=this[_1("0x2c")][_1("0x1d")][_1("0x6")]("TrackChangesEditing"),i=this[_1("0x2c")][_1("0x20")][_1("0x34")](t),o=this[_1("0x2c")][_1("0x20")][_1("0x34")](e),r=new Set,s=new Set;for(const t of n.getSuggestions())if((_1("0x31")==t[_1("0x23")]||_1("0x40")==t[_1("0x23")]||"mergeTableCells"==t[_1("0x32")])&&t.isInContent)for(const e of t[_1("0x8")]())e[_1("0x24")](i,!0)&&r[_1("0x21")](t[_1("0x23")]+":"+t[_1("0x4")].id),e[_1("0x24")](o,!0)&&s.add(t.type+":"+t[_1("0x4")].id);if(r.size!=s.size)return!1;for(const t of r)if(!s[_1("0x30")](t))return!1;return!0}}const C1=["data-suggestion","formatBlock","TableEditing","forceValue","registerCustomCallback","getSuggestion","_splitMarkerName","FORMAT_HEADER_ROW","addClass","downcastDispatcher","writer","setTableRowHeader","_suggestionFactory","afterInit","createTableWalker","markerRange","bindElementToMarker","cell","_registerLegacyDescription","FORMAT_HEADER_COLUMN","setAttribute","_descriptionFactory","editor","TrackChangesEditing","get","requires","FORMAT_REGULAR_ROW","highest","has","*Format:* %0","registerAttributeLabel","end","item","headingColumns","format","ck-suggestion-marker--active","toViewElement","addMarker:suggestion","unbindElementFromMarkerName","mapper","locale","type","ck-suggestion-marker-","editing","markerNameToElements","removeAttribute","showSuggestionHighlights","_handleLegacySuggestions","getCellLocation","nodeAfter","setTableColumnHeader","markerName","accept","commandName","data","commandParams","headingRows","plugins","removeClass","start","_enableDefaultAttributesIntegration"];var y1,E1;y1=C1,E1=468,function(t){for(;--t;)y1.push(y1.shift())}(++E1);const I1=function(t,e){return C1[t-=0]};class S1 extends Yt{static get[I1("0x2d")](){return[x1]}[I1("0x21")](){const t=this[I1("0x2a")];if(!t[I1("0x10")][I1("0x30")](I1("0x16")))return;const e=t[I1("0x3c")],n=t.plugins[I1("0x2c")](I1("0x2b"));n[I1("0x13")](I1("0x1f"),[],["headingRows"]),n[I1("0x13")](I1("0x9"),[],["headingColumns"]),n[I1("0x29")].registerAttributeLabel(I1("0xf"),SJ(e,"FORMAT_HEADER_ROW")),n[I1("0x29")][I1("0x32")](I1("0x35"),SJ(e,I1("0x27"))),this._handleLegacySuggestions()}[I1("0x6")](){const t=this[I1("0x2a")][I1("0x10")][I1("0x2c")]("TrackChangesEditing"),e=this[I1("0x2a")].plugins[I1("0x2c")]("TableUtils"),n=this.editor[I1("0x10")][I1("0x2c")](x1)._acceptFormatSuggestionCallbackFactory();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(o,r,s)=>{const{type:a,id:c}=t[I1("0x1a")](r[I1("0xa")]),l=t[I1("0x19")](c),d=l.data;if(I1("0x15")!=l[I1("0x0")]||!d||I1("0x9")!=d[I1("0xc")])return;if(r[I1("0x34")])return void o.stop();if(!s.consumable.consume(r[I1("0x23")],o.name))return;const u=r[I1("0x23")][I1("0x12")][I1("0x8")],h=r[I1("0x23")][I1("0x33")].nodeBefore,m=u.parent.parent,{column:g}=e[I1("0x7")](u),{column:p}=e[I1("0x7")](h);for(let o=g;o<=p;o++){const l=e[I1("0x22")](m,{column:o,includeAllSlots:!1});for(const e of l){const o=e[I1("0x25")],l=s[I1("0x3b")][I1("0x38")](o);s[I1("0x1e")][I1("0x1c")](I1("0x1")+a,l),i&&s[I1("0x1e")][I1("0x28")](I1("0x14"),c,l),s[I1("0x3b")][I1("0x24")](l,r[I1("0xa")]),n&&(t.activeMarkers.includes(r[I1("0xa")])?s[I1("0x1e")][I1("0x1c")](I1("0x37"),l):s[I1("0x1e")][I1("0x11")](I1("0x37"),l))}}}}t[I1("0x20")][I1("0x18")](I1("0x15"),I1("0x1f"),I1("0xb"),n),t[I1("0x20")][I1("0x18")]("formatBlock",I1("0x9"),"accept",n),this[I1("0x2a")].editing.downcastDispatcher.on(I1("0x39"),i(),{priority:"highest"}),this.editor.data.downcastDispatcher.on(I1("0x39"),((t,e,n)=>{n.options[I1("0x5")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[I1("0x2a")][I1("0x2")][I1("0x1d")].on("removeMarker:suggestion",((e,n,i)=>{const{type:o,id:r}=t[I1("0x1a")](n[I1("0xa")]),s=t[I1("0x19")](r),a=s[I1("0xd")];if(I1("0x15")!=s[I1("0x0")]||!a||I1("0x9")!=a[I1("0xc")])return;const c=i[I1("0x3b")][I1("0x3")](n[I1("0xa")]);if(c)for(const t of c)i[I1("0x1e")][I1("0x11")](I1("0x1")+o,t),i[I1("0x1e")].removeClass(I1("0x37"),t),i[I1("0x1e")][I1("0x4")](I1("0x14"),t),i[I1("0x3b")][I1("0x3a")](t,n[I1("0xa")])}),{priority:I1("0x2f")}),this[I1("0x26")]()}[I1("0x26")](){const t=this[I1("0x2a")],e=t[I1("0x3c")];function n(t){return{type:I1("0x36"),content:SJ(e,I1("0x31"),t)}}t[I1("0x10")][I1("0x2c")](I1("0x2b"))._descriptionFactory.registerDescriptionCallback((t=>{if(I1("0x15")!=t[I1("0x0")])return;const{data:i}=t;if(i){if(I1("0x1f")==i[I1("0xc")]){const t=i[I1("0xe")][0].forceValue;return n(SJ(e,I1(t?"0x1b":"0x2e")))}if(I1("0x9")==i[I1("0xc")]){const t=i[I1("0xe")][0][I1("0x17")];return n(SJ(e,t?I1("0x27"):"FORMAT_REGULAR_COLUMN"))}}}))}}const T1=["findAncestor","markMultiRangeBlockFormat","wrap","_splitMarkerName","element","attributes","containsRange","tableCell","first","removeRows","registerCustomCallback","documentSelection","isEqual","insertRows","selection","set","_descriptionFactory","setAttribute","schema","fromEntries","endRow","insertionRanges","getMarkers","startsWith","insertContent","from","getChanges","getItems","TableUtils","insert","endColumn","tableCellBorderColor","high","getRanges","getAllAdjacentSuggestions","previousSibling","newRange","getRange","row","locale","_replaceTableSlotCell","value","suggestion-td","isInContent","conversion","stop","deletionRanges","markerName","formatBlock","paragraph","createRangeIn","tablePaste","accept","get","createTableWalker","fill","Users","getChildren","getChangedMarkers","updateMarker","dataDowncast","hasSuggestion","remove","getSuggestion","view","change","ck-suggestion-marker-insertion","rootName","getContainedElement","createElement","nodeAfter","find","start","length","suggestion:formatBlock:tablePasteCell","getShiftedBy","document","author","afterInit","activeMarkers","_suggestionFactory","low","getSuggestionCallback","*Replace table cells*","editor","tableCellBackgroundColor","cells","join","tableCellBorderWidth","cell","markerToHighlight","oldRange","reduce","discard","filter","columns","commands","tableCellVerticalAlignment","isEmpty","markMultiRangeInsertion","model","showSuggestionHighlights","TableClipboard","end","map","has","suggestionUnloaded","add","getChild","ck-suggestion-marker--active","tablePasteCell","registerPostFixer","tablePasteRow","last","column","subType","differ","getSelectionAffectedTableCells","some","getAttributes","suggestionLoaded","getRows","columnInsertionIndexes","_tablePostFixingSubtypes","nextSibling","editingDowncast","insertion","removeColumns","deletion","includes","rowInsertionRanges","tableCellPadding","type","_createdBatches","next","options","getRowIndexes","name","batch","content","setAttributes","tablePasteChainId","_getCoordsForCells","markerAttributes","return","table","getColumns","tableCellSuggestion","clipboardOutput","rowInsertionIndexes","createRangeOn","suggestion","markMultiRangeDeletion","registerDescriptionCallback","tableCellHorizontalAlignment","position","plugins","tablePasteColumn","redo","elementToElement","columnInsertionRanges","unwrap","previous","editing","markers","getSuggestions","push","removeMarker","forceDefaultExecution","listenTo","insertColumns"];var D1,M1;D1=T1,M1=467,function(t){for(;--t;)D1.push(D1.shift())}(++M1);const B1=function(t,e){return T1[t-=0]},O1=[B1("0x86"),B1("0x4d"),"tableCellBorderStyle",B1("0x1d"),B1("0x8f"),B1("0x83"),B1("0x6")],N1=Object[B1("0x41")](O1[B1("0x96")]((t=>[t,null])));class P1 extends Yt{static get requires(){return[x1]}[B1("0x7c")](){const t=this[B1("0x82")];if(!t[B1("0x1f")][B1("0x97")]("TableClipboard"))return;const e=t[B1("0x1f")][B1("0x63")]("TrackChangesEditing"),n=t[B1("0x1f")][B1("0x63")](B1("0x4a")),i=t[B1("0x1f")].get(x1),o=t[B1("0x1f")][B1("0x63")](B1("0x94"));i[B1("0xa9")][B1("0x29")](B1("0x9e"),B1("0x20")),t[B1("0x92")][B1("0x40")].register(B1("0x16"),{allowIn:B1("0x35"),allowContentOf:B1("0x35"),isLimit:!0}),t[B1("0x5a")][B1("0x22")]({model:B1("0x16"),view:B1("0x58")});let r=null;t[B1("0x92")].on(B1("0x46"),((i,s)=>{const[a,c]=s,l=s[s.length-1];l&&l[B1("0x2b")]||e._isForcedDefaultExecutionBlock||this[B1("0x82")][B1("0x8e")][B1("0x63")]("trackChanges")[B1("0x57")]&&function(t,e,n,i,o){if(e&&!e.is(B1("0x39")))return!1;const r=o.getTableIfOnlyTableInContent(t,n);if(!r||!L1(r,void 0,i))return!1;const s=i[B1("0xa3")](n[B1("0x7a")][B1("0x3c")]);if(!s.length)return!1;const a=s[0][B1("0x2e")](B1("0x14")),c=i[B1("0xb")](s),l=i.getColumnIndexes(s),d={startRow:c[B1("0x36")],endRow:c[B1("0x9f")],startColumn:l.first,endColumn:l[B1("0x9f")]};return 1==s.length&&(d[B1("0x42")]+=i[B1("0xa7")](r)-1,d[B1("0x4c")]+=i[B1("0x15")](r)-1),L1(a,d,i)}(a,c,t[B1("0x92")],n,o)&&(i[B1("0x5b")](),r={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[B1("0x92")][B1("0x6f")]((()=>{t.model[B1("0x46")](s[0],s[1],s[2],{forceDefaultExecution:!0});const n=(0,Uu.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=r;i[B1("0x77")]&&e[B1("0x91")](i,B1("0x9e"),{tablePasteChainId:n}),o[B1("0x77")]&&e[B1("0x91")](o,B1("0x20"),{tablePasteChainId:n}),a[B1("0x77")]&&e.markMultiRangeInsertion(a,B1("0x61"),{tablePasteChainId:n,skipNestingCheck:!0}),c[B1("0x77")]&&e[B1("0x1b")](c,B1("0x61"),{tablePasteChainId:n,skipNestingCheck:!0});const d=e[B1("0x2f")](l[B1("0x96")]((({element:t})=>t)),{formatGroupId:(0,Uu.uid)()},[],B1("0x9c"),{tablePasteChainId:n});if(d){const e=d[B1("0x44")](),n=[];for(const{element:i,attributes:o}of l){if(!o)continue;const r=t[B1("0x92")][B1("0x19")](i),s=e[B1("0x75")]((t=>t[B1("0x53")]()[B1("0x3a")](r)));s&&n[B1("0x29")]([s[B1("0xc")],o])}n[B1("0x77")]&&d[B1("0x3f")]("markerAttributes",Object.fromEntries(n))}r=null})))}),{priority:Uu.priorities.high+10}),t[B1("0x1f")][B1("0x63")](B1("0x94")).on(B1("0x56"),((t,e)=>{const[n,i,,o]=e;if(!r)return;t[B1("0x5b")]();const s=n[B1("0x87")],a=i,c=R1(s),l=R1(a);t[B1("0x13")]=s;let d=null,u=null;if(l||c)if(c&&!l){o[B1("0x6c")](s.getChild(0));for(const t of Array[B1("0x47")](a[B1("0x67")]()))o[B1("0x4b")](t,s,B1("0x95"));const t=r[B1("0x18")][B1("0x4")](n[B1("0x54")]),e=r[B1("0xa8")][B1("0x4")](n[B1("0xa0")]);t||e||(d=o[B1("0x60")](s))}else l&&!c&&(u=o[B1("0x60")](s));else{const t=o[B1("0x73")](B1("0x16")),e=o.createElement(B1("0x16"));o[B1("0x30")](o.createRangeIn(s),e),o[B1("0x4b")](t,s,0);for(const e of Array.from(a[B1("0x67")]()))o[B1("0x4b")](e,t,B1("0x95"));d=o[B1("0x19")](t),u=o[B1("0x19")](e)}const h=Array[B1("0x47")](a[B1("0xa5")]()).filter((([t])=>O1[B1("0x4")](t)));r[B1("0x84")].push({element:s,attributes:h[B1("0x77")]?Object.fromEntries(h):null}),d&&r[B1("0x43")][B1("0x29")](d),u&&r[B1("0x5c")].push(u)}),{priority:B1("0x4e")}),n.on(B1("0x2d"),((e,i)=>{const[o,s={}]=i;if(!r)return;const a=s.at||0,c=s[B1("0x8d")]||1;r[B1("0xa8")]=new Array(c).fill(a)[B1("0x96")](((t,e)=>t+e));for(const{cell:e}of n.createTableWalker(o,{startColumn:a,endColumn:a+c-1}))r[B1("0x23")][B1("0x29")](t[B1("0x92")][B1("0x19")](e))}),{priority:B1("0x7f")}),n.on(B1("0x3b"),((e,i)=>{const[o,s={}]=i;if(!r)return;const a=s.at||0,c=s.rows||1;r[B1("0x18")]=new Array(c)[B1("0x65")](a)[B1("0x96")](((t,e)=>t+e));for(const{cell:e}of n.createTableWalker(o,{startRow:a,endRow:a+c-1}))r[B1("0x5")][B1("0x29")](t[B1("0x92")].createRangeOn(e))}),{priority:B1("0x7f")}),e[B1("0x3e")][B1("0x1c")]((e=>{if(e[B1("0xa1")]&&e.subType[B1("0x45")](B1("0x61")))return e[B1("0x25")]?{}:{type:B1("0x1"),content:SJ(t[B1("0x55")],B1("0x81"))}}));const s=()=>!1;for(const t of[B1("0x61"),B1("0x20"),B1("0x9e"),"tablePasteCell"])e[B1("0x7e")][B1("0x38")](B1("0x1"),t,B1("0x85"),s),e._suggestionFactory[B1("0x38")](B1("0x3"),t,B1("0x85"),s),e[B1("0x7e")].registerCustomCallback(B1("0x5e"),t,B1("0x85"),s);e[B1("0x7e")][B1("0x38")](B1("0x5e"),B1("0x9c"),B1("0x8b"),s),e._suggestionFactory[B1("0x38")](B1("0x5e"),B1("0x9c"),B1("0x62"),((e,n,i)=>{const o=e.map((t=>t[B1("0x72")]()))[B1("0x8c")]((t=>t)),s=new Map(o[B1("0x96")]((t=>[t,null])));if(r)for(const{element:t,attributes:e}of r[B1("0x84")])e&&s[B1("0x3d")](t,e);else if(i&&i[B1("0x12")])for(const[e,n]of Object.entries(i[B1("0x12")])){const i=t[B1("0x92")][B1("0x27")].get(e),o=i?i[B1("0x53")]()[B1("0x72")]():null;o&&s.set(o,n)}t.model[B1("0x6f")]((t=>{for(const[e,n]of s)t[B1("0xf")]({...N1,...n},e)}))}));const a=(n,i)=>{e[B1("0x7e")][B1("0x38")](n,B1("0x61"),i,((o,r,s)=>{t[B1("0x92")][B1("0x6f")]((t=>{const a=[];for(const t of o){const e=t[B1("0x76")][B1("0x74")];e.is("element",B1("0x16"))&&a[B1("0x29")](e)}e[B1("0x7e")][B1("0x80")](n,null,i)(o,r,s);for(const e of a)"$graveyard"!=e.root[B1("0x71")]&&t.unwrap(e)}))}))};a("insertion",B1("0x62")),a(B1("0x1"),B1("0x8b")),a("deletion",B1("0x62")),a(B1("0x3"),B1("0x8b")),e._suggestionFactory[B1("0x38")](B1("0x1"),B1("0x9e"),B1("0x8b"),(t=>{const e=t[B1("0x96")]((t=>t[B1("0x72")]())),o=e[0][B1("0x2e")](B1("0x14")),{minRow:r,maxRow:s}=i[B1("0x11")](e);n[B1("0x37")](o,{at:r,rows:s-r+1})})),e._suggestionFactory.registerCustomCallback("insertion",B1("0x20"),B1("0x8b"),(t=>{const e=t[B1("0x96")]((t=>t[B1("0x72")]())),o=e[0][B1("0x2e")](B1("0x14")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);n[B1("0x2")](o,{at:r,columns:s-r+1})}));const c=(t,n)=>{if(!n[B1("0xa1")]||!n.subType.startsWith(B1("0x61")))return;const i=n.attributes[B1("0x10")],o=e[B1("0x28")]()[B1("0x8c")]((t=>t[B1("0x59")]&&t.attributes&&t[B1("0x33")].tablePasteChainId==i));o[B1("0x77")]&&n[B1("0x50")]()[B1("0x77")]!=o[B1("0x77")]&&o[B1("0x8a")](((t,e)=>(t[B1("0x9")]=e,e[B1("0x25")]=t,e)))};function l(t,n=!0){const{id:i}=e[B1("0x31")](t[B1("0x5d")]),o=["ck-suggestion-marker",B1("0x70")],r=e[B1("0x7d")][B1("0x4")](t.markerName);return r&&o[B1("0x29")](B1("0x9b")),{classes:o,attributes:{"data-suggestion":i},priority:r&&n?3010:3e3}}e.on(B1("0xa6"),c,{priority:B1("0x4e")}),e.on(B1("0x98"),c,{priority:"high"}),t.model[B1("0x7a")][B1("0x9d")]((()=>{let n=!1;const i=Array.from(t[B1("0x92")][B1("0x7a")][B1("0xa2")][B1("0x68")]());for(const{name:o,data:r}of i){const{group:i,type:s,id:a}=e[B1("0x31")](o);if("suggestion"!=i||B1("0x3")!=s||r.oldRange)continue;if(!e[B1("0x6b")](a))continue;const c=e[B1("0x6d")](a)[B1("0x4f")](),l=t[B1("0x1f")][B1("0x63")](B1("0x66")).me;for(const t of e[B1("0x28")]())if(t[B1("0x59")]&&t[B1("0x7b")]==l&&"formatBlock"==t[B1("0x7")]&&B1("0x9c")==t.subType&&t[B1("0x4f")]().every((t=>c[B1("0xa4")]((e=>e[B1("0x34")](t,!0))))))for(const e of t[B1("0x50")]())e[B1("0x59")]&&(e[B1("0x8b")](),n=!0)}return n})),t.model[B1("0x7a")].registerPostFixer((n=>{const i=t.commands.get(B1("0x21"));if(!i||!i[B1("0x8")][B1("0x97")](n[B1("0xd")]))return!1;let o=!1;const r=t.plugins[B1("0x63")](B1("0x66")).me,s=t[B1("0x92")].document.differ[B1("0x48")](),a=Array[B1("0x47")](t[B1("0x92")][B1("0x7a")][B1("0xa2")][B1("0x68")]())[B1("0x8c")]((({name:t,data:n})=>{const{group:i,subType:o,authorId:s}=e[B1("0x31")](t);return B1("0x1a")==i&&"tablePaste"==o&&s==r.id&&!n[B1("0x89")]}));for(const t of s){if(B1("0x4b")!=t[B1("0x7")]||"tableCellSuggestion"!=t[B1("0xc")]||1!=t[B1("0x77")])continue;const e=n.createRange(t[B1("0x1e")],t.position[B1("0x79")](1));if(!a[B1("0x75")]((({data:t})=>t[B1("0x52")][B1("0x3a")](e))))for(const{name:t,data:i}of a)if(e.containsRange(i.newRange)){n[B1("0x69")](t,{range:e}),o=!0;break}}return o})),t[B1("0x92")][B1("0x7a")][B1("0x9d")]((n=>{let i=!1;const o=t[B1("0x1f")].get(B1("0x66")).me,r=e.getSuggestions()[B1("0x8c")]((t=>t[B1("0x59")]&&t[B1("0x7b")]==o)),s=new Set,a=new Set;for(const t of r)if(B1("0x61")==t[B1("0xa1")])for(const e of t[B1("0x44")]()){const n=e[B1("0x53")]().getContainedElement();if(n)if(n.is(B1("0x32"),B1("0x16"))&&R1(n)){t[B1("0x2a")](e[B1("0xc")]),s.add(n),i=!0;const o=n[B1("0xaa")],r=n[B1("0x51")],c=o&&o.is(B1("0x32"),B1("0x16")),l=r&&r.is(B1("0x32"),B1("0x16"));c&&!s[B1("0x97")](o)&&a[B1("0x99")](o),l&&!s.has(r)&&a.add(r)}else n.is(B1("0x32"),B1("0x5f"))&&n[B1("0x90")]&&(t.removeMarker(e[B1("0xc")]),i=!0)}else if("tablePasteCell"==t[B1("0xa1")]){if(!t[B1("0x33")]||!t.attributes[B1("0x10")])continue;const e=t.attributes[B1("0x12")];if(e&&Object.keys(e)[B1("0x77")])continue;const n=t.attributes.tablePasteChainId;let o=!0,s=!0;for(const e of r)if(e[B1("0xa1")]&&e[B1("0xa1")][B1("0x45")](B1("0x61"))){if(!e[B1("0x33")][B1("0x10")]){s=!1;break}if(e.id!=t.id&&e[B1("0x33")][B1("0x10")]==n){o=!1;break}}s&&o&&(t.removeMarkers(),i=!0)}for(const t of s)n[B1("0x6c")](t);for(const t of a)n[B1("0x24")](t);return i})),t[B1("0x5a")].for(B1("0x0"))[B1("0x88")]({model:B1("0x78"),view:(t,e)=>l(t),converterPriority:B1("0x4e")}),t.conversion.for(B1("0x6a")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[B1("0xa")][B1("0x93")]?l(t,!1):null,converterPriority:"high"});const d=t[B1("0x26")][B1("0x6e")];this[B1("0x2c")](d.document,B1("0x17"),((t,e)=>{const n=[];for(const t of d[B1("0x60")](e[B1("0xe")])[B1("0x49")]())t.is("element",B1("0x58"))&&n[B1("0x29")](t);d[B1("0x6f")]((t=>{for(const e of n)t.move(t[B1("0x60")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function R1(t){if(t[B1("0x90")])return!0;const e=t[B1("0x9a")](0);return e.is(B1("0x32"),B1("0x5f"))&&e.isEmpty}function L1(t,e={},n){for(const{isAnchor:i,cellHeight:o,cellWidth:r}of n[B1("0x64")](t,{includeAllSlots:!0,...e}))if(!i||1!=o||1!=r)return!1;return!0}const j1=["TableColumnResizeEditing","accept","handleResizeTableWidthCommand","tableWidth","type","resizeTableWidth","afterInit","resizeTable","_descriptionFactory","getSelectedElement","get","formatGroupId","getColumnGroupElement","format","editor","subType","getSuggestionCallback","registerCustomCallback","Users","columnWidths","bind","discard","handleSuggestionDescription","TrackChangesEditing","document","getContainedElement","change","formatInline","formatBlock","*Format:* resize table","registerDescriptionCallback","has","_suggestionFactory","model","plugins","getAttribute","locale"];var z1,V1;z1=j1,V1=169,function(t){for(;--t;)z1.push(z1.shift())}(++V1);const F1=function(t,e){return j1[t-=0]};class U1 extends Yt{[F1("0x16")](){if(!this.editor[F1("0xd")][F1("0xa")](F1("0x10")))return;const t=this[F1("0x1e")][F1("0xd")][F1("0x1a")](F1("0x2"));t.enableCommand(F1("0x15"),this.handleResizeTableWidthCommand[F1("0x24")](this)),t[F1("0xb")][F1("0x21")](F1("0x7"),"resizeTable","accept",t[F1("0xb")][F1("0x20")](F1("0x7"),null,"discard")),t[F1("0xb")][F1("0x21")]("formatBlock",F1("0x17"),F1("0x0"),t._suggestionFactory[F1("0x20")](F1("0x7"),null,F1("0x11"))),t[F1("0x18")][F1("0x9")](this.handleSuggestionDescription.bind(this))}[F1("0x12")](t,e){const n=this.editor[F1("0xd")][F1("0x1a")](F1("0x2")),i=this[F1("0x1e")][F1("0xd")][F1("0x1a")](F1("0x10")),o=e.table||this[F1("0x1e")][F1("0xc")][F1("0x3")].selection[F1("0x19")]();this.editor.model[F1("0x5")]((()=>{const r=i[F1("0x1c")](o);let s=r?i.getTableColumnsWidths(r):null,a=o[F1("0xe")](F1("0x13"))||null;const c=e.tableWidth||a,l=e[F1("0x23")]||s,d=this[F1("0x1e")].plugins[F1("0x1a")](F1("0x22")).me;for(const t of n.getSuggestions()){const e=t[F1("0x4")]();if(F1("0x17")===t[F1("0x1f")]&&e===o){t.author!==d&&t.discard();const e=t.data.commandParams;a=e[0][F1("0x13")],s=e[0][F1("0x23")];break}}t({table:o,tableWidth:c,columnWidths:l}),n.markBlockFormat(o,{commandName:F1("0x15"),commandParams:[{tableWidth:a,columnWidths:s}],formatGroupId:F1("0x17")},[],F1("0x17"))}))}[F1("0x1")](t){if("formatBlock"!=t[F1("0x14")]&&F1("0x6")!=t[F1("0x14")])return;const{data:e}=t;if(e&&F1("0x17")===e[F1("0x1b")]){const t=F1("0x8");return{type:F1("0x1d"),content:SJ(this.editor[F1("0xf")],t)}}}}const H1=["afterInit","TrackChangesEditing","has","Template","enableCommand","plugins","get"];var G1,q1;G1=H1,q1=472,function(t){for(;--t;)G1.push(G1.shift())}(++q1);const W1=function(t,e){return H1[t-=0]};class K1 extends Yt{[W1("0x4")](){const t=this.editor;t[W1("0x2")][W1("0x6")](W1("0x0"))&&t[W1("0x2")][W1("0x3")](W1("0x5"))[W1("0x1")]("insertTemplate")}}const Z1=["_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","locale","TrackChangesEditing","tableOfContents","commands","enableCommand","get","afterInit","editor","plugins","insertTableOfContents"];var Y1,J1;Y1=Z1,J1=185,function(t){for(;--t;)Y1.push(Y1.shift())}(++J1);const $1=function(t,e){return Z1[t-=0]};class Q1 extends Yt{[$1("0x6")](){const t=this[$1("0x7")];if(!t[$1("0x3")][$1("0x5")]($1("0x9")))return;t[$1("0x8")][$1("0x5")]($1("0x1"))[$1("0x4")]($1("0x9"));const e=t.plugins.get("TrackChangesEditing"),n=t[$1("0x0")];e[$1("0xa")][$1("0xc")]($1("0x2"),(t=>SJ(n,$1("0xb"),t)))}}const X1=["schema","_splitMarkerName","has","isEqual","document","editor","isCollapsed","end","afterInit","suggestion","start","model","ELEMENT_TITLE","removeMarker","getChangedMarkers","createRange","forward","locale","title-content","from","updateMarker","element"];var t0,e0;t0=X1,e0=314,function(t){for(;--t;)t0.push(t0.shift())}(++e0);const n0=function(t,e){return X1[t-=0]};class i0 extends Yt{[n0("0x2")](){const t=this[n0("0x15")];if(!t.plugins[n0("0x12")]("Title"))return;const e=t.plugins.get("TrackChangesEditing");e._descriptionFactory.registerElementLabel(n0("0xc"),(()=>SJ(t[n0("0xb")],n0("0x6")))),t[n0("0x5")][n0("0x14")].registerPostFixer((n=>{let i=!1;const o=Array[n0("0xd")](t[n0("0x5")].document.differ[n0("0x8")]());for(const{name:r,data:s}of o){const{group:o}=e[n0("0x11")](r);if(n0("0x3")!==o||!s.newRange)continue;const a=s.newRange,c=a.end.nodeBefore;if(!c||!c.is(n0("0xf"),n0("0xc")))continue;if(!a[n0("0x4")].isTouching(a[n0("0x1")]))continue;const l=t[n0("0x5")][n0("0x10")].getNearestSelectionRange(a[n0("0x1")],n0("0xa"));if(l&&l[n0("0x0")]){const t=n[n0("0x9")](a[n0("0x4")],l[n0("0x4")]);t[n0("0x13")](a)||(n[n0("0xe")](r,{range:t}),i=!0)}i||(n[n0("0x7")](r),i=!0)}return i}))}}const o0=["undo","get","enableCommand","has","TrackChangesEditing","editor","afterInit","plugins"];var r0,s0;r0=o0,s0=353,function(t){for(;--t;)r0.push(r0.shift())}(++s0);const a0=function(t,e){return o0[t-=0]};class c0 extends Yt{[a0("0x5")](){const t=this[a0("0x4")],e=t[a0("0x6")][a0("0x0")](a0("0x3"));t[a0("0x6")][a0("0x2")]("UndoEditing")&&(e.enableCommand(a0("0x7")),e[a0("0x1")]("redo"))}}const l0=["plugins","afterInit","toggleTableCaption","enableCommand","TrackChangesEditing","TableCaptionEditing","requires","has","get"];var d0,u0;d0=l0,u0=487,function(t){for(;--t;)d0.push(d0.shift())}(++u0);const h0=function(t,e){return l0[t-=0]};class m0 extends Yt{static get[h0("0x5")](){return[x1]}[h0("0x0")](){const t=this.editor;t[h0("0x8")][h0("0x6")](h0("0x4"))&&t[h0("0x8")][h0("0x7")](h0("0x3"))[h0("0x2")](h0("0x1"))}}const g0=["enableCommand","batch","*Format:* change table cell properties","tableWidth","get","has","nodeAfter","_suggestionFactory","registerDescriptionCallback","TrackChangesEditing","tableCellProperties","model","table","selection","tableHeight","discard","formatBlock","getFirstPosition","getSuggestionCallback","editor","handleDiscardAction","tableCellPadding","_descriptionFactory","_handlePropertyChange","tableBorderStyle","getAttribute","format","registerCustomCallback","TablePropertiesEditing","getContainedElement","tableProperties","tableCellWidth","getSuggestions","removeAttribute","tableBackgroundColor","tableCellHeight","enqueueChange","accept","handleSuggestionDescription","afterInit","data","document","join","plugins","tableCellHorizontalAlignment","locale","TableUtils","TableCellPropertiesEditing","markBlockFormat","tableBorderColor","subType","tableCellBorderColor"];var p0,f0;p0=g0,f0=382,function(t){for(;--t;)p0.push(p0.shift())}(++f0);const x0=function(t,e){return g0[t-=0]};class b0 extends Yt{constructor(t){super(t),this[x0("0xc")]=[x0("0x1f"),x0("0x6"),"tableBorderWidth","tableAlignment",x0("0x25"),x0("0x30"),x0("0x10")],this[x0("0x2c")]=[x0("0x21"),"tableCellBorderStyle","tableCellBorderWidth",x0("0x3"),x0("0xd"),x0("0x11"),"tableCellBackgroundColor",x0("0x1a"),"tableCellVerticalAlignment"]}static get pluginName(){return"TrackChangesTableProperties"}[x0("0x15")](){const t=this[x0("0x1")][x0("0x19")].get(x0("0x2b"));if(this[x0("0x1")][x0("0x19")].has(x0("0xa"))){for(const e of this[x0("0xc")])t.enableCommand(e,((t,n)=>{const i=this[x0("0x1")][x0("0x2d")][x0("0x17")][x0("0x2f")][x0("0x33")]().findAncestor(x0("0x2e"));this._handlePropertyChange(e,[i],this[x0("0xc")],x0("0xc"),t,n)}));t._suggestionFactory[x0("0x9")](x0("0x32"),x0("0xc"),"accept",t[x0("0x29")].getSuggestionCallback(x0("0x32"),null,"discard")),t._suggestionFactory[x0("0x9")](x0("0x32"),x0("0xc"),x0("0x31"),((t,e)=>this[x0("0x2")](this[x0("0xc")],t,e))),t[x0("0x29")][x0("0x9")](x0("0x32"),x0("0xc"),"join",(()=>!1))}if(this[x0("0x1")][x0("0x19")][x0("0x27")](x0("0x1d"))){for(const e of this[x0("0x2c")])t[x0("0x22")](e,((t,n)=>{const i=this[x0("0x1")].plugins[x0("0x26")](x0("0x1c")).getSelectionAffectedTableCells(this[x0("0x1")].model[x0("0x17")].selection);this._handlePropertyChange(e,i,this.tableCellProperties,"tableCellProperties",t,n)}));t[x0("0x29")].registerCustomCallback(x0("0x32"),x0("0x2c"),x0("0x13"),t[x0("0x29")][x0("0x0")](x0("0x32"),null,"discard")),t[x0("0x29")][x0("0x9")](x0("0x32"),"tableCellProperties",x0("0x31"),((t,e)=>this[x0("0x2")](this[x0("0x2c")],t,e))),t._suggestionFactory[x0("0x9")](x0("0x32"),x0("0x2c"),x0("0x18"),(()=>!1))}t[x0("0x4")][x0("0x2a")]((t=>this[x0("0x14")](t)))}[x0("0x5")](t,e,n,i,o,r){const s=this.editor.plugins[x0("0x26")](x0("0x2b"));this[x0("0x1")].model[x0("0x12")](r[x0("0x23")],(()=>{for(const t of e)if(this._getSuggestion(t,i))o(r);else{const e={};for(const i of n){const n=t[x0("0x7")](i);void 0!==n&&(e[i]=n)}o(r),s[x0("0x1e")](t,{commandParams:[e]},[],i)}}))}[x0("0x2")](t,e,n){const i=e[0].start[x0("0x28")],o=n.commandParams[0];this.editor[x0("0x2d")].change((e=>{for(const n of t)void 0!==o[n]?e.setAttribute(n,o[n],i):e[x0("0xf")](n,i)}))}handleSuggestionDescription(t){if(t[x0("0x16")])switch(t[x0("0x20")]){case x0("0xc"):return{type:x0("0x8"),content:SJ(this[x0("0x1")][x0("0x1b")],"*Format:* change table properties")};case x0("0x2c"):return{type:x0("0x8"),content:SJ(this.editor[x0("0x1b")],x0("0x24"))}}}_getSuggestion(t,e){const n=this.editor[x0("0x19")][x0("0x26")](x0("0x2b"));for(const i of n[x0("0xe")]({skipNotAttached:!0})){const n=i[x0("0xb")]();if(i[x0("0x20")]===e&&n===t)return i}return null}}const k0=function(t){return(0,be.Z)(t)?void 0:t};var w0=__webpack_require__(8694),A0=Ne.Z?Ne.Z.isConcatSpreadable:void 0;const _0=function(t){return(0,_e.Z)(t)||(0,rn.Z)(t)||!!(A0&&t&&t[A0])};const v0=function t(e,n,i,o,r){var s=-1,a=e.length;for(i||(i=_0),r||(r=[]);++s<a;){var c=e[s];n>0&&i(c)?n>1?t(c,n-1,i,o,r):(0,w0.Z)(r,c):o||(r[r.length]=c)}return r};const C0=function(t){return(null==t?0:t.length)?v0(t,1):[]};const y0=function(t){return yn(wn(t,void 0,C0),t+"")};var E0=__webpack_require__(4403);const I0=y0((function(t,e){var n={};if(null==t)return n;var i=!1;e=Pe(e,(function(e){return e=Ve(e,t),i||(i=e.length>1),e})),(0,hn.Z)(t,(0,E0.Z)(t),n),i&&(n=(0,me.Z)(n,7,k0));for(var o=e.length;o--;)We(n,e[o]);return n})),S0=["isUndo","trackChangesCommand","some","stopListening","set","add","subType","execute","join","_setSuggestionRange","notReady","ariaLiveAnnouncer","_joinWithAdjacentSuggestions","change:activeMarkers","value","addCommentThread","getDifference","_SUGGESTION_ANNOUNCEMENT","discardSelectedSuggestions","options","insertion:","_customCallbacks","createPositionAfter","oldName","type","element","markerToData","formatBlock:accept","setAttribute","markInsertion","map","attribute","root","isSelectable","hasComments","rootName","unshift","showSuggestionHighlights","upcast","delete","_registerInlineAttribute","_recordAttributeChanges","differ","$marker","comments","rethrowUnexpectedError","author","data","formatBlock","markMultiRangeInsertion","track-changes-adapter-missing-getsuggestion","changeAttribute","writer","push","_inlineAttributeKeys","isCollapsed","consume","model","editingDowncast","plugins","trackChanges.trackFormatChanges","track-changes-command-not-found","createSelection","keys","data-suggestion","getAttribute","from","authorName","range","suggestion-type","formatBlock:chain","discardAllSuggestions","isRemovable","elementToElement","isObject","ck-suggestion-marker","_updateSuggestionData","unbindElementFromMarkerName","createRange","_getAuthorFromId","deletion:","rename","_handleNewSuggestionMarker","oldRange","move","creator","item","$elementName","insert","trackChanges.mergeNestedSuggestions","selection","formatBlock:join","document","deletion:accept","insertion:chain","default","markerName","isLocal","define","key","oldValue","listenTo","_suggestionFactory","discardSuggestion","_trackFormatChanges","change","createPositionAt","track-changes-user-not-found","getMarkers","containsRangeInObject","getNearestSelectionRange","fetchCommentThread","suggestion","mapper","next","getShiftedBy","start","_mergeNestedSuggestions","suggestion:attribute:","formatInline:discard","remove","announce","version","high","formatInline:","skipNestingCheck","FORMATTING","addClass","_blockAttributeKeys","$graveyard","Users","for","createPositionBefore","insertion","commandName","before","error-saving-suggestion-data-suggestion-discarded","CommentsRepository","$text","nodeBefore","_registerDefaultCallbacks","_commentsRepository","splice","_initAriaMarkerChangeAnnouncements","every","_processAttributeSuggestions","consumable","always","fromCharCode","_suggestions","_model","suggestionChanged","multipleBlocks","deletion","ck-suggestion-marker-","createRangeIn","normal","PENDING_ACTION_SUGGESTION","enableReadOnlyMode","isBefore","tablePasteChainId","lowest","track-changes-adapter-already-set","get","concat","markerToHighlight","conversion","elementStart","adapter","_isDataLoaded","ck-suggestion-marker--active","isEqual","$textProxy","pop","markAttributeChange","getIntersection","getChanges","setSelection","getChangedMarkers","removeAttribute","batch","_getSuggestionData","substring","splitPosition","_editor","_createSuggestion","formatGroupId","suggestion:","_processAttributeChanges","_suggestionState","updateSuggestion","_refreshAttributeSuggestionsChain","getRange","activeMarkers","addRange","markMultiRangeDeletion","isOwn","registerCustomCallback","startsWith","addMarker:suggestion:attribute","addSuggestion","rejected","isTouching","getAllAdjacentSuggestions","authoredAt","containsPosition","accept","_enableDefaultAttributesIntegration","addSuggestionData","originalSuggestionId","markInlineFormat","isBlock","_joinSuggestions","_removeSuggestion","substr","_enabledCommands","_splitMarkerName","length","forceDefaultExecution","getMultiRangeId","multi","newRange","_reduceSuggestionAttributeRange","_setSuggestionData","accepted","acceptSuggestion","_checkSuggestionCorrectness","group","insertion:accept","removeMarker:suggestion:attribute","_getMarkerAnnouncementText","collaboration.channelId","registerPostFixer","discard","name","getCustomProperty","containsItem","ready","previous","_breakSuggestionMarker","highest","fire","targetPosition","after","_recordAttributeSuggestionsFromVersion","history","includes","getWalker","enableCommand","formatBlock:discard","hasCommentThread","updateMarker","schema","commentThread","addMarker","ck-suggestion-marker-formatBlock","reconvertMarker","buildSuggestion","split","parent","has","containsRange","createdAt","PendingActions","TrackChangesEditing","track-changes-suggestion-data-mismatch","_reduceExistingSuggestions","getFirstMarker","toUpperCase","addAttribute","trackChanges","formatInline","deletion:join","getSuggestions","requires","low","acceptAllSuggestions","chain","addMarker:suggestion","getFirstRange","isExternal","find","markerReady","howMany","setTo","stop","return","_registerBlockAttribute","isInsideObject","forward","position","_addSuggestionMarker","isAtEnd","_cutOutSuggestionMarker","track-changes-enable-command-twice","dataReady","getRanges","commands","_addThreadToSuggestion","removeMarkers","meta","getItems","_isBlockAttribute","getLastMatchingPosition","suggestionLoaded","getContainedElement","moveTargetPosition","_isForcedDefaultExecutionBlock","acceptSelectedSuggestions","dataToMarker","insertion:join","LEAVE","_adapter","clone","attributes","_rangeIsInLocalUserInsertion","never","attributeNewValue","newValue","markers","update:suggestion","addComment","editor","applyOperation","addMarkerName","attributeOldValue","backward","getSuggestionCallback","sort","newName","filter","_refreshSuggestionsChain","nodeAfter","removeMarker","addHighlight","removed","markerNameToElements","attributeKey","isInContent","change:data","formatInline:accept","head","assign","@external","getUser","groupId","getSuggestion","refresh","formatBlock:","isAfter","end","isIntersecting","values","addMarker:suggestion:formatBlock","then","bindElementToMarker","config","clear","_getExternalAuthor","isLimit","forEach","init","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","isNextTo","dataDowncast","isMultiRange","_findSuggestions","detach","locale","createRangeOn","toViewElement","isDocumentOperation","markDeletion","_saved","containerElement","_defaultCallbacks","marker-count","isAtStart"];var T0,D0;T0=S0,D0=363,function(t){for(;--t;)T0.push(T0.shift())}(++D0);const M0=function(t,e){return S0[t-=0]},B0=M0("0x66");class O0 extends Yt{static get[M0("0x121")](){return[M0("0x98"),Jb,jc,jJ,HJ,YJ,t$,s$,u$,x$,S$,O$,j$,H$,Z$,tQ,rQ,uQ,fQ,AQ,EQ,MQ,FQ,RQ,WQ,$Q,nX,aX,hX,kX,CX,TX,NX,zX,qX,JX,e1,a1,h1,x1,v1,S1,m0,P1,U1,Q1,b0,K1,i0,c0]}static get pluginName(){return M0("0x117")}constructor(t){function e(t){return t[M0("0x2d")]((t=>String[M0("0xa3")](t)))[M0("0x17")]("")}super(t),this[M0("0x103")]=null,this.set(M0("0xd0"),[]),this.on(M0("0x1c"),((e,n,i,o)=>{this[M0("0xa5")][M0("0x78")]((()=>{for(const e of[...o,...i])this[M0("0xa5")][M0("0x14e")][M0("0x113")](e)&&t.editing[M0("0x10f")](e)}))})),this._descriptionFactory=new OJ(this[M0("0x151")].model[M0("0x10b")],this[M0("0x151")][M0("0x5")]),this[M0("0x147")]=null,this._suggestionFactory=new N0(this[M0("0x151")]),this[M0("0xa4")]=new Map,this[M0("0x9c")]=t.plugins[M0("0xb2")](M0("0x98")),this[M0("0xe6")]=new Set,this._model=this[M0("0x151")][M0("0x48")],this[M0("0xcc")]=new WeakMap,this[M0("0x142")]=!1,this[M0("0x8f")]=new Set([M0("0x66")]),this[M0("0x45")]=new Set,t[M0("0x173")][M0("0x71")]("trackChanges.trackFormatChanges",M0("0x6e")),this._trackFormatChanges=t.config.get(M0("0x4b")),t[M0("0x173")][M0("0x71")](M0("0x68"),!0),this[M0("0x84")]=t[M0("0x173")].get(M0("0x68")),this[M0("0x10")]=new ZY(t,this[M0("0xe6")]),this[M0("0x9e")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,52,50,52])}[M0("0x178")](){const t=this[M0("0x151")],e=(t,e)=>{if(M0("0x2e")!=t)return M0("0xa9")+t;const n=e[M0("0x111")]("|")[0];return this._isBlockAttribute(n)?M0("0x10e"):"ck-suggestion-marker-formatInline"};t[M0("0xb5")][M0("0x92")](M0("0x49")).markerToHighlight({model:M0("0x7f"),view:t=>{const{id:n,type:i,subType:o}=this[M0("0xe7")](t[M0("0x6f")]),r=[M0("0x5a"),e(i,o)];let s=3e3;return this[M0("0xd0")][M0("0x105")](t[M0("0x6f")])&&(r[M0("0x44")](M0("0xb9")),s=3010),M0("0xa8")==i&&(s+=5),{classes:r,attributes:{"data-suggestion":n},priority:s}}}),t[M0("0xb5")][M0("0x92")](M0("0x1"))[M0("0x14")]((e=>{e.on(M0("0x125"),((e,n,i)=>{if(!i[M0("0x22")].showSuggestionHighlights)return;const o=n[M0("0x65")];if(!o)return;const r=i[M0("0x80")].toViewElement(o);t.model[M0("0x10b")][M0("0x59")](o)&&r&&!r[M0("0xfa")]("widget")&&r.is(M0("0xb"))&&s_(r,i[M0("0x43")])}),{priority:M0("0x8a")})})),t[M0("0xb5")][M0("0x92")](M0("0x1"))[M0("0xb4")]({model:"suggestion",view:(t,n)=>{if(!n[M0("0x22")].showSuggestionHighlights)return null;const{type:i,subType:o}=this._splitMarkerName(t[M0("0x6f")]);return{classes:["ck-suggestion-marker",e(i,o)],priority:3e3}}});const n=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,o,r)=>{if(!o[M0("0x65")])return;const{id:s}=this[M0("0xe7")](o.markerName);if(n){const t=q0(this[M0("0xa4")][M0("0xb2")](s));if(!this[M0("0x13d")](t))return}if(o[M0("0x65")].is(M0("0x69")))return void r[M0("0xa1")][M0("0x47")](o.item,i[M0("0xf9")]);const a=r[M0("0x80")][M0("0x7")](o[M0("0x65")]);if(o[M0("0x65")].is("element")&&t.model[M0("0x10b")][M0("0xe2")](o[M0("0x65")])&&!a[M0("0xfa")](M0("0x15d"))){r[M0("0x43")].addClass([M0("0x5a"),M0("0x10e")],a),r[M0("0x43")][M0("0x2b")]("data-suggestion",s,a),r[M0("0x80")][M0("0x172")](a,o[M0("0x6f")]),e&&(this[M0("0xd0")][M0("0x105")](o[M0("0x6f")])?r[M0("0x43")][M0("0x8e")](M0("0xb9"),a):r.writer.removeClass(M0("0xb9"),a));for(const e of t[M0("0x48")][M0("0xaa")](o[M0("0x65")])[M0("0x13c")]())r[M0("0xa1")][M0("0x47")](e,i[M0("0xf9")]);r[M0("0xa1")][M0("0x47")](o[M0("0x65")],i[M0("0xf9")])}};t.conversion.for(M0("0x1"))[M0("0x14")]((t=>{t.on(M0("0x170"),((t,e,i)=>{i.options[M0("0x34")]&&n({showActiveMarkers:!1})(t,e,i)}),{priority:M0("0xff")})})),t[M0("0xb5")][M0("0x92")](M0("0x1")).add((t=>{t.on(M0("0xd6"),((t,e,i)=>{i.options[M0("0x34")]&&n({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,i)}),{priority:M0("0xff")})})),t.conversion[M0("0x92")](M0("0x1"))[M0("0x29")]({model:M0("0x7f"),view:(t,e)=>e[M0("0x22")][M0("0x34")]?null:{group:M0("0x7f"),name:t[M0("0xe5")](11)}}),t[M0("0xb5")].for(M0("0x35"))[M0("0x58")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=M0("0xca")+t.getAttribute(M0("0x54"))+":"+t[M0("0x50")]("id");return t.getAttribute(M0("0xd"))&&(n+=":"+t.getAttribute(M0("0xd"))),e.createElement(M0("0x3a"),{"data-name":n})}}),t[M0("0xb5")][M0("0x92")](M0("0x35"))[M0("0x144")]({view:M0("0x7f")}),t[M0("0xb5")][M0("0x92")](M0("0x49"))[M0("0x14")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:M0("0x8a")})})),t[M0("0xb5")].for(M0("0x49"))[M0("0x14")]((t=>{t.on(M0("0xd6"),n({isAttributeSuggestion:!0}),{priority:M0("0x8a")})})),t[M0("0xb5")][M0("0x92")](M0("0x49"))[M0("0x14")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const i=n[M0("0x80")].markerNameToElements(e[M0("0x6f")]);if(i)for(const t of i)t[M0("0xfa")](M0("0x15d"))||(n[M0("0x43")].removeClass([M0("0x5a"),M0("0x10e"),M0("0xb9")],t),n[M0("0x43")].removeAttribute(M0("0x4f"),t),n[M0("0x80")][M0("0x5c")](t,e[M0("0x6f")]))}),{priority:M0("0x8a")})})),t[M0("0xb5")][M0("0x92")](M0("0x49"))[M0("0x14")]((t=>{t.on(M0("0xf4"),((t,e,n)=>{const i=n[M0("0x80")][M0("0x15f")](e[M0("0x6f")]);if(!i)return;const{id:o}=this[M0("0xe7")](e[M0("0x6f")]),r=q0(this[M0("0xa4")][M0("0xb2")](o));if(this[M0("0x13d")](r))for(const t of i)t[M0("0xfa")](M0("0x15d"))||(n[M0("0x43")].removeClass([M0("0x5a"),M0("0x10e"),M0("0xb9")],t),n.writer[M0("0xc2")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[M0("0x6f")]))}),{priority:M0("0x8a")})})),t[M0("0x48")][M0("0x6b")][M0("0xf7")]((e=>{let n=!1;const i=Array[M0("0x51")](t[M0("0x48")][M0("0x6b")][M0("0x39")].getChangedMarkers()),o=new Set;for(const{name:a,data:c}of i){const{group:i,type:l,subType:d,id:u}=this[M0("0xe7")](a);if(M0("0x7f")!==i)continue;const h=this[M0("0xa4")][M0("0xb2")](u);if(null!=c[M0("0xec")]){M0("0x11e")==l&&(n=n||L0(c.newRange,a,e,t[M0("0x48")][M0("0x10b")]));const i=M0("0x2e")==l&&this[M0("0x13d")](d[M0("0x111")]("|")[0]);if(c[M0("0xec")][M0("0x46")]||"$graveyard"==c[M0("0xec")][M0("0x2f")][M0("0x32")]||M0("0x3f")==l&&!z0(c[M0("0xec")])||i&&!z0(c[M0("0xec")])||M0("0xa8")==l&&(R0(s=c.newRange)||(r=s)[M0("0x83")][M0("0x112")]==r[M0("0x16d")][M0("0x9a")]&&r[M0("0x83")][M0("0x133")]))e[M0("0x15c")](a),n=!0;else{if(!h||!h.isInContent)continue;o[M0("0x14")](h)}}}var r,s;return o.size>0&&(n=!!this[M0("0x1b")](o)||n),n})),t[M0("0x48")].document[M0("0xf7")]((e=>{let n=!1;for(const i of t.model.document[M0("0x39")][M0("0xbf")]())if(M0("0x67")==i[M0("0x27")])for(const i of this[M0("0xa4")][M0("0x16f")]()){if(i[M0("0x2")]||!i[M0("0x161")])continue;const o=M0("0x3f")==i.type,r=q0(i),s=r&&this[M0("0x13d")](r);if(!o&&!s)continue;const a=i[M0("0x126")]();if(a[M0("0x83")].parent!=a[M0("0x16d")].parent&&!a[M0("0x16d")][M0("0x133")]){const o=t[M0("0x48")][M0("0x79")](a[M0("0x83")].nodeAfter,M0("0x16d")),r=t.model.createRange(a[M0("0x83")],o);e[M0("0x10a")](i[M0("0x11a")](),{range:r}),n=!0}}return n})),t[M0("0x48")][M0("0x6b")][M0("0xf7")]((t=>this[M0("0xcb")](t))),t.model[M0("0x6b")].registerPostFixer((t=>!t[M0("0xc3")][M0("0x70")]&&this._processAttributeSuggestions(t))),t[M0("0x48")].markers.on(M0("0x14f"),((t,e,n)=>{if(null==n){const{id:t}=this[M0("0xe7")](e[M0("0xf9")]),n=this[M0("0xa4")][M0("0xb2")](t);n&&n[M0("0x153")](e[M0("0xf9")])}})),t[M0("0x48")][M0("0x6b")].on(M0("0x162"),(()=>{const e=Array[M0("0x51")](t[M0("0x48")][M0("0x6b")][M0("0x39")].getChangedMarkers())[M0("0x159")]((t=>"suggestion"===this[M0("0xe7")](t[M0("0xf9")])[M0("0xf2")]));if(0===e[M0("0xe8")])return;e[M0("0x157")](((t,e)=>{const n=t[M0("0x3e")][M0("0x62")],i=e[M0("0x3e")][M0("0x62")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n[M0("0x83")][M0("0xae")](i[M0("0x83")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:o}of e){const{id:e}=this[M0("0xe7")](t);if(null===o[M0("0x62")]){const e=this[M0("0x61")](t);i[M0("0x14")](e)}else{const t=this[M0("0xa4")].get(e);null!==o[M0("0xec")]||t[M0("0x161")]?(n[M0("0x14")](t[M0("0x164")]),i[M0("0x14")](t)):this[M0("0xe4")](t)}}i.size>0&&this[M0("0x15a")](i);for(const t of n)this[M0("0x100")](M0("0xa6"),t)})),t[M0("0x48")].on(M0("0x152"),((e,n)=>{const i=n[0];if(!this[M0("0xa4")].size)return;if(!i[M0("0x8")])return;if(i[M0("0xc3")][M0("0xf")]||!i[M0("0xc3")].isLocal)return;let o,r;switch(i[M0("0x27")]){case M0("0x67"):o=t[M0("0x48")][M0("0x79")](i[M0("0x131")]),r=o.getShiftedBy(i[M0("0x12a")]);break;case M0("0x111"):o=t[M0("0x48")][M0("0x79")](i[M0("0xc6")]),r=t.model[M0("0x79")](i[M0("0x141")]);break;case M0("0x63"):o=t[M0("0x48")].createPositionAt(i[M0("0x101")]),r=o[M0("0x82")](i.howMany);break;default:return}const s=t[M0("0x48")][M0("0x5d")](o,r);t[M0("0x48")][M0("0x78")]((()=>{for(const{suggestion:t,meta:e}of this[M0("0x3")](s)){if(t.isMultiRange)continue;if(M0("0x11e")==t.type)continue;const n=q0(t);if(n&&this._isBlockAttribute(n)&&M0("0x111")!=i.type)continue;const a=t.data&&t[M0("0x3e")][M0("0xa7")];("formatBlock"!=t.type||"split"==i[M0("0x27")]&&!a)&&(e[M0("0x7c")]||M0("0x94")==t[M0("0x27")]&&e.isOwn||t[M0("0x126")]()[M0("0x114")](s)&&this[M0("0xfe")](t,o,r))}}))}),{priority:M0("0xb0")}),t.model.on("deleteContent",((e,n)=>{const i=n[0],o=n[1];if(o&&o[M0("0xe9")])return;if(this[M0("0x142")])return;if(!this[M0("0x10")].value)return;if(i[M0("0x46")])return;const r=t[M0("0x48")].schema,{start:s,end:a}=i[M0("0x126")](),c=s[M0("0x15b")]&&r[M0("0x176")](s.nodeAfter)?null:r[M0("0x7d")](s,M0("0x130")),l=a[M0("0x9a")]&&r[M0("0x176")](a[M0("0x9a")])?null:r[M0("0x7d")](a,M0("0x155")),d=t[M0("0x48")][M0("0x5d")](c?c[M0("0x83")]:s,l?l.end:a);t[M0("0x48")][M0("0x78")]((e=>{this[M0("0x9")](d);const n=t.model[M0("0x10b")].getNearestSelectionRange(d.start);i.is("documentSelection")?e[M0("0xc0")](n):i[M0("0x12b")](n)})),e.stop()}),{priority:Uu.priorities[M0("0xab")]+10}),t.model.on("insertContent",((e,n)=>{const i=n[n[M0("0xe8")]-1];i&&i[M0("0xe9")]||this[M0("0x142")]||this[M0("0x10")][M0("0x1d")]&&(t.model[M0("0x78")]((()=>{let i=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e[M0("0x12d")]=i[M0("0x148")]();const o=i[M0("0x16d")][M0("0x9a")],r=t[M0("0x48")][M0("0x10b")];o&&r[M0("0xe2")](o)&&!r[M0("0x59")](o)&&(i=t[M0("0x48")][M0("0x5d")](i[M0("0x83")],t.model[M0("0x79")](o,M0("0x16d")))),this[M0("0x2c")](i)})),e.stop())}),{priority:M0("0x8a")}),this[M0("0x151")].commands[M0("0x14")](M0("0x11d"),this[M0("0x10")]),this.enableCommand("trackChanges");const i=new XY(t,this._suggestions);t[M0("0x138")].add(M0("0xf0"),i),this[M0("0x107")]("acceptSuggestion");const o=new oJ(t,this._suggestions);t.commands[M0("0x14")](M0("0x76"),o),this[M0("0x107")]("discardSuggestion"),t.commands.add(M0("0x123"),new xJ(t,i,this[M0("0xa4")])),this[M0("0x107")](M0("0x123")),t.commands.add(M0("0x56"),new xJ(t,o,this[M0("0xa4")])),this[M0("0x107")](M0("0x56")),t[M0("0x138")][M0("0x14")](M0("0x143"),new _J(t,i,this[M0("0xa4")])),this.enableCommand(M0("0x143")),t[M0("0x138")][M0("0x14")](M0("0x21"),new _J(t,o,this._suggestions)),this.enableCommand(M0("0x21"));const r=t[M0("0x4a")][M0("0xb2")](M0("0x98"));this.listenTo(r,M0("0x150"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[M0("0x10c")]&&1===n[M0("0x10c")][M0("0xe8")]&&this[M0("0x5b")](e,{hasComments:!0})}),{priority:M0("0x122")}),this.listenTo(r,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[M0("0xb2")](e);n&&n[M0("0x10c")]&&!n[M0("0x10c")][M0("0xe8")]&&this[M0("0x5b")](e,{hasComments:!1})}),{priority:"low"})}set[M0("0xb7")](t){if(this[M0("0x147")])throw new Uu.CKEditorError(M0("0xb1"),this);this[M0("0x147")]=t}get[M0("0xb7")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[M0("0xa4")].values())t&&!e[M0("0x161")]||n[M0("0x44")](e);return e?n[M0("0x2d")]((t=>t.toJSON())):n}[M0("0x169")](t){const e=this[M0("0xa4")].get(t);if(!e)throw new Uu.CKEditorError("track-changes-suggestion-not-found",this);return e}hasSuggestion(t){return this[M0("0xa4")][M0("0x113")](t)}[M0("0xdf")](t){const{authorId:e,id:n,attributes:i}=t,[o,r]=t[M0("0x27")][M0("0x111")](":"),s=this[M0("0xa4")][M0("0xb2")](n)||this[M0("0xc8")](o,r,n,e,i);if(this[M0("0x139")](s),this[M0("0xf1")](s,o,r||null,e),s[M0("0x115")]=t.createdAt,s[M0("0xb8")]=!0,i&&i[M0("0x166")]){const t=i[M0("0x166")],e=this[M0("0x175")](t[M0("0x52")]);s[M0("0xdb")]=t[M0("0x115")],s[M0("0x3d")]=e,s[M0("0x127")]=!0}else s[M0("0xdb")]=t[M0("0x115")];switch(t[M0("0x3e")]&&(s[M0("0x3e")]=t[M0("0x3e")]),t.attributes&&(s[M0("0x149")]=t[M0("0x149")]),this[M0("0x147")]&&this[M0("0x147")][M0("0xd7")]||(s[M0("0xa")]=!0),this[M0("0xcc")][M0("0xb2")](s)){case M0("0x19"):this[M0("0xcc")].set(s,"dataReady");break;case M0("0x129"):s[M0("0x161")]?(this[M0("0x15a")](new Set([s])),this[M0("0x1b")](new Set([s])),this[M0("0xcc")][M0("0x13")](s,M0("0xfc")),this[M0("0x100")](M0("0x13f"),s)):this[M0("0xcc")].set(s,M0("0x15e"))}return s}[M0("0xf0")](t){this[M0("0xe9")]((()=>{this.editor[M0("0x48")][M0("0x78")]((()=>{for(const e of t[M0("0xda")]())e.accept()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[M0("0x151")][M0("0x48")].change((()=>{for(const e of t[M0("0xda")]())e[M0("0xf8")]()}))}))}[M0("0x107")](t,e){const n=this.editor.commands.get(t);if(!n)throw new Uu.CKEditorError(M0("0x4c"),this,{commandName:t});if(this[M0("0xe6")][M0("0x113")](n))throw new Uu.CKEditorError(M0("0x135"),this,{commandName:t});this._enabledCommands[M0("0x14")](n),e&&n.on("execute",((t,i)=>{this[M0("0x10")].value&&(this[M0("0x142")]||(i[M0("0xe8")]>0&&i[i[M0("0xe8")]-1]&&i[i[M0("0xe8")]-1].forceDefaultExecution?i[M0("0xbc")]():(t[M0("0x12d")]=e(((...t)=>n[M0("0x16")](...t,{forceDefaultExecution:!0})),...i),t[M0("0x12c")]())))}),{priority:"high"})}[M0("0xe9")](t){let e,n;const i=this._isForcedDefaultExecutionBlock;this[M0("0x142")]=!0;try{e=t()}catch(t){n=t}return i||(this[M0("0x142")]=!1),n&&Uu.CKEditorError[M0("0x3c")](n,this),e}markInsertion(t,e=null,n={}){if(t.isCollapsed)return null;const i=this.editor[M0("0x4a")].get("Users").me;for(const{suggestion:i,meta:o}of this[M0("0x3")](t,M0("0x94")))if(o[M0("0xd3")]){if(!o[M0("0x0")]){if(o[M0("0x7c")]){if(!this[M0("0x84")]||!H0(i,n))continue;return i}if(H0(i,n))return i;this[M0("0xfe")](i,t.start,t.end);break}if(e==i[M0("0x15")]&&H0(i,n)){const e=i[M0("0x126")]();return e.start[M0("0xba")](t.end)?this._setSuggestionRange(i,this[M0("0xa5")][M0("0x5d")](t.start,e[M0("0x16d")])):this[M0("0x18")](i,this._model[M0("0x5d")](e.start,t[M0("0x16d")])),i}}const o=(0,Uu.uid)(),r=i.id,s=e?M0("0x23")+e:M0("0x94"),a=this[M0("0xee")]({id:o,type:s,createdAt:new Date,authorId:r,attributes:n});return this[M0("0x132")](s,o,r,t),a}[M0("0x40")](t,e="multi",n={}){const i=this[M0("0x151")][M0("0x4a")].get("Users").me,o=this[M0("0x75")][M0("0x156")](M0("0x94"),e,M0("0x17"));for(const r of this[M0("0x120")]())if(r[M0("0x3d")].id==i.id&&M0("0x94")==r.type&&r.subType==e&&H0(r,n)&&(o(r[M0("0x137")](),t)||o(t,r[M0("0x137")]()))){for(const e of t)r[M0("0xd1")](e);return r}for(const{suggestion:e,meta:i}of this[M0("0x3")](t,M0("0x94"))){if(!i[M0("0xd3")])continue;if(!this[M0("0x84")]&&i[M0("0x7c")])continue;if(!H0(e,n))continue;let o=!0;for(const n of e[M0("0x137")]())for(const e of t)if(!n[M0("0x114")](e)){o=!1;break}if(o)return e}const r=(0,Uu.uid)(),s=i.id,a=M0("0x23")+e,c=this[M0("0xee")]({id:r,type:a,createdAt:new Date,authorId:s,attributes:n});for(const e of t)this[M0("0x132")](a,r,s,e,IJ.getMultiRangeId());return c}[M0("0xe1")](t,e,n=null,i={}){if(n=n||j0(e),t[M0("0x46")])return null;if(M0("0x14b")===this._trackFormatChanges){const o=this[M0("0x75")][M0("0x156")]("formatInline",n,M0("0xdd"));return this.forceDefaultExecution((()=>o([t],e,i))),null}const o=this[M0("0x151")].plugins[M0("0xb2")](M0("0x91")).me,r=[];if(M0("0xa2")!==this[M0("0x77")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,M0("0x94")))n.isOwn&&!n[M0("0x12f")]&&r[M0("0x44")](...e[M0("0x137")]());const s=function(t,e){const n=[];for(const i of e){const e=t[M0("0xbe")](i);e&&n[M0("0x44")](e)}return n}(t,r),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const i=n[e][M0("0x1f")](t);n.splice(e,1,...i),e+=i[M0("0xe8")]}}return n}(t,r);s[M0("0xe8")]&&this[M0("0xa5")][M0("0x78")]((()=>{for(const t of s){const o=this._suggestionFactory[M0("0x156")](M0("0x11e"),n,M0("0xdd"));this.forceDefaultExecution((()=>o([t],e,i)))}}));for(const t of a){let r=null,s=t.start,a=t.end;for(const{suggestion:e,meta:o}of this._findSuggestions(t,M0("0x11e"))){if(!o[M0("0xd3")])continue;if(e[M0("0x15")]!=n)continue;if(!H0(e,i))continue;const c=e[M0("0x126")]();if(c[M0("0x114")](t,!0))return null;s=s[M0("0xae")](c[M0("0x83")])?s:c[M0("0x83")],a=a[M0("0x16c")](c[M0("0x16d")])?a:c.end,r?c.start[M0("0xae")](r[M0("0x126")]().start)?(r[M0("0x13a")](),r=e):e[M0("0x13a")]():r=e}const c=this[M0("0xa5")][M0("0x5d")](s,a);if(r)this._setSuggestionRange(r,c);else{const t=(0,Uu.uid)(),r=o.id;this[M0("0xee")]({id:t,type:M0("0x8b")+n,data:e,createdAt:new Date,authorId:r,attributes:i}),this[M0("0x132")]("formatInline:"+n,t,r,c)}}return null}markBlockFormat(t,e,n=[],i=null,o={}){e[M0("0xc9")]||(e[M0("0xc9")]=e.commandName),e.multipleBlocks=t.is("range"),i=i||j0(e);const r=n[M0("0x2d")]((t=>V0(t,this._model))),s=t.is("range")?t:V0(t,this[M0("0xa5")]);if("never"===this[M0("0x77")]){const t=this[M0("0x75")].getSuggestionCallback(M0("0x3f"),i,M0("0xdd"));return this[M0("0xe9")]((()=>t([s],e,o))),null}r.push(s);let a=!0;for(const t of r)if(!this[M0("0x14a")](t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this[M0("0x75")][M0("0x156")](M0("0x3f"),i,"accept");return this[M0("0xe9")]((()=>t([s],e,o))),null}let c=null,l=s[M0("0x83")],d=s[M0("0x16d")];for(const{suggestion:t,meta:n}of this[M0("0x3")](s,M0("0x3f"))){if(!n[M0("0xd3")])continue;if(n[M0("0x0")]||n[M0("0x7c")]||n[M0("0x12f")])continue;if(t[M0("0x3e")][M0("0xc9")]!=e[M0("0xc9")])continue;if(!H0(t,o))continue;const r=t[M0("0x126")]();if(t.subType==i){if(r.containsRange(s,!0))return null;l=l[M0("0xae")](r[M0("0x83")])?l:r.start,d=d[M0("0x16c")](r[M0("0x16d")])?d:r[M0("0x16d")],c?r[M0("0x83")][M0("0xae")](c[M0("0x126")]()[M0("0x83")])?(c[M0("0x13a")](),c=t):t[M0("0x13a")]():c=t}else{const e=s[M0("0xbe")](r);this[M0("0x134")](t,e)}}const u=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x91")).me,h=(0,Uu.uid)(),m=u.id;if(c)return this[M0("0x18")](c,this[M0("0xa5")][M0("0x5d")](l,d)),c;{const t=this[M0("0xee")]({id:h,type:M0("0x16b")+i,data:e,createdAt:new Date,authorId:m,attributes:o});return this[M0("0x132")](M0("0x16b")+i,h,m,this[M0("0xa5")][M0("0x5d")](l,d)),t}}markMultiRangeBlockFormat(t,e,n=[],i=null,o={}){e.formatGroupId||(e[M0("0xc9")]=e[M0("0x95")]);const r=t[0];e[M0("0xa7")]=r.is(M0("0x53")),i=i||j0(e);const s=n.map((t=>V0(t,this[M0("0xa5")]))),a=r.is(M0("0x53"))?t:t.map((t=>V0(t,this[M0("0xa5")])));if(M0("0x14b")===this[M0("0x77")]){const t=this[M0("0x75")].getSuggestionCallback(M0("0x3f"),i,M0("0xdd"));return this[M0("0xe9")]((()=>t(a,e,o))),null}s.push(...a);let c=!0;for(const t of s)if(!this[M0("0x14a")](t)){c=!1;break}if(c&&M0("0xa2")!==this[M0("0x77")]){const t=this[M0("0x75")][M0("0x156")]("formatBlock",i,"accept");return this[M0("0xe9")]((()=>t(a,e,o))),null}const l=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x91")).me;for(const t of this[M0("0x120")]()){if(t[M0("0x3d")].id!=l.id)continue;if(M0("0x3f")!=t[M0("0x27")]||t[M0("0x3e")][M0("0xc9")]!=e[M0("0xc9")])continue;if(!H0(t,o))continue;const n=t.subType==i;for(let e=0;e<a.length;e++){const i=a[e];for(const o of t[M0("0x7b")]()){const r=o[M0("0xcf")]();if(i[M0("0xba")](r)){n?(a[M0("0x9d")](e,1),e--):t[M0("0x15c")](o[M0("0xf9")]);break}}}}if(0==a[M0("0xe8")])return null;const d=this[M0("0x75")].getSuggestionCallback("formatBlock",i,M0("0x17"));for(const t of this[M0("0x120")]())if(t[M0("0x3d")].id==l.id&&M0("0x3f")==t.type&&t[M0("0x3e")][M0("0xc9")]==e[M0("0xc9")]&&t[M0("0x15")]==i&&H0(t,o)&&(d(t[M0("0x137")](),a)||d(a,t[M0("0x137")]()))){for(const e of a)t[M0("0xd1")](e);return t}const u=(0,Uu.uid)(),h=l.id,m=M0("0x16b")+i,g=this[M0("0xee")]({id:u,type:m,data:e,createdAt:new Date,authorId:h,attributes:o});for(const t of a)this._addSuggestionMarker(m,u,h,t,IJ[M0("0xea")]());return g}[M0("0x9")](t,e=null,n={}){if(t[M0("0x46")])return null;const i=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x91")).me,o=new xr(t[M0("0x83")],t.end);for(const{suggestion:t,meta:i}of this[M0("0x3")](o,"insertion"))if(i[M0("0xd3")]&&!i[M0("0x0")])if(t.isMultiRange){const i=t[M0("0x137")]()[M0("0x159")]((t=>M0("0x90")!=t.root[M0("0x32")]));if(i[M0("0x9f")]((t=>o[M0("0x114")](t,!0)))&&t[M0("0xf8")](),i[M0("0x11")]((t=>t[M0("0x114")](o,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",e,M0("0xdd"));return this.forceDefaultExecution((()=>t([o],null,n))),null}}else{const e=o.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,n)}if(o.detach(),o[M0("0x46")]||"$graveyard"==o[M0("0x2f")][M0("0x32")])return null;let r=null,s=o[M0("0x83")],a=o[M0("0x16d")];const c=this[M0("0x3")](o,"deletion");for(const{suggestion:t,meta:e}of c){const i=this[M0("0xa5")][M0("0x5d")](s,a);if(e[M0("0xd3")]&&(this._mergeNestedSuggestions||!e[M0("0x7c")]&&!e[M0("0x12f")]))if(t[M0("0x2")]){if(!H0(t,n))continue;let e=!0;for(const n of t[M0("0x137")]()){if(n[M0("0x114")](i,!0))return t;i[M0("0x114")](n)||(e=!1)}e&&t[M0("0xf8")]()}else{const e=t[M0("0x126")]();if(e[M0("0x114")](i,!0))return t;if(!H0(t,n)){i[M0("0x114")](e)?t[M0("0x13a")]():e[M0("0xdc")](s)?s=e[M0("0x16d")]:e.containsPosition(a)&&(a=e.start);continue}s=s[M0("0xae")](e[M0("0x83")])?s:e[M0("0x83")],a=a[M0("0x16c")](e[M0("0x16d")])?a:e.end,n=Object[M0("0x165")]({},t.attributes),r?e[M0("0x83")][M0("0xae")](r.getFirstRange()[M0("0x83")])?(r[M0("0x13a")](),r=t):t[M0("0x13a")]():r=t}}if(r)return this._setSuggestionRange(r,this[M0("0xa5")][M0("0x5d")](s,a)),r;{const t=(0,Uu.uid)(),o=this._model.createRange(s,a),r=i.id,c=e?M0("0x5f")+e:"deletion",l=this._setSuggestionData({id:t,type:c,createdAt:new Date,authorId:r,attributes:n});return this[M0("0x132")](c,t,r,o),l}}[M0("0xd2")](t,e=M0("0xeb"),n={}){const i=this.editor[M0("0x4a")][M0("0xb2")]("Users").me,o=t[M0("0x2d")]((t=>new xr(t[M0("0x83")],t[M0("0x16d")]))),r=new Set;for(const{suggestion:t,meta:e}of this[M0("0x3")](o,"insertion"))e[M0("0xd3")]&&!e[M0("0x0")]&&r[M0("0x14")](t);for(const i of r)if(i.isMultiRange){const r=i.getRanges();if((!i[M0("0x149")]||!i[M0("0x149")][M0("0x8c")])&&r[M0("0x9f")]((t=>o[M0("0x11")]((e=>e.containsRange(t,!0)))))&&i[M0("0xf8")](),o[M0("0x9f")]((t=>r[M0("0x11")]((e=>e.containsRange(t,!0)))))){const i=this[M0("0x75")][M0("0x156")](M0("0xa8"),e,M0("0xdd"));return this[M0("0xe9")]((()=>i(t,null,n))),null}}else{const t=i[M0("0x126")]();if(o[M0("0x11")]((e=>e[M0("0x114")](t,!0)))&&i.discard(),o[M0("0x9f")]((e=>t[M0("0x114")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",e,M0("0xdd"));return this[M0("0xe9")]((()=>t(o,null,n))),null}}const s=this[M0("0x75")][M0("0x156")](M0("0xa8"),e,"join");let a=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t[M0("0x161")]&&M0("0xa8")==t.type&&t.subType==e&&H0(t,n)&&(s(t[M0("0x137")](),o)||s(o,t[M0("0x137")]())))if(a){if(t[M0("0x10c")]&&t[M0("0x10c")][M0("0xe8")])continue;for(const e of t.getRanges())a.isIntersectingWithRange(e)||a[M0("0xd1")](e);t[M0("0x13a")]()}else{a=t;for(const e of o)t.isIntersectingWithRange(e)||t[M0("0xd1")](e)}if(a)return a;r[M0("0x174")]();for(const{suggestion:t,meta:e}of this[M0("0x3")](o,"deletion"))e[M0("0xd3")]&&(this[M0("0x84")]||!e[M0("0x7c")]&&!e[M0("0x12f")])&&H0(t,n)&&r[M0("0x14")](t);for(const t of r){const e=t.getRanges();if((!n||!n[M0("0x8c")])&&o[M0("0x9f")]((t=>e[M0("0x11")]((e=>e.containsRange(t,!0))))))return t;(!t[M0("0x149")]||!t[M0("0x149")][M0("0x8c")])&&e[M0("0x9f")]((t=>o[M0("0x11")]((e=>e[M0("0x114")](t,!0)))))&&t[M0("0xf8")]()}const c=(0,Uu.uid)(),l=i.id,d=M0("0x5f")+e,u=this[M0("0xee")]({id:c,type:d,createdAt:new Date,authorId:l,attributes:n});for(const t of o)t[M0("0x4")](),t[M0("0x46")]||M0("0x90")==t[M0("0x2f")][M0("0x32")]||this[M0("0x132")](d,c,l,t,IJ[M0("0xea")]());return u}[M0("0xbd")](t,e,n,i,o){if(t[M0("0x46")])return[];if("never"===this[M0("0x77")])return[];const r=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x91")).me.id,s=Array[M0("0x51")](this[M0("0xa4")][M0("0x16f")]())[M0("0x159")]((n=>M0("0x2e")==n[M0("0x27")]&&n.data[M0("0x72")]==e&&n.isIntersectingWithRange(t)));if("default"===this[M0("0x77")]){const e=this[M0("0x3")](t,M0("0x94"))[M0("0x159")]((({meta:t})=>t[M0("0xd3")]&&!t[M0("0x12f")]&&!t[M0("0x0")]))[M0("0x2d")]((({suggestion:t})=>t));s[M0("0x33")](...e)}const a=new Map([[t,n]]);for(const t of s){const o=M0("0x2e")==t[M0("0x27")]?t[M0("0x3e")].oldValue:void 0,r=t.getFirstRange(),s=Array[M0("0x51")](a[M0("0x4e")]())[M0("0x128")]((t=>t[M0("0x16e")](r)));if(!s)continue;const c=s[M0("0x1f")](r);this[M0("0x13d")](e)&&"insertion"==t.type&&0!=c[M0("0xe8")]||(a[M0("0x36")](s),c[M0("0x177")]((t=>{a.set(t,n)})),M0("0x94")!=t[M0("0x27")]&&o!=i&&a[M0("0x13")](s.getIntersection(r),o))}const c=[];for(const[t,n]of a){const s=(0,Uu.uid)(),a={key:e,oldValue:n,newValue:i};e.length>37&&console.warn(M0("0x179"),{key:e});const l=("attribute:"+e+"|"+j0({newValue:i}))[M0("0xc5")](0,60),d=this._setSuggestionData({id:s,type:l,data:a,createdAt:new Date,authorId:r,attributes:o});c.push(d),this._addSuggestionMarker(l,s,r,t)}return c}[M0("0x12e")](t){this[M0("0x8f")][M0("0x14")](t)}_registerInlineAttribute(t){this[M0("0x45")][M0("0x14")](t)}[M0("0xde")](t,e=[],n=[]){this[M0("0x107")](t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[M0("0x37")](t);for(const t of n)this[M0("0x12e")](t)}[M0("0x18")](t,e){const n=t[M0("0x11a")]();this[M0("0xa5")][M0("0x78")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[M0("0x151")][M0("0x173")].get(M0("0xf6"));this._commentsRepository[M0("0x109")](e)||this[M0("0x9c")][M0("0x1e")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this[M0("0x9c")].getCommentThread(e);i.unbind("isRemovable"),i[M0("0x57")]=!1,t[M0("0x10c")]=i}[M0("0xf1")](t,e,n,i){if(t[M0("0x27")]!=e||t[M0("0x15")]!=n||t[M0("0x64")].id!=i)throw this[M0("0x151")][M0("0xad")]("track-changes-suggestion-data-mismatch"),new Uu.CKEditorError(M0("0x118"),this)}[M0("0x134")](t,e){const n=t[M0("0x126")]();if(e.isEqual(n))t.removeMarkers();else if(n[M0("0x114")](e)){const i=this._model[M0("0x79")](e[M0("0x83")][M0("0x9a")],"end");this._setSuggestionRange(t,this[M0("0xa5")][M0("0x5d")](n.start,i));const o=(0,Uu.uid)(),r=t[M0("0x64")].id,s=t[M0("0x27")]+":"+t[M0("0x15")];this._setSuggestionData({id:o,type:s,createdAt:new Date,authorId:r,data:t[M0("0x3e")],attributes:t[M0("0x149")]});const a=this[M0("0xa5")].createPositionAt(e[M0("0x16d")][M0("0x112")],M0("0x102")),c=this._model.createRange(a,n[M0("0x16d")]);this[M0("0x132")](s,o,r,c)}else if(n[M0("0xdc")](e[M0("0x83")])){const i=this._model.createPositionAt(e.start.nodeBefore,"end");this._setSuggestionRange(t,this._model[M0("0x5d")](n[M0("0x83")],i))}else{const i=this._model[M0("0x79")](e.end[M0("0x112")],M0("0x102"));this._setSuggestionRange(t,this[M0("0xa5")][M0("0x5d")](i,n.end))}}[M0("0x14a")](t){for(const{suggestion:e,meta:n}of this[M0("0x3")](t,M0("0x94"))){if(!n[M0("0xd3")])continue;const i=e.getRanges();for(const e of i)if(!t.getDifference(e).length)return!0}return!1}[M0("0x5e")](t){const e=this.editor[M0("0x4a")][M0("0xb2")](M0("0x91"))[M0("0x167")](t);if(!e)throw new Uu.CKEditorError(M0("0x7a"),this);return e}[M0("0x175")](t){const e=this[M0("0x151")].plugins.get(M0("0x91")),n=Yw("external:"+t);return e[M0("0x167")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,i,o){const r=this[M0("0x5e")](i),s=this[M0("0x75")][M0("0x110")](t,e,n,r,o,(t=>this[M0("0x5b")](n,{attributes:t})));return this[M0("0x74")](s,M0("0xdd"),(()=>{this[M0("0x5b")](n,{state:M0("0xef")})}),{priority:M0("0x8a")}),this[M0("0x74")](s,M0("0xf8"),(()=>{this[M0("0x5b")](n,{state:M0("0xd8")})}),{priority:M0("0x8a")}),this[M0("0xa4")].set(n,s),this[M0("0xcc")][M0("0x13")](s,"notReady"),s}[M0("0xe7")](t){const e=t[M0("0x111")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[M0("0xe8")]<5?e[2]:e[3],authorId:e[M0("0xe8")]<5?e[3]:e[4],markerCount:6==e[M0("0xe8")]?e[5]:null}}[M0("0xfe")](t,e,n){const i=t[M0("0x126")](),o=i[M0("0x83")],r=i[M0("0x16d")];this[M0("0x18")](t,this._model[M0("0x5d")](o,e));const s=(0,Uu.uid)(),a=t.creator.id,c=t[M0("0x27")]+(t.subType?":"+t[M0("0x15")]:"");this[M0("0xee")]({id:s,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[M0("0x3e")]});const l=q0(t);(M0("0x3f")==t[M0("0x27")]||l&&this[M0("0x13d")](l))&&(n=this[M0("0xa5")][M0("0x93")](n[M0("0x112")])),this._addSuggestionMarker(c,s,a,this[M0("0xa5")][M0("0x5d")](n,r))}[M0("0x3")](t,e=null){const n=[],i=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x91")).me;Array.isArray(t)||(t=[t]);for(const o of this[M0("0x120")]()){if(!o[M0("0x161")])continue;if(e&&o[M0("0x27")]!=e)continue;let r=!1;for(const e of o[M0("0x137")]()){for(const s of t){const t=s[M0("0x83")][M0("0xba")](e.end)||s[M0("0x16d")].isEqual(e[M0("0x83")]);if(t||s[M0("0xbe")](e)){const a=s.containsRange(e)&&P0(this._model[M0("0x10b")],e[M0("0x83")],s),c=e.containsRange(s)&&P0(this[M0("0xa5")][M0("0x10b")],s[M0("0x83")],e);n[M0("0x44")]({suggestion:o,meta:{isOwn:i==o.author,isNextTo:t,isInsideObject:a,containsRangeInObject:c}}),r=!0;break}}if(r)break}}return n}[M0("0x132")](t,e,n,i,o){this._model[M0("0x78")]((r=>{let s=M0("0xca")+t+":"+e+":"+n;o&&(s=s+":"+o),r[M0("0x10d")](s,{range:i,usingOperation:!0,affectsData:!0})}))}[M0("0xe4")](t){const e=t[M0("0xfd")],n=t[M0("0x81")];t[M0("0xfd")]=null,t.next=null,null!=e&&(e.next=n),null!=n&&(n[M0("0xfd")]=e),M0("0xfc")==this[M0("0xcc")][M0("0xb2")](t)&&(this[M0("0xcc")].set(t,M0("0x15e")),this[M0("0x100")]("suggestionUnloaded",t,e,n))}[M0("0xee")](t){const e=t.id,n=this[M0("0xdf")](t);if(this[M0("0x147")]&&this._adapter[M0("0xd7")]){const i=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x116")),o=n[M0("0x31")],r=n[M0("0x15")]?n[M0("0x27")]+":"+n[M0("0x15")]:n[M0("0x27")],s=this[M0("0x151")].locale,a=i[M0("0x14")](SJ(s,M0("0xac"))),c={id:e,type:r,hasComments:o,data:t[M0("0x3e")]||null,originalSuggestionId:t[M0("0xe0")]||null,attributes:n[M0("0x149")]};this._adapter[M0("0xd7")](c)[M0("0x171")]((t=>{n[M0("0xa")]=!0,i[M0("0x87")](a),t&&t[M0("0x115")]&&(this[M0("0xa4")].get(e)[M0("0x115")]=t[M0("0x115")])})).catch((t=>{throw(0,Uu.logWarning)(M0("0x97")),this.editor[M0("0x48")].enqueueChange({isUndoable:!1},(()=>{n[M0("0xf8")]()})),n[M0("0x12")](),this._suggestions[M0("0x36")](n.id),this[M0("0xcc")][M0("0x36")](n),t}))}return n}[M0("0x13d")](t){return this._blockAttributeKeys[M0("0x113")](t)}[M0("0x5b")](t,e){const n=this[M0("0x151")][M0("0x4a")][M0("0xb2")](M0("0x116")),i=this.getSuggestion(t);if(this[M0("0x147")]&&this._adapter[M0("0xcd")])if(i[M0("0xa")]){const i=n.add(SJ(this.editor[M0("0x5")],M0("0xac")));this[M0("0x147")][M0("0xcd")](t,e)[M0("0x171")]((()=>{n.remove(i)}))}else i.on("change:_saved",(()=>{this[M0("0x5b")](t,e)}))}[M0("0xc4")](t){if(!this[M0("0x147")]||!this[M0("0x147")][M0("0x169")])throw new Uu.CKEditorError(M0("0x41"),this);return this[M0("0x147")][M0("0x169")](t)}[M0("0x61")](t){const{id:e,type:n,subType:i,authorId:o}=this[M0("0xe7")](t),r=this[M0("0xa4")].get(e)||this[M0("0xc8")](n,i,e,o,{});switch(this[M0("0xf1")](r,n,i,o),this[M0("0xcc")][M0("0xb2")](r)){case M0("0x19"):this[M0("0xc4")](e).then((t=>{let n=Promise.resolve();t[M0("0x31")]&&(n=this._commentsRepository[M0("0x7e")]({channelId:this[M0("0x151")][M0("0x173")].get(M0("0xf6")),threadId:e})),n[M0("0x171")]((()=>{this[M0("0xdf")](t)[M0("0xa")]=!0}))})),this[M0("0xcc")][M0("0x13")](r,M0("0x129"));break;case M0("0x15e"):this[M0("0x5b")](e,{state:"open"});case M0("0x136"):this[M0("0xcc")].set(r,M0("0xfc")),this[M0("0x100")](M0("0x13f"),r);break;case M0("0xfc"):this[M0("0x100")](M0("0xa6"),r)}return r[M0("0x153")](t),r}[M0("0x15a")](t){const e=Array[M0("0x51")](t),n=e.filter((t=>"attribute"==t[M0("0x27")]));this[M0("0xce")](n);const i=e.filter((t=>!t[M0("0x2")]&&M0("0x2e")!=t[M0("0x27")])),o=this[M0("0x120")]({skipNotAttached:!0}).filter((t=>!t[M0("0x2")]&&M0("0x2e")!=t[M0("0x27")])),r=o[M0("0x159")]((e=>!t[M0("0x113")](e))),s=new Map(o.map((t=>[t,this[M0("0x75")].getSuggestionCallback(t[M0("0x27")],t.subType,M0("0x124"))]))),a=new Map(o[M0("0x2d")]((t=>[t,t[M0("0x126")]()]))),c=new Set,l=new Set;for(let t=0;t<i.length;t++)u(i[t],i,t+1);for(let t=0;t<i[M0("0xe8")];t++)u(i[t],r,0);const d=new Set;for(let t=0;t<i[M0("0xe8")];t++){const e=i[t];!l[M0("0x113")](e)&&e[M0("0xfd")]&&(d.add(e[M0("0xfd")]),e.previous.next===e&&(e.previous.next=null),e[M0("0xfd")]=null),!c[M0("0x113")](e)&&e[M0("0x81")]&&(d.add(e[M0("0x81")]),e.next[M0("0xfd")]===e&&(e.next.previous=null),e.next=null)}function u(t,e,n){for(let i=n;i<e[M0("0xe8")];i++){const n=h(t,e[i]);n&&(n[0].next=n[1],n[1][M0("0xfd")]=n[0],c.add(n[0]),l[M0("0x14")](n[1]))}}function h(t,e){if(t.author.id!==e[M0("0x3d")].id)return null;const n=s[M0("0xb2")](t)(t,e,a[M0("0xb2")](t),a[M0("0xb2")](e));return n&&s[M0("0xb2")](e)(t,e,a[M0("0xb2")](t),a[M0("0xb2")](e))?n[1][M0("0x10c")]&&n[1][M0("0x10c")][M0("0xe8")]?null:n:null}d.size&&this[M0("0x15a")](d)}_refreshAttributeSuggestionsChain(t){if(0==t[M0("0xe8")])return;const e=this[M0("0x120")]({skipNotAttached:!0})[M0("0x159")]((t=>M0("0x2e")==t.type&&t[M0("0xb8")])),n=[],i=new Map;for(const t of e){const e=Yw(t[M0("0x149")]);i[M0("0x113")](e)||(i[M0("0x13")](e,n[M0("0xe8")]),n[M0("0x44")]([]));const o=i[M0("0xb2")](e);n[o][M0("0x44")](t)}!function(){n[M0("0x157")](((t,e)=>{const n=t[0][M0("0x115")],i=e[0][M0("0x115")];return n==i?t[0][M0("0x149")][M0("0x168")]<e[0][M0("0x149")][M0("0x168")]?-1:1:n<i?-1:1}));for(const t of n)t[M0("0x157")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[M0("0xe8")];t++){if(0==n[t].length)continue;const e=[];for(let i=t+1;i<n[M0("0xe8")];i++)0!=n[i][M0("0xe8")]&&o(n[t],n[i])&&e.push(i);for(const i of e)n[t]=n[t][M0("0xb3")](n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t[M0("0xe8")];e++)t[e][M0("0x81")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function o(t,e){if(t[0].author!==e[0][M0("0x3d")])return!1;if(n=t[0],i=e[0],(n[M0("0x31")]||i.hasComments)&&(n[M0("0x31")]&&i[M0("0x31")]||!(n[M0("0x31")]&&i.createdAt<n[M0("0x10c")][M0("0x3b")][M0("0xb2")](0)[M0("0x115")]||i.hasComments&&n[M0("0x115")]<i[M0("0x10c")][M0("0x3b")][M0("0xb2")](0)[M0("0x115")])))return!1;var n,i;const o=I0(t[0][M0("0x149")],M0("0x168")),r=I0(e[0].attributes,M0("0x168"));return!!Ls(o,r)&&(!!t[M0("0x9f")]((t=>e.some((e=>t.getFirstRange().isEqual(e.getFirstRange())))))&&e[M0("0x9f")]((e=>t[M0("0x11")]((t=>e.getFirstRange()[M0("0xba")](t[M0("0x126")]()))))))}}[M0("0x1b")](t){const e=Array[M0("0x51")](t),n=this.getSuggestions({skipNotAttached:!0}),i=n[M0("0x159")]((e=>!t[M0("0x113")](e))),o=new Map(e[M0("0x2d")]((t=>[t,this[M0("0x75")][M0("0x156")](t.type,t[M0("0x15")],"join")]))),r=new Map(n[M0("0x2d")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[M0("0xe8")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n.length;s++){const i=n[s];if(i[M0("0x27")]!==e[M0("0x27")]||i[M0("0x3d")].id!==e.author.id||i.subType!==e[M0("0x15")])continue;if(!U0(e,i))continue;if("attribute"==e[M0("0x27")]&&e.data[M0("0x73")]!=i[M0("0x3e")][M0("0x73")])continue;if(M0("0x2e")==e[M0("0x27")]&&t[M0("0x13d")](e[M0("0x3e")].key))continue;if(M0("0x3f")==e[M0("0x27")]){const n=t[M0("0x151")][M0("0x48")],i=e[M0("0x140")]();if(i&&(n[M0("0x10b")][M0("0x59")](i)||n.schema[M0("0x176")](i)))continue}const a=o[M0("0xb2")](e),c=r[M0("0xb2")](e),l=r[M0("0xb2")](i),d=e[M0("0x10c")]&&e[M0("0x10c")][M0("0xe8")],u=i[M0("0x10c")]&&i[M0("0x10c")][M0("0xe8")];if(!d&&a(l,c))return t._joinSuggestions(i,e),r[M0("0x36")](e),!0;if(!u&&a(c,l))return t[M0("0xe3")](e,i),r[M0("0x36")](i),!0}return!1}}_joinSuggestions(t,e){if(t[M0("0x2")])for(const n of e[M0("0x137")]())t[M0("0xd1")](n);else{const n=e[M0("0x126")]()[M0("0x16d")];this[M0("0x18")](t,this[M0("0xa5")][M0("0x5d")](t[M0("0x126")]().start,n))}e.removeMarkers()}[M0("0xf5")](t,e){const n=t[M0("0xd5")]("format")||t[M0("0xd5")](M0("0x2e"))?M0("0x8d"):t[M0("0x11b")]();return SJ(this[M0("0x151")][M0("0x5")],e+"_"+n+M0("0x20"))}[M0("0x9e")](){const t=this.editor;mA(this._model,(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[M0("0xe7")](t[M0("0xf9")]);if(M0("0x7f")===e){i.push(this[M0("0xf5")](n,M0("0x146")));break}}for(const t of n){const{group:e,type:n}=this[M0("0xe7")](t[M0("0xf9")]);if("suggestion"===e){i[M0("0x44")](this._getMarkerAnnouncementText(n,"ENTER"));break}}i[M0("0xe8")]&&t.ui[M0("0x1a")][M0("0x88")](M0("0x11d"),i[M0("0x17")](" "))}))}[M0("0xcb")](t){if(null!==this[M0("0x103")])return!1;const e=this[M0("0x151")],n=e.model[M0("0x6b")][M0("0x39")].getChanges();if(0==n[M0("0xe8")])return!1;const i=[],o=n[M0("0x159")]((t=>M0("0x2e")==t[M0("0x27")])),r=n.filter((t=>M0("0x67")==t.type&&M0("0x99")!=t.name)),s=n[M0("0x159")]((t=>M0("0x87")==t[M0("0x27")]&&"$text"!=t.name));for(const t of o)i[M0("0x44")]({key:t[M0("0x160")],newValue:t[M0("0x14c")],oldValue:t[M0("0x154")],range:(a=t.range,null==a[M0("0x16d")][M0("0x9a")]&&a[M0("0x16d")][M0("0x112")]==a[M0("0x83")][M0("0x15b")]?V0(a[M0("0x83")][M0("0x15b")],e.model):a)});var a;for(const t of r){const n=s[M0("0x128")]((e=>e[M0("0x131")][M0("0xba")](t.position)));n&&i[M0("0x44")]({key:"$elementName",newValue:t[M0("0xf9")],oldValue:n[M0("0xf9")],range:e[M0("0x48")][M0("0x6")](t[M0("0x131")][M0("0x15b")])})}return 0!=i[M0("0xe8")]&&this[M0("0x119")](t,i)}[M0("0xa0")](t){let e=!1;const n=this[M0("0x151")].model[M0("0x6b")][M0("0x39")][M0("0xc1")]()[M0("0x159")]((t=>t.data[M0("0xec")]&&t.name.startsWith(M0("0x85"))));for(const i of n){const{subType:n,id:o}=this[M0("0xe7")](i[M0("0xf9")]),r=n[M0("0x111")]("|")[0];for(const n of this[M0("0x120")]({skipNotAttached:!0}))n.id!=o&&M0("0x2e")==n.type&&n[M0("0x3e")]&&n[M0("0x3e")][M0("0x72")]==r&&n[M0("0x126")]()[M0("0x16e")](i[M0("0x3e")][M0("0xec")])&&(this[M0("0xed")](n,i[M0("0x3e")][M0("0xec")],t),e=!0)}return e}[M0("0x38")](t){if(null!==this[M0("0x103")])return void t();const e=this[M0("0x151")];this[M0("0x103")]=e.model[M0("0x6b")][M0("0x89")],t();const n=new Map;for(const t of e[M0("0x48")].document[M0("0x104")].getOperations(this[M0("0x103")]))if([M0("0x60"),M0("0x11c"),M0("0xc2"),M0("0x42")].includes(t.type)){const e=t[M0("0xc3")],i=n[M0("0xb2")](e)||[];i.push(t),n[M0("0x13")](e,i)}this[M0("0x103")]=null;for(const[t,i]of n){const n=(0,Uu.uid)();e[M0("0x48")].enqueueChange(t,(t=>{const o=[];for(const t of i){let i,r,s,a;if(M0("0x60")==t[M0("0x27")]){const n=t;i=V0(n[M0("0x131")][M0("0x15b")],e[M0("0x48")]),r=M0("0x66"),s=n[M0("0x158")],a=n[M0("0x26")]}else{const n=t,o=this._isBlockAttribute(n.key),c=this[M0("0x45")].has(n.key);if(!o&&!c)continue;i=o?V0(n[M0("0x53")].start[M0("0x15b")],e.model):n[M0("0x53")],r=n[M0("0x72")],s=M0("0xc2")==t[M0("0x27")]?void 0:n[M0("0x14d")],a=n[M0("0x73")]}this.markAttributeChange(i,r,a,s,{groupId:n}),o.push({range:i,key:r,newValue:s,oldValue:a})}this._reduceExistingSuggestions(t,o)}))}}[M0("0x119")](t,e){if(0==e[M0("0xe8")])return!1;let n=!1;for(const i of e){const e=this[M0("0x3")](i[M0("0x53")],M0("0x2e"))[M0("0x159")]((t=>!t[M0("0x13b")][M0("0x0")]))[M0("0x2d")]((t=>t[M0("0x7f")])),o=Yw({newValue:i[M0("0x14d")]});e[M0("0x159")]((t=>{const[e,n]=t[M0("0x15")][M0("0x111")]("|");return e==i[M0("0x72")]&&n!=o}))[M0("0x177")]((e=>{this[M0("0xed")](e,i[M0("0x53")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const i=t[M0("0x126")]()[M0("0x1f")](e);0!==i[M0("0xe8")]?1!==i.length?this[M0("0xfe")](t,e[M0("0x83")],e[M0("0x16d")]):this[M0("0x18")](t,i[0]):n[M0("0x15c")](t.getFirstMarker())}}class N0{constructor(t){this[M0("0xc7")]=t,this[M0("0xa5")]=t[M0("0x48")],this[M0("0x24")]=new Map,this[M0("0xc")]=new Map,this[M0("0x9b")]()}buildSuggestion(t,e,n,i,o,r){return new IJ(this[M0("0xa5")],{type:t,subType:e,id:n,author:i,creator:i,attributes:o,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[M0("0x156")](t,e,M0("0xf8"))(...n)})}[M0("0xd4")](t,e,n,i){const o=t+":"+e+":"+n;this[M0("0x24")].set(o,i)}getSuggestionCallback(t,e,n){const i=t+":"+e+":"+n;return this._customCallbacks[M0("0xb2")](i)||this[M0("0xc")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[M0("0x83")][M0("0xae")](e[M0("0x83")])?1:-1)),this[M0("0xa5")][M0("0x78")]((e=>{for(const n of t){let t;t=n[M0("0x16d")][M0("0x133")]&&n[M0("0x16d")][M0("0x112")]==n[M0("0x83")][M0("0x15b")]?e[M0("0x4d")](n[M0("0x83")][M0("0x15b")],"on"):e.createSelection(n),this[M0("0xa5")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[M0("0xa5")][M0("0x78")]((n=>{const{commandName:i,commandParams:o=[]}=e,r=t.map((t=>(R0(t)&&(t=this._model.createRange(t[M0("0x16d")])),t))).filter((t=>M0("0x90")!==t[M0("0x2f")][M0("0x32")]));if(r[M0("0xe8")]<1)return;const s=Array.from(this[M0("0xa5")][M0("0x6b")].selection.getRanges())[M0("0x2d")]((t=>xr.fromRange(t)));n[M0("0xc0")](r);for(const t of this._editor[M0("0x138")].commands())t[M0("0x16a")]();o[M0("0x44")]({forceDefaultExecution:!0}),this[M0("0xc7")][M0("0x16")](i,...o);const a=s[M0("0x159")]((t=>M0("0x90")!=t[M0("0x2f")][M0("0x32")]));a[M0("0xe8")]>0&&n[M0("0xc0")](a);for(const t of s)t[M0("0x4")]()}))},i=(t,e)=>1==t[M0("0xe8")]&&1==e.length&&t[0][M0("0x16d")][M0("0xba")](e[0][M0("0x83")]),o=(t,e,n,i)=>F0(t,e,n,i,this[M0("0xa5")])?[t,e]:F0(e,t,i,n,this[M0("0xa5")])?[e,t]:null;this[M0("0xc")][M0("0x13")](M0("0xf3"),t),this[M0("0xc")][M0("0x13")]("insertion:discard",e),this[M0("0xc")][M0("0x13")](M0("0x145"),i),this[M0("0xc")][M0("0x13")](M0("0x6d"),o),this[M0("0xc")][M0("0x13")](M0("0x6c"),e),this._defaultCallbacks[M0("0x13")]("deletion:discard",t),this[M0("0xc")].set(M0("0x11f"),i),this[M0("0xc")][M0("0x13")]("deletion:chain",o),this._defaultCallbacks[M0("0x13")](M0("0x163"),n),this._defaultCallbacks[M0("0x13")](M0("0x86"),t),this[M0("0xc")][M0("0x13")]("formatInline:join",i),this._defaultCallbacks[M0("0x13")]("formatInline:chain",t),this[M0("0xc")][M0("0x13")](M0("0x2a"),n),this[M0("0xc")][M0("0x13")](M0("0x108"),t),this[M0("0xc")][M0("0x13")](M0("0x6a"),i),this[M0("0xc")][M0("0x13")](M0("0x55"),t),this[M0("0xc")][M0("0x13")]("attribute:accept",t),this[M0("0xc")][M0("0x13")]("attribute:discard",((t,e)=>{if(!e)return;const n=this[M0("0xc7")][M0("0x4a")][M0("0xb2")](O0);this._model[M0("0x78")]((i=>{if(M0("0x66")==e[M0("0x72")])for(const n of t){const t=n[M0("0x83")][M0("0x15b")],o=e[M0("0x73")];i[M0("0x60")](t,o)}else if(n[M0("0x13d")](e[M0("0x72")]))for(const n of t)void 0!==e[M0("0x73")]?i.setAttribute(e[M0("0x72")],e[M0("0x73")],n[M0("0x83")].nodeAfter):i[M0("0xc2")](e[M0("0x72")],n[M0("0x83")][M0("0x15b")]);else for(const n of t)e[M0("0x73")]?i[M0("0x2b")](e[M0("0x72")],e[M0("0x73")],n):i.removeAttribute(e[M0("0x72")],n)}))})),this[M0("0xc")][M0("0x13")]("attribute:join",i)}}function P0(t,e,n){for(const i of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(i.root==i)return!1;if(!n[M0("0xfb")](i))return!1;if(t[M0("0x59")](i)||t.isLimit(i))return!0}return!1}function R0(t){return t[M0("0x16d")].parent==t[M0("0x83")][M0("0x15b")]&&t[M0("0x16d")][M0("0xe")]}function L0(t,e,n,i){const o=t=>!t[M0("0x65")].is(M0("0xbb"))&&!i[M0("0x59")](t[M0("0x65")]),r=t[M0("0x83")][M0("0x13e")](o),s=t[M0("0x16d")][M0("0x13e")](o,{direction:M0("0x155")});return!(t[M0("0x83")].isEqual(r)&&t[M0("0x16d")].isEqual(s)||(r[M0("0xae")](s)?n[M0("0x10a")](e,{range:n[M0("0x5d")](r,s)}):n[M0("0x15c")](e),0))}function j0(t){return Yw(t)}function z0(t){const e=t[M0("0x83")][M0("0x15b")];return e&&e.is(M0("0x28"))}function V0(t,e){const n=e[M0("0x10b")][M0("0x59")](t)||e[M0("0x10b")][M0("0x30")](t);return e[M0("0x5d")](e[M0("0x79")](t,M0("0x96")),n?e[M0("0x25")](t):e[M0("0x79")](t,M0("0x16d")))}function F0(t,e,n,i,o){if(!U0(t,e))return!1;if(n[M0("0x16d")][M0("0xba")](i[M0("0x83")]))return!0;if(t[M0("0x27")]!=e[M0("0x27")])return!1;if(!n[M0("0x16d")][M0("0xd9")](i[M0("0x83")]))return!1;const r=o[M0("0x5d")](n[M0("0x16d")],i[M0("0x83")])[M0("0x106")]();for(const t of r)if([M0("0xb6"),"elementEnd"][M0("0x105")](t[M0("0x27")])&&o[M0("0x10b")][M0("0x176")](t[M0("0x65")]))return!1;return!0}function U0(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&Ls(t[M0("0x149")],e.attributes)}function H0(t,e){const n=G0(t[M0("0x149")]),i=G0(e);if(!t[M0("0xb8")])return!1;for(const t of Object.keys(i))if(!Ls(n[t],i[t]))return!1;return!0}function G0(t){const e=Object[M0("0x165")]({},t);return delete e[M0("0x8c")],delete e[M0("0xaf")],e}function q0(t){return M0("0x2e")==t[M0("0x27")]?t[M0("0x15")][M0("0x111")]("|")[0]:null}const W0=["_removePendingAction","_pendingAction","acceptSuggestion","canDiscard","canEditAt","_discardCommand","isEnabled","commentThreadController","add","view","getRanges","PENDING_ACTION_SUGGESTION","remove","canAccept","listenTo","model","PendingActions","isDirty","get","discardSuggestion","_acceptCommand","_editor","change:isDirty","locale","plugins","execute","unbind","_setPendingAction","destroy","stopListening","bind"];var K0,Z0;K0=W0,Z0=357,function(t){for(;--t;)K0.push(K0.shift())}(++Z0);const Y0=function(t,e){return W0[t-=0]};class J0 extends((0,Uu.ObservableMixin)()){constructor(t,e,n,i){super(),this[Y0("0x1e")]=e,this[Y0("0x18")]=n,this[Y0("0x16")]=i,this[Y0("0x5")]=t,this[Y0("0x4")]=t.commands[Y0("0x2")]("acceptSuggestion"),this[Y0("0x14")]=t.commands[Y0("0x2")](Y0("0x3")),this.view.bind(Y0("0x15")).to(this[Y0("0x4")],this[Y0("0x14")],((t,e)=>t||e)),this[Y0("0x18")].bind("canAccept").to(this[Y0("0x4")],"isEnabled",(t=>t&&this[Y0("0x5")][Y0("0x1e")][Y0("0x13")](e[Y0("0x19")]()))),this[Y0("0x18")][Y0("0xe")](Y0("0x12")).to(this[Y0("0x14")],"isEnabled",(t=>t&&this[Y0("0x5")][Y0("0x1e")][Y0("0x13")](e[Y0("0x19")]()))),this[Y0("0x10")]=null,n[Y0("0x1")]&&this[Y0("0xb")](),this[Y0("0x1d")](n,Y0("0x11"),(()=>this[Y0("0x11")]())),this[Y0("0x1d")](n,Y0("0x3"),(()=>this[Y0("0x3")]())),this[Y0("0x1d")](n,Y0("0x6"),(()=>{n[Y0("0x1")]?this[Y0("0xb")]():this._removePendingAction()}))}[Y0("0x11")](){this[Y0("0x4")][Y0("0x9")](this[Y0("0x1e")].id)}[Y0("0x3")](){this._discardCommand[Y0("0x9")](this.model.id)}[Y0("0xc")](){this[Y0("0x18")].unbind("isEnabled"),this[Y0("0x18")].unbind(Y0("0x1c")),this[Y0("0x18")][Y0("0xa")](Y0("0x12")),this[Y0("0xd")](),this.commentThreadController[Y0("0xc")](),this._pendingAction&&this._removePendingAction()}_setPendingAction(){const t=SJ(this[Y0("0x5")][Y0("0x7")],Y0("0x1a"));this[Y0("0x10")]=this[Y0("0x5")][Y0("0x8")][Y0("0x2")](Y0("0x0"))[Y0("0x17")](t)}[Y0("0xf")](){null!==this[Y0("0x10")]&&this[Y0("0x5")][Y0("0x8")][Y0("0x2")](Y0("0x0"))[Y0("0x1b")](this[Y0("0x10")]),this[Y0("0x10")]=null}}const $0=["_createCommentViews","showInput","locale","cancel","addComment","CommentView","_localUser","isEnabled","hasDirtyComment","focus","_config","canDiscard","removeComment","set","commentInputView","length","commentThread","delegate","fire","isReadOnly","editor","_model","authoredAt","destroy","_createCommentThreadInputView","commentsListView","commentThreadInputView","disabledSubmit","updateComment","value","isActive","isDirty","bind","descriptionParts"];var Q0,X0;Q0=$0,X0=171,function(t){for(;--t;)Q0.push(Q0.shift())}(++X0);const t2=function(t,e){return $0[t-=0]};class e2 extends u{constructor(t,e,n,i){super(t),this.commentsListView=null,this[t2("0x19")]=null,this.set(t2("0x1d"),!1),this[t2("0xc")](t2("0x15"),e[t2("0x15")]),this[t2("0x1f")](t2("0x15")).to(e),this[t2("0xc")](t2("0x20"),[]),this[t2("0xc")](t2("0x1e"),!1),this.set(t2("0x6"),!1),this.set("canAccept",!1),this[t2("0xc")](t2("0xa"),!1),this[t2("0x14")]=e,this[t2("0x5")]=n,this[t2("0x9")]=i,i.disableComments?this[t2("0xc")](t2("0xe"),1):this._createCommentViews()}[t2("0x8")](){this.element[t2("0x8")]()}destroy(){this[t2("0x18")]&&this.commentsListView[t2("0x16")](),this[t2("0x19")]&&this[t2("0x19")][t2("0x16")](),super[t2("0x16")]()}[t2("0x21")](){const{CommentsListView:t}=this._config;this[t2("0x18")]=new t(this[t2("0x1")],this[t2("0x14")][t2("0xf")],Object.assign({CommentView:this[t2("0x9")][t2("0x4")]},this[t2("0x9")])),this[t2("0x18")].delegate(t2("0xb")).to(this),this.commentsListView[t2("0x10")](t2("0x1b")).to(this),this.commentsListView[t2("0x1f")](t2("0x1d")).to(this),this[t2("0xc")](t2("0xe"),this[t2("0x18")][t2("0xe")]+1),this[t2("0x1f")](t2("0xe")).to(this.commentsListView,"length",(t=>t+1)),this[t2("0x19")]=this._createCommentThreadInputView(),this.on(t2("0xb"),(()=>this[t2("0x8")]())),this[t2("0x1f")](t2("0x1e")).to(this[t2("0x18")],t2("0x7"),this[t2("0x19")][t2("0xd")],"value",((t,e)=>t||!!e))}[t2("0x17")](){const{CommentThreadInputView:t}=this._config,e=new t(this[t2("0x1")],this[t2("0x5")],this[t2("0x9")].editorConfig),n=e[t2("0xd")];return e[t2("0x1f")](t2("0x0")).to(this,t2("0x1d"),this[t2("0x14")][t2("0xf")],t2("0x12"),n,t2("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[t2("0x11")](t2("0x3"),e),n[t2("0x13")].setData("")})),n.on(t2("0x2"),(()=>this.focus())),n[t2("0x1f")](t2("0x1a")).to(this[t2("0x14")][t2("0xf")],t2("0x12")),e}}const n2=["value","ck-suggestion__actions","canDiscard","ck-suggestion__info-name","isEnabled","bind","ck-suggestion__user","discardSuggestion","ck-suggestion__main","EXTERNAL_AVATAR","innerText","isActive","content","discardButton","ck-annotation__actions","fire","importWord","acceptButton","ck-comment__external","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"disableComments","ck-suggestion--disabled-comments","editorReady","set","span",'<span class="ck-suggestion-type">',"delegate","ck-suggestion__info","_descriptionElement","userView","innerHTML","setTemplate","formatDateTime","locale","push","ck-annotation__main","source","commentThreadInputView","EXTERNAL_IMPORT_WORD_SUGGESTION","getExternalSuggestionNote","bindTemplate","ck-annotation__info-name","getTemplate","ck-suggestion","ck-comment__info-time","_config","commentsListView","ck-suggestion--accept","author","attributes","creator","name","color","ck-annotation__info","join","render","time","element","ck-suggestion-wrapper","commentThread","ck-suggestion-wrapper--active","Discard suggestion","getUserViewNotificationText","isExternal","ck-annotation__content-wrapper","authoredAt","check","Accept suggestion","</span>","_model","@external","acceptSuggestion",'"></span>',"EXTERNAL_IMPORT_WORD_AVATAR","type","ck-annotation","div","editorDestroyed","split","ck-annotation__info-time","extendTemplate","description","descriptionParts","<p>"];var i2,o2;i2=n2,o2=478,function(t){for(;--t;)i2.push(i2.shift())}(++o2);const r2=function(t,e){return n2[t-=0]};class s2 extends e2{constructor(t,e,n,i){super(t,e,n,i),this[r2("0x38")](r2("0x16"),""),this[r2("0x25")]("type").to(this,r2("0x1e"),(t=>t&&t[0]?t[0][r2("0x16")]:"")),this[r2("0x25")](r2("0x1d")).to(this,"descriptionParts",this,r2("0x2b"),((t,e)=>{let n="";for(const e of t)n+=r2("0x1f")+a2(e[r2("0x2c")],e[r2("0x0")])+"</p>";return e?n:Ow(n,{limit:140})})),this[r2("0x3d")]=null,this[r2("0x31")]=this[r2("0x33")](SJ(t,r2("0xf")),Uc[r2("0xe")],r2("0x50"),r2("0x13"),"sw"),this[r2("0x31")][r2("0x25")](r2("0x24")).to(this,"canAccept"),this[r2("0x2d")]=this[r2("0x33")](SJ(t,r2("0x9")),Uc.cancel,"ck-suggestion--discard",r2("0x27"),"sw"),this[r2("0x2d")].bind(r2("0x24")).to(this,r2("0x22")),this[r2("0x3e")]=new sk(t,this[r2("0x11")][r2("0x51")],this[r2("0xa")]()),this[r2("0x3e")][r2("0x1c")]({attributes:{class:[r2("0x26"),"ck-annotation__user"]}}),this[r2("0x40")](this[r2("0x4b")]())}[r2("0x4b")](){const t=this[r2("0x49")],e=[{tag:r2("0x18"),attributes:{class:[r2("0x3c"),r2("0x1")]},children:[{tag:r2("0x39"),children:[{text:this[r2("0x3e")][r2("0x54")]}],attributes:{class:[r2("0x23"),r2("0x4a")]}},{tag:r2("0x4"),attributes:{datetime:t.to(r2("0xd")),class:[r2("0x4d"),r2("0x1b")]},children:[{text:t.to(r2("0xd"),(t=>this._config[r2("0x41")](t)))}]}]},{tag:r2("0x18"),attributes:{class:[r2("0x21"),r2("0x2e")]},children:[this[r2("0x31")],this[r2("0x2d")]]},{tag:r2("0x18"),attributes:{class:[r2("0xc")]}}];this._model[r2("0xb")]&&e.push({tag:r2("0x18"),attributes:{class:[r2("0x32")]},children:[{text:this[r2("0x48")]()}]});const n={tag:r2("0x18"),attributes:{class:[r2("0x6"),t.if(r2("0x2b"),r2("0x8")),t.to(r2("0x16"),(t=>"ck-suggestion-"+t)),this[r2("0x4e")][r2("0x35")]&&r2("0x36")],"data-suggestion-id":this[r2("0x11")].id,"data-thread-id":this[r2("0x11")][r2("0x7")].id,"data-author-id":this[r2("0x11")][r2("0x51")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[r2("0x4c"),r2("0x17")]},children:[this[r2("0x3e")],{tag:"div",attributes:{class:[r2("0x28"),r2("0x44")]},children:e}]}]};return this[r2("0x4f")]&&this[r2("0x46")]&&(n.children[r2("0x43")](this[r2("0x4f")],this[r2("0x46")]),this[r2("0x4f")][r2("0x3b")](r2("0x37")).to(this),this.commentsListView[r2("0x3b")](r2("0x19")).to(this),this[r2("0x46")][r2("0x3b")](r2("0x37")).to(this),this[r2("0x46")][r2("0x3b")](r2("0x19")).to(this)),n}[r2("0x3")](){super[r2("0x3")](),this._descriptionElement=this[r2("0x5")].querySelector(".ck-annotation__content-wrapper"),this[r2("0x3d")][r2("0x3f")]=this[r2("0x1d")],this.on("change:description",((t,e,n)=>{this[r2("0x3d")][r2("0x3f")]=n}))}_createButton(t,e,n,i,o){const r=new U(this[r2("0x42")]);return r[r2("0x38")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),r[r2("0x1c")]({attributes:{class:n}}),r.on("execute",(()=>{this[r2("0x2f")](i,this[r2("0x11")].id)})),r}[r2("0x48")](){return r2("0x30")===this[r2("0x11")][r2("0x52")][r2("0x12")][r2("0x45")]?SJ(this[r2("0x42")],r2("0x47")):SJ(this.locale,"EXTERNAL_SUGGESTION")}[r2("0xa")](){return this._model[r2("0xb")]?r2("0x30")===this[r2("0x11")][r2("0x52")][r2("0x12")][r2("0x45")]?SJ(this[r2("0x42")],r2("0x15"),this[r2("0x11")][r2("0x53")][r2("0x54")]):SJ(this[r2("0x42")],r2("0x29"),this[r2("0x11")][r2("0x53")][r2("0x54")]):null}}function a2(t,e){let n="";return n+=t[r2("0x1a")]("*").map(((t,e)=>e%2!=0?r2("0x3a")+c2(t)+r2("0x10"):c2(t)))[r2("0x2")](""),e&&(n+=r2("0x34")+e[r2("0x20")]+'" title="'+e.title+r2("0x14")),n}function c2(t){const e=document.createElement(r2("0x39"));return e[r2("0x2a")]=t,e.innerHTML}const l2=["focus","delete","isInContent","separator","size","keys","getFirstRange","getByInnerView","_annotationViews","reduce","listenTo","_disableComments","locale","suggestionChanged","values","buttonView","destroy","comments.editorConfig","unbind","getAllAdjacentSuggestions","isDirty","has","editor","getSuggestion","Discard all selected suggestions","requires","_createUIButton","CommentView","previous","push","bind","define","execute","config","_handleControllerBuffer","Accept all suggestions","add","length","_viewToController","comments.maxThreadTotalWeight","isOn","_bindAnnotationToEditors","TrackChangesEditing","SuggestionThreadView","clear","getDescriptions","filter","remove","comments","some","descriptionParts","change:previous","getMarkerNames","_handleSuggestionControllerDelayed","_updateController","editing","addSourceCollector","plugins","from","CommentsUI","lowest","stopListening","actionView","value","discardSelectedSuggestions","getRanges","type","getJoined","EditorAnnotations","Discard all suggestions","isMultiRange","trackChanges","arrowView","discardButton","commands","Accept all selected suggestions","get","_destroyController","_suggestionToController","suggestion-","set","acceptButton","createAnnotation","discardAllSuggestions","acceptAllSuggestions","view","trackChanges.disableComments","button","_initializeController","pluginName","change:activeAnnotations","suggestionLoaded","mainView","Annotations","toMany","_descriptionFactory","model","commandName","activeMarkers","_refreshActiveMarkers","isEnabled","head","registerAnnotation","CommentsRepository","comments.maxCommentsWhenCollapsed"];var d2,u2;d2=l2,u2=120,function(t){for(;--t;)d2.push(d2.shift())}(++u2);const h2=function(t,e){return l2[t-=0]};class m2 extends Yt{static get[h2("0xa")](){return[O0,Jb,"CommentsRepository",h2("0x4e"),h2("0x35")]}static get[h2("0x4a")](){return"TrackChangesUI"}constructor(t){super(t),this[h2("0x3f")]=new Map,this[h2("0x17")]=new Map,this[h2("0x62")]=new Map,this[h2("0x13")]=new Map;const e=this[h2("0x7")][h2("0x12")];e.define("trackChanges.SuggestionThreadView",s2),e[h2("0x10")](h2("0x47"),!1),this[h2("0x65")]=e.get(h2("0x47"))}[h2("0x26")](t,e){0===this[h2("0x13")][h2("0x5e")]&&setTimeout((()=>{for(const[t,e]of this[h2("0x13")]){const n=this[h2("0x3f")].has(t);n||e?n&&e&&this[h2("0x3e")](t):this[h2("0x49")](t)}this.editor[h2("0x2a")][h2("0x3d")](h2("0x35")).refreshSelectedViews(),this[h2("0x54")](),this._handleControllerBuffer[h2("0x1d")]()}),10),this[h2("0x13")][h2("0x41")](t,e)}init(){const t=this[h2("0x7")],e=t[h2("0x2a")][h2("0x3d")](h2("0x1b")),n=t[h2("0x2a")][h2("0x3d")](h2("0x4e")),i=t[h2("0x2a")].get(h2("0x35")),o=t[h2("0x2a")][h2("0x3d")](h2("0x58"));t.ui.componentFactory[h2("0x15")](h2("0x38"),(t=>this[h2("0xb")](t))),i[h2("0x29")]((()=>{const t=[];for(const[e,n]of Array[h2("0x2b")](this[h2("0x3f")])){const i=e[h2("0x4")](),o=[];for(const t of i){if(!t.isInContent)continue;if(t[h2("0x37")]){o[h2("0xe")](...t[h2("0x32")]());continue}const e=t[h2("0x60")]();if(o[h2("0x16")]>0){const t=o[0][h2("0x34")](e);if(t){o[0]=t;continue}}o[h2("0xe")](e)}t[h2("0xe")]([n.view,o])}return t})),this.listenTo(e,h2("0x4c"),((t,e)=>{this[h2("0x64")](e,h2("0x24"),((t,n,i,o)=>{e[h2("0x5c")]&&(null==i?(this[h2("0x27")](o[h2("0x56")]),this[h2("0x26")](e,!1)):(this[h2("0x27")](i.head),null==o&&this[h2("0x26")](e,!0)))})),null!==e[h2("0xd")]?this[h2("0x27")](e[h2("0x56")]):this[h2("0x26")](e,!1)})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[h2("0x2e")](e,h2("0x24")),this[h2("0x13")].delete(e),this._suggestionToController[h2("0x6")](e)&&this._destroyController(e),n&&this._updateController(n[h2("0x56")])})),this[h2("0x64")](e,h2("0x67"),((t,e)=>{this._updateController(e)})),this[h2("0x64")](n,h2("0x4b"),(()=>{this._refreshActiveMarkers()})),this[h2("0x64")](o,"addComment",((t,{threadId:n,isFromAdapter:i})=>{if(i||!e.hasSuggestion(n))return;const o=e[h2("0x8")](n);this._suggestionToController[h2("0x3d")](o)[h2("0x46")].focus()}),{priority:h2("0x2d")})}[h2("0x54")](){const t=this[h2("0x7")][h2("0x2a")][h2("0x3d")](h2("0x4e")),e=this.editor[h2("0x2a")][h2("0x3d")](h2("0x1b")),n=Array.from(t.activeAnnotations,(t=>t.innerView))[h2("0x1f")]((t=>this[h2("0x17")][h2("0x6")](t))),i=[];for(const t of n){const e=this[h2("0x17")][h2("0x3d")](t)[h2("0x51")][h2("0x4")]();i[h2("0xe")](...e[h2("0x63")](((t,e)=>[...t,...e[h2("0x25")]()]),[]))}e[h2("0x53")]=i}[h2("0xb")](t){const e=dl(t,rl),n=this.editor.commands[h2("0x3d")](h2("0x38")),i=SJ(t,"Track changes");e[h2("0x0")][h2("0x41")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),e[h2("0x0")].bind(h2("0x19")).to(n,h2("0x30")),e.buttonView.on(h2("0x11"),(()=>{n[h2("0x11")](),this[h2("0x7")][h2("0x28")].view.focus()}));const o=new Uu.Collection,r=[{type:"switchbutton",model:{withText:!0,label:i,commandName:"trackChanges"}},{type:h2("0x5d")},{type:h2("0x48"),model:{withText:!0,label:SJ(t,h2("0x14")),commandName:h2("0x45")}},{type:h2("0x48"),model:{withText:!0,label:SJ(t,h2("0x3c")),commandName:"acceptSelectedSuggestions"}},{type:h2("0x48"),model:{withText:!0,label:SJ(t,h2("0x36")),commandName:h2("0x44")}},{type:"button",model:{withText:!0,label:SJ(t,h2("0x9")),commandName:h2("0x31")}}];for(const t of r){let e={type:h2("0x5d")};if(t[h2("0x51")]){const n=new Qd(t[h2("0x51")]),i=this[h2("0x7")][h2("0x3b")][h2("0x3d")](n[h2("0x52")]);n[h2("0xf")](h2("0x19"),h2("0x55")).to(i,"value",h2("0x55")),e={type:t[h2("0x33")],model:n}}o[h2("0x15")](e)}ml(e,o);const s=r[h2("0x1f")]((t=>null!=t[h2("0x51")])).map((t=>this[h2("0x7")][h2("0x3b")][h2("0x3d")](t.model[h2("0x52")]))),a=e.buttonView;return a[h2("0x2f")][h2("0x3")]("isEnabled"),a.arrowView.unbind(h2("0x55")),a[h2("0x2f")][h2("0xf")](h2("0x55")).to(n,h2("0x55")),a[h2("0x39")][h2("0xf")](h2("0x55"))[h2("0x4f")](s,"isEnabled",((...t)=>t[h2("0x22")]((t=>t)))),e.on(h2("0x11"),(t=>{this.editor[h2("0x11")](t.source[h2("0x52")]),this.editor[h2("0x28")][h2("0x46")][h2("0x5a")]()})),e}[h2("0x49")](t){const e=this.editor,n=e[h2("0x12")],i=e.plugins[h2("0x3d")](h2("0x4e")),o=e[h2("0x2a")][h2("0x3d")](h2("0x58")),r=e[h2("0x2a")].get("EditorAnnotations"),s=e[h2("0x2a")][h2("0x3d")](Jb).me,a=n.get(h2("0x38"))[h2("0x1c")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[h2("0x3d")](h2("0x2c"));let d,u;this[h2("0x62")][h2("0x6")](t.id)?(u=this[h2("0x62")][h2("0x3d")](t.id),d=u[h2("0x4d")]):(d=new a(e[h2("0x66")],t,s,{disableComments:this._disableComments,editorConfig:n[h2("0x3d")](h2("0x2")),maxCommentsWhenCollapsed:n[h2("0x3d")](h2("0x59")),maxThreadTotalWeight:n[h2("0x3d")](h2("0x18")),maxCommentCharsWhenCollapsed:n[h2("0x3d")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:vw(n[h2("0x3d")](h2("0x66"))),CommentView:n[h2("0x3d")](h2("0x21"))[h2("0xc")],CommentsListView:c,CommentThreadInputView:l}),d[h2("0x42")].on(h2("0x11"),(()=>{e.editing[h2("0x46")][h2("0x5a")]()})),d[h2("0x3a")].on(h2("0x11"),(()=>{e[h2("0x28")][h2("0x46")][h2("0x5a")]()})),u=i.createAnnotationView(this[h2("0x7")][h2("0x66")],d),u.bind(h2("0x5")).to(d,h2("0x5")),u[h2("0xf")]("length").to(d),u[h2("0xf")]("type").to(d,h2("0x33"),(t=>h2("0x40")+t)),this._annotationViews[h2("0x41")](t.id,u));const h=o.createCommentThreadController(t.commentThread,d),m=new J0(e,t,d,h),g=t[h2("0x4")]()[h2("0x1f")]((t=>t[h2("0x5c")]));d[h2("0x23")]=e.plugins.get("TrackChangesEditing")[h2("0x50")][h2("0x1e")](g),this[h2("0x3f")][h2("0x41")](t,m),this[h2("0x17")][h2("0x41")](d,m);const p=i[h2("0x43")]({view:u,target:()=>{const n=[],i=t[h2("0x4")]()[h2("0x1f")]((t=>t[h2("0x5c")]));for(const t of i)n[h2("0xe")](...t.getMarkers());return Sw(e[h2("0x28")],n)},type:()=>h2("0x40")+m[h2("0x46")].type});o[h2("0x1a")](d,p),i[h2("0x15")](p),r[h2("0x57")](p)}[h2("0x3e")](t){const e=this[h2("0x7")][h2("0x2a")][h2("0x3d")](h2("0x58")),n=this.editor[h2("0x2a")][h2("0x3d")](h2("0x4e")),i=this[h2("0x3f")][h2("0x3d")](t),o=i[h2("0x46")],r=n[h2("0x61")](o);e._unbindEditors(o),r&&n[h2("0x20")](r),this._suggestionToController.delete(t),this[h2("0x17")][h2("0x5b")](o),i[h2("0x1")]()}[h2("0x27")](t){if(!t.isInContent||!this._suggestionToController[h2("0x6")](t))return;const e=this[h2("0x7")][h2("0x2a")][h2("0x3d")]("TrackChangesEditing"),n=this[h2("0x3f")][h2("0x3d")](t),i=t[h2("0x4")]();n[h2("0x46")][h2("0x23")]=e[h2("0x50")][h2("0x1e")](i)}[h2("0x1")](){for(const t of this[h2("0x3f")][h2("0x5f")]())this[h2("0x3e")](t);for(const t of this._annotationViews[h2("0x68")]())t[h2("0x4d")][h2("0x1")]();super.destroy()}}var g2,p2,f2=["getSuggestion","editor","addSuggestionData","getSuggestions","Comments","requires","get","plugins","adapter"];g2=f2,p2=265,function(t){for(;--t;)g2.push(g2.shift())}(++p2);var x2=function(t,e){return f2[t-=0]};class b2 extends Yt{static get[x2("0x1")](){return[O0,m2,x2("0x0")]}static get pluginName(){return"TrackChanges"}set[x2("0x4")](t){this[x2("0x6")][x2("0x3")][x2("0x2")](O0)[x2("0x4")]=t}get[x2("0x4")](){return this[x2("0x6")][x2("0x3")][x2("0x2")](O0)[x2("0x4")]}addSuggestion(t){return this[x2("0x6")][x2("0x3")][x2("0x2")](O0)[x2("0x7")](t)}[x2("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[x2("0x6")][x2("0x3")][x2("0x2")](O0).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[x2("0x6")][x2("0x3")].get(O0)[x2("0x5")](t)}}const k2=["map","createDocumentFragment","model","TrackChangesData","reduce","rootsAttributes","getUser","acceptAllSuggestions","useAnonymousUser","requires","push","Users","set","define","appendChild","name","editor","destroy","result","users","execute","get","discardAllSuggestions","editorCreator","addUser","getRootNames","data","init","getFullData","pluginName","plugins","getDataWithDiscardedSuggestions","config","create","document","_adapter","TrackChangesEditing","trackChangesData","TrackChangesDataGetter","function","trackChangesData.editorCreator","getRootsAttributes","track-changes-data-invalid-editor-creator","getSuggestions","end"];var w2,A2;w2=k2,A2=457,function(t){for(;--t;)w2.push(w2.shift())}(++A2);const _2=function(t,e){return k2[t-=0]},v2=["Pagination"];class C2 extends Yt{static get[_2("0x2")](){return[O0]}static get[_2("0x16")](){return _2("0x29")}[_2("0x14")](){const t=this.editor;if(t.config[_2("0x6")](_2("0x21"),(e=>{const n=t.model[_2("0x1b")][_2("0x12")]()[_2("0x2a")](((t,e)=>(t[e]="",t)),{});return t.constructor[_2("0x1a")](n,e)})),_2("0x20")!=typeof t[_2("0x19")][_2("0xe")]("trackChangesData").editorCreator)throw new Uu.CKEditorError(_2("0x23"))}getDataWithAcceptedSuggestions(t){return I2(this.editor,!0,t)}[_2("0x18")](t){return I2(this[_2("0x9")],!1,t)}}class y2 extends Yt{static get[_2("0x16")](){return _2("0x1f")}constructor(t){super(t),this[_2("0xb")]=_2("0x25")}[_2("0x14")](){this[_2("0x9")][_2("0x17")][_2("0xe")]("CommentsRepository")._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[_2("0x17")][_2("0xe")](_2("0x1d"))[_2("0x1c")]=null}}function E2(t){return void 0!==t.getRootsAttributes}async function I2(t,e,n){const i=cA(t,v2);i[_2("0x17")][_2("0x3")](O0,y2),i[_2("0x2b")]=E2(t)?t[_2("0x22")]():void 0;const o=document[_2("0x27")](),r=t[_2("0x19")][_2("0xe")](_2("0x1e"))[_2("0x10")],s=await r(i,(()=>function(t){const e=document.createElement("div");return t[_2("0x7")](e),e}(o)));!function(t,e){const n=t[_2("0x28")][_2("0x1b")][_2("0x12")]()[_2("0x2a")](((e,n)=>(e[n]=t.data[_2("0xe")]({rootName:n}),e)),{}),i=t.plugins[_2("0xe")](_2("0x4"))[_2("0xc")][_2("0x26")]((t=>({id:t.id,name:t[_2("0x8")]}))),o=t.plugins[_2("0xe")](_2("0x1d"))[_2("0x24")]({skipNotAttached:!0,toJSON:!0}),r=e[_2("0x17")].get(_2("0x4")),s=e.plugins[_2("0xe")](_2("0x1d"));for(const t of i)r[_2("0x2c")](t.id)||r[_2("0x11")](t);r.me||r[_2("0x1")]();for(const t of o)s.addSuggestionData(t);e.data[_2("0x5")](n)}(t,s),s[_2("0xd")](_2(e?"0x0":"0xf"));const a=E2(s)?s[_2("0x15")](n):s[_2("0x13")][_2("0xe")](n);return await s[_2("0xa")](),a}function S2(t){if(t.is("$text")||t.is("$textProxy"))return t.data;const e=t;let n="",i=null;for(const t of e.getChildren()){const e=S2(t);i&&i.is("element")&&(n+="\n"),n+=e,i=t}return n}class T2 extends Yt{constructor(t){super(t),this.set("characters",0),this.set("words",0),Object.defineProperties(this,{characters:{get(){return this.characters=this._getCharacters(this._getText())}},words:{get(){return this.words=this._getWords(this._getText())}}}),this.set("_wordsLabel",void 0),this.set("_charactersLabel",void 0),this._config=t.config.get("wordCount")||{},this._outputView=void 0,this._wordsMatchRegExp=Uu.env.features.isRegExpUnicodePropertySupported?new RegExp("([\\p{L}\\p{N}]+\\S?)+","gu"):/([a-zA-Z0-9À-ž]+\S?)+/gu}static get pluginName(){return"WordCount"}init(){this.editor.model.document.on("change:data",Ed(this._refreshStats.bind(this),250)),"function"==typeof this._config.onUpdate&&this.on("update",((t,e)=>{this._config.onUpdate(e)})),(0,hd.Z)(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}destroy(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),super.destroy()}get wordCountContainer(){const t=this.editor,e=t.t,n=t.config.get("wordCount.displayWords"),i=t.config.get("wordCount.displayCharacters"),o=g.bind(this,this),r=[];return this._outputView||(this._outputView=new u,(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",(t=>e("Words: %0",t))),r.push({tag:"div",children:[{text:[o.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(i||void 0===i)&&(this.bind("_charactersLabel").to(this,"characters",(t=>e("Characters: %0",t))),r.push({tag:"div",children:[{text:[o.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:r}),this._outputView.render()),this._outputView.element}_getText(){let t="";for(const e of this.editor.model.document.getRoots())""!==t&&(t+="\n"),t+=S2(e);return t}_getCharacters(t){return t.replace(/\n/g,"").length}_getWords(t){return(t.match(this._wordsMatchRegExp)||[]).length}_refreshStats(){const t=this._getText(),e=this.words=this._getWords(t),n=this.characters=this._getCharacters(t);this.fire("update",{words:e,characters:n})}}class D2{constructor(t,e={}){this.skipComments=!0,this.namespaces=e.namespaces||[],this.domParser=new DOMParser,this.domConverter=new Yi(t,{renderingMode:"data"}),this.htmlWriter=new bs}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,{keepOriginalCase:!0,skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){t=`<xml ${this.namespaces.map((t=>`xmlns:${t}="nsp"`)).join(" ")}>${t}</xml>`;const e=this.domParser.parseFromString(t,"text/xml"),n=e.querySelector("parsererror");if(n)throw new Error("Parse error - "+n.textContent);const i=e.createDocumentFragment(),o=e.documentElement.childNodes;for(;o.length>0;)i.appendChild(o[0]);return i}}class M2{static get safeXmlCharactersEntities(){return{tagOpener:"&laquo;",tagCloser:"&raquo;",doubleQuote:"&uml;",realDoubleQuote:"&quot;"}}static get safeBadBlackboardCharacters(){return{ltElement:"«mo»<«/mo»",gtElement:"«mo»>«/mo»",ampElement:"«mo»&«/mo»"}}static get safeGoodBlackboardCharacters(){return{ltElement:"«mo»§lt;«/mo»",gtElement:"«mo»§gt;«/mo»",ampElement:"«mo»§amp;«/mo»"}}static get xmlCharacters(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}}static get safeXmlCharacters(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}}}class B2{static isMathmlInAttribute(t,e){const n=new RegExp("^['\"][\\s]*=[\\s]*[\\w-]+('[\\s]*(\"[^\"]*\"|'[^']*')[\\s]*=[\\s]*[\\w-]+[\\s]*')*[\\s]+gmi<"),i=t.substring(0,e).split("").reverse().join("");return n.test(i)}static safeXmlDecode(t){let{tagOpener:e}=M2.safeXmlCharactersEntities,{tagCloser:n}=M2.safeXmlCharactersEntities,{doubleQuote:i}=M2.safeXmlCharactersEntities,{realDoubleQuote:o}=M2.safeXmlCharactersEntities;t=(t=(t=(t=t.split(e).join(M2.safeXmlCharacters.tagOpener)).split(n).join(M2.safeXmlCharacters.tagCloser)).split(i).join(M2.safeXmlCharacters.doubleQuote)).split(o).join(M2.safeXmlCharacters.realDoubleQuote);const{ltElement:r}=M2.safeBadBlackboardCharacters,{gtElement:s}=M2.safeBadBlackboardCharacters,{ampElement:a}=M2.safeBadBlackboardCharacters;"_wrs_blackboard"in window&&window._wrs_blackboard&&(t=(t=(t=t.split(r).join(M2.safeGoodBlackboardCharacters.ltElement)).split(s).join(M2.safeGoodBlackboardCharacters.gtElement)).split(a).join(M2.safeGoodBlackboardCharacters.ampElement)),({tagOpener:e}=M2.safeXmlCharacters),({tagCloser:n}=M2.safeXmlCharacters),({doubleQuote:i}=M2.safeXmlCharacters),({realDoubleQuote:o}=M2.safeXmlCharacters);const{ampersand:c}=M2.safeXmlCharacters,{quote:l}=M2.safeXmlCharacters;t=(t=(t=(t=(t=t.split(e).join(M2.xmlCharacters.tagOpener)).split(n).join(M2.xmlCharacters.tagCloser)).split(i).join(M2.xmlCharacters.doubleQuote)).split(c).join(M2.xmlCharacters.ampersand)).split(l).join(M2.xmlCharacters.quote);let d="",u=null;for(let e=0;e<t.length;e+=1){const n=t.charAt(e);null==u?"$"===n?u="":d+=n:";"===n?(d+=`&${u}`,u=null):n.match(/([a-zA-Z0-9#._-] | '-')/)?u+=n:(d+=`$${u}`,u=null,e-=1)}return d}static safeXmlEncode(t){const{tagOpener:e}=M2.xmlCharacters,{tagCloser:n}=M2.xmlCharacters,{doubleQuote:i}=M2.xmlCharacters,{ampersand:o}=M2.xmlCharacters,{quote:r}=M2.xmlCharacters;return t=(t=(t=(t=(t=t.split(e).join(M2.safeXmlCharacters.tagOpener)).split(n).join(M2.safeXmlCharacters.tagCloser)).split(i).join(M2.safeXmlCharacters.doubleQuote)).split(o).join(M2.safeXmlCharacters.ampersand)).split(r).join(M2.safeXmlCharacters.quote)}static mathMLEntities(t){let e="";for(let n=0;n<t.length;n+=1){const i=t.charAt(n);if(t.codePointAt(n)>128)e+=`&#${t.codePointAt(n)};`,t.codePointAt(n)>65535&&(n+=1);else if("&"===i){const o=t.indexOf(";",n+1);if(o>=0){const i=document.createElement("span");i.innerHTML=t.substring(n,o+1),e+=`&#${V2.fixedCharCodeAt(i.textContent||i.innerText,0)};`,n=o}else e+=i}else e+=i}return e}static addCustomEditorClassAttribute(t,e){let n="";const i=t.indexOf("<math");if(0===i){const o=t.indexOf(">");if(-1===t.indexOf("class"))return n=`${t.substr(i,o)} class="wrs_${e}">`,n+=t.substr(o+1,t.length),n}return t}static removeCustomEditorClassAttribute(t,e){return-1===t.indexOf("class")||-1===t.indexOf(`wrs_${e}`)?t:-1!==t.indexOf(`class="wrs_${e}"`)?t.replace(`class="wrs_${e}"`,""):t.replace(`wrs_${e}`,"")}static addAnnotation(t,e,n){let i="";if(-1!==t.indexOf("<annotation")){const o=t.indexOf("</semantics>");i=`${t.substring(0,o)}<annotation encoding="${n}">${e}</annotation>${t.substring(o)}`}else if(B2.isEmpty(t)){const o=t.indexOf("/>"),r=t.indexOf(">"),s=r===o?o:r;i=`${t.substring(0,s)}><semantics><annotation encoding="${n}">${e}</annotation></semantics></math>`}else{const o=t.indexOf(">")+1,r=t.lastIndexOf("</math>"),s=t.substring(o,r);i=`${t.substring(0,o)}<semantics><mrow>${s}</mrow><annotation encoding="${n}">${e}</annotation></semantics></math>`}return i}static removeAnnotation(t,e){let n=t;const i=`<annotation encoding="${e}">`,o="</annotation>",r=t.indexOf(i);if(-1!==r){let e=!1,i=t.indexOf("<annotation");for(;-1!==i;)i!==r&&(e=!0),i=t.indexOf("<annotation",i+1);if(e){const e=t.indexOf(o,r)+13;n=t.substring(0,r)+t.substring(e)}else n=B2.removeSemantics(t)}return n}static removeSemantics(t){const e="<semantics>";let n=t;const i=t.indexOf(e);if(-1!==i){const e=t.indexOf("<annotation",i+11);-1!==e&&(n=t.substring(0,i)+t.substring(i+11,e)+"</math>")}return n}static removeSemanticsOcurrences(t,e=M2.xmlCharacters){const n=`${e.tagOpener}math`,i=`${e.tagOpener}/math${e.tagCloser}`,o=`/${e.tagCloser}`,{tagCloser:r}=e,s=`${e.tagOpener}semantics${e.tagCloser}`,a=`${e.tagOpener}annotation encoding=`;let c="",l=t.indexOf(n),d=0;for(;-1!==l;){c+=t.substring(d,l);const e=t.indexOf(i,l),u=t.indexOf(o,l),h=t.indexOf(r,l);-1!==e?d=e:u===h-1&&(d=u);const m=t.indexOf(s,l);if(-1!==m){const e=t.substring(l,m),o=t.indexOf(a,l);if(-1!==o){const r=m+s.length;c+=e+t.substring(r,o)+i,l=t.indexOf(n,l+n.length),d+=i.length}else d=l,l=t.indexOf(n,l+n.length)}else d=l,l=t.indexOf(n,l+n.length)}return c+=t.substring(d,t.length),c}static containClass(t,e){const n=t.indexOf("class");if(-1===n)return!1;const i=t.indexOf(">",n);return-1!==t.substring(n,i).indexOf(e)}static isEmpty(t){const e=t.indexOf(">"),n=t.indexOf("/>");let i=!1;if(-1!==n&&n===e-1&&(i=!0),!i){const n=new RegExp("</(.+:)?math>").exec(t);n&&(i=e+1===n.index)}return i}static encodeProperties(t){const e=t.replace(/\w+=".*?"/g,(t=>{const e=t.indexOf('"'),n=t.substring(e+1,t.length-1),i=V2.htmlEntities(n);return`${t.substring(0,e+1)}${i}"`}));return e}}class O2{static addConfiguration(t){Object.assign(O2.properties,t)}static get properties(){return O2._properties}static set properties(t){O2._properties=t}static get(t){return Object.prototype.hasOwnProperty.call(O2.properties,t)?O2.properties[t]:!!Object.prototype.hasOwnProperty.call(O2.properties,"_wrs_conf_")&&O2.properties[`_wrs_conf_${t}`]}static set(t,e){O2.properties[t]=e}static update(t,e){if(O2.get(t)){const n=Object.assign(O2.get(t),e);O2.set(t,n)}else O2.set(t,e)}}O2._properties={};class N2{constructor(){this.cache=[]}populate(t,e){this.cache[t]=e}get(t){return!!Object.prototype.hasOwnProperty.call(this.cache,t)&&this.cache[t]}}class P2{constructor(){this.listeners=[]}add(t){this.listeners.push(t)}fire(t,e){for(let n=0;n<this.listeners.length&&!e.cancelled;n+=1)this.listeners[n].eventName===t&&this.listeners[n].callback(e);return e.defaultPrevented}static newListener(t,e){const n={};return n.eventName=t,n.callback=e,n}}class R2{static get listeners(){return R2._listeners}static addListener(t){R2.listeners.add(t)}static fireEvent(t,e){R2.listeners.fire(t,e)}static get parameters(){return R2._parameters}static set parameters(t){R2._parameters=t}static get servicePaths(){return R2._servicePaths}static set servicePaths(t){R2._servicePaths=t}static setServicePath(t,e){R2.servicePaths[t]=e}static getServicePath(t){return R2.servicePaths[t]}static get integrationPath(){return R2._integrationPath}static set integrationPath(t){R2._integrationPath=t}static getServerURL(){const t=window.location.href.split("/");return`${t[0]}//${t[2]}`}static init(t){R2.parameters=t;let e=R2.createServiceURI("configurationjs"),n=R2.createServiceURI("createimage"),i=R2.createServiceURI("showimage"),o=R2.createServiceURI("getmathml"),r=R2.createServiceURI("service");if(0===R2.parameters.URI.indexOf("/")){const t=R2.getServerURL();e=t+e,i=t+i,n=t+n,o=t+o,r=t+r}R2.setServicePath("configurationjs",e),R2.setServicePath("showimage",i),R2.setServicePath("createimage",n),R2.setServicePath("service",r),R2.setServicePath("getmathml",o),R2.setServicePath("configurationjs",e),R2.listeners.fire("onInit",{})}static getUrl(t,e){const n=window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1),i=V2.createHttpRequest();return i?(void 0===e||void 0===e?i.open("GET",t,!1):"/"===t.substr(0,1)||"http://"===t.substr(0,7)||"https://"===t.substr(0,8)?i.open("POST",t,!1):i.open("POST",n+t,!1),void 0!==e&&e?(i.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),i.send(V2.httpBuildQuery(e))):i.send(null),i.responseText):""}static getService(t,e,n){let i;if(!0===n){const n=e?`?${e}`:"",o=`${R2.getServicePath(t)}${n}`;i=R2.getUrl(o)}else{const n=R2.getServicePath(t);i=R2.getUrl(n,e)}return i}static getServerLanguageFromService(t){return-1!==t.indexOf(".php")?"php":-1!==t.indexOf(".aspx")?"aspx":-1!==t.indexOf("wirispluginengine")?"ruby":"java"}static createServiceURI(t){const e=R2.serverExtension();return V2.concatenateUrl(R2.parameters.URI,t)+e}static serverExtension(){return-1!==R2.parameters.server.indexOf("php")?".php":-1!==R2.parameters.server.indexOf("aspx")?".aspx":""}}R2._servicePaths={},R2._integrationPath="",R2._listeners=new P2,R2._parameters={};class L2{static get cache(){return L2._cache}static set cache(t){L2._cache=t}static getLatexFromMathML(t){const e=B2.removeSemantics(t),{cache:n}=L2,i={service:"mathml2latex",mml:e},o=JSON.parse(R2.getService("service",i));let r="";if("ok"===o.status){r=o.result.text;const e=V2.htmlEntities(r),i=B2.addAnnotation(t,e,"LaTeX");n.populate(r,i)}return r}static getMathMLFromLatex(t,e){const n=L2.cache;if(L2.cache.get(t))return L2.cache.get(t);const i={service:"latex2mathml",latex:t};e&&(i.saveLatex="");const o=JSON.parse(R2.getService("service",i));let r;if("ok"===o.status){let e=o.result.text;if(e=e.split("\r").join("").split("\n").join(" "),-1===e.indexOf("semantics")&&-1===e.indexOf("annotation")){const n=V2.htmlEntities(t);e=B2.addAnnotation(e,n,"LaTeX"),r=e}else r=e;n.get(t)||n.populate(t,e)}else r=`$$${t}$$`;return r}static parseMathmlToLatex(t,e){let n="";const i=`${e.tagOpener}math`,o=`${e.tagOpener}/math${e.tagCloser}`,r=`${e.tagOpener}annotation encoding=${e.doubleQuote}LaTeX${e.doubleQuote}${e.tagCloser}`,s=`${e.tagOpener}/annotation${e.tagCloser}`;let a,c,l,d=t.indexOf(i),u=0;for(;-1!==d;){if(n+=t.substring(u,d),u=t.indexOf(o,d),-1===u?u=t.length-1:u+=o.length,a=t.substring(d,u),c=a.indexOf(r),-1!==c){c+=r.length,l=a.indexOf(s);let t=a.substring(c,l);e===M2.safeXmlCharacters&&(t=B2.safeXmlDecode(t)),n+=`$$${t}$$`,L2.cache.populate(t,a)}else n+=a;d=t.indexOf(i,u)}return n+=t.substring(u,t.length),n}static getLatexFromTextNode(t,e,n){void 0!==n&&null!=n||(n={open:"$$",close:"$$"});let i,o=t;for(;o.previousSibling&&3===o.previousSibling.nodeType;)o=o.previousSibling;function r(t,e,i){let o=t.nodeValue.indexOf(i,e);for(;-1===o;){if(!(t=t.nextSibling))return null;o=t.nodeValue?t.nodeValue.indexOf(n.close):-1}return{node:t,position:o}}function s(t,e,n,i){if(t===n)return e<=i;for(;t&&t!==n;)t=t.nextSibling;return t===n}let a={node:o,position:0};const c=n.open.length;do{if(i=r(a.node,a.position,n.open),null==i||s(t,e,i.node,i.position))return null;if(a=r(i.node,i.position+c,n.close),null==a)return null;a.position+=c}while(s(a.node,a.position,t,e));let l;if(i.node===a.node)l=i.node.nodeValue.substring(i.position+c,a.position-c);else{const t=i.position+c;l=i.node.nodeValue.substring(t,i.node.nodeValue.length);let e=i.node;do{e=e.nextSibling,e===a.node?l+=a.node.nodeValue.substring(0,a.position-c):l+=e.nodeValue?e.nodeValue:""}while(e!==a.node)}return{latex:l,startNode:i.node,startPosition:i.position,endNode:a.node,endPosition:a.position}}}L2._cache=new N2;const j2=JSON.parse('{"ar":{"latex":"LaTeX","cancel":"إلغاء","accept":"إدراج","manual":"الدليل","insert_math":"إدراج صيغة رياضية - MathType","insert_chem":"إدراج صيغة كيميائية - ChemType","minimize":"تصغير","maximize":"تكبير","fullscreen":"ملء الشاشة","exit_fullscreen":"الخروج من ملء الشاشة","close":"إغلاق","mathtype":"MathType","title_modalwindow":"نافذة MathType مشروطة","close_modal_warning":"هل تريد المغادرة بالتأكيد؟ ستُفقد التغييرات التي أجريتها.","latex_name_label":"صيغة Latex","browser_no_compatible":"المستعرض غير متوافق مع تقنية AJAX. الرجاء استخدام أحدث إصدار من Mozilla Firefox.","error_convert_accessibility":"حدث خطأ أثناء التحويل من MathML إلى نص قابل للاستخدام.","exception_cross_site":"البرمجة النصية للمواقع المشتركة مسموح بها لـ HTTP فقط.","exception_high_surrogate":"المركّب المرتفع غير متبوع بمركّب منخفض في fixedCharCodeAt()‎","exception_string_length":"سلسلة غير صالحة. يجب أن يكون الطول من مضاعفات العدد 4","exception_key_nonobject":"Object.keys مستدعاة على غير كائن","exception_null_or_undefined":" هذا فارغ أو غير محدد","exception_not_function":" ليست دالة","exception_invalid_date_format":"تنسيق تاريخ غير صالح: ","exception_casting":"لا يمكن الصياغة ","exception_casting_to":" إلى "},"ca":{"latex":"LaTeX","cancel":"Cancel·lar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemàtica - MathType","insert_chem":"Inserir fórmula química - ChemType","minimize":"Minimitza","maximize":"Maximitza","fullscreen":"Pantalla completa","exit_fullscreen":"Sortir de la pantalla complera","close":"Tanca","mathtype":"MathType","title_modalwindow":" Finestra modal de MathType","close_modal_warning":"N\'estàs segur que vols sortir? Es perdran els canvis que has fet.","latex_name_label":"Fórmula en Latex","browser_no_compatible":"El teu navegador no és compatible amb AJAX. Si us plau, usa la darrera versió de Mozilla Firefox.","error_convert_accessibility":"Error en convertir de MathML a text accessible.","exception_cross_site":"Els scripts de llocs creuats només estan permesos per HTTP.","exception_high_surrogate":"Subrogat alt no seguit de subrogat baix a fixedCharCodeAt()","exception_string_length":"Cadena invàlida. La longitud ha de ser un múltiple de 4","exception_key_nonobject":"Object.keys anomenat a non-object","exception_null_or_undefined":" això és null o no definit","exception_not_function":" no és una funció","exception_invalid_date_format":"Format de data invàlid : ","exception_casting":"No es pot emetre ","exception_casting_to":" a "},"cs":{"latex":"LaTeX","cancel":"Storno","accept":"Vložit","manual":"Příručka","insert_math":"Vložit matematický vzorec - MathType","insert_chem":"Vložení chemického vzorce – ChemType","minimize":"Minimalizovat","maximize":"Maximalizovat","fullscreen":"Celá obrazovka","exit_fullscreen":"Opustit režim celé obrazovky","close":"Zavřít","mathtype":"MathType","title_modalwindow":"Modální okno MathType","close_modal_warning":"Opravdu chcete okno zavřít? Provedené změny budou ztraceny.","latex_name_label":"Vzorec v LaTeXu","browser_no_compatible":"Váš prohlížeč nepodporuje technologii AJAX. Použijte nejnovější verzi prohlížeče Mozilla Firefox.","error_convert_accessibility":"Při převodu kódu MathML na čitelný text došlo k chybě.","exception_cross_site":"Skriptování mezi více servery je povoleno jen v HTTP.","exception_high_surrogate":"Ve funkci fixedCharCodeAt() nenásleduje po první části kódu znaku druhá část","exception_string_length":"Neplatný řetězec. Délka musí být násobkem 4.","exception_key_nonobject":"Funkce Object.keys byla použita pro prvek, který není objektem","exception_null_or_undefined":" hodnota je null nebo není definovaná","exception_not_function":" není funkce","exception_invalid_date_format":"Neplatný formát data: ","exception_casting":"Nelze přetypovat ","exception_casting_to":" na "},"da":{"latex":"LaTeX","cancel":"Annuller","accept":"Indsæt","manual":"Brugervejledning","insert_math":"Indsæt matematisk formel - MathType","insert_chem":"Indsæt en kemisk formel - ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fuld skærm","exit_fullscreen":"Afslut Fuld skærm","close":"Luk","mathtype":"MathType","title_modalwindow":"MathType-modalvindue","close_modal_warning":"Er du sikker på, du vil lukke? Dine ændringer går tabt.","latex_name_label":"LaTex-formel","browser_no_compatible":"Din browser er ikke kompatibel med AJAX-teknologi. Brug den nyeste version af Mozilla Firefox.","error_convert_accessibility":"Fejl under konvertering fra MathML til tilgængelig tekst.","exception_cross_site":"Scripts på tværs af websteder er kun tilladt for HTTP.","exception_high_surrogate":"Et højt erstatningstegn er ikke fulgt af et lavt erstatningstegn i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Længden skal være et multiplum af 4","exception_key_nonobject":"Object.keys kaldet ved ikke-objekt","exception_null_or_undefined":" dette er nul eller ikke defineret","exception_not_function":" er ikke en funktion","exception_invalid_date_format":"Ugyldigt datoformat: ","exception_casting":"Kan ikke beregne ","exception_casting_to":" til "},"de":{"latex":"LaTeX","cancel":"Abbrechen","accept":"Einfügen","manual":"Handbuch","insert_math":"Mathematische Formel einfügen - MathType","insert_chem":"Eine chemische Formel einfügen – ChemType","minimize":"Verkleinern","maximize":"Vergrößern","fullscreen":"Vollbild","exit_fullscreen":"Vollbild schließen","close":"Schließen","mathtype":"MathType","title_modalwindow":"Modales MathType-Fenster","close_modal_warning":"Bist du sicher, dass du das Programm verlassen willst? Alle vorgenommenen Änderungen gehen damit verloren.","latex_name_label":"Latex-Formel","browser_no_compatible":"Dein Browser ist nicht mit der AJAX-Technologie kompatibel. Verwende bitte die neueste Version von Mozilla Firefox.","error_convert_accessibility":"Fehler beim Konvertieren von MathML in barrierefreien Text.","exception_cross_site":"Cross-Site-Scripting ist nur bei HTTP zulässig.","exception_high_surrogate":"Hoher Ersatz bei bei festerZeichenkodierungbei() nicht von niedrigem Ersatz befolgt.","exception_string_length":"Ungültige Zeichenfolge. Länge muss ein Vielfaches von 4 sein.","exception_key_nonobject":"Object.keys wurde für ein Nicht-Objekt aufgerufen.","exception_null_or_undefined":" Das ist Null oder nicht definiert.","exception_not_function":" ist keine Funktion","exception_invalid_date_format":"Ungültiges Datumsformat: ","exception_casting":"Umwandlung nicht möglich ","exception_casting_to":" zu "},"el":{"latex":"LaTeX","cancel":"Άκυρο","accept":"Εισαγωγή","manual":"Χειροκίνητα","insert_math":"Εισαγωγή μαθηματικού τύπου - MathType","insert_chem":"Εισαγωγή χημικού τύπου - ChemType","minimize":"Ελαχιστοποίηση","maximize":"Μεγιστοποίηση","fullscreen":"Πλήρης οθόνη","exit_fullscreen":"Έξοδος από πλήρη οθόνη","close":"Κλείσιμο","mathtype":"MathType","title_modalwindow":"Τροπικό παράθυρο MathType","close_modal_warning":"Επιθυμείτε σίγουρα αποχώρηση; Θα χαθούν οι αλλαγές που έχετε κάνει.","latex_name_label":"Τύπος LaTeX","browser_no_compatible":"Το πρόγραμμα περιήγησής σας δεν είναι συμβατό με την τεχνολογία AJAX. Χρησιμοποιήστε την πιο πρόσφατη έκδοση του Mozilla Firefox.","error_convert_accessibility":"Σφάλμα κατά τη μετατροπή από MathML σε προσβάσιμο κείμενο.","exception_cross_site":"Το XSS (Cross site scripting) επιτρέπεται μόνο για HTTP.","exception_high_surrogate":"Το υψηλό υποκατάστατο δεν ακολουθείται από χαμηλό υποκατάστατο στο fixedCharCodeAt()","exception_string_length":"Μη έγκυρη συμβολοσειρά. Το μήκος πρέπει να είναι πολλαπλάσιο του 4","exception_key_nonobject":"Έγινε κλήση του Object.keys σε μη αντικείμενο","exception_null_or_undefined":" αυτό είναι μηδενικό ή δεν έχει οριστεί","exception_not_function":" δεν είναι συνάρτηση","exception_invalid_date_format":"Μη έγκυρη μορφή ημερομηνίας: ","exception_casting":"Δεν είναι δυνατή η μετατροπή ","exception_casting_to":" σε "},"en":{"latex":"LaTeX","cancel":"Cancel","accept":"Insert","manual":"Manual","insert_math":"Insert a math equation - MathType","insert_chem":"Insert a chemistry formula - ChemType","minimize":"Minimize","maximize":"Maximize","fullscreen":"Full-screen","exit_fullscreen":"Exit full-screen","close":"Close","mathtype":"MathType","title_modalwindow":"MathType modal window","close_modal_warning":"Are you sure you want to leave? The changes you made will be lost.","latex_name_label":"Latex Formula","browser_no_compatible":"Your browser is not compatible with AJAX technology. Please, use the latest version of Mozilla Firefox.","error_convert_accessibility":"Error converting from MathML to accessible text.","exception_cross_site":"Cross site scripting is only allowed for HTTP.","exception_high_surrogate":"High surrogate not followed by low surrogate in fixedCharCodeAt()","exception_string_length":"Invalid string. Length must be a multiple of 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" this is null or not defined","exception_not_function":" is not a function","exception_invalid_date_format":"Invalid date format : ","exception_casting":"Cannot cast ","exception_casting_to":" to "},"es":{"latex":"LaTeX","cancel":"Cancelar","accept":"Insertar","manual":"Manual","insert_math":"Insertar fórmula matemática - MathType","insert_chem":"Insertar fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Salir de pantalla completa","close":"Cerrar","mathtype":"MathType","title_modalwindow":"Ventana modal de MathType","close_modal_warning":"Seguro que quieres cerrar? Los cambios que has hecho se perderán","latex_name_label":"Formula en Latex","browser_no_compatible":"Tu navegador no es complatible con AJAX. Por favor, usa la última version de Mozilla Firefox.","error_convert_accessibility":"Error conviertiendo una fórmula MathML a texto accesible.","exception_cross_site":"Cross site scripting solo está permitido para HTTP.","exception_high_surrogate":"Subrogado alto no seguido por subrogado bajo en fixedCharCodeAt()","exception_string_length":"Cadena no válida. La longitud debe ser múltiplo de 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" esto es null o no definido","exception_not_function":" no es una función","exception_invalid_date_format":"Formato de fecha inválido: ","exception_casting":"No se puede emitir","exception_casting_to":" a "},"et":{"latex":"LaTeX","cancel":"Loobu","accept":"Lisa","manual":"Käsiraamat","insert_math":"Lisa matemaatiline valem – WIRIS","insert_chem":"Lisa keemiline valem – ChemType","minimize":"Minimeeri","maximize":"Maksimeeri","fullscreen":"Täiskuva","exit_fullscreen":"Välju täiskuvalt","close":"Sule","mathtype":"MathType","title_modalwindow":"MathType\'i modaalaken","close_modal_warning":"Kas soovite kindlasti lahkuda? Tehtud muudatused lähevad kaduma.","latex_name_label":"Latexi valem","browser_no_compatible":"Teie brauser ei ühildu AJAXi tehnoloogiaga. Palun kasutage Mozilla Firefoxi uusimat versiooni.","error_convert_accessibility":"Tõrge teisendamisel MathML-ist muudetavaks tekstiks.","exception_cross_site":"Ristskriptimine on lubatud ainult HTTP kasutamisel.","exception_high_surrogate":"Funktsioonis fixedCharCodeAt() ei järgne kõrgemale asendusliikmele madalam asendusliige.","exception_string_length":"Vigane string. Pikkus peab olema 4 kordne.","exception_key_nonobject":"Protseduur Object.keys kutsuti mitteobjekti korral.","exception_null_or_undefined":" see on null või määramata","exception_not_function":" ei ole funktsioon","exception_invalid_date_format":"Sobimatu kuupäeva kuju: ","exception_casting":"Esitamine ei õnnestu ","exception_casting_to":" – "},"eu":{"latex":"LaTeX","cancel":"Ezeztatu","accept":"Txertatu","manual":"Gida","insert_math":"Txertatu matematikako formula - MathType","insert_chem":"Txertatu formula kimiko bat - ChemType","minimize":"Ikonotu","maximize":"Maximizatu","fullscreen":"Pantaila osoa","exit_fullscreen":"Irten pantaila osotik","close":"Itxi","mathtype":"MathType","title_modalwindow":"MathType leiho modala","close_modal_warning":"Ziur irten nahi duzula? Egiten dituzun aldaketak galdu egingo dira.","latex_name_label":"LaTex Formula","browser_no_compatible":"Zure arakatzailea ez da bateragarria AJAX teknologiarekin. Erabili Mozilla Firefoxen azken bertsioa.","error_convert_accessibility":"Errorea MathMLtik testu irisgarrira bihurtzean.","exception_cross_site":"Gune arteko scriptak HTTPrako soilik onartzen dira.","exception_high_surrogate":"Ordezko baxuak ez dio ordezko altuari jarraitzen, hemen: fixedCharCodeAt()","exception_string_length":"Kate baliogabea. Luzerak 4ren multiploa izan behar du","exception_key_nonobject":"Object.keys deitu zaio objektua ez den zerbaiti","exception_null_or_undefined":" nulua edo definitu gabea da","exception_not_function":" ez da funtzio bat","exception_invalid_date_format":"Data-formatu baliogabea : ","exception_casting":"Ezin da igorri ","exception_casting_to":" honi "},"fi":{"latex":"LaTeX","cancel":"Peruuta","accept":"Lisää","manual":"Manual","insert_math":"Liitä matemaattinen kaava - MathType","insert_chem":"Lisää kemian kaava - ChemType","minimize":"Pienennä","maximize":"Suurenna","fullscreen":"Koko ruutu","exit_fullscreen":"Poistu koko ruudun tilasta","close":"Sulje","mathtype":"MathType","title_modalwindow":"MathTypen modaalinen ikkuna","close_modal_warning":"Oletko varma, että haluat poistua? Menetät tekemäsi muutokset.","latex_name_label":"Latex-kaava","browser_no_compatible":"Selaimesi ei tue AJAX-tekniikkaa. Ole hyvä ja käytä uusinta Firefox-versiota.","error_convert_accessibility":"Virhe muunnettaessa MathML:stä tekstiksi.","exception_cross_site":"Cross site scripting sallitaan vain HTTP:llä.","exception_high_surrogate":"fixedCharCodeAt(): yläsijaismerkkiä ei seurannut alasijaismerkki","exception_string_length":"Epäkelpo merkkijono. Pituuden on oltava 4:n kerrannainen","exception_key_nonobject":"Object.keys kutsui muuta kuin oliota","exception_null_or_undefined":" tämä on null tai ei määritelty","exception_not_function":" ei ole funktio","exception_invalid_date_format":"Virheellinen päivämäärämuoto : ","exception_casting":"Ei voida muuntaa tyyppiä ","exception_casting_to":" tyyppiin "},"fr":{"latex":"LaTeX","cancel":"Annuler","accept":"Insérer","manual":"Manuel","insert_math":"Insérer une formule mathématique - MathType","insert_chem":"Insérer une formule chimique - ChemType","minimize":"Minimiser","maximize":"Maximiser","fullscreen":"Plein écran","exit_fullscreen":"Quitter le plein écran","close":"Fermer","mathtype":"MathType","title_modalwindow":"Fenêtre modale MathType","close_modal_warning":"Confirmez-vous vouloir fermer ? Les changements effectués seront perdus.","latex_name_label":"Formule LaTeX","browser_no_compatible":"Votre navigateur n’est pas compatible avec la technologie AJAX. Veuillez utiliser la dernière version de Mozilla Firefox.","error_convert_accessibility":"Une erreur de conversion du format MathML en texte accessible est survenue.","exception_cross_site":"Le cross-site scripting n’est autorisé que pour HTTP.","exception_high_surrogate":"Substitut élevé non suivi d’un substitut inférieur dans fixedCharCodeAt()","exception_string_length":"Chaîne non valide. Longueur limitée aux multiples de 4","exception_key_nonobject":"Object.keys appelé sur un non-objet","exception_null_or_undefined":" nul ou non défini","exception_not_function":" n’est pas une fonction","exception_invalid_date_format":"Format de date non valide : ","exception_casting":"Impossible de convertir ","exception_casting_to":" sur "},"gl":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir unha fórmula matemática - MathType","insert_chem":"Inserir unha fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Saír da pantalla completa","close":"Pechar","mathtype":"MathType","title_modalwindow":"Ventá modal de MathType","close_modal_warning":"Seguro que quere saír? Perderanse os cambios realizados.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu explorador non é compatible coa tecnoloxía AJAX. Use a versión máis recente de Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML a texto accesible.","exception_cross_site":"Os scripts de sitios só se permiten para HTTP.","exception_high_surrogate":"Suplente superior non seguido por suplente inferior en fixedCharCodeAt()","exception_string_length":"Cadea non válida. A lonxitude debe ser un múltiplo de 4","exception_key_nonobject":"Claves de obxecto chamadas en non obxecto","exception_null_or_undefined":" nulo ou non definido","exception_not_function":" non é unha función","exception_invalid_date_format":"Formato de data non válido: ","exception_casting":"Non se pode converter ","exception_casting_to":" a "},"he":{"latex":"LaTeX","cancel":"ביטול","accept":"עדכון","manual":"ידני","insert_math":"הוספת נוסחה מתמטית - MathType","insert_chem":"הוספת כתיבה כימית - ChemType","minimize":"מזערי","maximize":"מרבי","fullscreen":"מסך מלא","exit_fullscreen":"יציאה ממצב מסך מלא","close":"סגירה","mathtype":"MathType","title_modalwindow":"חלון מודאלי של MathType","close_modal_warning":"האם לצאת? שינויים אשר בוצעו ימחקו.","latex_name_label":"נוסחת Latex","browser_no_compatible":"הדפדפן שלך אינו תואם לטכנולוגיית AJAX. יש להשתמש בגרסה העדכנית ביותר של Mozilla Firefox.","error_convert_accessibility":"שגיאה בהמרה מ-MathML לטקסט נגיש.","exception_cross_site":"סקריפטינג חוצה-אתרים מורשה עבור HTTP בלבד.","exception_high_surrogate":"ערך ממלא מקום גבוה אינו מופיע אחרי ערך ממלא מקום נמוך ב-fixedCharCodeAt()‎","exception_string_length":"מחרוזת לא חוקית. האורך חייב להיות כפולה של 4","exception_key_nonobject":"בוצעה קריאה אל Object.keys ברכיב שאינו אובייקט","exception_null_or_undefined":" הוא Null או לא מוגדר","exception_not_function":"איננה פונקציה","exception_invalid_date_format":"תסדיר תאריך אינו תקין : ","exception_casting":"לא ניתן להמיר ","exception_casting_to":" ל "},"hr":{"latex":"LaTeX","cancel":"Poništi","accept":"Umetni","manual":"Priručnik","insert_math":"Umetnite matematičku formulu - MathType","insert_chem":"Umetnite kemijsku formulu - ChemType","minimize":"Minimiziraj","maximize":"Maksimiziraj","fullscreen":"Cijeli zaslon","exit_fullscreen":"Izlaz iz prikaza na cijelom zaslonu","close":"Zatvori","mathtype":"MathType","title_modalwindow":"MathType modalni prozor","close_modal_warning":"Sigurno želite zatvoriti? Izgubit će se unesene promjene.","latex_name_label":"Latex formula","browser_no_compatible":"Vaš preglednik nije kompatibilan s AJAX tehnologijom. Upotrijebite najnoviju verziju Mozilla Firefoxa.","error_convert_accessibility":"Pogreška konverzije iz MathML-a u dostupni tekst.","exception_cross_site":"Skriptiranje na različitim web-mjestima dopušteno je samo za HTTP.","exception_high_surrogate":"Iza visoke zamjene ne slijedi niska zamjena u fixedCharCodeAt()","exception_string_length":"Nevažeći niz. Duljina mora biti višekratnik broja 4","exception_key_nonobject":"Object.keys pozvano na ne-objekt","exception_null_or_undefined":" ovo je nula ili nije definirano","exception_not_function":" nije funkcija","exception_invalid_date_format":"Nevažeći format datuma : ","exception_casting":"Ne može se poslati ","exception_casting_to":" na "},"hu":{"latex":"LaTeX","cancel":"Mégsem","accept":"Beszúrás","manual":"Kézikönyv","insert_math":"Matematikai képlet beszúrása - MathType","insert_chem":"Kémiai képet beillesztése - ChemType","minimize":"Kis méret","maximize":"Nagy méret","fullscreen":"Teljes képernyő","exit_fullscreen":"Teljes képernyő elhagyása","close":"Bezárás","mathtype":"MathType","title_modalwindow":"MathType modális ablak","close_modal_warning":"Biztosan kilép? A módosítások el fognak veszni.","latex_name_label":"Latex képlet","browser_no_compatible":"A böngészője nem kompatibilis az AJAX technológiával. Használja a Mozilla Firefox legújabb verzióját.","error_convert_accessibility":"Hiba lépett fel a MathML szöveggé történő konvertálása során.","exception_cross_site":"Az oldalak közti scriptelés csak HTTP esetén engedélyezett.","exception_high_surrogate":"A magas helyettesítő karaktert nem alacsony helyettesítő karakter követi a fixedCharCodeAt() esetében","exception_string_length":"Érvénytelen karakterlánc. A hossznak a 4 többszörösének kell lennie","exception_key_nonobject":"Az Object.keys egy nem objektumra került meghívásra","exception_null_or_undefined":" null vagy nem definiált","exception_not_function":" nem függvény","exception_invalid_date_format":"Érvénytelen dátumformátum: ","exception_casting":"Nem alkalmazható ","exception_casting_to":" erre "},"id":{"latex":"LaTeX","cancel":"Membatalkan","accept":"Masukkan","manual":"Manual","insert_math":"Masukkan rumus matematika - MathType","insert_chem":"Masukkan rumus kimia - ChemType","minimize":"Minikan","maximize":"Perbesar","fullscreen":"Layar penuh","exit_fullscreen":"Keluar layar penuh","close":"Tutup","mathtype":"MathType","title_modalwindow":"Jendela modal MathType","close_modal_warning":"Anda yakin ingin keluar? Anda akan kehilangan perubahan yang Anda buat.","latex_name_label":"Rumus Latex","browser_no_compatible":"Penjelajah Anda tidak kompatibel dengan teknologi AJAX. Harap gunakan Mozilla Firefox versi terbaru.","error_convert_accessibility":"Kesalahan konversi dari MathML menjadi teks yang dapat diakses.","exception_cross_site":"Skrip lintas situs hanya diizinkan untuk HTTP.","exception_high_surrogate":"Pengganti tinggi tidak diikuti oleh pengganti rendah di fixedCharCodeAt()","exception_string_length":"String tidak valid. Panjang harus kelipatan 4","exception_key_nonobject":"Object.keys meminta nonobjek","exception_null_or_undefined":" ini tidak berlaku atau tidak didefinisikan","exception_not_function":" bukan sebuah fungsi","exception_invalid_date_format":"Format tanggal tidak valid : ","exception_casting":"Tidak dapat mentransmisikan ","exception_casting_to":" untuk "},"it":{"latex":"LaTeX","cancel":"Annulla","accept":"Inserisci","manual":"Manuale","insert_math":"Inserisci una formula matematica - MathType","insert_chem":"Inserisci una formula chimica - ChemType","minimize":"Riduci a icona","maximize":"Ingrandisci","fullscreen":"Schermo intero","exit_fullscreen":"Esci da schermo intero","close":"Chiudi","mathtype":"MathType","title_modalwindow":"Finestra modale di MathType","close_modal_warning":"Confermi di voler uscire? Le modifiche effettuate andranno perse.","latex_name_label":"Formula LaTeX","browser_no_compatible":"Il tuo browser non è compatibile con la tecnologia AJAX. Utilizza la versione più recente di Mozilla Firefox.","error_convert_accessibility":"Errore durante la conversione da MathML in testo accessibile.","exception_cross_site":"Lo scripting tra siti è consentito solo per HTTP.","exception_high_surrogate":"Surrogato alto non seguito da surrogato basso in fixedCharCodeAt()","exception_string_length":"Stringa non valida. La lunghezza deve essere un multiplo di 4","exception_key_nonobject":"Metodo Object.keys richiamato in un elemento non oggetto","exception_null_or_undefined":" questo è un valore null o non definito","exception_not_function":" non è una funzione","exception_invalid_date_format":"Formato di data non valido: ","exception_casting":"Impossibile eseguire il cast ","exception_casting_to":" a "},"ja":{"latex":"LaTeX","cancel":"キャンセル","accept":"挿入","manual":"マニュアル","insert_math":"数式を挿入 - MathType","insert_chem":"化学式を挿入 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全画面表示","exit_fullscreen":"全画面表示を解除","close":"閉じる","mathtype":"MathType","title_modalwindow":"MathType モードウィンドウ","close_modal_warning":"このページから移動してもよろしいですか?変更内容は失われます。","latex_name_label":"LaTeX 数式","browser_no_compatible":"お使いのブラウザは、AJAX 技術と互換性がありません。Mozilla Firefox の最新バージョンをご使用ください。","error_convert_accessibility":"MathML からアクセシブルなテキストへの変換中にエラーが発生しました。","exception_cross_site":"クロスサイトスクリプティングは、HTTP のみに許可されています。","exception_high_surrogate":"fixedCharCodeAt()で上位サロゲートの後に下位サロゲートがありません","exception_string_length":"無効な文字列です。長さは4の倍数である必要があります","exception_key_nonobject":"Object.keys が非オブジェクトで呼び出されました","exception_null_or_undefined":" null であるか、定義されていません","exception_not_function":" は関数ではありません","exception_invalid_date_format":"無効な日付形式: ","exception_casting":"次にキャスト ","exception_casting_to":" できません "},"ko":{"latex":"LaTeX","cancel":"취소","accept":"삽입","manual":"설명서","insert_math":"수학 공식 삽입 - MathType","insert_chem":"화학 공식 입력하기 - ChemType","minimize":"최소화","maximize":"최대화","fullscreen":"전체 화면","exit_fullscreen":"전체 화면 나가기","close":"닫기","mathtype":"MathType","title_modalwindow":"MathType 모달 창","close_modal_warning":"정말로 나가시겠습니까? 변경 사항이 손실됩니다.","latex_name_label":"Latex 공식","browser_no_compatible":"사용자의 브라우저는 AJAX 기술과 호환되지 않습니다. Mozilla Firefox 최신 버전을 사용하십시오.","error_convert_accessibility":"MathML로부터 접근 가능한 텍스트로 오류 변환.","exception_cross_site":"사이트 교차 스크립팅은 HTTP 환경에서만 사용할 수 있습니다.","exception_high_surrogate":"fixedCharCodeAt()에서는 상위 서러게이트 뒤에 하위 서러게이트가 붙지 않습니다","exception_string_length":"유효하지 않은 스트링입니다. 길이는 4의 배수여야 합니다","exception_key_nonobject":"Object.keys가 non-object를 요청하였습니다","exception_null_or_undefined":" Null값이거나 정의되지 않았습니다","exception_not_function":" 함수가 아닙니다","exception_invalid_date_format":"유효하지 않은 날짜 포맷 : ","exception_casting":"캐스팅할 수 없습니다 ","exception_casting_to":" (으)로 "},"nl":{"latex":"LaTeX","cancel":"Annuleren","insert_chem":"Een scheikundige formule invoegen - ChemType","minimize":"Minimaliseer","maximize":"Maximaliseer","fullscreen":"Schermvullend","exit_fullscreen":"Verlaat volledig scherm","close":"Sluit","mathtype":"MathType","title_modalwindow":"Modaal venster MathType","close_modal_warning":"Weet je zeker dat je de app wilt sluiten? De gemaakte wijzigingen gaan verloren.","latex_name_label":"LaTeX-formule","browser_no_compatible":"Je browser is niet compatibel met AJAX-technologie. Gebruik de meest recente versie van Mozilla Firefox.","error_convert_accessibility":"Fout bij conversie van MathML naar toegankelijke tekst.","exception_cross_site":"Cross-site scripting is alleen toegestaan voor HTTP.","exception_high_surrogate":"Hoog surrogaat niet gevolgd door laag surrogaat in fixedCharCodeAt()","exception_string_length":"Ongeldige tekenreeks. Lengte moet een veelvoud van 4 zijn","exception_key_nonobject":"Object.keys opgeroepen voor niet-object","exception_null_or_undefined":" dit is nul of niet gedefinieerd","exception_not_function":" is geen functie","exception_invalid_date_format":"Ongeldige datumnotatie: ","exception_casting":"Kan niet weergeven ","exception_casting_to":" op "},"no":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"nb":{"latex":"LaTeX","cancel":"Avbryt","accept":"Insert","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Sett inn en kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringene du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettleseren er ikke kompatibel med AJAX-teknologien. Bruk den nyeste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering fra MathML til tilgjengelig tekst.","exception_cross_site":"Skripting på tvers av nettsteder er bare tillatt med HTTP.","exception_high_surrogate":"Høyt surrogat etterfølges ikke av lavt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengden må være delelig på 4","exception_key_nonobject":"Object.keys kalte på et ikke-objekt","exception_null_or_undefined":" dette er null eller ikke definert","exception_not_function":" er ikke en funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikke bruke casting ","exception_casting_to":" til "},"nn":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"pl":{"latex":"LaTeX","cancel":"Anuluj","accept":"Wstaw","manual":"Instrukcja","insert_math":"Wstaw formułę matematyczną - MathType","insert_chem":"Wstaw wzór chemiczny — ChemType","minimize":"Minimalizuj","maximize":"Maksymalizuj","fullscreen":"Pełny ekran","exit_fullscreen":"Opuść tryb pełnoekranowy","close":"Zamknij","mathtype":"MathType","title_modalwindow":"Okno modalne MathType","close_modal_warning":"Czy na pewno chcesz zamknąć? Wprowadzone zmiany zostaną utracone.","latex_name_label":"Wzór Latex","browser_no_compatible":"Twoja przeglądarka jest niezgodna z technologią AJAX Użyj najnowszej wersji Mozilla Firefox.","error_convert_accessibility":"Błąd podczas konwertowania z formatu MathML na dostępny tekst.","exception_cross_site":"Krzyżowanie skryptów witryny jest dozwolone tylko dla HTTP.","exception_high_surrogate":"Brak niskiego surogatu po wysokim surogacie w fixedCharCodeAt()","exception_string_length":"Niewłaściwy ciąg znaków. Długość musi być wielokrotnością liczby 4.","exception_key_nonobject":"Argumentem wywołanej funkcji Object.key nie jest obiekt.","exception_null_or_undefined":" jest zerowy lub niezdefiniowany","exception_not_function":" nie jest funkcją","exception_invalid_date_format":"Nieprawidłowy format daty: ","exception_casting":"Nie można rzutować ","exception_casting_to":" na "},"pt":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Inserir uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Ecrã completo","exit_fullscreen":"Sair do ecrã completo","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Pretende sair? As alterações efetuadas serão perdidas.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu navegador não é compatível com a tecnologia AJAX. Utilize a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O processamento de scripts em vários sites só é permitido para HTTP.","exception_high_surrogate":"Substituto alto não seguido por um substituto baixo em fixedCharCodeAt()","exception_string_length":"Cadeia inválida. O comprimento tem de ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamou um não-objeto","exception_null_or_undefined":" é nulo ou não está definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível adicionar ","exception_casting_to":" até "},"pt_br":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Insira uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Tela cheia","exit_fullscreen":"Sair de tela cheia","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Tem certeza de que deseja sair? Todas as alterações serão perdidas.","latex_name_label":"Fórmula LaTeX","browser_no_compatible":"O navegador não é compatível com a tecnologia AJAX. Use a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O uso de scripts entre sites só é permitido para HTTP.","exception_high_surrogate":"High surrogate não seguido de low surrogate em fixedCharCodeAt()","exception_string_length":"String inválida. O comprimento deve ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamados em não objeto","exception_null_or_undefined":" isto é nulo ou não definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível transmitir ","exception_casting_to":" para "},"ro":{"latex":"LaTeX","cancel":"Anulare","accept":"Inserați","manual":"Ghid","insert_math":"Inserați o formulă matematică - MathType","insert_chem":"Inserați o formulă chimică - ChemType","minimize":"Minimizați","maximize":"Maximizați","fullscreen":"Afișați pe tot ecranul","exit_fullscreen":"Opriți afișarea pe tot ecranul","close":"Închideți","mathtype":"MathType","title_modalwindow":"Fereastră modală MathType","close_modal_warning":"Sigur doriți să ieșiți? Modificările realizate se vor pierde.","latex_name_label":"Formulă Latex","browser_no_compatible":"Browserul dvs. nu este compatibil cu tehnologia AJAX. Utilizați cea mai recentă versiune de Mozilla Firefox.","error_convert_accessibility":"Eroare la convertirea din MathML în text accesibil.","exception_cross_site":"Scriptarea între site‑uri este permisă doar pentru HTTP.","exception_high_surrogate":"Surogatul superior nu este urmat de un surogat inferior în fixedCharCodeAt()","exception_string_length":"Șir nevalid. Lungimea trebuie să fie multiplu de 4","exception_key_nonobject":"Object.keys a apelat un non-obiect","exception_null_or_undefined":" este null sau nu este definit","exception_not_function":" nu este funcție","exception_invalid_date_format":"Format de dată nevalid: ","exception_casting":"nu se poate difuza ","exception_casting_to":" către "},"ru":{"latex":"LaTeX","cancel":"отмена","accept":"Вставка","manual":"вручную","insert_math":"Вставить математическую формулу: WIRIS","insert_chem":"Вставить химическую формулу — ChemType","minimize":"Свернуть","maximize":"Развернуть","fullscreen":"На весь экран","exit_fullscreen":"Выйти из полноэкранного режима","close":"Закрыть","mathtype":"MathType","title_modalwindow":"Режимное окно MathType","close_modal_warning":"Вы уверены, что хотите выйти? Все внесенные изменения будут утрачены.","latex_name_label":"Формула Latex","browser_no_compatible":"Ваш браузер несовместим с технологией AJAX. Используйте последнюю версию Mozilla Firefox.","error_convert_accessibility":"При преобразовании формулы в текст допустимого формата произошла ошибка.","exception_cross_site":"Межсайтовые сценарии доступны только для HTTP.","exception_high_surrogate":"Младший символ-заместитель не сопровождает старший символ-заместитель в исправленном методе CharCodeAt()","exception_string_length":"Недопустимая строка. Длинна должна быть кратной 4.","exception_key_nonobject":"Метод Object.keys вызван не для объекта","exception_null_or_undefined":" значение пустое или не определено","exception_not_function":" не функция","exception_invalid_date_format":"Недопустимый формат даты: ","exception_casting":"Не удается привести ","exception_casting_to":" к "},"sv":{"latex":"LaTeX","cancel":"Avbryt","accept":"Infoga","manual":"Bruksanvisning","insert_math":"Infoga matematisk formel - MathType","insert_chem":"Infoga en kemiformel – ChemType","minimize":"Minimera","maximize":"Maximera","fullscreen":"Helskärm","exit_fullscreen":"Stäng helskärm","close":"Stäng","mathtype":"MathType","title_modalwindow":"MathType modulfönster","close_modal_warning":"Vill du avsluta? Inga ändringar kommer att sparas.","latex_name_label":"Latex-formel","browser_no_compatible":"Din webbläsare är inte kompatibel med AJAX-teknik. Använd den senaste versionen av Mozilla Firefox.","error_convert_accessibility":"Det uppstod ett fel vid konvertering från MathML till åtkomlig text.","exception_cross_site":"Skriptkörning över flera sajter är endast tillåtet för HTTP.","exception_high_surrogate":"Hög surrogat följs inte av låg surrogat i fixedCharCodeAt()","exception_string_length":"Ogiltig sträng. Längden måste vara en multipel av 4","exception_key_nonobject":"Object.keys anropade icke-objekt","exception_null_or_undefined":" det är null eller inte definierat","exception_not_function":" är inte en funktion","exception_invalid_date_format":"Ogiltigt datumformat: ","exception_casting":"Går inte att konvertera ","exception_casting_to":" till "},"tr":{"latex":"LaTeX","cancel":"Vazgeç","accept":"Ekle","manual":"Kılavuz","insert_math":"Matematik formülü ekle - MathType","insert_chem":"Kimya formülü ekleyin - ChemType","minimize":"Simge Durumuna Küçült","maximize":"Ekranı Kapla","fullscreen":"Tam Ekran","exit_fullscreen":"Tam Ekrandan Çık","close":"Kapat","mathtype":"MathType","title_modalwindow":"MathType kalıcı penceresi","close_modal_warning":"Çıkmak istediğinizden emin misiniz? Yaptığınız değişiklikler kaybolacak.","latex_name_label":"Latex Formülü","browser_no_compatible":"Tarayıcınız AJAX teknolojisiyle uyumlu değil. Lütfen en güncel Mozilla Firefox sürümünü kullanın.","error_convert_accessibility":"MathML biçiminden erişilebilir metne dönüştürme hatası.","exception_cross_site":"Siteler arası komut dosyası yazma işlemine yalnızca HTTP için izin verilir.","exception_high_surrogate":"fixedCharCodeAt() fonksiyonunda üst vekilin ardından alt vekil gelmiyor","exception_string_length":"Geçersiz dizgi. Uzunluk, 4\'ün katlarından biri olmalıdır","exception_key_nonobject":"Nesne olmayan öğe üzerinde Object.keys çağrıldı","exception_null_or_undefined":" bu değer boş veya tanımlanmamış","exception_not_function":" bir fonksiyon değil","exception_invalid_date_format":"Geçersiz tarih biçimi: ","exception_casting":"Tür dönüştürülemiyor ","exception_casting_to":" hedef: "},"zh":{"latex":"LaTeX","cancel":"取消","accept":"插入","manual":"手册","insert_math":"插入数学公式 - MathType","insert_chem":"插入化学分子式 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全屏幕","exit_fullscreen":"退出全屏幕","close":"关闭","mathtype":"MathType","title_modalwindow":"MathType 模式窗口","close_modal_warning":"您确定要离开吗?您所做的修改将丢失。","latex_name_label":"Latex 分子式","browser_no_compatible":"您的浏览器不兼容 AJAX 技术。请使用最新版 Mozilla Firefox。","error_convert_accessibility":"将 MathML 转换为可访问文本时出错。","exception_cross_site":"仅 HTTP 允许跨站脚本。","exception_high_surrogate":"fixedCharCodeAt() 中的高位代理之后未跟随低位代理","exception_string_length":"无效字符串。长度必须是 4 的倍数","exception_key_nonobject":"非对象调用了 Object.keys","exception_null_or_undefined":" 该值为空或未定义","exception_not_function":" 不是一个函数","exception_invalid_date_format":"无效日期格式: ","exception_casting":"无法转换 ","exception_casting_to":" 为 "},"":{}}');class z2{constructor(){throw new Error("Static class StringManager can not be instantiated.")}static get(t){let{language:e}=this;return e&&e.length>2&&(e=e.slice(0,2)),this.strings.hasOwnProperty(e)||(console.warn(`Unknown language ${e} set in StringManager.`),e="en"),this.strings[e].hasOwnProperty(t)?this.strings[e][t]:(console.warn(`Unknown key ${t} for language ${e} in StringManager.`),t)}}z2.strings=j2,z2.language="en";class V2{static fireEvent(t,e){if(document.createEvent){const n=document.createEvent("HTMLEvents");return n.initEvent(e,!0,!0),!t.dispatchEvent(n)}const n=document.createEventObject();return t.fireEvent(`on${e}`,n)}static addEvent(t,e,n){t.addEventListener?t.addEventListener(e,n,!0):t.attachEvent&&t.attachEvent(`on${e}`,n)}static removeEvent(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!0):t.detachEvent&&t.detachEvent(`on${e}`,n)}static addElementEvents(t,e,n,i){e&&(this.callbackDblclick=t=>{const n=t||window.event,i=n.srcElement?n.srcElement:n.target;e(i,n)},V2.addEvent(t,"dblclick",this.callbackDblclick)),n&&(this.callbackMousedown=t=>{const e=t||window.event,i=e.srcElement?e.srcElement:e.target;n(i,e)},V2.addEvent(t,"mousedown",this.callbackMousedown)),i&&(this.callbackMouseup=t=>{const e=t||window.event,n=e.srcElement?e.srcElement:e.target;i(n,e)},V2.addEvent(document,"mouseup",this.callbackMouseup),V2.addEvent(t,"mouseup",this.callbackMouseup))}static removeElementEvents(t){V2.removeEvent(t,"dblclick",this.callbackDblclick),V2.removeEvent(t,"mousedown",this.callbackMousedown),V2.removeEvent(document,"mouseup",this.callbackMouseup),V2.removeEvent(t,"mouseup",this.callbackMouseup)}static addClass(t,e){V2.containsClass(t,e)||(t.className+=` ${e}`)}static containsClass(t,e){if(null==t||!("className"in t))return!1;const n=t.className.split(" ");for(let t=n.length-1;t>=0;t-=1)if(n[t]===e)return!0;return!1}static removeClass(t,e){let n="";const i=t.className.split(" ");for(let t=0;t<i.length;t+=1)i[t]!==e&&(n+=`${i[t]} `);t.className=n.trim()}static convertOldXmlinitialtextAttribute(t){const e="value=",n=t.indexOf("xmlinitialtext"),i=t.indexOf(e,n),o=t.charAt(i+6),r=i+6+1,s=t.indexOf(o,r),a=t.substring(r,s);let c=a.split("«").join("§lt;");return c=c.split("»").join("§gt;"),c=c.split("&").join("§"),c=c.split("¨").join("§quot;"),t=t.split(a).join(c)}static createElement(t,e,n){let i;void 0===e&&(e={}),void 0===n&&(n=document);try{let o=`<${t}`;Object.keys(e).forEach((t=>{o+=` ${t}="${V2.htmlEntities(e[t])}"`})),o+=">",i=n.createElement(o)}catch(o){i=n.createElement(t),Object.keys(e).forEach((t=>{i.setAttribute(t,e[t])}))}return i}static createObject(t,e){void 0===e&&(e=document),t=(t=(t=(t=t.split("<applet ").join('<span wirisObject="WirisApplet" ').split("<APPLET ").join('<span wirisObject="WirisApplet" ')).split("</applet>").join("</span>").split("</APPLET>").join("</span>")).split("<param ").join('<br wirisObject="WirisParam" ').split("<PARAM ").join('<br wirisObject="WirisParam" ')).split("</param>").join("</br>").split("</PARAM>").join("</br>");const n=V2.createElement("div",{},e);return n.innerHTML=t,function t(n){if(n.getAttribute&&"WirisParam"===n.getAttribute("wirisObject")){const t={};for(let e=0;e<n.attributes.length;e+=1)null!==n.attributes[e].nodeValue&&(t[n.attributes[e].nodeName]=n.attributes[e].nodeValue);const i=V2.createElement("param",t,e);i.NAME&&(i.name=i.NAME,i.value=i.VALUE),i.removeAttribute("wirisObject"),n.parentNode.replaceChild(i,n)}else if(n.getAttribute&&"WirisApplet"===n.getAttribute("wirisObject")){const i={};for(let t=0;t<n.attributes.length;t+=1)null!==n.attributes[t].nodeValue&&(i[n.attributes[t].nodeName]=n.attributes[t].nodeValue);const o=V2.createElement("applet",i,e);o.removeAttribute("wirisObject");for(let e=0;e<n.childNodes.length;e+=1)t(n.childNodes[e]),"param"===n.childNodes[e].nodeName.toLowerCase()&&(o.appendChild(n.childNodes[e]),e-=1);n.parentNode.replaceChild(o,n)}else for(let e=0;e<n.childNodes.length;e+=1)t(n.childNodes[e])}(n),n.firstChild}static createObjectCode(t){if(null==t)return null;if(1===t.nodeType){let e=`<${t.tagName}`;for(let n=0;n<t.attributes.length;n+=1)t.attributes[n].specified&&(e+=` ${t.attributes[n].name}="${V2.htmlEntities(t.attributes[n].value)}"`);if(t.childNodes.length>0){e+=">";for(let n=0;n<t.childNodes.length;n+=1)e+=V2.createObject(t.childNodes[n]);e+=`</${t.tagName}>`}else"DIV"===t.nodeName||"SCRIPT"===t.nodeName?e+=`></${t.tagName}>`:e+="/>";return e}return 3===t.nodeType?V2.htmlEntities(t.nodeValue):""}static concatenateUrl(t,e){let n="";return t.indexOf("/")!==t.length&&0!==e.indexOf("/")&&(n="/"),(t+n+e).replace(/([^:]\/)\/+/g,"$1")}static htmlEntities(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")}static htmlEntitiesDecode(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}static createHttpRequest(){if("file://"===window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1).substr(0,7))throw z2.get("exception_cross_site");if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){return null}}}static httpBuildQuery(t){let e="";return Object.keys(t).forEach((n=>{null!=t[n]&&(e+=`${V2.urlEncode(n)}=${V2.urlEncode(t[n])}&`)})),"&"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),e}static propertiesToString(t){const e=[];Object.keys(t).forEach((n=>{Object.prototype.hasOwnProperty.call(t,n)&&e.push(n)}));const n=e.length;for(let t=0;t<n;t+=1)for(let i=t+1;i<n;i+=1){const n=e[t],o=e[i];V2.compareStrings(n,o)>0&&(e[t]=o,e[i]=n)}let i="";for(let o=0;o<n;o+=1){const n=e[o];i+=n,i+="=";let r=t[n];r=r.replace("\\","\\\\"),r=r.replace("\n","\\n"),r=r.replace("\r","\\r"),r=r.replace("\t","\\t"),i+=r,i+="\n"}return i}static compareStrings(t,e){let n;const i=t.length,o=e.length,r=i>o?o:i;for(n=0;n<r;n+=1){const i=V2.fixedCharCodeAt(t,n)-V2.fixedCharCodeAt(e,n);if(0!==i)return i}return t.length-e.length}static fixedCharCodeAt(t,e){e=e||0;const n=t.charCodeAt(e);let i,o;if(n>=55296&&n<=56319){if(i=n,o=t.charCodeAt(e+1),Number.isNaN(o))throw z2.get("exception_high_surrogate");return 1024*(i-55296)+(o-56320)+65536}return!(n>=56320&&n<=57343)&&n}static urlToAssArray(t){let e;if(e=t.indexOf("?"),e>0){const n=t.substring(e+1).split("&"),i={};for(e=0;e<n.length;e+=1){const t=n[e].split("=");t.length>1&&(i[t[0]]=decodeURIComponent(t[1].replace(/\+/g," ")))}return i}return{}}static urlEncode(t){let e="";return e=encodeURIComponent(t),e}static getWIRISImageOutput(t,e,n){const i=V2.createObject(t);if(i&&(i.className===O2.get("imageClassName")||i.getAttribute(O2.get("imageMathmlAttribute")))){if(!e)return t;const o=i.getAttribute(O2.get("imageMathmlAttribute"));let r=B2.safeXmlDecode(o);if(O2.get("saveHandTraces")||(r=B2.removeAnnotation(r,"application/json")),null==r&&(r=i.getAttribute("alt")),n){return B2.safeXmlEncode(r)}return r}return t}static getNodeLength(t){const e={IMG:1,BR:1};if(3===t.nodeType)return t.nodeValue.length;if(1===t.nodeType){let n=e[t.nodeName.toUpperCase()];void 0===n&&(n=0);for(let e=0;e<t.childNodes.length;e+=1)n+=V2.getNodeLength(t.childNodes[e]);return n}return 0}static getSelectedItem(t,e,n){let i;if(e?(i=t.contentWindow,i.focus()):(i=window,t.focus()),document.selection&&!n){const n=i.document.selection.createRange();if(n.parentElement){if(n.htmlText.length>0)return 0===n.text.length?V2.getSelectedItem(t,e,!0):null;i.document.execCommand("InsertImage",!1,"#");let o,r,s=n.parentElement();return"IMG"!==s.nodeName.toUpperCase()&&(n.pasteHTML('<span id="wrs_openEditorWindow_temporalObject"></span>'),s=i.document.getElementById("wrs_openEditorWindow_temporalObject")),s.nextSibling&&3===s.nextSibling.nodeType?(o=s.nextSibling,r=0):s.previousSibling&&3===s.previousSibling.nodeType?(o=s.previousSibling,r=o.nodeValue.length):(o=i.document.createTextNode(""),s.parentNode.insertBefore(o,s),r=0),s.parentNode.removeChild(s),{node:o,caretPosition:r}}return n.length>1?null:{node:n.item(0)}}if(i.getSelection){let t;const e=i.getSelection();try{t=e.getRangeAt(0)}catch(e){t=i.document.createRange()}const n=t.startContainer;if(3===n.nodeType)return{node:n,caretPosition:t.startOffset};if(n!==t.endContainer)return null;if(1===n.nodeType){const e=t.startOffset;if(n.childNodes[e])return{node:n.childNodes[e]}}}return null}static getSelectedItemOnTextarea(t){const e=document.createTextNode(t.value),n=L2.getLatexFromTextNode(e,t.selectionStart);return null===n?null:{node:e,caretPosition:t.selectionStart,startPosition:n.startPosition,endPosition:n.endPosition}}static getElementsByNameFromString(t,e,n){const i=[];t=t.toLowerCase(),e=e.toLowerCase();let o=t.indexOf(`<${e} `);for(;-1!==o;){let r;r=n?">":`</${e}>`;let s=t.indexOf(r,o);-1!==s?(s+=r.length,i.push({start:o,end:s})):s=o+1,o=t.indexOf(`<${e} `,s)}return i}static decode64(t){const e="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),o="a".charCodeAt(0),r="A".charCodeAt(0),s="-".charCodeAt(0),a="_".charCodeAt(0),c=t.charCodeAt(0);return c===e||c===s?62:c===n||c===a?63:c<i?-1:c<i+10?c-i+26+26:c<r+26?c-r:c<o+26?c-o+26:null}static b64ToByteArray(t,e){let n;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");const i=[];let o,r,s;for(e?o=e:(r="="===t.charAt(t.length-2)?2:"="===t.charAt(t.length-1)?1:0,o=r>0?t.length-4:t.length),s=0;s<o;s+=4)n=V2.decode64(t.charAt(s))<<18|V2.decode64(t.charAt(s+1))<<12|V2.decode64(t.charAt(s+2))<<6|V2.decode64(t.charAt(s+3)),i.push(n>>16&255),i.push(n>>8&255),i.push(255&n);return r&&(2===r?(n=V2.decode64(t.charAt(s))<<2|V2.decode64(t.charAt(s+1))>>4,i.push(255&n)):1===r&&(n=V2.decode64(t.charAt(s))<<10|V2.decode64(t.charAt(s+1))<<4|V2.decode64(t.charAt(s+2))>>2,i.push(n>>8&255),i.push(255&n))),i}static readInt32(t){if(t.length<4)return!1;const e=t.splice(0,4);return e[0]<<24|e[1]<<16|e[2]<<8|e[3]<<0}static readByte(t){return t.shift()<<0}static readBytes(t,e,n){return t.splice(e,n)}static updateTextArea(t,e){if(t&&e)if(t.focus(),null!=t.selectionStart){const{selectionEnd:n}=t,i=t.value.substring(0,t.selectionStart),o=t.value.substring(n,t.value.length);t.value=i+e+o,t.selectionEnd=n+e.length}else{document.selection.createRange().text=e}}static updateExistingTextOnTextarea(t,e,n,i){t.focus();const o=t.value.substring(0,n);t.value=o+e+t.value.substring(i,t.value.length),t.selectionEnd=n+e.length}static addArgument(t,e,n){let i;return i=t.indexOf("?")>0?"&":"?",`${t+i+e}=${n}`}}class F2{static removeImgDataAttributes(t){const e=[],{attributes:n}=t;Object.keys(n).forEach((t=>{const i=n[t];void 0!==i&&void 0!==i.name&&0===i.name.indexOf("data-")&&e.push(i.name)})),e.forEach((e=>{t.removeAttribute(e)}))}static clone(t,e){const n=O2.get("imageCustomEditorName");t.hasAttribute(n)||e.removeAttribute(n);[O2.get("imageMathmlAttribute"),n,"alt","height","width","style","src","role"].forEach((n=>{const i=t.getAttribute(n);i&&e.setAttribute(n,i)}))}static setImgSize(t,e,n){let i,o,r,s;if(n)if("svg"===O2.get("imageFormat"))if("base64"!==O2.get("saveMode"))i=F2.getMetricsFromSvgString(e);else{o=t.src.substr(t.src.indexOf("base64,")+7,t.src.length),s="",r=V2.b64ToByteArray(o,o.length);for(let t=0;t<r.length;t+=1)s+=String.fromCharCode(r[t]);i=F2.getMetricsFromSvgString(s)}else o=t.src.substr(t.src.indexOf("base64,")+7,t.src.length),r=V2.b64ToByteArray(o,88),i=F2.getMetricsFromBytes(r);else i=V2.urlToAssArray(e);let a=i.cw;if(!a)return;let c=i.ch,l=i.cb;const{dpi:d}=i;d&&(a=96*a/d,c=96*c/d,l=96*l/d),t.width=a,t.height=c,t.style.verticalAlign=`-${c-l}px`}static fixAfterResize(t){if(t.removeAttribute("style"),t.removeAttribute("width"),t.removeAttribute("height"),t.style.maxWidth="none",-1!==t.src.indexOf("data:image"))if("svg"===O2.get("imageFormat")){const e=decodeURIComponent(t.src.substring(32,t.src.length));F2.setImgSize(t,e,!0)}else{const e=t.src.substring(22,t.src.length);F2.setImgSize(t,e,!0)}else F2.setImgSize(t,t.src)}static getMetricsFromSvgString(t){let e=t.indexOf('height="'),n=t.indexOf('"',e+8,t.length);const i=t.substring(e+8,n);e=t.indexOf('width="'),n=t.indexOf('"',e+7,t.length);const o=t.substring(e+7,n);e=t.indexOf('wrs:baseline="'),n=t.indexOf('"',e+14,t.length);const r=t.substring(e+14,n);if(void 0!==o){const t=[];return t.cw=o,t.ch=i,void 0!==r&&(t.cb=r),t}return[]}static getMetricsFromBytes(t){let e,n,i,o,r;for(V2.readBytes(t,0,8);t.length>=4;)i=V2.readInt32(t),1229472850===i?(e=V2.readInt32(t),n=V2.readInt32(t),V2.readInt32(t),V2.readByte(t)):1650545477===i?o=V2.readInt32(t):1883789683===i&&(r=V2.readInt32(t),r=Math.round(r/39.37),V2.readInt32(t),V2.readByte(t)),V2.readInt32(t);if(void 0!==e){const t=[];return t.cw=e,t.ch=n,t.dpi=r,o&&(t.cb=o),t}return[]}}class U2{static get cache(){return U2._cache}static set cache(t){U2._cache=t}static mathMLToAccessible(t,e,n){void 0===e&&(e="en"),B2.containClass(t,"wrs_chemistry")&&(n.mode="chemistry"),n.ignoreStyles=!0;let i="";if(U2.cache.get(t))i=U2.cache.get(t);else{n.service="mathml2accessible",n.lang=e;const o=JSON.parse(R2.getService("service",n));"error"!==o.status?(i=o.result.text,U2.cache.populate(t,i)):i=z2.get("error_convert_accessibility")}return i}}U2._cache=new N2;__webpack_require__(6209);class H2{static mathmlToImgObject(t,e,n,i){const o=t.createElement("img");o.align="middle",o.style.maxWidth="none";const r=n||{};if(r.mml=e,r.lang=i,r.metrics="true",r.centerbaseline="false","base64"===O2.get("saveMode")&&"default"===O2.get("base64savemode")&&(r.base64=!0),o.className=O2.get("imageClassName"),-1!==e.indexOf('class="')){let t=e.substring(e.indexOf('class="')+7,e.length);t=t.substring(0,t.indexOf('"')),t=t.substring(4,t.length),o.setAttribute(O2.get("imageCustomEditorName"),t)}if(!O2.get("wirisPluginPerformance")||"xml"!==O2.get("saveMode")&&"safeXml"!==O2.get("saveMode")){const t=H2.createImageSrc(e,r);o.setAttribute(O2.get("imageMathmlAttribute"),B2.safeXmlEncode(e)),o.src=t,F2.setImgSize(o,t,"base64"===O2.get("saveMode")&&"default"===O2.get("base64savemode")),O2.get("enableAccessibility")&&(o.alt=U2.mathMLToAccessible(e,i,r))}else{let t=JSON.parse(H2.createShowImageSrc(r,i));if("warning"===t.status)try{t=JSON.parse(R2.getService("showimage",r))}catch(t){return null}({result:t}=t),"png"===t.format?o.src=`data:image/png;base64,${t.content}`:o.src=`data:image/svg+xml;charset=utf8,${V2.urlEncode(t.content)}`,o.setAttribute(O2.get("imageMathmlAttribute"),B2.safeXmlEncode(e)),F2.setImgSize(o,t.content,!0),O2.get("enableAccessibility")&&(void 0===t.alt?o.alt=U2.mathMLToAccessible(e,i,r):o.alt=t.alt)}return void 0!==H2.observer&&H2.observer.observe(o),o.setAttribute("role","math"),o}static createImageSrc(t,e){"base64"===O2.get("saveMode")&&"default"===O2.get("base64savemode")&&(e.base64=!0);let n=R2.getService("createimage",e);if(-1!==n.indexOf("@BASE@")){const t=R2.getServicePath("createimage").split("/");t.pop(),n=n.split("@BASE@").join(t.join("/"))}return n}static initParse(t,e){return t=H2.initParseSaveMode(t,e),H2.initParseEditMode(t)}static initParseSaveMode(t,e){return O2.get("saveMode")&&(t=L2.parseMathmlToLatex(t,M2.safeXmlCharacters),t=L2.parseMathmlToLatex(t,M2.xmlCharacters),t=H2.parseMathmlToImg(t,M2.safeXmlCharacters,e),t=H2.parseMathmlToImg(t,M2.xmlCharacters,e),"base64"===O2.get("saveMode")&&"image"===O2.get("base64savemode")&&(t=H2.codeImgTransform(t,"base642showimage"))),t}static initParseEditMode(t){if(-1!==O2.get("parseModes").indexOf("latex")){const e=V2.getElementsByNameFromString(t,"img",!0),n='encoding="LaTeX">';let i=0;for(let o=0;o<e.length;o+=1){const r=t.substring(e[o].start+i,e[o].end+i);if(-1!==r.indexOf(` class="${O2.get("imageClassName")}"`)){let s=` ${O2.get("imageMathmlAttribute")}="`,a=r.indexOf(s);if(-1===a&&(s=' alt="',a=r.indexOf(s)),-1!==a){a+=s.length;const c=r.indexOf('"',a),l=B2.safeXmlDecode(r.substring(a,c));let d=l.indexOf(n);if(-1!==d){d+=n.length;const r=l.indexOf("</annotation>",d),s=l.substring(d,r),a=`$$${V2.htmlEntitiesDecode(s)}$$`,c=t.substring(0,e[o].start+i),u=t.substring(e[o].end+i);t=c+a+u,i+=a.length-(e[o].end-e[o].start)}}}}}return t}static endParse(t){const e=H2.endParseEditMode(t);return H2.endParseSaveMode(e)}static endParseEditMode(t){if(-1!==O2.get("parseModes").indexOf("latex")){let e="",n=0,i=t.indexOf("$$");for(;-1!==i;){if(e+=t.substring(n,i),n=t.indexOf("$$",i+2),-1!==n){const o=t.substring(i+2,n),r=V2.htmlEntitiesDecode(o);let s=L2.getMathMLFromLatex(r,!0);O2.get("saveHandTraces")||(s=B2.removeAnnotation(s,"application/json")),e+=s,n+=2}else e+="$$",n=i+2;i=t.indexOf("$$",n)}e+=t.substring(n,t.length),t=e}return t}static endParseSaveMode(t){return O2.get("saveMode")&&("safeXml"===O2.get("saveMode")||"xml"===O2.get("saveMode")?t=H2.codeImgTransform(t,"img2mathml"):"base64"===O2.get("saveMode")&&"image"===O2.get("base64savemode")&&(t=H2.codeImgTransform(t,"img264"))),t}static createShowImageSrc(t,e){const n={};["mml","color","centerbaseline","zoom","dpi","fontSize","fontFamily","defaultStretchy","backgroundColor","format"].forEach((e=>{void 0!==t[e]&&(n[e]=t[e])}));const i={};Object.keys(t).forEach((e=>{"mml"!==e&&(i[e]=t[e])})),i.formula=com.wiris.js.JsPluginTools.md5encode(V2.propertiesToString(n)),i.lang=void 0===e?"en":e,i.version=O2.get("version");return R2.getService("showimage",V2.httpBuildQuery(i),!0)}static codeImgTransform(t,e){let n="",i=0;const o=/<img/gi,r=o.source.length;for(;o.test(t);){const s=o.lastIndex-r;n+=t.substring(i,s);let a=s+1;for(;a<t.length&&i<=s;){const e=t.charAt(a);if('"'===e||"'"===e){const n=t.indexOf(e,a+1);a=-1===n?t.length:n}else">"===e&&(i=a+1);a+=1}if(i<s)return n+=t.substring(s,t.length),n;let c=t.substring(s,i);const l=V2.createObject(c);let d,u,h=l.getAttribute(O2.get("imageMathmlAttribute"));if("base642showimage"===e)null==h&&(h=l.getAttribute("alt")),h=B2.safeXmlDecode(h),c=H2.mathmlToImgObject(document,h,null,null),n+=V2.createObjectCode(c);else if("img2mathml"===e)O2.get("saveMode")&&("safeXml"===O2.get("saveMode")?(d=!0,u=!0):"xml"===O2.get("saveMode")&&(d=!0,u=!1)),n+=V2.getWIRISImageOutput(c,d,u);else if("img264"===e){null===h&&(h=l.getAttribute("alt")),h=B2.safeXmlDecode(h);const t={base64:"true"};c=H2.mathmlToImgObject(document,h,t,null),F2.setImgSize(c,c.src,!0),n+=V2.createObjectCode(c)}}return n+=t.substring(i,t.length),n}static parseMathmlToImg(t,e,n){let i="";const o=`${e.tagOpener}math`,r=`${e.tagOpener}/math${e.tagCloser}`;let s=t.indexOf(o),a=0;for(;-1!==s;){i+=t.substring(a,s);const c=t.indexOf(O2.get("imageMathmlAttribute"));if(a=t.indexOf(r,s),-1===a?a=t.length-1:a+=-1!==c?t.indexOf("/>",s):r.length,B2.isMathmlInAttribute(t,s)||-1!==c)i+=t.substring(s,a);else{let o=t.substring(s,a);o=e.id===M2.safeXmlCharacters.id?B2.safeXmlDecode(o):B2.mathMLEntities(o),i+=V2.createObjectCode(H2.mathmlToImgObject(document,o,null,n))}s=t.indexOf(o,a)}return i+=t.substring(a,t.length),i}}if("undefined"!=typeof MutationObserver){const t=new MutationObserver((t=>{t.forEach((t=>{t.oldValue===O2.get("imageClassName")&&"class"===t.attributeName&&-1===t.target.className.indexOf(O2.get("imageClassName"))&&(t.target.className=O2.get("imageClassName"))}))}));H2.observer=Object.create(t),H2.observer.Config={attributes:!0,attributeOldValue:!0},H2.observer.observe=function(t){Object.getPrototypeOf(this).observe(t,this.Config)}}class G2{constructor(){this.isContentChanged=!1,this.waitingForChanges=!1}setIsContentChanged(t){this.isContentChanged=t}getIsContentChanged(){return this.isContentChanged}setWaitingForChanges(t){this.waitingForChanges=t}caretPositionChanged(t){}clipboardChanged(t){}contentChanged(t){!0===this.waitingForChanges&&!1===this.isContentChanged&&(this.isContentChanged=!0)}styleChanged(t){}transformationReceived(t){}}class q2{constructor(t){if(this.editorAttributes={},!("editorAttributes"in t))throw new Error("ContentManager constructor error: editorAttributes property missed.");if(this.editorAttributes=t.editorAttributes,this.customEditors=null,"customEditors"in t&&(this.customEditors=t.customEditors),this.environment={},!("environment"in t))throw new Error("ContentManager constructor error: environment property missed");if(this.environment=t.environment,this.language="",!("language"in t))throw new Error("ContentManager constructor error: language property missed");this.language=t.language,this.editorListener=new G2,this.editor=null,this.ua=navigator.userAgent.toLowerCase(),this.deviceProperties={},this.deviceProperties.isAndroid=this.ua.indexOf("android")>-1,this.deviceProperties.isIOS=q2.isIOS(),this.toolbar=null,this.modalDialogInstance=null,this.listeners=new P2,this.mathML=null,this.isNewElement=!0,this.integrationModel=null}addListener(t){this.listeners.add(t)}setIntegrationModel(t){this.integrationModel=t}setModalDialogInstance(t){this.modalDialogInstance=t}insert(){this.updateTitle(this.modalDialogInstance),this.insertEditor(this.modalDialogInstance)}insertEditor(){if(q2.isEditorLoaded()){if(this.editor=window.com.wiris.jsEditor.JsEditor.newInstance(this.editorAttributes),this.editor.insertInto(this.modalDialogInstance.contentContainer),this.editor.focus(),this.modalDialogInstance.rtl&&this.editor.action("rtl"),this.editor.getEditorModel().isRTL()&&(this.editor.element.style.direction="rtl"),this.editor.getEditorModel().addEditorListener(this.editorListener),this.modalDialogInstance.deviceProperties.isIOS){setTimeout((function(){this.hasOwnProperty("modalDialogInstance")&&this.modalDialogInstance.hideKeyboard()}),400);const t=document.getElementsByClassName("wrs_formulaDisplay")[0];V2.addEvent(t,"focus",this.modalDialogInstance.handleOpenedIosSoftkeyboard),V2.addEvent(t,"blur",this.modalDialogInstance.handleClosedIosSoftkeyboard)}this.listeners.fire("onLoad",{})}else setTimeout(q2.prototype.insertEditor.bind(this),100)}init(){q2.isEditorLoaded()||this.addEditorAsExternalDependency()}addEditorAsExternalDependency(){const t=document.createElement("script");t.type="text/javascript";let e=O2.get("editorUrl");const n=document.createElement("a");q2.setHrefToAnchorElement(n,e),q2.setProtocolToAnchorElement(n),e=q2.getURLFromAnchorElement(n);const i=this.getEditorStats();t.src=`${e}?lang=${this.language}&stats-editor=${i.editor}&stats-mode=${i.mode}&stats-version=${i.version}`,document.getElementsByTagName("head")[0].appendChild(t)}static setHrefToAnchorElement(t,e){t.href=e}static setProtocolToAnchorElement(t){0===window.location.href.indexOf("https://")&&"http:"===t.protocol&&(t.protocol="https:")}static getURLFromAnchorElement(t){const e="80"===t.port||"443"===t.port||""===t.port;return`${t.protocol}//${t.hostname}${e?"":`:${t.port}`}${t.pathname.startsWith("/")?t.pathname:`/${t.pathname}`}`}getEditorStats(){const t={};return"editor"in this.environment?t.editor=this.environment.editor:t.editor="unknown","mode"in this.environment?t.mode=this.environment.mode:t.mode=O2.get("saveMode"),"version"in this.environment?t.version=this.environment.version:t.version=O2.get("version"),t}static isIOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}static isEditorLoaded(){return window.com&&window.com.wiris&&window.com.wiris.jsEditor&&window.com.wiris.jsEditor.JsEditor&&window.com.wiris.jsEditor.JsEditor.newInstance}setInitialContent(){this.isNewElement||this.setMathML(this.mathML)}setMathML(t,e){void 0===e&&(e=!1),this.editor.setMathMLWithCallback(t,(()=>{this.editorListener.setWaitingForChanges(!0)})),setTimeout((()=>{this.editorListener.setIsContentChanged(!1)}),500),e||this.onFocus()}onFocus(){void 0!==this.editor&&null!=this.editor&&this.editor.focus()}submitAction(){if(this.editor.isFormulaEmpty())this.integrationModel.updateFormula(null);else{let t=this.editor.getMathMLWithSemantics();if(null!==this.customEditors.getActiveEditor()){const{toolbar:e}=this.customEditors.getActiveEditor();t=B2.addCustomEditorClassAttribute(t,e)}else Object.keys(this.customEditors.editors).forEach((e=>{t=B2.removeCustomEditorClassAttribute(t,e)}));const e=B2.mathMLEntities(t);this.integrationModel.updateFormula(e)}this.customEditors.disable(),this.integrationModel.notifyWindowClosed(),this.setEmptyMathML(),this.customEditors.disable()}setEmptyMathML(){this.deviceProperties.isAndroid||this.deviceProperties.isIOS?this.editor.getEditorModel().isRTL()?this.setMathML('<math dir="rtl"><semantics><annotation encoding="application/json">[]</annotation></semantics></math>',!0):this.setMathML('<math><semantics><annotation encoding="application/json">[]</annotation></semantics></math>',!0):this.editor.getEditorModel().isRTL()?this.setMathML('<math dir="rtl"/>',!0):this.setMathML("<math/>",!0)}onOpen(){if(this.isNewElement?this.setEmptyMathML():this.setMathML(this.mathML),this.updateToolbar(),this.onFocus(),this.deviceProperties.isIOS){1!==document.documentElement.clientWidth/window.innerWidth&&this.setKeyboardMode()}}setKeyboardMode(){const t=document.getElementsByClassName("wrs_handOpen wrs_disablePalette")[0];t?(t.classList.remove("wrs_handOpen"),t.classList.remove("wrs_disablePalette")):setTimeout(q2.prototype.setKeyboardMode.bind(this),100)}updateToolbar(){this.updateTitle(this.modalDialogInstance);const t=this.customEditors.getActiveEditor();if(t){const e=t.toolbar?t.toolbar:_wrs_int_wirisProperties.toolbar;null!=this.toolbar&&this.toolbar===e||this.setToolbar(e)}else{const t=this.getToolbar();null!=this.toolbar&&this.toolbar===t||(this.setToolbar(t),this.customEditors.disable())}}updateTitle(){const t=this.customEditors.getActiveEditor();t?this.modalDialogInstance.setTitle(t.title):this.modalDialogInstance.setTitle("MathType")}getToolbar(){let t="general";return"toolbar"in this.editorAttributes&&({toolbar:t}=this.editorAttributes),"general"===t&&(t="undefined"==typeof _wrs_int_wirisProperties||void 0===_wrs_int_wirisProperties.toolbar?"general":_wrs_int_wirisProperties.toolbar),t}setToolbar(t){this.toolbar=t,this.editor.setParams({toolbar:this.toolbar})}hasChanges(){return!this.editor.isFormulaEmpty()&&this.editorListener.getIsContentChanged()}onKeyDown(t){if(void 0!==t.key&&!1===t.repeat)if("Escape"===t.key||"Esc"===t.key){let e=document.getElementsByClassName("wrs_expandButton wrs_expandButtonFor3RowsLayout wrs_pressed");0===e.length&&(e=document.getElementsByClassName("wrs_expandButton wrs_expandButtonFor2RowsLayout wrs_pressed"),0===e.length&&(e=document.getElementsByClassName("wrs_select wrs_pressed"),0===e.length&&(this.modalDialogInstance.cancelAction(),t.stopPropagation(),t.preventDefault())))}else if(t.shiftKey&&"Tab"===t.key)if(document.activeElement===this.modalDialogInstance.submitButton)this.editor.focus(),t.stopPropagation(),t.preventDefault();else{const e=document.querySelector('[title="Manual"]');document.activeElement===e&&(this.modalDialogInstance.cancelButton.focus(),t.stopPropagation(),t.preventDefault())}else if("Tab"===t.key)if(document.activeElement===this.modalDialogInstance.cancelButton){document.querySelector('[title="Manual"]').focus(),t.stopPropagation(),t.preventDefault()}else{"wrs_formulaDisplay wrs_focused"===document.getElementsByClassName("wrs_formulaDisplay")[0].getAttribute("class")&&(this.modalDialogInstance.submitButton.focus(),t.stopPropagation(),t.preventDefault())}}}class W2{constructor(){this.editors=[],this.activeEditor="default"}addEditor(t,e){const n={};n.name=e.name,n.toolbar=e.toolbar,n.icon=e.icon,n.confVariable=e.confVariable,n.title=e.title,n.tooltip=e.tooltip,this.editors[t]=n}enable(t){this.activeEditor=t}disable(){this.activeEditor="default"}getActiveEditor(){return"default"!==this.activeEditor?this.editors[this.activeEditor]:null}}const K2={imageCustomEditorName:"data-custom-editor",imageClassName:"Wirisformula",CASClassName:"Wiriscas"};class Z2{constructor(){this.cancelled=!1,this.defaultPrevented=!1}cancel(){this.cancelled=!0}preventDefault(){this.defaultPrevented=!0}}class Y2{constructor(t){this.overlayElement=t.overlayElement,this.callbacks=t.callbacks,this.overlayWrapper=this.overlayElement.appendChild(document.createElement("div")),this.overlayWrapper.setAttribute("class","wrs_popupmessage_overlay_envolture"),this.message=this.overlayWrapper.appendChild(document.createElement("div")),this.message.id="wrs_popupmessage",this.message.setAttribute("class","wrs_popupmessage_panel"),this.message.setAttribute("role","dialog"),this.message.setAttribute("aria-describedby","description_txt");const e=document.createElement("p"),n=document.createTextNode(t.strings.message);e.appendChild(n),e.id="description_txt",this.message.appendChild(e);const i=this.overlayWrapper.appendChild(document.createElement("div"));i.setAttribute("class","wrs_popupmessage_overlay"),i.addEventListener("click",this.cancelAction.bind(this)),this.buttonArea=this.message.appendChild(document.createElement("div")),this.buttonArea.setAttribute("class","wrs_popupmessage_button_area"),this.buttonArea.id="wrs_popup_button_area";const o={class:"wrs_button_accept",innerHTML:t.strings.submitString,id:"wrs_popup_accept_button"};this.closeButton=this.createButton(o,this.closeAction.bind(this)),this.buttonArea.appendChild(this.closeButton);const r={class:"wrs_button_cancel",innerHTML:t.strings.cancelString,id:"wrs_popup_cancel_button"};this.cancelButton=this.createButton(r,this.cancelAction.bind(this)),this.buttonArea.appendChild(this.cancelButton)}createButton(t,e){let n={};return n=document.createElement("button"),n.setAttribute("id",t.id),n.setAttribute("class",t.class),n.innerHTML=t.innerHTML,n.addEventListener("click",e),n}show(){"block"!==this.overlayWrapper.style.display?(document.activeElement.blur(),this.overlayWrapper.style.display="block",this.closeButton.focus()):this.overlayWrapper.style.display="none"}cancelAction(){this.overlayWrapper.style.display="none",void 0!==this.callbacks.cancelCallback&&(this.callbacks.cancelCallback(),r5.setActionsOnCancelButtons())}closeAction(){this.cancelAction(),void 0!==this.callbacks.closeCallback&&this.callbacks.closeCallback()}onKeyDown(t){void 0!==t.key&&("Escape"===t.key||"Esc"===t.key?(this.cancelAction(),t.stopPropagation(),t.preventDefault()):"Tab"===t.key&&(document.activeElement===this.closeButton?this.cancelButton.focus():this.closeButton.focus(),t.stopPropagation(),t.preventDefault()))}}const J2="wiris_telemetry_mathtype_web_senderid";class $2{constructor(){throw new Error("Static class StringManager can not be instantiated.")}static get senderId(){if(!this._senderId){const t=document.cookie.split(";").map((t=>t.trim().split("=")));for(const[e,n]of t)if(e===J2){this._senderId=n;break}this._senderId||(this._senderId=$2.composeUUID(),document.cookie=this.composeCookie(J2,this._senderId,31536e4))}return this._senderId}static get sessionId(){return this._sessionId||(this._sessionId=$2.composeUUID()),this._sessionId}static send(t){const e={method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json","X-Api-Key":"CK20op1pOx2LAUjPFP7kB2UPveHZRidG51UJE26m","Accept-Version":"1"},body:JSON.stringify($2.composeBody(t))};return fetch($2.endpoint,e).then((t=>t)).catch((t=>{console.warn(t)}))}static get session(){return{id:$2.sessionId,page:0}}static get sender(){return{id:$2.senderId,os:navigator.oscpu,user_agent:window.navigator.userAgent,domain:window.location.hostname,deployment:$2.deployment,editor_version:WirisPlugin.currentInstance.environment.editorVersion?WirisPlugin.currentInstance.environment.editorVersion:"",language:WirisPlugin.currentInstance.language,product_version:WirisPlugin.currentInstance.version,backend:WirisPlugin.currentInstance.serviceProviderProperties.server?WirisPlugin.currentInstance.serviceProviderProperties.server:""}}static get deployment(){const{editor:t}=WirisPlugin.currentInstance.environment;let e="";return/Generic/.test(t)?e="generic":/Froala/.test(t)?e="froala":/CKEditor/.test(t)?e="ckeditor":/TinyMCE/.test(t)&&(e="tinymce"),`mathtype-web-plugin-${e}`}static composeBody(t){return{messages:t,sender:$2.sender,session:$2.session}}static composeUUID(){return(0,pp.Z)()}static composeSenderUUID(){return this.composeUUID()}static composeCookie(t,e,n){return`${t}=${e}${null==n?"":`; max-age=${n}`}`}}$2.endpoint="https://telemetry.wiris.net",$2._senderId="",$2._sessionId="";const Q2='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg3813"\n   version="1.1">\n  <metadata\n     id="metadata3819">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs3817" />\n  <image\n     y="0"\n     x="0"\n     id="image3821"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAACXBIWXMAAC4jAAAuIwF4pT92AAAA\nnUlEQVRYw+3Z0QnCMBSF4T/FATqCG1g3cISO0NE6iiPoCE5gneD40ohPvgkJ/AcC9/EjHELgliT0\nkoGOIlasWLFixYoVK1asWLFixYoVK1bsjxy+5hlYgLEx47ofSEKSJW1nTUJJMgLPDlpwHoCpk8rO\nvgZixf4Zu3Vi3cq+WroBp4ahL+BYa3AB7o1CH7vvc7M1U4N/g2sdSk8bxjfDaMNdr+hmAQAAAABJ\nRU5ErkJggg==\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n',X2='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg32"\n   version="1.1">\n  <metadata\n     id="metadata38">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs36" />\n  <image\n     y="0"\n     x="0"\n     id="image40"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAACXBIWXMAAC4jAAAuIwF4pT92AAAA\npklEQVRYw+3ZLQ4CMRCG4bcbFOvXg99T7FG4BafAw1VALx7dWyy2mIoGgSOZJu/n6p70ZybppFIK\nvWSgo4gVK1asWLFixYoVK1asWLFixYoV+yO7r/UMHIAxiO8FZGBrsUfgDEwBN/QNXIA11S/PW1Bo\nCz4N9ein4Nd1Dyw9PbDR0iVW7J+xudax6HkOtZVdg0MfQE7N0G4GlmANYgNW4A6QepowfgDMXB26\nb1V6LAAAAABJRU5ErkJggg==\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n';class t5{constructor(t){this.attributes=t;const e=navigator.userAgent.toLowerCase(),n=e.indexOf("android")>-1,i=q2.isIOS();this.iosSoftkeyboardOpened=!1,this.iosMeasureUnit=-1===e.indexOf("crios")?"%":"vh",this.iosDivHeight=`100%${this.iosMeasureUnit}`;const o=window.outerWidth,r=window.outerHeight,s=o>r,a=o<r,c=s&&this.attributes.height>r,l=a&&this.attributes.width>o,d=c||l;this.instanceId=document.getElementsByClassName("wrs_modal_dialogContainer").length,this.deviceProperties={orientation:s?"landscape":"portait",isAndroid:n,isIOS:i,isMobile:d,isDesktop:!d&&!i&&!n},this.properties={created:!1,state:"",previousState:"",position:{bottom:0,right:10},size:{height:338,width:580}},this.websiteBeforeLockParameters=null;let u={class:"wrs_modal_overlay"};u.id=this.getElementId(u.class),this.overlay=V2.createElement("div",u),u={},u.class="wrs_modal_title_bar",u.id=this.getElementId(u.class),this.titleBar=V2.createElement("div",u),u={},u.class="wrs_modal_title",u.id=this.getElementId(u.class),this.title=V2.createElement("div",u),this.title.innerHTML="",u={},u.class="wrs_modal_close_button",u.id=this.getElementId(u.class),u.title=z2.get("close"),u.style={},this.closeDiv=V2.createElement("a",u),this.closeDiv.setAttribute("role","button");let h=`background-size: 10px; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg3783"\n   version="1.1">\n  <metadata\n     id="metadata3789">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs3787" />\n  <image\n     y="0"\n     x="0"\n     id="image3791"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAACXBIWXMAAC4jAAAuIwF4pT92AAAB\nvklEQVRYw83Z23GDMBAF0AsNhBIowSVQgjuISnAJKSEdZNOBS6CDOBUkqSC4gs2PyGhAQg92se4M\n4w8bccYW2hVumBmRdAB6ADfopQcw2SOYNoIkAL8APgB8AzgLI0/2S/iy1xkt3B9m9h0dM9/YHxM4\nJ/c4MfPkGX+y763OyYVKgUPQTXAJdC84Bg2CS6Gl4FSoF7wHmgvOhbrgzsW+8L4YJegccrEj749R\ngs7ZXGdz8wbAeNbREcDTzrHvblEgBbAUFACuy6JALJeL0E/P9sbvmBnNojcgAM+oJ58AhrlnWM5Z\nA+C9RmiokakBvIJuNTLSc7hojqY0Mo8EB6Ep2CPBm9BU7BHgKDQHqwlOguZiNcDJ0JLe4FV4iaLY\nJjF16dLqnoob+EdDs8A1QJPBtUCTwDVBo+DaoJvgNvBIR6rDl9wirbA1QIPgVgl6VwHb+dAr7Jkk\nS/Pg3mCkVOslxxV9yBFqSqTA/3N2Utkzye3pftw5OxzQ5tHeddcdzGj3o4VgClUwowgtAVOs3BpF\naA6YUnsDowhNAVNu12UUoVtgCn2+ifxp1wO42Ner4KPR5dJ2tsse2ZLvTQxbVf4AmC2z7WnSvpIA\nAAAASUVORK5CYII=\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n')})`,m=`background-size: 10px; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg2"\n   version="1.1">\n  <metadata\n     id="metadata8">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs6" />\n  <image\n     y="0"\n     x="0"\n     id="image10"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAACXBIWXMAAC4jAAAuIwF4pT92AAAB\n2ElEQVRYw9XZoXPCMBTH8S+5KfDzQ29606CH3/SmQTO96aGHHn/F0Himh8eDZSblQknSJH2F0DtE\nQw8+12vyfulr7XY7LuW4qvj+DugD18AC+AE2woa+/mz07y9cF7Y8d7YPDEtjK2AsCB4BvdLYHPi0\nXawioAA3wAfQaQiKHhuFYl1QSbAL6gWrSKgEuArqBKsEaB1wKNQKVsasHybcpRhwLNQED0zsoMbz\nFwJOhWL6Cmzd2e0D14Wi1/k9di2wFNnAEtBifd9jv4GtIPgaeBOCAkzLFayr/6idWSSY6DJ8sHT9\n6VK6zRFqKwo5gQ+grnKbA/gI6gsy5wRboT7sucBOaBX21GAvNAR7KnAlNBTbNDgIGoMtwO/C0Gko\nNBZbN525tk+dJrAj4F4YGxXgVQS019DkCgarM0OjwCoDaDBYZQINAquMoJVglRnUC1YZQp1g1RB0\nJryn65jYJ0HoRGPHguDX8hsZ6VAiGX4eUrJBbHqSArdN7LLBmCcBnpvYWfHWo6E8Wge8Ar7Kj8E4\nARwcnBPBB20BE7uJBMdAU8BH/YvyBAsFp0BjwNZGi201qALXgYaAnR0hX2upAzwDj/p8raFL5I4u\n8ALc6vNfvc+ztq5al9Rh/AfwZZ/LmlMllAAAAABJRU5ErkJggg==\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n')})`;this.closeDiv.setAttribute("style",h),this.closeDiv.setAttribute("onmouseover",`this.style = "${m}";`),this.closeDiv.setAttribute("onmouseout",`this.style = "${h}";`),u={},u.class="wrs_modal_stack_button",u.id=this.getElementId(u.class),u.title=z2.get("exit_fullscreen"),this.stackDiv=V2.createElement("a",u),this.stackDiv.setAttribute("role","button"),h=`background-size: 10px; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg3823"\n   version="1.1">\n  <metadata\n     id="metadata3829">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs3827" />\n  <image\n     y="0"\n     x="0"\n     id="image3831"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\njwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAAHOSURBVFhH1ZiLUcMwEEQNDcQl0AEuISVABZhO\nUkroICVAB6ECoINQgdmVfR5FlmQrkZzjzezEzsc8NPqcdNd1XfVfuB9ec3NAmv4yiRo5ImzBlm+c\nwZYtEHJCGsT3eSgHxKZFxs/tL+aMkCK8R3yMwu4PcsVmiXBIVDDCvh/miEtMeE5UaEsNMJcN8o64\ng26PvPSXs9S+/zRHQtgtvLRFCb9blZpnYw/9Rb6RR3M3zxtiprFbyKYwipK1+uwlnIkSrbITUaJR\n1itKtMkGRYk2WRZAQbTNBpzWtggrrwnaWja00hk0DrCgsEZZ4hXWKksmwjLAHobkgOv+V3+ZhXHQ\niWxKqXYLKNyILDdqbPKlldASPhA+Mxc7uwatkSOSix1iP//q2APshLBvfJo7hbizgQj/mDtl+KYu\nCj8h7NSqCM2zXJvZwqqEY4uCOuGYLKEwJ3kVzMlyscg5915FTFbdqhaSVbn8+mTV1gmurOqCxpZN\nEeUu9BlZd1obioTkQ7IhPGTjYZuPIoUMK/GUFrX39asuHJTlH3w1d3FCBxCrCUufZX+NCUdPSsAq\nwu4A8wnPiQrFhW1Z4govFRWKCoeOjzjoZF92CdwpZy6AquoPvJRHJxB8bJ8AAAAASUVORK5CYII=\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n')})`,m=`background-size: 10px; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg42"\n   version="1.1">\n  <metadata\n     id="metadata48">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs46" />\n  <image\n     y="0"\n     x="0"\n     id="image50"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\njwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAAG/SURBVFhH1ZgxUsMwEEUNJRyAGmp6qKGn5xRQ\nQ08NNfRQQw11DpAaanIAWrMv8WaELSlexhLLm/mRnImiF48jr7zVtm3zX9ju2ik5llxLdpdHNg4k\nT5I7yWB8Cdl9yZHkRmIRRpQxOxK+YzC+hKwSnTBBKKoMxpeUBSbkksgRE1V+CJeWhUPJ5ao7ICeq\nrIVryMKJpC88RlTZk1SThVDYIvoluZIsSqyz511SfEg4UxbRdw5qnlmFa9AsCn8hO4aBKHiUjYqC\nN9mkKHiSzYqCJ9lPSVIUPMmySqTudEu8XbOxO90ab7KQFPYoC1Fhr7IwENbagMLCUtXnoCTM1QZW\n3iS3dFT2mRfHvEjuVfZUckFnQh67dgqo1GYqC1MLn3XtZIR/sFcJW2C39FcD18KxpcutcGqddSmc\nuykg/LDq+iAnC/OudUFOVrfLbkjJWvb11YjJuhSFvqxbUQhlXYuCylpE2YXy2SkLlVEgaxVluzyT\nIEutWQ1kKZYtouF2maK4mjCyFN6bJsw9gKgmrNdsbsKNT0qEKsIqC7EJx4gqxYVDWQgntIgqRYXD\nbY3CLpcVgmdPC974BYy3/MgRNM03hR9ubFTHT48AAAAASUVORK5CYII=\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n')})`,this.stackDiv.setAttribute("style",h),this.stackDiv.setAttribute("onmouseover",`this.style = "${m}";`),this.stackDiv.setAttribute("onmouseout",`this.style = "${h}";`),u={},u.class="wrs_modal_maximize_button",u.id=this.getElementId(u.class),u.title=z2.get("fullscreen"),this.maximizeDiv=V2.createElement("a",u),this.maximizeDiv.setAttribute("role","button"),h=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg3793"\n   version="1.1">\n  <metadata\n     id="metadata3799">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs3797" />\n  <image\n     y="0"\n     x="0"\n     id="image3801"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\njwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAAG4SURBVFhHvZnhUYNAEEbRBkwH2oGUkA40FWgJ\nKSEdaAmxA0vQDmIHKSFWgPuAHZkEAnd8y5v5kuNHMm+WY1mSm6qqCiGlZdUspXzxopY9Wu6bpZQf\nSxlRWapwVx9p2dy2CxUHy9ryWx9pKdWyECYcIQshwlGyIBeOlAWpcLQsyISXkAWEX5tlPkvJwnP7\nns1SsnvLS7PMZwlZiShEy8pEIVJWKgpRsnJRiJBNFf2wbCzjfZgRUZi9JYWDxT9bWk6WIXbKym4t\nKRVloObO5oze6ZClWX9a5jyOcOrfmuUkXPRUH/1zVRhZpvsnCxN+jnDqHh0SdQaFu9vg0ZIqrBZ1\neoXP92yKcJSocyHcd4FNEY4WdbrCR1rGrukMF9BWVhZvLZ7U9rS2nH9HVvoq63iFu+RUlOpIuCYL\nCCPIqVjq1A9j5R3aBnMY2kKzMlbZHPQVbVHLhomCUjZUFFSy35ZQUVDIMo+Gi4JCltFwERSy75Y5\n4+VkFLLcKHLHyyRUF1jOeJmMShbChZWy0Df8yFDLgg8/cpCN6I9cdHJhZHmy7X2anAnCtDUZ/j/Y\ng2X2j709MHhTDAFF8QdK9SRpUl2yFgAAAABJRU5ErkJggg==\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n')})`,m=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.76 13.76"\n   height="13.76"\n   width="13.76"\n   id="svg12"\n   version="1.1">\n  <metadata\n     id="metadata18">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs16" />\n  <image\n     y="0"\n     x="0"\n     id="image20"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\njwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAAGMSURBVFhHvdk7TsNAFIVhQ0l6elLDJqCGngXQ\nU7MA6rALahZATQ81C6APrXP/jEaKHD/i8TnzS1eaICF/2I4f4qxt20bYOmaVlrK2Mb8s1Nj3mIu0\nlPYZszlPa1kvMf9pKe02Zq3Gcrhc4JUaSzawA0sWsAtLcrATS1KwG0sycA0sAd6kZXm1sNzVHtOy\nvBpYoK8xV/tPC3JjZVByYqVQcmHlUHJgLVBSY0ugPP7xO5PXYSW2FMr19ytm8sahxD7ElEBzk3c6\nsFysn/afymKPvsXMueh3oblRMNibmPuYZ34wsyWHfqhB8OFpwKvDHLADmusFd8/ZU8FOaO4I3PcF\nmwLXgOYOwVtexdnwdUy3vg2UQPnD2eji+vZsrruHS/eoBEpjWMpgrhi1Dv1gY6fBkuRQmtqzJVmg\npMbaoKTEWqGkwtqhpMBWgZICWwVKCuwpzxKSFNi5T2vFqb5gVcAqLNnBSixZwWos2cBg/9JSmgUM\n9iMt5QFe8tZ8VP6n3WXMHQtxPzHfabm0ptkBwWhpthzMp7YAAAAASUVORK5CYII=\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.76" />\n</svg>\n')})`,this.maximizeDiv.setAttribute("style",h),this.maximizeDiv.setAttribute("onmouseover",`this.style = "${m}";`),this.maximizeDiv.setAttribute("onmouseout",`this.style = "${h}";`),u={},u.class="wrs_modal_minimize_button",u.id=this.getElementId(u.class),u.title=z2.get("minimize"),this.minimizeDiv=V2.createElement("a",u),this.minimizeDiv.setAttribute("role","button"),h=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa(Q2)})`,m=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa(X2)})`,this.minimizeDiv.setAttribute("style",h),this.minimizeDiv.setAttribute("onmouseover",`this.style = "${m}";`),this.minimizeDiv.setAttribute("onmouseout",`this.style = "${h}";`),u={},u.class="wrs_modal_dialogContainer",u.id=this.getElementId(u.class),u.role="dialog",this.container=V2.createElement("div",u),this.container.setAttribute("aria-labeledby","wrs_modal_title[0]"),u={},u.class="wrs_modal_wrapper",u.id=this.getElementId(u.class),this.wrapper=V2.createElement("div",u),u={},u.class="wrs_content_container",u.id=this.getElementId(u.class),this.contentContainer=V2.createElement("div",u),u={},u.class="wrs_modal_controls",u.id=this.getElementId(u.class),this.controls=V2.createElement("div",u),u={},u.class="wrs_modal_buttons_container",u.id=this.getElementId(u.class),this.buttonContainer=V2.createElement("div",u),this.submitButton=this.createSubmitButton({id:this.getElementId("wrs_modal_button_accept"),class:"wrs_modal_button_accept",innerHTML:z2.get("accept")},this.submitAction.bind(this)),this.cancelButton=this.createSubmitButton({id:this.getElementId("wrs_modal_button_cancel"),class:"wrs_modal_button_cancel",innerHTML:z2.get("cancel")},this.cancelAction.bind(this)),this.contentManager=null;const g={cancelString:z2.get("cancel"),submitString:z2.get("close"),message:z2.get("close_modal_warning")},p={closeCallback:()=>{this.close()},cancelCallback:()=>{this.focus()}},f={overlayElement:this.container,callbacks:p,strings:g};this.popup=new Y2(f),this.rtl=!1,"rtl"in this.attributes&&(this.rtl=this.attributes.rtl),this.handleOpenedIosSoftkeyboard=this.handleOpenedIosSoftkeyboard.bind(this),this.handleClosedIosSoftkeyboard=this.handleClosedIosSoftkeyboard.bind(this)}setContentManager(t){this.contentManager=t}getContentManager(){return this.contentManager}submitAction(){void 0!==this.contentManager.submitAction&&this.contentManager.submitAction(),this.close()}cancelAction(){void 0===this.contentManager.hasChanges?(r5.setActionsOnCancelButtons(),this.close()):this.contentManager.hasChanges()?this.showPopUpMessage():(r5.setActionsOnCancelButtons(),this.close())}createSubmitButton(t,e){return new class{constructor(){this.element=document.createElement("button"),this.element.id=t.id,this.element.className=t.class,this.element.innerHTML=t.innerHTML,V2.addEvent(this.element,"click",e)}getElement(){return this.element}}(t,e).getElement()}create(){this.titleBar.appendChild(this.closeDiv),this.titleBar.appendChild(this.stackDiv),this.titleBar.appendChild(this.maximizeDiv),this.titleBar.appendChild(this.minimizeDiv),this.titleBar.appendChild(this.title),this.deviceProperties.isDesktop&&this.container.appendChild(this.titleBar),this.wrapper.appendChild(this.contentContainer),this.wrapper.appendChild(this.controls),this.controls.appendChild(this.buttonContainer),this.buttonContainer.appendChild(this.submitButton),this.buttonContainer.appendChild(this.cancelButton),this.container.appendChild(this.wrapper),this.recalculateScrollBar(),document.body.appendChild(this.container),document.body.appendChild(this.overlay),this.deviceProperties.isDesktop?(this.createModalWindowDesktop(),this.createResizeButtons(),this.addListeners(),O2.get("modalWindowFullScreen")&&this.maximize()):this.deviceProperties.isAndroid?this.createModalWindowAndroid():this.deviceProperties.isIOS&&this.createModalWindowIos(),null!=this.contentManager&&this.contentManager.insert(this),this.properties.open=!0,this.properties.created=!0,this.isRTL()&&(this.container.style.right=window.innerWidth-this.scrollbarWidth-this.container.offsetWidth+"px",this.container.className+=" wrs_modal_rtl")}createResizeButtons(){this.resizerBR=document.createElement("div"),this.resizerBR.className="wrs_bottom_right_resizer",this.resizerBR.innerHTML="◢",this.resizerTL=document.createElement("div"),this.resizerTL.className="wrs_bottom_left_resizer",this.container.appendChild(this.resizerBR),this.titleBar.appendChild(this.resizerTL),V2.addEvent(this.resizerBR,"mousedown",this.activateResizeStateBR.bind(this)),V2.addEvent(this.resizerTL,"mousedown",this.activateResizeStateTL.bind(this))}activateResizeStateBR(t){this.initializeResizeProperties(t,!1)}activateResizeStateTL(t){this.initializeResizeProperties(t,!0)}initializeResizeProperties(t,e){V2.addClass(document.body,"wrs_noselect"),V2.addClass(this.overlay,"wrs_overlay_active"),this.resizeDataObject={x:this.eventClient(t).X,y:this.eventClient(t).Y},this.initialWidth=parseInt(this.container.style.width,10),this.initialHeight=parseInt(this.container.style.height,10),e?this.leftScale=!0:(this.initialRight=parseInt(this.container.style.right,10),this.initialBottom=parseInt(this.container.style.bottom,10)),this.initialRight||(this.initialRight=0),this.initialBottom||(this.initialBottom=0),document.body.style["user-select"]="none"}open(){try{$2.send([{timestamp:(new Date).toJSON(),topic:"0",level:"info",message:"HELO telemetry.wiris.net"}]).then((t=>{}))}catch(t){}this.removeClass("wrs_closed");const{isIOS:t}=this.deviceProperties,{isAndroid:e}=this.deviceProperties,{isMobile:n}=this.deviceProperties;if((t||e||n)&&(this.restoreWebsiteScale(),this.lockWebsiteScroll(),setTimeout((()=>{this.hideKeyboard()}),400)),this.properties.created?(this.properties.open||(this.properties.open=!0,this.deviceProperties.isAndroid||this.deviceProperties.isIOS||this.restoreState()),this.deviceProperties.isDesktop&&O2.get("modalWindowFullScreen")&&this.maximize(),this.deviceProperties.isIOS&&(this.iosSoftkeyboardOpened=!1,this.setContainerHeight(`${100+this.iosMeasureUnit}`))):this.create(),q2.isEditorLoaded())this.contentManager.onOpen(this);else{const t=P2.newListener("onLoad",(()=>{this.contentManager.onOpen(this)}));this.contentManager.addListener(t)}}close(){this.removeClass("wrs_maximized"),this.removeClass("wrs_minimized"),this.removeClass("wrs_stack"),this.addClass("wrs_closed"),this.saveModalProperties(),this.unlockWebsiteScroll(),this.properties.open=!1}restoreWebsiteScale(){let t=document.querySelector("meta[name=viewport]");const e=["initial-scale=","minimum-scale=","maximum-scale="],n=["1.0","1.0","1.0"],i=(t,e)=>{const i=t.getAttribute("content");if(i){const o=i.split(",");let r="";const s=[];for(let t=0;t<o.length;t+=1){let n=!1,i=0;for(;!n&&i<e.length;)o[t].indexOf(e[i])&&(n=!0),i+=1;n||s.push(o[t])}for(let t=0;t<e.length;t+=1){const i=e[t]+n[t];r+=0===t?i:`,${i}`}for(let t=0;t<s.length;t+=1)r+=`,${s[t]}`;t.setAttribute("content",r),t.setAttribute("content",""),t.setAttribute("content",i)}else t.setAttribute("content","initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"),t.removeAttribute("content")};t?i(t,e):(t=document.createElement("meta"),document.getElementsByTagName("head")[0].appendChild(t),i(t,e),t.remove())}lockWebsiteScroll(){this.websiteBeforeLockParameters={bodyStylePosition:document.body.style.position?document.body.style.position:"",bodyStyleOverflow:document.body.style.overflow?document.body.style.overflow:"",htmlStyleOverflow:document.documentElement.style.overflow?document.documentElement.style.overflow:"",windowScrollX:window.scrollX,windowScrollY:window.scrollY}}unlockWebsiteScroll(){if(this.websiteBeforeLockParameters){document.body.style.position=this.websiteBeforeLockParameters.bodyStylePosition,document.body.style.overflow=this.websiteBeforeLockParameters.bodyStyleOverflow,document.documentElement.style.overflow=this.websiteBeforeLockParameters.htmlStyleOverflow;const{windowScrollX:t}=this.websiteBeforeLockParameters,{windowScrollY:e}=this.websiteBeforeLockParameters;window.scrollTo(t,e),this.websiteBeforeLockParameters=null}}isIE11(){return navigator.userAgent.search("Msie/")>=0||navigator.userAgent.search("Trident/")>=0||navigator.userAgent.search("Edge/")>=0}isRTL(){return"ar"===this.attributes.language||"he"===this.attributes.language||this.rtl}addClass(t){V2.addClass(this.overlay,t),V2.addClass(this.titleBar,t),V2.addClass(this.overlay,t),V2.addClass(this.container,t),V2.addClass(this.contentContainer,t),V2.addClass(this.stackDiv,t),V2.addClass(this.minimizeDiv,t),V2.addClass(this.maximizeDiv,t),V2.addClass(this.wrapper,t)}removeClass(t){V2.removeClass(this.overlay,t),V2.removeClass(this.titleBar,t),V2.removeClass(this.overlay,t),V2.removeClass(this.container,t),V2.removeClass(this.contentContainer,t),V2.removeClass(this.stackDiv,t),V2.removeClass(this.minimizeDiv,t),V2.removeClass(this.maximizeDiv,t),V2.removeClass(this.wrapper,t)}createModalWindowDesktop(){this.addClass("wrs_modal_desktop"),this.stack()}createModalWindowAndroid(){this.addClass("wrs_modal_android"),window.addEventListener("resize",this.orientationChangeAndroidSoftkeyboard.bind(this))}createModalWindowIos(){this.addClass("wrs_modal_ios"),window.addEventListener("resize",this.orientationChangeIosSoftkeyboard.bind(this))}restoreState(){"maximized"===this.properties.state?this.maximize():"minimized"===this.properties.state?(this.properties.state=this.properties.previousState,this.properties.previousState="",this.minimize()):this.stack()}stack(){this.properties.previousState=this.properties.state,this.properties.state="stack",this.removeClass("wrs_maximized"),this.minimizeDiv.title=z2.get("minimize"),this.removeClass("wrs_minimized"),this.addClass("wrs_stack");const t=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa(Q2)})`,e=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa(X2)})`;this.minimizeDiv.setAttribute("style",t),this.minimizeDiv.setAttribute("onmouseover",`this.style = "${e}";`),this.minimizeDiv.setAttribute("onmouseout",`this.style = "${t}";`),this.restoreModalProperties(),void 0!==this.resizerBR&&void 0!==this.resizerTL&&this.setResizeButtonsVisibility(),this.recalculateScrollBar(),this.recalculatePosition(),this.recalculateScale(),this.focus()}minimize(){if(this.saveModalProperties(),this.title.style.cursor="pointer","minimized"===this.properties.state&&"stack"===this.properties.previousState)this.stack();else if("minimized"===this.properties.state&&"maximized"===this.properties.previousState)this.maximize();else{this.container.style.height="30px",this.container.style.width="250px",this.container.style.bottom="0px",this.container.style.right="10px",this.removeListeners(),this.properties.previousState=this.properties.state,this.properties.state="minimized",this.setResizeButtonsVisibility(),this.minimizeDiv.title=z2.get("maximize"),V2.containsClass(this.overlay,"wrs_stack")?this.removeClass("wrs_stack"):this.removeClass("wrs_maximized"),this.addClass("wrs_minimized");const t=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.44 13.76"\n   height="13.76"\n   width="13.44"\n   id="svg3803"\n   version="1.1">\n  <metadata\n     id="metadata3809">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs3807" />\n  <image\n     y="0"\n     x="0"\n     id="image3811"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAArCAYAAAAOnxr+AAAACXBIWXMAAC4jAAAuIwF4pT92AAAA\nvElEQVRYw+3ZSw0CMRSF4b8T9iAFB4wDkDAWcICEkTA4GAeAA3AADurgsCkbAgsSMrmFczZNd1/a\n3vSVJFFDGipJNdBZaRdAB2wC2TIwAgNAkrQEjsA86GBegDZJGoF18JnfJtVR9idXvaGGGmrod/b6\nV9kD14k9LbD6FDqUM8CU2b2Deo0aaqihhhpqqKGGGhr1hH/wiP469FaBMzflEhc9PZKQ1CtmsqRO\nEunpHbeNNN3A+dFJ/mf6V+gduGPIoUgKLbAAAAAASUVORK5CYII=\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.44" />\n</svg>\n')})`,e=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n   xmlns:dc="http://purl.org/dc/elements/1.1/"\n   xmlns:cc="http://creativecommons.org/ns#"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n   xmlns:svg="http://www.w3.org/2000/svg"\n   xmlns="http://www.w3.org/2000/svg"\n   xmlns:xlink="http://www.w3.org/1999/xlink"\n   viewBox="0 0 13.44 13.76"\n   height="13.76"\n   width="13.44"\n   id="svg22"\n   version="1.1">\n  <metadata\n     id="metadata28">\n    <rdf:RDF>\n      <cc:Work\n         rdf:about="">\n        <dc:format>image/svg+xml</dc:format>\n        <dc:type\n           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\n        <dc:title></dc:title>\n      </cc:Work>\n    </rdf:RDF>\n  </metadata>\n  <defs\n     id="defs26" />\n  <image\n     y="0"\n     x="0"\n     id="image30"\n     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAArCAYAAAAOnxr+AAAACXBIWXMAAC4jAAAuIwF4pT92AAAA\nvUlEQVRYw+3ZsQ3CMBCF4d8WFekZgBqWIDUDZACmYBQWYIn0pGYAegZIexROERHRIBTdhXeVy08+\nyT4/JzMjQmWCVBjoarSugK0z3/0degKODjeyBy5Am8ysARrnnT8nM7sCa+fQLgdAAlQ6ngQVVFBB\nfzeUTK6t8VAwU328ztV6QQUVVFBBBRVUUEG9Ds41sJvZs/8GelDrlw7tAjhvmZLo9o6RD4bEGUp+\nX1My/I0T4HN4rrcASf9M/wp9ASNzIKYYz2hAAAAAAElFTkSuQmCC\n"\n     style="image-rendering:optimizeQuality"\n     preserveAspectRatio="none"\n     height="13.76"\n     width="13.44" />\n</svg>\n')})`;this.minimizeDiv.setAttribute("style",t),this.minimizeDiv.setAttribute("onmouseover",`this.style = "${e}";`),this.minimizeDiv.setAttribute("onmouseout",`this.style = "${t}";`)}}maximize(){this.saveModalProperties(),"maximized"!==this.properties.state&&(this.properties.previousState=this.properties.state,this.properties.state="maximized"),this.setResizeButtonsVisibility(),V2.containsClass(this.overlay,"wrs_minimized")?(this.minimizeDiv.title=z2.get("minimize"),this.removeClass("wrs_minimized")):V2.containsClass(this.overlay,"wrs_stack")&&(this.container.style.left=null,this.container.style.top=null,this.removeClass("wrs_stack")),this.addClass("wrs_maximized");const t=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa(Q2)})`,e=`background-size: 10px; background-repeat: no-repeat; background-image: url(data:image/svg+xml;base64,${window.btoa(X2)})`;this.minimizeDiv.setAttribute("style",t),this.minimizeDiv.setAttribute("onmouseover",`this.style = "${e}";`),this.minimizeDiv.setAttribute("onmouseout",`this.style = "${t}";`),this.setSize(parseInt(.8*window.innerHeight,10),parseInt(.8*window.innerWidth,10)),this.container.clientHeight>700&&(this.container.style.height="700px"),this.container.clientWidth>1200&&(this.container.style.width="1200px");const{innerHeight:n}=window,{innerWidth:i}=window,{offsetHeight:o}=this.container,{offsetWidth:r}=this.container,s=n/2-o/2,a=i/2-r/2;this.setPosition(s,a),this.recalculateScale(),this.recalculatePosition(),this.recalculateSize(),this.focus()}reExpand(){"minimized"===this.properties.state&&("maximized"===this.properties.previousState?this.maximize():this.stack(),this.title.style.cursor="")}setSize(t,e){this.container.style.height=`${t}px`,this.container.style.width=`${e}px`,this.recalculateSize()}setPosition(t,e){this.container.style.bottom=`${t}px`,this.container.style.right=`${e}px`}saveModalProperties(){"stack"===this.properties.state&&(this.properties.position.bottom=parseInt(this.container.style.bottom,10),this.properties.position.right=parseInt(this.container.style.right,10),this.properties.size.width=parseInt(this.container.style.width,10),this.properties.size.height=parseInt(this.container.style.height,10))}restoreModalProperties(){"stack"===this.properties.state&&(this.setPosition(this.properties.position.bottom,this.properties.position.right),this.setSize(this.properties.size.height,this.properties.size.width))}recalculateSize(){this.wrapper.style.width=this.container.clientWidth-12+"px",this.wrapper.style.height=this.container.clientHeight-38+"px",this.contentContainer.style.height=`${parseInt(this.wrapper.offsetHeight-50,10)}px`}setResizeButtonsVisibility(){"stack"===this.properties.state?(this.resizerTL.style.visibility="visible",this.resizerBR.style.visibility="visible"):(this.resizerTL.style.visibility="hidden",this.resizerBR.style.visibility="hidden")}addListeners(){this.maximizeDiv.addEventListener("click",this.maximize.bind(this),!0),this.stackDiv.addEventListener("click",this.stack.bind(this),!0),this.minimizeDiv.addEventListener("click",this.minimize.bind(this),!0),this.closeDiv.addEventListener("click",this.cancelAction.bind(this)),this.title.addEventListener("click",this.reExpand.bind(this)),this.overlay.addEventListener("click",this.cancelAction.bind(this)),V2.addEvent(window,"mousedown",this.startDrag.bind(this)),V2.addEvent(window,"mouseup",this.stopDrag.bind(this)),V2.addEvent(window,"mousemove",this.drag.bind(this)),V2.addEvent(window,"resize",this.onWindowResize.bind(this)),V2.addEvent(this.container,"keydown",this.onKeyDown.bind(this))}removeListeners(){V2.removeEvent(window,"mousedown",this.startDrag),V2.removeEvent(window,"mouseup",this.stopDrag),V2.removeEvent(window,"mousemove",this.drag),V2.removeEvent(window,"resize",this.onWindowResize),V2.removeEvent(this.container,"keydown",this.onKeyDown)}eventClient(t){if(void 0===t.clientX&&t.changedTouches){return{X:t.changedTouches[0].clientX,Y:t.changedTouches[0].clientY}}return{X:t.clientX,Y:t.clientY}}startDrag(t){"minimized"!==this.properties.state&&t.target===this.title&&(void 0!==this.dragDataObject&&null!==this.dragDataObject||(this.dragDataObject={x:this.eventClient(t).X,y:this.eventClient(t).Y},this.lastDrag={x:"0px",y:"0px"},""===this.container.style.right&&(this.container.style.right="0px"),""===this.container.style.bottom&&(this.container.style.bottom="0px"),this.isIE11(),V2.addClass(document.body,"wrs_noselect"),V2.addClass(this.overlay,"wrs_overlay_active"),this.limitWindow=this.getLimitWindow()))}drag(t){if(this.dragDataObject){t.preventDefault();let e=Math.min(this.eventClient(t).Y,this.limitWindow.minPointer.y);e=Math.max(this.limitWindow.maxPointer.y,e);let n=Math.min(this.eventClient(t).X,this.limitWindow.minPointer.x);n=Math.max(this.limitWindow.maxPointer.x,n);const i=n-this.dragDataObject.x+"px",o=e-this.dragDataObject.y+"px";this.lastDrag={x:i,y:o},this.container.style.transform=`translate3d(${i},${o},0)`}if(this.resizeDataObject){const{innerWidth:e}=window,{innerHeight:n}=window;let i,o=Math.min(this.eventClient(t).X,e-this.scrollbarWidth-7),r=Math.min(this.eventClient(t).Y,n-7);o<0&&(o=0),r<0&&(r=0),i=this.leftScale?-1:1,this.container.style.width=`${this.initialWidth+i*(o-this.resizeDataObject.x)}px`,this.container.style.height=`${this.initialHeight+i*(r-this.resizeDataObject.y)}px`,this.leftScale||(this.resizeDataObject.x-o-this.initialWidth<-580?this.container.style.right=this.initialRight-(o-this.resizeDataObject.x)+"px":(this.container.style.right=this.initialRight+this.initialWidth-580+"px",this.container.style.width="580px"),this.resizeDataObject.y-r<this.initialHeight-338?this.container.style.bottom=this.initialBottom-(r-this.resizeDataObject.y)+"px":(this.container.style.bottom=this.initialBottom+this.initialHeight-338+"px",this.container.style.height="338px")),this.recalculateScale(),this.recalculatePosition()}}getLimitWindow(){const t=window.innerWidth,e=window.innerHeight,{offsetHeight:n}=this.container,i=parseInt(this.container.style.bottom,10),o=parseInt(this.container.style.right,10),{pageXOffset:r}=window,s=this.dragDataObject.y,a=this.dragDataObject.x,c=n+i-(e-(s-r)),l=t-this.scrollbarWidth-(a-r)-o,d=e-this.container.offsetHeight+c,u=this.title.offsetHeight-(this.title.offsetHeight-c);return{minPointer:{x:t-l-this.scrollbarWidth,y:d},maxPointer:{x:this.container.offsetWidth-l,y:u}}}getScrollBarWidth(){const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);const n=t.offsetWidth;e.style.overflow="scroll";let i=t.offsetWidth;return n===i&&(i=e.clientWidth),document.body.removeChild(e),n-i}stopDrag(){(this.dragDataObject||this.resizeDataObject)&&(this.container.style.transform="",this.dragDataObject&&(this.container.style.right=parseInt(this.container.style.right,10)-parseInt(this.lastDrag.x,10)+"px",this.container.style.bottom=parseInt(this.container.style.bottom,10)-parseInt(this.lastDrag.y,10)+"px"),this.focus(),document.body.style["user-select"]="",this.isIE11(),V2.removeClass(document.body,"wrs_noselect"),V2.removeClass(this.overlay,"wrs_overlay_active")),this.dragDataObject=null,this.resizeDataObject=null,this.initialWidth=null,this.leftScale=null}onWindowResize(){this.recalculateScrollBar(),this.recalculatePosition(),this.recalculateScale()}onKeyDown(t){void 0!==t.key&&("block"!==this.popup.overlayWrapper.style.display?"Escape"===t.key||"Esc"===t.key?this.properties.open&&this.contentManager.onKeyDown(t):t.shiftKey&&"Tab"===t.key?document.activeElement===this.cancelButton?(this.submitButton.focus(),t.stopPropagation(),t.preventDefault()):this.contentManager.onKeyDown(t):"Tab"===t.key&&(document.activeElement===this.submitButton?(this.cancelButton.focus(),t.stopPropagation(),t.preventDefault()):this.contentManager.onKeyDown(t)):this.popup.onKeyDown(t))}recalculatePosition(){this.container.style.right=`${Math.min(parseInt(this.container.style.right,10),window.innerWidth-this.scrollbarWidth-this.container.offsetWidth)}px`,parseInt(this.container.style.right,10)<0&&(this.container.style.right="0px"),this.container.style.bottom=`${Math.min(parseInt(this.container.style.bottom,10),window.innerHeight-this.container.offsetHeight)}px`,parseInt(this.container.style.bottom,10)<0&&(this.container.style.bottom="0px")}recalculateScale(){let t=!1;parseInt(this.container.style.width,10)>580?(this.container.style.width=`${Math.min(parseInt(this.container.style.width,10),window.innerWidth-this.scrollbarWidth)}px`,t=!0):(this.container.style.width="580px",t=!0),parseInt(this.container.style.height,10)>338?(this.container.style.height=`${Math.min(parseInt(this.container.style.height,10),window.innerHeight)}px`,t=!0):(this.container.style.height="338px",t=!0),t&&this.recalculateSize()}recalculateScrollBar(){this.hasScrollBar=window.innerWidth>document.documentElement.clientWidth,this.hasScrollBar?this.scrollbarWidth=this.getScrollBarWidth():this.scrollbarWidth=0}hideKeyboard(){const t=document.createElement("input");this.container.appendChild(t),t.focus(),t.blur(),t.remove()}focus(){null!=this.contentManager&&void 0!==this.contentManager.onFocus&&this.contentManager.onFocus()}portraitMode(){return window.innerHeight>window.innerWidth}handleOpenedIosSoftkeyboard(){this.iosSoftkeyboardOpened||null==this.iosDivHeight||this.iosDivHeight!==`100${this.iosMeasureUnit}`||(this.portraitMode()?this.setContainerHeight(`63${this.iosMeasureUnit}`):this.setContainerHeight(`40${this.iosMeasureUnit}`)),this.iosSoftkeyboardOpened=!0}handleClosedIosSoftkeyboard(){this.iosSoftkeyboardOpened=!1,this.setContainerHeight(`100${this.iosMeasureUnit}`)}orientationChangeIosSoftkeyboard(){this.iosSoftkeyboardOpened?this.portraitMode()?this.setContainerHeight(`63${this.iosMeasureUnit}`):this.setContainerHeight(`40${this.iosMeasureUnit}`):this.setContainerHeight(`100${this.iosMeasureUnit}`)}orientationChangeAndroidSoftkeyboard(){this.setContainerHeight("100%")}setContainerHeight(t){this.iosDivHeight=t,this.wrapper.style.height=t}showPopUpMessage(){"minimized"===this.properties.state&&this.stack(),this.popup.show()}setTitle(t){this.title.innerHTML=t}getElementId(t){return`${t}[${this.instanceId}]`}}var e5;
        /*! http://mths.be/codepointat v0.1.0 by @mathias */
        String.prototype.codePointAt||(e5=function(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=t?Number(t):0;if(i!=i&&(i=0),!(i<0||i>=n)){var o,r=e.charCodeAt(i);return r>=55296&&r<=56319&&n>i+1&&(o=e.charCodeAt(i+1))>=56320&&o<=57343?1024*(r-55296)+o-56320+65536:r}},Object.defineProperty?Object.defineProperty(String.prototype,"codePointAt",{value:e5,configurable:!0,writable:!0}):String.prototype.codePointAt=e5),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},writable:!0,configurable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" s null or is not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;var o=0|e,r=Math.max(o>=0?o:i-Math.abs(o),0);function s(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}for(;r<i;){if(s(n[r],t))return!0;r++}return!1}}),String.prototype.includes||(String.prototype.includes=function(t,e){if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===e&&(e=0),-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){var n=e>0?0|e:0;return this.substring(n,n+t.length)===t}});var n5=__webpack_require__(7546),i5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(n5.Z,i5);n5.Z.locals;class o5{constructor(t){this.language="en",this.editMode="images",this.modalDialog=null,this.customEditors=new W2;if(this.customEditors.addEditor("chemistry",{name:"Chemistry",toolbar:"chemistry",icon:"chem.png",confVariable:"chemEnabled",title:"ChemType",tooltip:"Insert a chemistry formula - ChemType"}),this.environment={},this.editionProperties={},this.editionProperties.isNewElement=!0,this.editionProperties.temporalImage=null,this.editionProperties.latexRange=null,this.editionProperties.range=null,this.integrationModel=null,this.contentManager=null,this.browser=(()=>{const t=navigator.userAgent;let e="none";return t.search("Edge/")>=0?e="EDGE":t.search("Chrome/")>=0?e="CHROME":t.search("Trident/")>=0?e="IE":t.search("Firefox/")>=0?e="FIREFOX":t.search("Safari/")>=0&&(e="SAFARI"),e})(),this.listeners=new P2,this.serviceProviderProperties={},!("serviceProviderProperties"in t))throw new Error("serviceProviderProperties property missing.");this.serviceProviderProperties=t.serviceProviderProperties}static get globalListeners(){return o5._globalListeners}static set globalListeners(t){o5._globalListeners=t}static get initialized(){return o5._initialized}static set initialized(t){o5._initialized=t}setIntegrationModel(t){this.integrationModel=t}setEnvironment(t){"editor"in t&&(this.environment.editor=t.editor),"mode"in t&&(this.environment.mode=t.mode),"version"in t&&(this.environment.version=t.version)}getModalDialog(){return this.modalDialog}init(){if(o5.initialized)this.listeners.fire("onLoad",{});else{const t=P2.newListener("onInit",(()=>{const t=R2.getService("configurationjs","","get"),e=JSON.parse(t);O2.addConfiguration(e),O2.addConfiguration(K2),z2.language=this.language,this.listeners.fire("onLoad",{})}));R2.addListener(t),R2.init(this.serviceProviderProperties),o5.initialized=!0}}addListener(t){this.listeners.add(t)}static addGlobalListener(t){o5.globalListeners.add(t)}beforeUpdateFormula(t,e){const n=new Z2;return n.mathml=t,n.wirisProperties={},null!=e&&Object.keys(e).forEach((t=>{n.wirisProperties[t]=e[t]})),n.language=this.language,n.editMode=this.editMode,this.listeners.fire("onBeforeFormulaInsertion",n)||o5.globalListeners.fire("onBeforeFormulaInsertion",n)?{}:{mathml:n.mathml,wirisProperties:n.wirisProperties}}insertFormula(t,e,n,i){const o={};if(n)if("latex"===this.editMode){if(o.latex=L2.getLatexFromMathML(n),this.integrationModel.fillNonLatexNode&&!o.latex){const i=new Z2;i.editMode=this.editMode,i.windowTarget=e,i.focusElement=t,i.latex=o.latex,this.integrationModel.fillNonLatexNode(i,e,n)}else o.node=e.document.createTextNode(`$$${o.latex}$$`);this.insertElementOnSelection(o.node,t,e)}else o.node=H2.mathmlToImgObject(e.document,n,i,this.language),this.insertElementOnSelection(o.node,t,e);else this.insertElementOnSelection(null,t,e);return o}afterUpdateFormula(t,e,n,i){const o=new Z2;return o.editMode=this.editMode,o.windowTarget=e,o.focusElement=t,o.node=n,o.latex=i,this.listeners.fire("onAfterFormulaInsertion",o)||o5.globalListeners.fire("onAfterFormulaInsertion",o),{}}placeCaretAfterNode(t){this.integrationModel.getSelection();const e=t.ownerDocument;if(void 0!==e.getSelection&&t.parentElement){const n=e.createRange();n.setStartAfter(t),n.collapse(!0);const i=e.getSelection();i.removeAllRanges(),i.addRange(n),e.body.focus()}}insertElementOnSelection(t,e,n){if(this.editionProperties.isNewElement)if(t)if("textarea"===e.type)V2.updateTextArea(e,t.textContent);else if(document.selection&&0===document.getSelection){let e=n.document.selection.createRange();if(n.document.execCommand("InsertImage",!1,t.src),"parentElement"in e||(n.document.execCommand("delete",!1),e=n.document.selection.createRange(),n.document.execCommand("InsertImage",!1,t.src)),"parentElement"in e){const n=e.parentElement();"IMG"===n.nodeName.toUpperCase()?n.parentNode.replaceChild(t,n):e.pasteHTML(V2.createObjectCode(t))}}else{const e=this.integrationModel.getSelection();let n=null;this.editionProperties.range?(({range:n}=this.editionProperties),this.editionProperties.range=null):n=e.getRangeAt(0),n.deleteContents();let i=n.startContainer;const o=n.startOffset;3===i.nodeType?(i=i.splitText(o),i.parentNode.insertBefore(t,i)):1===i.nodeType&&i.insertBefore(t,i.childNodes[o]),this.placeCaretAfterNode(t)}else if("textarea"===e.type)e.focus();else{const t=this.integrationModel.getSelection();if(t.removeAllRanges(),this.editionProperties.range){const{range:e}=this.editionProperties;this.editionProperties.range=null,t.addRange(e)}}else if(this.editionProperties.latexRange)document.selection&&0===document.getSelection?(this.editionProperties.isNewElement=!0,this.editionProperties.latexRange.select(),this.insertElementOnSelection(t,e,n)):(this.editionProperties.latexRange.deleteContents(),this.editionProperties.latexRange.insertNode(t),this.placeCaretAfterNode(t));else if("textarea"===e.type){let n;n=void 0!==this.integrationModel.getSelectedItem?this.integrationModel.getSelectedItem(e,!1):V2.getSelectedItemOnTextarea(e),V2.updateExistingTextOnTextarea(e,t.textContent,n.startPosition,n.endPosition)}else t&&"img"===t.nodeName.toLowerCase()?(F2.removeImgDataAttributes(this.editionProperties.temporalImage),F2.clone(t,this.editionProperties.temporalImage)):this.editionProperties.temporalImage.remove(),this.placeCaretAfterNode(this.editionProperties.temporalImage)}openModalDialog(t,e){this.editMode="images";try{if(e){t.contentWindow.focus();const e=t.contentWindow.getSelection();this.editionProperties.range=e.getRangeAt(0)}else{t.focus();const e=getSelection();this.editionProperties.range=e.getRangeAt(0)}}catch(t){this.editionProperties.range=null}if(void 0===e&&(e=!0),this.editionProperties.latexRange=null,t){let n;if(n=void 0!==this.integrationModel.getSelectedItem?this.integrationModel.getSelectedItem(t,e):V2.getSelectedItem(t,e),n){if(!n.caretPosition&&V2.containsClass(n.node,O2.get("imageClassName")))this.editionProperties.temporalImage=n.node,this.editionProperties.isNewElement=!1;else if(3===n.node.nodeType)if(this.integrationModel.getMathmlFromTextNode){const t=this.integrationModel.getMathmlFromTextNode(n.node,n.caretPosition);t&&(this.editMode="latex",this.editionProperties.isNewElement=!1,this.editionProperties.temporalImage=document.createElement("img"),this.editionProperties.temporalImage.setAttribute(O2.get("imageMathmlAttribute"),B2.safeXmlEncode(t)))}else{const i=L2.getLatexFromTextNode(n.node,n.caretPosition);if(i){const n=L2.getMathMLFromLatex(i.latex);this.editMode="latex",this.editionProperties.isNewElement=!1,this.editionProperties.temporalImage=document.createElement("img"),this.editionProperties.temporalImage.setAttribute(O2.get("imageMathmlAttribute"),B2.safeXmlEncode(n));const o=e?t.contentWindow:window;if("textarea"!==t.tagName.toLowerCase())if(document.selection){let t=0,e=i.startNode.previousSibling;for(;e;)t+=V2.getNodeLength(e),e=e.previousSibling;this.editionProperties.latexRange=o.document.selection.createRange(),this.editionProperties.latexRange.moveToElementText(i.startNode.parentNode),this.editionProperties.latexRange.move("character",t+i.startPosition),this.editionProperties.latexRange.moveEnd("character",i.latex.length+4)}else this.editionProperties.latexRange=o.document.createRange(),this.editionProperties.latexRange.setStart(i.startNode,i.startPosition),this.editionProperties.latexRange.setEnd(i.endNode,i.endPosition)}}}else"textarea"===t.tagName.toLowerCase()&&(this.editMode="latex")}const n=O2.get("editorAttributes").split(", "),i={};for(let t=0,e=n.length;t<e;t+=1){const e=n[t].split("="),o=e[0],r=e[1];i[o]=r}const o={},r=O2.get("editorParameters"),s=this.integrationModel.editorParameters;Object.assign(o,i,r),Object.assign(o,i,s),o.language=this.language,o.rtl=this.integrationModel.rtl;const a={};if(a.editorAttributes=o,a.language=this.language,a.customEditors=this.customEditors,a.environment=this.environment,null==this.modalDialog){this.modalDialog=new t5(o),this.contentManager=new q2(a);const t=P2.newListener("onLoad",(()=>{if(this.contentManager.isNewElement=this.editionProperties.isNewElement,null!=this.editionProperties.temporalImage){const t=B2.safeXmlDecode(this.editionProperties.temporalImage.getAttribute(O2.get("imageMathmlAttribute")));this.contentManager.mathML=t}}));this.contentManager.addListener(t),this.contentManager.init(),this.modalDialog.setContentManager(this.contentManager),this.contentManager.setModalDialogInstance(this.modalDialog)}else if(this.contentManager.isNewElement=this.editionProperties.isNewElement,null!=this.editionProperties.temporalImage){const t=B2.safeXmlDecode(this.editionProperties.temporalImage.getAttribute(O2.get("imageMathmlAttribute")));this.contentManager.mathML=t}this.contentManager.setIntegrationModel(this.integrationModel),this.modalDialog.open()}getCustomEditors(){return this.customEditors}}o5._globalListeners=new P2,o5._initialized=!1;class r5{constructor(t){if(this.language="en",this.serviceProviderProperties={},"serviceProviderProperties"in t&&(this.serviceProviderProperties=t.serviceProviderProperties),this.configurationService="","configurationService"in t&&(this.serviceProviderProperties.URI=t.configurationService,console.warn("Deprecated property configurationService. Use serviceParameters on instead.",[t.configurationService])),this.version="version"in t?t.version:"",this.target=null,!("target"in t))throw new Error("IntegrationModel constructor error: target property missed.");this.target=t.target,"scriptName"in t&&(this.scriptName=t.scriptName),this.callbackMethodArguments={},"callbackMethodArguments"in t&&(this.callbackMethodArguments=t.callbackMethodArguments),this.environment={},"environment"in t&&(this.environment=t.environment),this.isIframe=!1,null!=this.target&&(this.isIframe="IFRAME"===this.target.tagName.toUpperCase()),this.editorObject=null,"editorObject"in t&&(this.editorObject=t.editorObject),this.rtl=!1,"rtl"in t&&(this.rtl=t.rtl),this.managesLanguage=!1,"managesLanguage"in t&&(this.managesLanguage=t.managesLanguage),this.temporalImageResizing=!1,this.core=null,this.listeners=new P2,"integrationParameters"in t&&r5.integrationParameters.forEach((e=>{if(e in t.integrationParameters){const n=t.integrationParameters[e];0!==Object.keys(n).length&&(this[e]=n)}}))}init(){this.language=this.getLanguage();const t=P2.newListener("onLoad",(()=>{this.callbackFunction(this.callbackMethodArguments)}));if(-1!==this.serviceProviderProperties.URI.indexOf("configuration")){const t=this.serviceProviderProperties.URI,e=R2.getServerLanguageFromService(t);this.serviceProviderProperties.server=e;const n=this.serviceProviderProperties.URI.indexOf("configuration"),i=this.serviceProviderProperties.URI.substring(0,n);this.serviceProviderProperties.URI=i}let e=this.serviceProviderProperties.URI;e=0===e.indexOf("/")||0===e.indexOf("http")?e:V2.concatenateUrl(this.getPath(),e),this.serviceProviderProperties.URI=e;const n={};n.serviceProviderProperties=this.serviceProviderProperties,this.setCore(new o5(n)),this.core.addListener(t),this.core.language=this.language,this.core.init(),this.core.setEnvironment(this.environment)}getPath(){if(void 0===this.scriptName)throw new Error("scriptName property needed for getPath.");const t=document.getElementsByTagName("script");let e="";for(let n=0;n<t.length;n+=1){const i=t[n].src.lastIndexOf(this.scriptName);i>=0&&(e=t[n].src.substr(0,i-1))}return e}getVersion(){return this.version}setLanguage(t){this.language=t}setCore(t){this.core=t,t.setIntegrationModel(this)}getCore(){return this.core}setTarget(t){this.target=t,this.isIframe="IFRAME"===this.target.tagName.toUpperCase()}setEditorObject(t){this.editorObject=t}openNewFormulaEditor(){this.core.editionProperties.isNewElement=!0,this.core.openModalDialog(this.target,this.isIframe)}openExistingFormulaEditor(){this.core.editionProperties.isNewElement=!1,this.core.openModalDialog(this.target,this.isIframe)}updateFormula(t){let e,n;this.editorParameters&&(t=com.wiris.editor.util.EditorUtils.addAnnotation(t,"application/vnd.wiris.mtweb-params+json",JSON.stringify(this.editorParameters)));this.isIframe?(e=this.target.contentWindow,n=this.target.contentWindow):(e=this.target,n=window);let i=this.core.beforeUpdateFormula(t,null);return i?(i=this.insertFormula(e,n,i.mathml,i.wirisProperties),i?this.core.afterUpdateFormula(i.focusElement,i.windowTarget,i.node,i.latex):""):""}insertFormula(t,e,n,i){return this.core.insertFormula(t,e,n,i)}getSelection(){return this.isIframe?(this.target.contentWindow.focus(),this.target.contentWindow.getSelection()):(this.target.focus(),window.getSelection())}addEvents(){const t=this.isIframe?this.target.contentWindow.document:this.target;V2.addElementEvents(t,((t,e)=>{this.doubleClickHandler(t,e)}),((t,e)=>{this.mousedownHandler(t,e)}),((t,e)=>{this.mouseupHandler(t,e)}))}removeEvents(){const t=this.isIframe?this.target.contentWindow.document:this.target;V2.removeElementEvents(t)}doubleClickHandler(t){if("img"===t.nodeName.toLowerCase()){this.core.getCustomEditors().disable();const e=O2.get("imageCustomEditorName");if(t.hasAttribute(e)){const n=t.getAttribute(e);this.core.getCustomEditors().enable(n)}V2.containsClass(t,O2.get("imageClassName"))&&(this.core.editionProperties.temporalImage=t,this.core.editionProperties.isNewElement=!0,this.openExistingFormulaEditor())}}mouseupHandler(){this.temporalImageResizing&&setTimeout((()=>{F2.fixAfterResize(this.temporalImageResizing)}),10)}mousedownHandler(t){"img"===t.nodeName.toLowerCase()&&V2.containsClass(t,O2.get("imageClassName"))&&(this.temporalImageResizing=t)}getLanguage(){return this.getBrowserLanguage()}getBrowserLanguage(){let t="en";return t=navigator.userLanguage?navigator.userLanguage.substring(0,2):navigator.language?navigator.language.substring(0,2):"en",t}callbackFunction(){const t=P2.newListener("onTargetReady",(()=>{this.addEvents(this.target)}));this.listeners.add(t)}notifyWindowClosed(){}getMathmlFromTextNode(t,e){}fillNonLatexNode(t,e,n){}getSelectedItem(t,e){}static setActionsOnCancelButtons(){WirisPlugin.currentInstance&&(WirisPlugin.currentInstance.core.editionProperties.temporalImage=null);const t=WirisPlugin.currentInstance,e=t.getSelection();if(e.removeAllRanges(),t.core.editionProperties.range){const{range:n}=t.core.editionProperties;t.core.editionProperties.range=null,e.addRange(n)}}}r5.prototype.getMathmlFromTextNode=void 0,r5.prototype.fillNonLatexNode=void 0,r5.prototype.getSelectedItem=void 0,r5.integrationParameters=["serviceProviderProperties","editorParameters"];class s5 extends r5{constructor(t){const e=t.editorObject;void 0!==e.config&&void 0!==e.config.get("mathTypeParameters")&&(t.integrationParameters=e.config.get("mathTypeParameters")),super(t),this.integrationFolderName="ckeditor_wiris"}getLanguage(){try{return this.editorParameters.language}catch(t){console.error()}const t=this.editorObject.config.get("language");return null!=t?"object"==typeof t&&t.hasOwnProperty("ui")?t.ui:t:super.getLanguage()}addEditorListeners(){const t=this.editorObject;void 0!==t.config.wirislistenersdisabled&&t.config.wirislistenersdisabled||this.checkElement()}checkElement(){const t=this.editorObject.sourceElement;t.wirisActive||(this.setTarget(t),this.addEvents(),t.wirisActive=!0)}doubleClickHandler(t,e){if(!1===this.editorObject.isReadOnly&&"img"===t.nodeName.toLowerCase()&&V2.containsClass(t,O2.get("imageClassName"))){void 0!==e.stopPropagation?e.stopPropagation():e.returnValue=!1,this.core.getCustomEditors().disable();const n=t.getAttribute(O2.get("imageCustomEditorName"));n&&this.core.getCustomEditors().enable(n),this.core.editionProperties.temporalImage=t,this.openExistingFormulaEditor()}}static getCorePath(){return null}callbackFunction(){super.callbackFunction(),this.addEditorListeners()}openNewFormulaEditor(){return this.core.editionProperties.selection=this.editorObject.editing.view.document.selection,super.openNewFormulaEditor()}insertMathml(t){return this.editorObject.model.change((e=>{const n=this.getCore(),i=e.createElement("mathml",{formula:t});if(i.data=t,n.editionProperties.isNewElement){if(!t)return;const n=this.core.editionProperties.selection||this.editorObject.editing.view.document.selection,o=this.editorObject.editing.mapper.toModelPosition(n.getLastPosition());if(e.insert(i,o),!n.isCollapsed)for(const t of n.getRanges())e.remove(this.editorObject.editing.mapper.toModelRange(t));const r=this.editorObject.model.createPositionAfter(i);e.setSelection(r)}else{const o=n.editionProperties.temporalImage,r=this.editorObject.editing.view.domConverter.domToView(o).parent,s=this.editorObject.editing.mapper.toModelElement(r),a=this.editorObject.model.createPositionBefore(s);t&&e.insert(i,a),e.remove(s)}return i}))}findText(t){let e,n=t;for(;!e;)e=this.editorObject.editing.mapper.toModelElement(this.editorObject.editing.view.domConverter.domToView(n)),n=n.parentElement;const i=this.editorObject.model.createRangeIn(e),o=Array.from(i.getItems());for(const e of o)if(e.is("textProxy")&&e.data===t.data.replace(String.fromCharCode(160)," "))return e.textNode}insertFormula(t,e,n,i){const o={};if(n)if("latex"===this.core.editMode)o.latex=L2.getLatexFromMathML(n),o.node=e.document.createTextNode(`$$${o.latex}$$`),this.editorObject.model.change((t=>{const{latexRange:e}=this.core.editionProperties,n=this.findText(e.startContainer),i=this.findText(e.endContainer),r=t.createPositionAt(n.parent,n.startOffset+e.startOffset),s=t.createPositionAt(i.parent,i.startOffset+e.endOffset),a=t.createRange(r,s);t.remove(a),t.insertText(`$$${o.latex}$$`,n.getAttributes(),r)}));else try{o.node=this.editorObject.editing.view.domConverter.viewToDom(this.editorObject.editing.mapper.toViewElement(this.insertMathml(n)),e.document)}catch(t){t.toString().includes("CKEditorError: Cannot read property 'parent' of undefined")&&this.core.modalDialog.cancelAction()}else this.insertMathml("");return o}notifyWindowClosed(){this.editorObject.editing.view.focus()}}class a5 extends $t{execute(t={}){if(!(t.hasOwnProperty("integration")&&t.integration instanceof s5))throw'Must pass a valid CKEditor5Integration instance as attribute "integration" of options';this.integration=t.integration,this.setEditor(),this.openEditor()}setEditor(){this.integration.core.getCustomEditors().disable()}openEditor(){const t=this._getSelectedImage();null!=t&&t.classList.contains(WirisPlugin.Configuration.get("imageClassName"))?(this.integration.core.editionProperties.temporalImage=t,this.integration.openExistingFormulaEditor()):this.integration.openNewFormulaEditor()}_getSelectedImage(){const{selection:t}=this.editor.editing.view.document;if(t.isCollapsed||1!==t.rangeCount)return;const e=t.getFirstRange();let n;for(const t of e){if("span"!==t.item.name)return;n=t.item.getChild(0);break}return n?this.editor.editing.view.domConverter.mapViewToDom(n):void 0}}class c5 extends a5{setEditor(){this.integration.core.getCustomEditors().enable("chemistry")}}let l5=null;class d5 extends Yt{static get requires(){return[I_]}static get pluginName(){return"MathType"}init(){const t=this._addIntegration();l5=t,this._addCommands(),this._addViews(t),this._addSchema(),this._addConverters(),this._exposeWiris()}destroy(){l5.removeEvents()}_addIntegration(){const{editor:t}=this,e={};let n;return e.environment={},e.environment.editor="CKEditor5",e.environment.editorVersion="5.x",e.editorObject=t,e.serviceProviderProperties={},e.serviceProviderProperties.URI="https://www.wiris.net/demo/plugins/app",e.serviceProviderProperties.server="java",e.target=t.sourceElement,e.scriptName="bundle.js",e.managesLanguage=!0,e.target&&(n=new s5(e),n.init(),n.listeners.fire("onTargetReady",{}),n.checkElement(),this.listenTo(t.editing.view.document,"click",((t,e)=>{2===e.domEvent.detail&&(n.doubleClickHandler(e.domTarget,e.domEvent),t.stop())}),{priority:"highest"})),n}_addCommands(){const{editor:t}=this;t.commands.add("MathType",new a5(t)),t.commands.add("ChemType",new c5(t))}_addViews(t){const{editor:e}=this;O2.get("editorEnabled")&&e.ui.componentFactory.add("MathType",(n=>{const i=new U(n);return i.bind("isEnabled").to(e.commands.get("MathType"),"isEnabled"),i.set({label:z2.get("insert_math"),icon:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 300 261.7" style="enable-background:new 0 0 300 261.7;" xml:space="preserve">\n<style type="text/css">\n\t.st0{fill:#FFFFFF;}\n\t.st1{fill:#EF4A5F;}\n\t.st2{fill:#C8202F;}\n</style>\n<path class="st0" d="M300,32.8c0-16.4-13.4-29.7-29.9-29.7c-2.9,0-7.2,0.8-7.2,0.8c-37.9,9.1-71.3,14-112,14c-0.3,0-0.6,0-1,0\n\tc-16.5,0-29.9,13.3-29.9,29.7c0,16.4,13.4,29.7,29.9,29.7l0,0c45.3,0,83.1-5.3,125.3-15.3h0C289.3,59.5,300,47.4,300,32.8"/>\n<path class="st0" d="M90.2,257.7c-11.4,0-21.9-6.4-27-16.7l-60-119.9c-7.5-14.9-1.4-33.1,13.5-40.5c14.9-7.5,33.1-1.4,40.5,13.5\n\tl27.3,54.7L121.1,39c5.3-15.8,22.4-24.4,38.2-19.1c15.8,5.3,24.4,22.4,19.1,38.2l-59.6,179c-3.9,11.6-14.3,19.7-26.5,20.6\n\tC91.6,257.7,90.9,257.7,90.2,257.7"/>\n<g>\n\t<g>\n\t\t<path class="st1" d="M90.2,257.7c-11.4,0-21.9-6.4-27-16.7l-60-119.9c-7.5-14.9-1.4-33.1,13.5-40.5c14.9-7.5,33.1-1.4,40.5,13.5\n\t\t\tl27.3,54.7L121.1,39c5.3-15.8,22.4-24.4,38.2-19.1c15.8,5.3,24.4,22.4,19.1,38.2l-59.6,179c-3.9,11.6-14.3,19.7-26.5,20.6\n\t\t\tC91.6,257.7,90.9,257.7,90.2,257.7"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path class="st2" d="M300,32.8c0-16.4-13.4-29.7-29.9-29.7c-2.9,0-7.2,0.8-7.2,0.8c-37.9,9.1-71.3,14-112,14c-0.3,0-0.6,0-1,0\n\t\t\tc-16.5,0-29.9,13.3-29.9,29.7c0,16.4,13.4,29.7,29.9,29.7l0,0c45.3,0,83.1-5.3,125.3-15.3h0C289.3,59.5,300,47.4,300,32.8"/>\n\t</g>\n</g>\n</svg>\n',tooltip:!0}),i.on("execute",(()=>{e.execute("MathType",{integration:t})})),i})),O2.get("chemEnabled")&&e.ui.componentFactory.add("ChemType",(n=>{const i=new U(n);return i.bind("isEnabled").to(e.commands.get("ChemType"),"isEnabled"),i.set({label:z2.get("insert_chem"),icon:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 40.3 49.5" style="enable-background:new 0 0 40.3 49.5;" xml:space="preserve">\n<style type="text/css">\n\t.st0{fill:#A4CF61;}\n</style>\n<path class="st0" d="M39.2,12.1c0-1.9-1.1-3.6-2.7-4.4L24.5,0.9l0,0c-0.7-0.4-1.5-0.6-2.4-0.6c-0.9,0-1.7,0.2-2.4,0.6l0,0L2.3,10.8\n\tl0,0C0.9,11.7,0,13.2,0,14.9h0v19.6h0c0,1.7,0.9,3.3,2.3,4.1l0,0l17.4,9.9l0,0c0.7,0.4,1.5,0.6,2.4,0.6c0.9,0,1.7-0.2,2.4-0.6l0,0\n\tl12.2-6.9h0c1.5-0.8,2.6-2.5,2.6-4.3c0-2.7-2.2-4.9-4.9-4.9c-0.9,0-1.8,0.3-2.5,0.7l0,0l-9.7,5.6l-12.3-7V17.8l12.3-7l9.9,5.7l0,0\n\tc0.7,0.4,1.5,0.6,2.4,0.6C37,17,39.2,14.8,39.2,12.1"/>\n</svg>\n',tooltip:!0}),i.on("execute",(()=>{e.execute("ChemType",{integration:t})})),i})),e.editing.view.addObserver(Ua)}_addSchema(){const{schema:t}=this.editor.model;t.register("mathml",{allowWhere:"$text",isObject:!0,isInline:!0,allowAttributes:["formula"]})}_addConverters(){const{editor:t}=this;function e(t,n){if(n.is("text"))return t.createText(n.data);if(n.is("element")){if(n.is("emptyElement"))return t.createEmptyElement(n.name,n.getAttributes());const i=t.createContainerElement(n.name,n.getAttributes());for(const o of n.getChildren())t.insert(t.createPositionAt(i,"end"),e(t,o));return i}throw new Exception("Given node has unsupported type.")}var n,i;t.conversion.for("upcast").elementToElement({view:{name:"span",classes:"ck-math-widget"},model:(t,{writer:e})=>{const n=B2.safeXmlDecode(t.getChild(0).getAttribute("data-mathml"));return e.createElement("mathml",{formula:n})}}),t.data.upcastDispatcher.on("element:math",((e,n,i)=>{const{consumable:o,writer:r}=i,{viewItem:s}=n;if(!o.test(s,{name:!0}))return;const a=function(t){const e=t.getChild(0);if(!e||"semantics"!==e.name)return!1;for(const t of e.getChildren())if("annotation"===t.name&&"LaTeX"===t.getAttribute("encoding"))return!0;return!1}(s),c=new D2(t.editing.view.document),l=new Ga(t.editing.view.document).createDocumentFragment(s.getChildren()),d=[...s.getAttributes()].map((([t,e])=>` ${t}="${e}"`)).join("");let u=c.toData(l)||"";u=`<math${d}>${u}</math>`;const h=a?r.createText(H2.initParse(u,t.config.get("language"))):r.createElement("mathml",{formula:u}),m=i.splitToAllowedParent(h,n.modelCursor);if(!m)return;i.writer.insert(h,m.position),o.consume(s,{name:!0});const g=i.getSplitParts(h);n.modelRange=r.createRange(i.writer.createPositionBefore(h),i.writer.createPositionAfter(g[g.length-1])),m.cursorParent?n.modelCursor=i.writer.createPositionAt(m.cursorParent,0):n.modelCursor=n.modelRange.end})),t.conversion.for("editingDowncast").elementToElement({model:"mathml",view:function(e,{writer:n}){const i=n.createContainerElement("span",{class:"ck-math-widget"}),o=function(e,{writer:n}){const i=new ks(n.document),o=e.getAttribute("formula"),r=H2.initParse(o,t.config.get("language")),s=i.toView(r).getChild(0);return n.createEmptyElement("img",s.getAttributes(),{renderUnsafeAttributes:["src"]})}(e,{writer:n});return n.insert(n.createPositionAt(i,0),o),s_(i,n)}}),t.conversion.for("dataDowncast").elementToElement({model:"mathml",view:function(t,{writer:n}){const i=new ks(n.document);let o=H2.endParseSaveMode(t.getAttribute("formula"));O2.get("saveHandTraces")||(o=B2.removeAnnotation(o,"application/json"));const r=i.toView(o).getChild(0);return e(n,r)}}),t.editing.mapper.on("viewToModelPosition",(n=t.model,i=t=>t.hasClass("ck-math-widget"),(t,e)=>{const{mapper:o,viewPosition:r}=e,s=o.findMappedViewAncestor(r);if(!i(s))return;const a=o.toModelElement(s);e.modelPosition=n.createPositionAt(a,r.isAtStart?"before":"after")}));const{get:o}=t.data;t.data.get=e=>{const n=o.bind(t.data)(e);return H2.endParse(n)}}_exposeWiris(){window.WirisPlugin={Core:o5,Parser:H2,Image:F2,MathML:B2,Util:V2,Configuration:O2,Listeners:P2,IntegrationModel:r5,currentInstance:l5,Latex:L2}}}class u5 extends $t{execute(t={}){this.editor.plugins.get("WProofreader").toggle()}}class h5 extends $t{execute(t={}){this.editor.plugins.get("WProofreader").openSettings()}}class m5 extends $t{execute(t={}){this.editor.plugins.get("WProofreader").openDialog()}}class g5 extends Yt{static get pluginName(){return"WProofreaderEditing"}init(){this._addCommands()}afterInit(){this._enableInModes([{modeName:"TrackChanges",editingName:"TrackChangesEditing"},{modeName:"RestrictedEditingMode",editingName:"RestrictedEditingModeEditing"}])}_addCommands(){this.editor.commands.add("WProofreaderToggle",new u5(this.editor)),this.editor.commands.add("WProofreaderSettings",new h5(this.editor)),this.editor.commands.add("WProofreaderDialog",new m5(this.editor))}_enableInModes(t){t.forEach((t=>{this._enableInMode(t.modeName,t.editingName)}))}_enableInMode(t,e){if(this.editor.plugins.has(t)){const t=this.editor.plugins.get(e);["WProofreaderToggle","WProofreaderSettings","WProofreaderDialog"].forEach((e=>t.enableCommand(e)))}}}var p5=__webpack_require__(4033);var f5=__webpack_require__(6616),x5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(f5.Z,x5);f5.Z.locals;class b5 extends Yt{static get pluginName(){return"WProofreaderUI"}constructor(t){super(t),this._commands={toggle:"WProofreaderToggle",settings:"WProofreaderSettings",proofreadDialog:"WProofreaderDialog"}}init(){this._registerDropdown()}_registerDropdown(){const t=this.editor,e=t.plugins.get("WProofreader");t.ui.componentFactory.add("wproofreader",(n=>{const i=dl(n);let o,r;return i.buttonView.set({label:"WProofreader text checker",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><polygon points="10.46 17.747 7.014 14.292 8.076 13.232 10.461 15.624 16.377 9.708 17.437 10.768 10.46 17.747"/><path d="M10.147,12.276c.063.153.138.331.226.531a2.7,2.7,0,0,0,.144.286L12,11.614l-.01-.027L9.4,5.189c-.122-.321-.222-.576-.3-.768A2.871,2.871,0,0,0,8.8,3.883a1.355,1.355,0,0,0-.453-.409,1.4,1.4,0,0,0-.7-.159,1.387,1.387,0,0,0-.693.159,1.314,1.314,0,0,0-.453.416,3.4,3.4,0,0,0-.325.646L5.92,5.2,3.383,11.641c-.1.257-.178.457-.223.6a1.4,1.4,0,0,0-.067.419.852.852,0,0,0,.29.629.941.941,0,0,0,.67.277.756.756,0,0,0,.643-.26,4.432,4.432,0,0,0,.473-1l.473-1.272H9.673ZM6.17,9.524,7.638,5.432,9.132,9.524Z"/></svg>\n',tooltip:!0}),i.on("change:isOpen",(t=>{const n=e.isInstancesReady(),s=e.isInstancesEnabled();n?(o||(r=e.getStaticActions(),o=this._getDropdownItemsDefinitions(r),ml(i,o)),i.class="",o.map((t=>{t.model.class=s?"":"ck-hidden","WProofreaderToggle"===t.model.commandParam&&(t.model.label=s?t.model.localization.disable:t.model.localization.enable,t.model.class="")}))):i.class="ck-wproofreader-empty"})),i.on("execute",(e=>{t.execute(e.source.commandParam)})),i.bind("isEnabled").to(t.commands.get("WProofreaderToggle")),i}))}_getDropdownItemsDefinitions(t){const e=new p5.Z;return t.forEach((t=>{const n={type:"button",model:new Qd({commandParam:this._commands[t.name],label:t.localization.default,localization:t.localization,class:"",withText:!0})};e.add(n)})),e}}class k5{constructor(){this._create()}_create(){window.WPROOFREADER_SRCSTORAGE=window.WPROOFREADER_SRCSTORAGE||{},this._storage=window.WPROOFREADER_SRCSTORAGE}has(t){return!!this._storage[t]}add(t){this._storage[t]={onLoad:[],onError:[]}}addCallbacks(t,e,n){this._storage[t].onLoad.push(e),this._storage[t].onError.push(n)}eachOnLoad(t,e){this._storage[t].onLoad.forEach(e)}eachOnError(t,e){this._storage[t].onError.forEach(e)}delete(t){delete this._storage[t]}get(t){return this._storage[t]}}class w5{constructor(t){this._validateSrc(t),this._src=t,this._globalSrcStorage=new k5}load(){return new Promise(((t,e)=>{this._isScriptOnPage()?this._processExistingScript(t,e):this._createScript(t,e)}))}_validateSrc(t){if(!t)throw new Error("Path to the script is not specified.")}_isScriptOnPage(){return!!document.querySelector('script[src="'+this._src+'"]')}_createScript(t,e){this._script=this._createElement(),this._globalSrcStorage.add(this._src),this._globalSrcStorage.addCallbacks(this._src,t,e),this._subscribeOnScriptLoad(),this._subscribeOnScriptError(),this._appendScript(this._script)}_createElement(){const t=document.createElement("script");return t.type="text/javascript",t.charset="UTF-8",t.src=this._src,t}_subscribeOnScriptLoad(){this._script.onload=()=>{this._globalSrcStorage.eachOnLoad(this._src,(t=>{t()})),this._destroy()}}_subscribeOnScriptError(){this._script.onerror=()=>{const t=new Error(`${this._src} failed to load.`);this._globalSrcStorage.eachOnError(this._src,(e=>{e(t)})),this._destroy()}}_destroy(){this._removeListeners(),this._globalSrcStorage.delete(this._src),this._src=null,this._script=null}_removeListeners(){this._script.onload=null,this._script.onerror=null}_appendScript(t){document.getElementsByTagName("head")[0].appendChild(t)}_processExistingScript(t,e){this._globalSrcStorage.has(this._src)?this._addCallbacks(t,e):this._processLoadedScript(t)}_addCallbacks(t,e){this._globalSrcStorage.addCallbacks(this._src,t,e)}_processLoadedScript(t){t()}}const A5="InstancesDisabling";class _5 extends Yt{static get requires(){return[g5,b5]}static get pluginName(){return"WProofreader"}constructor(t){super(t),this.set("isToggleCommandEnabled",!0),this._instances=[],this._collaborationPluginNames=["RealTimeCollaborativeEditing","RealTimeCollaborativeTrackChanges","RealTimeCollaborativeComments","RealTimeCollaborationClient"],this._restrictedEditingName="RestrictedEditingMode"}init(){this._userOptions=this._getUserOptions(),this._setTheme(),this._setAutoStartup(),this._setBadgeOffset(),this._setIsEnabled(this._userOptions.autoStartup,A5),this._loadWscbundle().then((()=>{this._handleWscbundleLoaded()})).catch((t=>{throw new Error(t)})),this.bind("isToggleCommandEnabled").to(this.editor.commands.get("WProofreaderToggle"),"isEnabled",(t=>this._handleToggleCommandEnabled(t)))}destroy(){super.destroy(),this._instances.forEach((t=>t.destroy())),this._instances=null}_getUserOptions(){const t=this.editor.config.get("wproofreader");if(!t)throw new Error("No WProofreader configuration.");return t}_setTheme(){this._userOptions.theme||(this._userOptions.theme="ckeditor5")}_setAutoStartup(){this._userOptions.hasOwnProperty("autoStartup")||(this._userOptions.autoStartup=!0)}_setBadgeOffset(){this._userOptions.fullSizeBadge||(this._userOptions.hasOwnProperty("badgeOffsetX")||(this._userOptions.badgeOffsetX=11),this._userOptions.hasOwnProperty("badgeOffsetY")||(this._userOptions.badgeOffsetY=11))}_setIsEnabled(t,e){t?this.clearForceDisabled(e):this.forceDisabled(e)}_loadWscbundle(){return new w5(this._userOptions.srcUrl).load()}_handleWscbundleLoaded(){"ready"===this.editor.state?this._createInstances():this._subscribeOnEditorReady()}_createInstances(){const t=this.editor.editing.view.domRoots.values();this._setFields();for(const e of t)this._createInstance(e)}_setFields(){this._isMultiRoot=this._checkMultiRoot(),this._isCollaborationMode=this._checkCollaborationMode(),this._isRestrictedEditingMode=this._checkRestrictedEditingMode(),this._options=this._createOptions()}_checkMultiRoot(){return this.editor.editing.view.domRoots.size>1}_checkCollaborationMode(){for(let t=0;t<=this._collaborationPluginNames.length;t++)if(this.editor.plugins.has(this._collaborationPluginNames[t]))return!0;return!1}_checkRestrictedEditingMode(){return this.editor.plugins.has(this._restrictedEditingName)}_createOptions(){return{appType:"proofreader_ck5",disableDialog:this._isMultiRoot||this._isCollaborationMode,restrictedEditingMode:this._isRestrictedEditingMode,disableBadgePulsing:!0,onCommitOptions:this._onCommitOptions.bind(this),onToggle:this._onToggle.bind(this)}}_onCommitOptions(t){this._syncOptions(t)}_syncOptions(t){this._instances.forEach((e=>{e.commitOption(t,{ignoreCallback:!0})}))}_onToggle(t){const e=!t.isDisabled();this._setIsEnabled(e,A5),this._syncToggle(e)}_syncToggle(t){this._instances.forEach((e=>{t?this._enableInstance(e):this._disableInstance(e)}))}_enableInstance(t){this.isEnabled&&t.enable({ignoreCallback:!0})}_disableInstance(t){t.disable({ignoreCallback:!0})}_createInstance(t){WEBSPELLCHECKER.init(this._mergeOptions(t),this._handleInstanceCreated.bind(this))}_mergeOptions(t){return Object.assign({},this._userOptions,this._options,{container:t})}_handleInstanceCreated(t){t&&("destroyed"!==this.editor.state?(this.isEnabled||this._disableInstance(t),this._instances.push(t)):t.destroy())}_subscribeOnEditorReady(){this.editor.on("ready",(()=>{this._createInstances()}))}_handleToggleCommandEnabled(t){return this._setIsEnabled(t,"WProofreaderToggleCommandDisabling"),this._syncToggle(t),t}getStaticActions(){return 0===this._instances.length?[]:this._instances[0].getStaticActions()}toggle(){if(0===this._instances.length)return;const t=this.isInstancesEnabled();this._setIsEnabled(!t,A5),this._syncToggle(!t)}openSettings(){0!==this._instances.length&&this._instances[0].openSettings()}openDialog(){0!==this._instances.length&&this._instances[0].openDialog()}isInstancesReady(){return this._instances.length>0}isInstancesEnabled(){return 0!==this._instances.length&&!this._instances[0].isDisabled()}}const v5=["GeneralHtmlSupport","heading.options","htmlH2","push","has","htmlH6","htmlH5","htmlH1","model","getChildren","get","htmlH3"];var C5,y5;C5=v5,y5=344,function(t){for(;--t;)C5.push(C5.shift())}(++y5);const E5=function(t,e){return v5[t-=0]};function I5(t){let e="";for(const n of t[E5("0x1")]())n instanceof Wo&&(e+=n.data);return e}const S5=["pluginName","model","name","indexOf","fire","_headingNames","activeItemIndex","editing","change","createElement","modelElement","toModel","selection","init","getFirstPosition","documentOutline.headings","getChild","_getHeadingNames","_deriveHeadingElementsFromConversion","length","level","includes","document","_getOutlineDefinitions","view","item","findIndex","afterInit","editor","DocumentOutlineUtils","config","text","getRoot","domToView","getChildren","element","backward","push"];var T5,D5;T5=S5,D5=388,function(t){for(;--t;)T5.push(T5.shift())}(++D5);const M5=function(t,e){return S5[t-=0]};class B5 extends Yt{constructor(){super(...arguments),this._headingNames=[]}static get[M5("0x1e")](){return M5("0x15")}[M5("0x5")](){const t=this.editor;this[M5("0x23")]=this[M5("0x9")]();let e=[];t[M5("0x1f")].document.on(M5("0x0"),At((()=>{const t=e;e=this[M5("0xf")]();const n=(0,Uu.diff)(t,e,((t,e)=>t[M5("0xc")]===e[M5("0xc")]&&t[M5("0x17")]===e.text&&t[M5("0x2")]===e[M5("0x2")])),i=(0,Uu.diffToChanges)(n,e),o=this._getActiveHeading(),r=e[M5("0x12")]((t=>t.modelElement===o));i.length&&this[M5("0x22")](M5("0x0"),{outlineDefinitions:e,activeItemIndex:r,outlineChanges:i}),this.fire(M5("0x24"),{index:r})}),250,{leading:!0,trailing:!0}))}[M5("0x13")](){this._headingNames[M5("0xb")]||this._deriveHeadingElementsFromConversion()}[M5("0xf")](){const t=this.editor,e=[],n=this._headingNames;for(const e of t.model.document.getRootNames())i(t[M5("0x1f")][M5("0xe")][M5("0x18")](e));function i(t){for(const o of t[M5("0x1a")]())o.is(M5("0x1b"))&&(n[M5("0xd")](o.name)&&e[M5("0x1d")]({level:n[M5("0x21")](o.name)+1,text:I5(o),modelElement:o}),i(o))}return e}_getActiveHeading(){const t=this[M5("0x14")].model[M5("0xe")][M5("0x4")][M5("0x6")](),e=new Yo({direction:M5("0x1c"),startPosition:t});for(const t of e)if(t[M5("0x11")].is(M5("0x1b"))&&this[M5("0x23")][M5("0xd")](t[M5("0x11")][M5("0x20")]))return t[M5("0x11")]}[M5("0x9")](){return this[M5("0x14")][M5("0x16")].get(M5("0x7"))||function(t){const e=t.config[E5("0x2")](E5("0x5"));return e?e.reduce(((t,e)=>("paragraph"!==e[E5("0x0")]&&t[E5("0x7")](e[E5("0x0")]),t)),[]):t.plugins[E5("0x8")](E5("0x4"))?[E5("0xb"),E5("0x6"),E5("0x3"),"htmlH4",E5("0xa"),E5("0x9")]:[]}(this.editor)}[M5("0xa")](){const t=this.editor,e=["h1","h2","h3","h4","h5","h6"],n=[];for(const i of e){const e=t[M5("0x25")][M5("0x10")].domConverter[M5("0x19")](document[M5("0x1")](i)),o=t.data[M5("0x3")](e)[M5("0x8")](0);(null==o?void 0:o.is(M5("0x1b")))&&n[M5("0x1d")](o[M5("0x20")])}this[M5("0x23")]=n}}class O5 extends u{constructor(t,e=!1){super(t);const n=t.t,i=this.bindTemplate,o=e?"["+n("Empty heading")+"]":"";this.set("text",""),this.set("level",1),this.set("isActive",!1),this.bind("isEmpty").to(this,"text",(t=>!t)),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-document-outline__item",i.to("level",(t=>"ck-document-outline__item_level-"+t)),i.if("isActive","ck-document-outline__item_active"),i.if("isEmpty","ck-document-outline__item_empty")],title:i.to("text")},children:[{text:i.to("text",(t=>t||o))}],on:{click:i.to("click")}})}}class N5 extends u{constructor(t,e=!1,n){super(t);const i=t.t;this.showEmptyHeadingText=e,this.set("activeItemIndex",-1),this._documentOutlineContainer=n,this.items=this.createCollection(),this.items.delegate("click").to(this),this.on("click",this._handleItemClick.bind(this)),this.on("change:activeItemIndex",((t,e,n,i)=>{this._setActiveItem(i,n)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-document-outline"],dir:t.contentLanguageDirection,"data-document-outline-empty-placeholder":i("Editor headings will appear here as you type."),tabindex:-1},children:this.items})}sync(t){t.forEach((t=>{"insert"==t.type?this._insertItem(t.index,...t.values):"delete"==t.type&&this._deleteItem(t.index,t.howMany)}))}_setActiveItem(t,e){if(-1!==t){const e=this.items.get(t);e&&(e.isActive=!1)}-1!==e&&(this.items.get(e).isActive=!0,this._scrollToItem(e))}_insertItem(t,...e){const n=e.map(((e,n)=>{const i=new O5(this.locale,this.showEmptyHeadingText);return i.text=e.text,i.level=e.level,t+n===this.activeItemIndex&&(i.isActive=!0),i}));this.items.addMany(n,t)}_deleteItem(t,e){do{this.items.remove(t)}while(--e)}_handleItemClick(t){const e=this.items.getIndex(t.source);this.fire("itemSelected",e)}_scrollToItem(t){(0,Uu.scrollAncestorsToShowTarget)(this.items.get(t).element,20,this._documentOutlineContainer)}destroy(){super.destroy(),this.element.remove()}}var P5=__webpack_require__(3271),R5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(P5.Z,R5);P5.Z.locals;const L5=["getEarlierVisibleRevision","_handleItemSelected","itemSelected","then","document-outline-container-not-provided","pluginName","isNaN","model","editor","getRootNames","resize","fromCharCode","toViewElement","_updateActiveDefinitionOnViewportChange","setSelection","context","bottom","indexOf","init","view","documentOutline.showEmptyHeadings","length","scroll","focusTracker","config","documentOutline.container","join","plugins","activeItemIndex","destroy","_handleOutlineChange","get","window","_updateActiveDefinitionFromViewportThrottled","mapper","editing","_setActiveViewItem","listenTo","locale","getRevision","cancel","render","change","DocumentOutlineUtils","domConverter","bind","top","add","modelElement","element","mapViewToDom","appendChild","scrollToTheSelection","map","focus","_currentOutlineDefinitions"];var j5,z5;j5=L5,z5=133,function(t){for(;--t;)j5.push(j5.shift())}(++z5);const V5=function(t,e){return L5[t-=0]};class F5 extends Yt{static get[V5("0x28")](){return"DocumentOutlineUI"}constructor(t){super(t),this.view=new N5(t[V5("0x11")],this.editor.config[V5("0xa")](V5("0x37")),this.editor.config.get(V5("0x4"))),this[V5("0x22")]=[],this[V5("0xc")]=Ed(this[V5("0x30")][V5("0x18")](this),100)}[V5("0x35")](){const t=this.editor,e=t[V5("0x6")][V5("0xa")](V5("0x16"));let n=!1;if(this[V5("0x36")][V5("0x14")](),this[V5("0x2b")].ui[V5("0x2")][V5("0x1a")](this[V5("0x36")][V5("0x1c")]),!t[V5("0x3")][V5("0xa")](V5("0x4")))throw new Uu.CKEditorError(V5("0x27"),{editor:t});t[V5("0x3")][V5("0xa")]("documentOutline.container")[V5("0x1e")](this[V5("0x36")].element),e.on("change",this[V5("0x9")].bind(this)),e.on(V5("0x7"),((t,{index:e})=>this[V5("0xf")](e))),this[V5("0x36")].on(V5("0x25"),((t,e)=>{n=!0,this[V5("0x24")](e)})),this[V5("0x36")][V5("0x10")](Uu.global.document,V5("0x1"),(()=>{n?n=!1:this[V5("0xc")]()}),{useCapture:!0}),this[V5("0x36")][V5("0x10")](Uu.global[V5("0xb")],V5("0x2d"),this._updateActiveDefinitionFromViewportThrottled,{useCapture:!0})}afterInit(){!function(t){function e(t){return t[V5("0x20")]((t=>String[V5("0x2e")](t)))[V5("0x5")]("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[V5("0x12")](0),r=i[V5("0x23")](o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[V5("0x26")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[V5("0x29")](Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t[V5("0x32")]:t[V5("0x2b")],d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l[V5("0x3")].get(e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}[V5("0x8")](){super[V5("0x8")](),this[V5("0x36")][V5("0x8")](),this[V5("0xc")][V5("0x13")]()}_handleOutlineChange(t,{outlineDefinitions:e,activeItemIndex:n,outlineChanges:i}){this._currentOutlineDefinitions=e,this[V5("0x36")].sync(i)}[V5("0xf")](t){this[V5("0x22")][V5("0x0")]&&this[V5("0x22")][t]&&(this.view[V5("0x7")]=t)}[V5("0x24")](t){const e=this[V5("0x22")][t][V5("0x1b")];this.editor.model[V5("0x15")]((t=>{t[V5("0x31")](e,0)})),this[V5("0x2b")][V5("0xe")].view[V5("0x1f")]({alignToTop:!0,forceScroll:!0}),this.editor[V5("0xe")][V5("0x36")][V5("0x21")](),this._setActiveViewItem(t)}[V5("0x30")](){const t=this[V5("0x2b")];let e;for(const n of t[V5("0x2a")].document[V5("0x2c")]()){const i=t[V5("0xe")][V5("0x36")].getDomRoot(n),o=i&&new Uu.Rect(i).getVisible();if(o){const t=new Uu.Rect(Uu.global[V5("0xb")]).getIntersection(o);t&&(e=t[V5("0x19")]+.25*t.height)}}if(void 0===e)return;const n=U5(t[V5("0xe")],this[V5("0x22")],e);n?this[V5("0xf")](this[V5("0x22")][V5("0x34")](n)):this[V5("0xf")](-1)}}function U5(t,e,n,i=0,o=e.length-1){const r=Math.floor(i+(o-i)/2);if(o>=i){const s=e[r],a=t[V5("0xd")][V5("0x2f")](s[V5("0x1b")]),c=t[V5("0x36")][V5("0x17")][V5("0x1d")](a);return new Uu.Rect(c)[V5("0x33")]>n?U5(t,e,n,i,r-1):U5(t,e,n,r+1,o)}return r<0?null:e[r]}const H5=["You are using the trial version of CKEditor 5 document outline plugin with limited usage. Make sure you will not use it in the production environment.","documentOutlineLicenseKeyTrial","pluginName","documentOutlineLicenseKeyTrialLimit:operations","destroy","document-outline-trial-license-key-reached-limit-changes","documentOutlineLicenseKeyValid","document-outline-invalid-license-key","config","documentOutlineLicenseKeyInvalid","editor","DocumentOutline","requires","init","licenseKey","_licenseKeyCheckInterval","get"];var G5,q5;G5=H5,q5=423,function(t){for(;--t;)G5.push(G5.shift())}(++q5);const W5=function(t,e){return H5[t-=0]};class K5 extends Yt{static get[W5("0xe")](){return[B5,F5]}static get[W5("0x4")](){return W5("0xd")}constructor(t){super(t),this[W5("0x0")]=null}[W5("0xf")](){const t=this[W5("0xc")];this[W5("0x10")]=t[W5("0xa")][W5("0x1")]("licenseKey");const e=this[W5("0xc")];this[W5("0x0")]=setInterval((()=>{let t;for(const n in e){const i=n,o=e[i];if(W5("0x3")===o||W5("0xb")===o||W5("0x8")===o||"documentOutlineLicenseKeyTrialLimit:operations"===o){delete e[i],t=o;break}}if(W5("0xb")===t)throw clearInterval(this[W5("0x0")]),new Uu.CKEditorError(W5("0x9"),null);if(W5("0x3")===t&&console.info(W5("0x2")),W5("0x5")===t)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError(W5("0x7"),null);W5("0x8")===t&&clearInterval(this[W5("0x0")])}),1e3)}[W5("0x6")](){this[W5("0x0")]&&clearInterval(this._licenseKeyCheckInterval)}}const Z5='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',Y5=["refresh","tableOfContents","document","createElement","editor","getFirstPosition","model","change","execute","schema","isEnabled","insertObject","selection","findAllowedParent"];var J5,$5;J5=Y5,$5=249,function(t){for(;--t;)J5.push(J5.shift())}(++$5);const Q5=function(t,e){return Y5[t-=0]};class X5 extends $t{[Q5("0xb")](){this[Q5("0x7")][Q5("0x9")][Q5("0xa")]((t=>{this[Q5("0x7")][Q5("0x9")][Q5("0x0")](t[Q5("0x6")]("tableOfContents"))}))}[Q5("0x3")](){const t=this[Q5("0x7")][Q5("0x9")],e=t[Q5("0x5")][Q5("0x1")][Q5("0x8")]();this[Q5("0xd")]=null!==(e&&t[Q5("0xc")][Q5("0x2")](e,Q5("0x4")))}}var t3=__webpack_require__(1119),e3={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(t3.Z,e3);t3.Z.locals;const n3=["forEach","differ","string","position","editor","get","type","match","name","data","change","_customDataDowncastHeadingsConversion","nodeAfter","attributes","consumable","model","config","modelRange","length","downcast","getAttribute","consume","headingId.modelAttributeName","setAttribute","upcastDispatcher","hasAttribute","getContainedElement","heading1","document","low","add","item","has","paragraph","removeAttribute","delete","view","attribute:headingId:","extend","schema","set","writer","_customUpcastHeadingsConversion","headingId","viewItem"];var i3,o3;i3=n3,o3=435,function(t){for(;--t;)i3.push(i3.shift())}(++o3);const r3=function(t,e){return n3[t-=0]};class s3 extends Yt{static get pluginName(){return"HeadingId"}afterInit(){const t=this.editor;t[r3("0x1f")][r3("0x14")](r3("0x25"))||(function(t){const e=new Map;return t?(t[r3("0xf")]((t=>{r3("0x3")!==t[r3("0x1e")]&&e[r3("0xa")](t[r3("0x6")],t[r3("0x1e")])})),e[r3("0x14")]("h1")||e[r3("0xa")]("h1",r3("0x2a")),e):e}(this[r3("0x13")][r3("0x1f")].get("heading.options")).forEach(((e,n)=>{this[r3("0xc")](n),this._customDataDowncastHeadingsConversion(e),t[r3("0x1e")][r3("0x9")].isRegistered(e)&&t[r3("0x1e")][r3("0x9")][r3("0x8")](e,{allowAttributes:"headingId"})})),this._registerHeadingIdAttributePostfixer())}_customUpcastHeadingsConversion(t){this[r3("0x13")][r3("0x18")][r3("0x27")].on("element:"+t,((t,e,n)=>{const{consumable:i,writer:o}=n,r=e[r3("0xe")][r3("0x23")]("id"),s=e[r3("0x20")][r3("0x29")]();if(!(r&&r[r3("0x21")]||s[r3("0x28")](r3("0xd"))))return i.consume(e[r3("0xe")],{attributes:["id"]}),void o[r3("0x26")](r3("0xd"),(0,Uu.uid)(),s);i[r3("0x24")](e.viewItem,{attributes:["id"]})&&o.setAttribute(r3("0xd"),r,s)}),{priority:Uu.priorities.get(r3("0x2c"))+.5})}[r3("0x1a")](t){this[r3("0x13")].conversion.for(r3("0x22")).add((e=>e.on(r3("0x7")+t,((t,e,n)=>{if(!n[r3("0x1d")][r3("0x24")](e.item,t[r3("0x17")]))return;const i=e.item[r3("0x23")](r3("0xd")),o=n.mapper.toViewElement(e[r3("0x1")]);n[r3("0xb")].setAttribute("id",i,o)}))))}_registerHeadingIdAttributePostfixer(){const t=this.editor,e=new Set,n=new Set;function i(t,e){const i=(0,Uu.uid)();return n[r3("0x0")](i),t.setAttribute(r3("0xd"),i,e),i}t[r3("0x1e")][r3("0x2b")].registerPostFixer((o=>{const r=t[r3("0x1e")][r3("0x2b")][r3("0x10")].getChanges();let s=!1;for(const t of r)if("insert"==t[r3("0x15")]&&t.name)if(t[r3("0x17")][r3("0x16")](/heading\d/)){const r=t[r3("0x1c")][r3("0x14")]("headingId");"string"==typeof r?e[r3("0x2")](r)?(i(o,t[r3("0x12")].nodeAfter),s=!0):n.add(r):(i(o,t[r3("0x12")][r3("0x1b")]),s=!0)}else"string"==typeof t.attributes[r3("0x14")](r3("0xd"))&&(a=o,c=t[r3("0x12")][r3("0x1b")],a[r3("0x4")](r3("0xd"),c),s=!0);else if("remove"==t[r3("0x15")]){const n=t[r3("0x1c")].get(r3("0xd"));r3("0x11")==typeof n&&e[r3("0x5")](n)}var a,c;return s})),t.model[r3("0x2b")].on(r3("0x19"),(()=>{n[r3("0xf")]((t=>e.add(t))),n.clear()}))}}class a3 extends Yt{static get pluginName(){return"TableOfContentsEditing"}static get requires(){return[I_,B5,s3]}constructor(t){super(t),this._currentOutlineDefinitions=[],this._tableOfContentsElements=new Set,this._headingIdModelAttributeName="headingId"}init(){const t=this.editor,e=t.editing.view.document;t.config.get("headingId.modelAttributeName")&&(this._headingIdModelAttributeName=t.config.get("headingId.modelAttributeName")),this.listenTo(e,"click",((t,e)=>{if(!e.target)return;const n=e.target.getCustomProperty("tableOfContentsHeadingIndex");Number.isInteger(n)&&(e.domEvent.preventDefault(),t.stop(),this._handleScrollToHeading(n))}),{priority:"high",context:"$capture"}),this._defineSchema(),this._defineConverters(),t.commands.add("insertTableOfContents",new X5(t)),t.plugins.get("DocumentOutlineUtils").on("change",((t,e)=>{this._currentOutlineDefinitions=e.outlineDefinitions,this._updateTableOfContentsElements()})),this.listenTo(t.model.document,"change",(()=>{this._trackNewToCElements()}))}afterInit(){!function(t){function e(t){return t.map((t=>String.fromCharCode(t))).join("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i.getRevision(0),r=i.getEarlierVisibleRevision(o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1).then((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t.context:t.editor,d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l.config.get(e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}_updateTableOfContentsElements(){this._tableOfContentsElements.forEach((t=>{"$graveyard"!==t.rootName&&this.editor.editing.reconvertItem(t)}))}_trackNewToCElements(){for(const t of this.editor.model.document.differ.getChanges({includeChangesInGraveyard:!0})){if("insert"!==t.type||"tableOfContents"!==t.name)return;this._tableOfContentsElements.add(t.position.nodeAfter)}}_defineSchema(){this.editor.model.schema.register("tableOfContents",{inheritAllFrom:"$blockObject"})}_defineConverters(){const t=this.editor.conversion,e=this.editor.t;t.for("upcast").elementToElement({model:"tableOfContents",view:{name:"div",classes:"table-of-contents"}}),t.for("dataDowncast").elementToStructure({model:"tableOfContents",view:(t,{writer:e})=>this._createTableOfContents(e,!0)}),t.for("editingDowncast").elementToStructure({model:"tableOfContents",view:(t,{writer:n})=>{this._tableOfContentsElements.add(t);return s_(this._createTableOfContents(n),n,{label:e("Table of contents")})}}),this.editor.data.registerRawContentMatcher({name:"div",classes:"table-of-contents"}),this.editor.editing.mapper.on("viewToModelPosition",this._redirectMapper(),{priority:"high"})}_createTableOfContents(t,e=!1){const n=this.editor.t,i=t.createContainerElement("div",{class:"table-of-contents"+(0===this._currentOutlineDefinitions.length?" table-of-contents_empty":""),...!e&&{"data-table-of-contents-label":n("Table of contents")}});0===this._currentOutlineDefinitions.length&&!1===e&&t.insert(t.createPositionAt(i,"end"),t.createContainerElement("p",{class:"table-of-contents__placeholder"},[t.createText(n("No headings were found in the document."))]));const o=e?"":"["+n("Empty heading")+"]";let r=i;return this._currentOutlineDefinitions.forEach(((n,i,s)=>{const a=this.editor.model.hasContent(n.modelElement,{ignoreWhitespaces:!0}),c=a?n.text:o,l=n.modelElement.getAttribute(this._headingIdModelAttributeName),d=t.createContainerElement("a",{href:"#"+l,...!e&&{tabindex:"-1"}},[t.createText(c)]),u=this.editor.config.get("documentOutline.showEmptyHeadings");t.setCustomProperty("tableOfContentsHeadingIndex",i,d);const h=t.createContainerElement("li",null,[a||!e&&u?d:t.createText("")]),m=i?s[i-1].level:0,g=Math.abs(n.level-m);if(n.level>m){const e=c3(h,g,t);t.insert(t.createPositionAt(r,"end"),e)}else{const e=(p=g,r.getAncestors({includeSelf:!0,parentFirst:!0}).filter((t=>t.is("element","ol")))[p]);t.insert(t.createPositionAt(e,"end"),h)}var p;r=h})),i}_handleScrollToHeading(t){const e=this._currentOutlineDefinitions[t].modelElement;this.editor.model.change((t=>{t.setSelection(e,0)})),this.editor.editing.view.scrollToTheSelection({alignToTop:!0,forceScroll:!0})}_redirectMapper(){return(t,e)=>{const n=e.mapper,i=n.findMappedViewAncestor(e.viewPosition),o=n.toModelElement(i);o.is("element","tableOfContents")&&(e.modelPosition=this.editor.model.createPositionAt(o,0),t.stop())}}}function c3(t,e,n){return 1===e?n.createContainerElement("ol",null,[t]):n.createContainerElement("ol",null,[n.createContainerElement("li",null,[c3(t,e-1,n)])])}class l3 extends Yt{static get pluginName(){return"TableOfContentsUI"}constructor(t){super(t),this._licenseKeyCheckInterval=null}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("tableOfContents",(n=>{const i=t.commands.get("insertTableOfContents"),o=new U(n);return o.set({label:e("Table of contents"),icon:Z5,tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("insertTableOfContents"),t.editing.view.focus()})),o})),this.licenseKey=t.config.get("licenseKey");const n=this.editor;this._licenseKeyCheckInterval=setInterval((()=>{let t;for(const e in n){const i=e,o=n[i];if("tableOfContentsLicenseKeyTrial"===o||"tableOfContentsLicenseKeyInvalid"===o||"tableOfContentsLicenseKeyValid"===o||"tableOfContentsLicenseKeyTrialLimit:operations"===o){delete n[i],t=o;break}}if("tableOfContentsLicenseKeyInvalid"===t)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError("table-of-contents-invalid-license-key",null);if("tableOfContentsLicenseKeyTrial"===t&&console.info("You are using the trial version of CKEditor 5 table of contents plugin with limited usage. Make sure you will not use it in the production environment."),"tableOfContentsLicenseKeyTrialLimit:operations"===t)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError("table-of-contents-trial-license-key-reached-limit-changes",null);"tableOfContentsLicenseKeyValid"===t&&clearInterval(this._licenseKeyCheckInterval)}),1e3)}destroy(){this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}var d3,u3,h3=["requires","pluginName"];d3=h3,u3=336,function(t){for(;--t;)d3.push(d3.shift())}(++u3);var m3=function(t,e){return h3[t-=0]};class g3 extends Yt{static get[m3("0x0")](){return[a3,l3]}static get[m3("0x1")](){return"TableOfContents"}}const p3='<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',f3=["ck-format-painter-active","copyFormat","pasteFormat"];var x3,b3;x3=f3,b3=381,function(t){for(;--t;)x3.push(x3.shift())}(++b3);const k3=function(t,e){return f3[t-=0]},w3=k3("0x1"),A3=k3("0x2"),_3=k3("0x0"),v3=["change:value","model","selection","document","schema","filter","refresh","from","getAttributes","fromEntries","change:isEnabled","getAttributeProperties","execute","_getFormattingAttributes","commands","editor","reset","value"];var C3,y3;C3=v3,y3=449,function(t){for(;--t;)C3.push(C3.shift())}(++y3);const E3=function(t,e){return v3[t-=0]};class I3 extends $t{constructor(t){super(t),this[E3("0x0")]=void 0,this.on(E3("0xb"),((t,e,n)=>{n||this[E3("0x11")]()})),this.on(E3("0x1"),(()=>t[E3("0xf")].get(A3)[E3("0x7")]()))}[E3("0xd")](){this[E3("0x0")]=this[E3("0xe")]()}reset(){this[E3("0x0")]=void 0}[E3("0xe")](){const t=this[E3("0x10")][E3("0x2")],e=t[E3("0x4")][E3("0x3")];return Object[E3("0xa")](Array[E3("0x8")](e[E3("0x9")]())[E3("0x6")]((([e])=>t[E3("0x5")][E3("0xc")](e).isFormatting)))}}const S3=["isCollapsed","schema","getAttributes","getAttributeProperties","getLastPosition","document","getRanges","setSelection","createRange","backward","change","getFirstPosition","_createRangeOnEntireWord","modifySelection","_getFormattingItems","_removeFormatCommand","_getFormattingAttributes","createSelection","createRangeOn","selection","removeAttribute","isBlock","removeSelectionAttribute","word","model","execute","from","setAttribute","getItems"];var T3,D3;T3=S3,D3=457,function(t){for(;--t;)T3.push(T3.shift())}(++D3);const M3=function(t,e){return S3[t-=0]};class B3 extends $t{constructor(t){super(t),this[M3("0x16")]=new O3(t)}[M3("0x3")](t={}){const e=this.editor[M3("0x2")],n=e[M3("0xc")].selection,i=Array[M3("0x4")](n[M3("0xd")]()),o=n[M3("0x7")]?[this[M3("0x13")](e,n)]:i;e[M3("0x11")]((n=>{n.setSelection(o),this[M3("0x16")][M3("0x3")]();for(const i in t)for(const r of e[M3("0x8")].getValidRanges(o,i))n[M3("0x5")](i,t[i],r);n[M3("0xe")](i)}))}[M3("0x13")](t,e){const n=t[M3("0x18")](e);t[M3("0x14")](n,{unit:"word",direction:M3("0x10")});const i=n[M3("0x12")]();t.modifySelection(n,{unit:M3("0x1"),direction:"forward"});const o=n[M3("0xb")]();return t[M3("0xf")](i,o)}}class O3 extends $t{execute(){const t=this.editor[M3("0x2")],e=t[M3("0x8")];t[M3("0x11")]((n=>{for(const i of this[M3("0x15")](t[M3("0xc")][M3("0x1a")],e))if(i.is(M3("0x1a")))for(const t of this[M3("0x17")](i,e))n[M3("0x0")](t);else{const t=n[M3("0x19")](i);for(const o of this[M3("0x17")](i,e))n[M3("0x1b")](o,t)}}))}*[M3("0x15")](t,e){const n=t=>!!(0,Uu.first)(this[M3("0x17")](t,e));for(const i of t.getRanges())for(const t of i[M3("0x6")]())!e[M3("0x1c")](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[M3("0x9")]()){const t=e[M3("0xa")](n);t&&t.isFormatting&&(yield n)}}}const N3=["formatPainterLicenseKeyTrialLimit:operations","formatPainterLicenseKeyTrial","info","formatPainterLicenseKeyValid","pluginName","licenseKey","init","formatPainterLicenseKeyInvalid","FormatPainterEditing","You are using the trial version of CKEditor 5 format painter plugin with limited usage. Make sure you will not use it in the production environment.","format-painter-invalid-license-key","commands","add","_licenseKeyCheckInterval","config","editor","get"];var P3,R3;P3=N3,R3=176,function(t){for(;--t;)P3.push(P3.shift())}(++R3);const L3=function(t,e){return N3[t-=0]};class j3 extends Yt{static get[L3("0xf")](){return L3("0x2")}constructor(t){super(t),this[L3("0x7")]=null}[L3("0x0")](){const t=this[L3("0x9")];t[L3("0x5")].add(w3,new I3(t)),t.commands[L3("0x6")](A3,new B3(t)),this[L3("0x10")]=t[L3("0x8")][L3("0xa")](L3("0x10"));const e=this[L3("0x9")];this[L3("0x7")]=setInterval((()=>{let t;for(const n in e){const i=n,o=e[i];if(L3("0xc")===o||L3("0x1")===o||L3("0xe")===o||L3("0xb")===o){delete e[i],t=o;break}}if(L3("0x1")===t)throw clearInterval(this[L3("0x7")]),new Uu.CKEditorError(L3("0x4"),null);if(L3("0xc")===t&&console[L3("0xd")](L3("0x3")),L3("0xb")===t)throw clearInterval(this[L3("0x7")]),new Uu.CKEditorError("format-painter-trial-license-key-reached-limit-changes",null);"formatPainterLicenseKeyValid"===t&&clearInterval(this[L3("0x7")])}),1e3)}destroy(){this[L3("0x7")]&&clearInterval(this[L3("0x7")])}}var z3=__webpack_require__(2819),V3={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(z3.Z,V3);z3.Z.locals;class F3 extends((0,Uu.DomEmitterMixin)(Yt)){static get pluginName(){return"FormatPainterUI"}init(){const t=this.editor;t.editing.view.addObserver(Ua),t.ui.componentFactory.add("formatPainter",(e=>{const n=e.t,i=dl(e,rl),o=t.commands.get(w3);i.buttonView.set({label:n("Paint formatting"),icon:p3,tooltip:!0}),i.class="ck-format-painter-dropdown",o&&(i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(o,"change:isEnabled",((t,e,n)=>{n||this._finishPainting()})),i.buttonView.bind("isOn").to(o,"value",(t=>!!t)),this.listenTo(t,"destroy",(()=>this._toggleSpecialCursor(!1))),this.listenTo(o,"change:value",((t,e,n)=>{this._toggleSpecialCursor(!!n)})));const r=new Qd({withText:!0,label:n("Continuous painting"),tooltip:n("Keeps the painter on after setting the formatting."),isOn:!1});return ml(i,new Uu.Collection([{type:"switchbutton",model:r}])),this.listenTo(i,"execute",(()=>{r.isOn=!r.isOn})),this.listenTo(i.buttonView,"execute",(()=>{i.buttonView.isOn?this._finishPainting():(t.execute(w3),t.ui.ariaLiveAnnouncer.announce("formatPainter",n("Formatting copied.")),this.listenTo(Uu.global.window.document,"mouseup",(()=>{const e=t.commands.get(w3).value;t.execute(A3,e),t.ui.ariaLiveAnnouncer.announce("formatPainter",n("Pasted formatting.")),r.isOn||this._finishPainting()})))})),i}))}afterInit(){!function(t){function e(t){return t.map((t=>String.fromCharCode(t))).join("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i.getRevision(0),r=i.getEarlierVisibleRevision(o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1).then((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t.context:t.editor,d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l.config.get(e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}_toggleSpecialCursor(t){this.editor.editing.view.change((e=>{for(const n of this.editor.editing.view.document.roots)t?e.addClass(_3,n):e.removeClass(_3,n)}))}_finishPainting(){this.editor.commands.get(w3).reset(),this.stopListening(Uu.global.window.document,"mouseup")}}var U3,H3,G3=["pluginName","FormatPainter","requires"];U3=G3,H3=350,function(t){for(;--t;)U3.push(U3.shift())}(++H3);var q3=function(t,e){return G3[t-=0]};class W3 extends Yt{static get[q3("0x0")](){return[j3,F3]}static get[q3("0x1")](){return q3("0x2")}}const K3='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',Z3=["string","htmlProcessor","insertContent","execute","function","data","toView","editor","change","toModel"];var Y3,J3;Y3=Z3,J3=490,function(t){for(;--t;)Y3.push(Y3.shift())}(++J3);const $3=function(t,e){return Z3[t-=0]};class Q3 extends $t{[$3("0x3")](t){const{model:e}=this[$3("0x7")];let n;switch(typeof t){case $3("0x0"):n=t;break;case $3("0x4"):n=t()}$3("0x0")==typeof n&&e[$3("0x8")]((()=>{const t=this.editor[$3("0x5")][$3("0x1")][$3("0x6")](n),i=this[$3("0x7")][$3("0x5")][$3("0x9")](t);e[$3("0x2")](i)}))}}const X3=["config","templateLicenseKeyTrial","commands","insertTemplate","destroy","templateLicenseKeyValid","template-invalid-license-key","_licenseKeyCheckInterval","pluginName","editor","TemplateEditing","templateLicenseKeyTrialLimit:operations","You are using the trial version of CKEditor 5 template plugin with limited usage. Make sure you will not use it in the production environment.","templateLicenseKeyInvalid","get"];var t4,e4;t4=X3,e4=267,function(t){for(;--t;)t4.push(t4.shift())}(++e4);const n4=function(t,e){return X3[t-=0]};class i4 extends Yt{static get[n4("0xb")](){return n4("0xd")}constructor(t){super(t),this._licenseKeyCheckInterval=null}init(){const{editor:t}=this;t[n4("0x5")].add(n4("0x6"),new Q3(t)),this.licenseKey=t[n4("0x3")][n4("0x2")]("licenseKey");const e=this[n4("0xc")];this[n4("0xa")]=setInterval((()=>{let t;for(const n in e){const i=n,o=e[i];if("templateLicenseKeyTrial"===o||n4("0x1")===o||n4("0x8")===o||n4("0xe")===o){delete e[i],t=o;break}}if(n4("0x1")===t)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError(n4("0x9"),null);if(n4("0x4")===t&&console.info(n4("0x0")),n4("0xe")===t)throw clearInterval(this[n4("0xa")]),new Uu.CKEditorError("template-trial-license-key-reached-limit-changes",null);n4("0x8")===t&&clearInterval(this[n4("0xa")])}),1e3)}[n4("0x7")](){this[n4("0xa")]&&clearInterval(this[n4("0xa")])}}const o4=["items","map","get","_resetFiltering","title","length","buttonView","sort","clear","isVisible","highlightText","set","filter","originalIndex","size"];var r4,s4;r4=o4,s4=271,function(t){for(;--t;)r4.push(r4.shift())}(++s4);const a4=function(t,e){return o4[t-=0]};class c4 extends nl{[a4("0xb")](t){if(!t)return this[a4("0x2")]();const e=new Map,n=this[a4("0xe")][a4("0x0")]((n=>{const i=n[a4("0x5")].isMatching(t);return n.isVisible=!!i,n.buttonView[a4("0x9")](i?t:null),i&&e[a4("0xa")](n,i),n})).sort(l4)[a4("0x6")]((i=e,function(t,e){const n=i[a4("0x1")](t),o=i[a4("0x1")](e);return n&&!o?-1:o&&!n?1:n||o?n[a4("0x3")]&&!o.title?-1:!n[a4("0x3")]&&o[a4("0x3")]?1:0:0}));var i;return this[a4("0xe")].clear(),this[a4("0xe")].addMany(n),{resultsCount:e[a4("0xd")],totalItemsCount:this[a4("0xe")][a4("0x4")]}}_resetFiltering(){const t=this[a4("0xe")][a4("0x0")]((t=>t))[a4("0x6")](l4);return t.forEach((t=>{t[a4("0x8")]=!0,t[a4("0x5")][a4("0x9")](null)})),this[a4("0xe")][a4("0x7")](),this.items.addMany(t),{resultsCount:t[a4("0x4")],totalItemsCount:t[a4("0x4")]}}}function l4(t,e){return t[a4("0xc")]-e.originalIndex}var d4,u4,h4=["buttonView","originalIndex"];d4=h4,u4=421,function(t){for(;--t;)d4.push(d4.shift())}(++u4);var m4=function(t,e){return h4[t-=0]};class g4 extends $c{constructor(t,e){super(t),this[m4("0x0")]=e,this[m4("0x1")]=null}}const p4='<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45">\n  <path fill="#F0F0F0" d="M2 0h41s2 0 2 2v41s0 2 -2 2h-41s-2 0 -2 -2v-41s0 -2 2 -2" />\n  <path fill="#D5D5D5" d="M11 10h10s1 0 1 1v24s0 1 -1 1h-10s-1 0 -1 -1v-24s0 -1 1 -1" />\n  <path fill="#D5D5D5" d="M25 10h10s1 0 1 1v10s0 1 -1 1h-10s-1 0 -1 -1v-10s0 -1 1 -1" />\n  <path fill="#D5D5D5" d="M25 24h10s1 0 1 1v10s0 1 -1 1h-10s-1 0 -1 -1v-10s0 -1 1 -1" />\n</svg>\n',f4=["textPartView","remove","titleView","ck-template-form__text-part","option","push","match","setTemplate","templateDefinition","isColorInherited","text","element","render","children","labelView","title","isMatching","descriptionView","highlightText","ck-button__label","description","div","destroy","add","ck-template-form__description","extendTemplate","iconView"];var x4,b4;x4=f4,b4=358,function(t){for(;--t;)x4.push(x4.shift())}(++b4);const k4=function(t,e){return f4[t-=0]};class w4 extends U{constructor(t,e){super(t),this[k4("0x1")]=e,this.textPartView=null;const{icon:n=p4}=e;this.set({withText:!0,icon:n}),this.extendTemplate({attributes:{role:k4("0x18")}}),this[k4("0x13")][k4("0x2")]=!1}render(){super[k4("0x5")](),this.textPartView=new A4(this.locale,this[k4("0x1")],this.labelView[k4("0x4")].id),this[k4("0x6")][k4("0x15")](this[k4("0x7")]),this[k4("0x6")][k4("0x10")](this[k4("0x14")])}destroy(){super.destroy(),this[k4("0x7")][k4("0xf")]()}[k4("0x9")](t){const{title:e,description:n}=this.templateDefinition,i=!!e[k4("0x1a")](t),o=!(!n||!n[k4("0x1a")](t));return i||o?{title:i,description:o}:null}[k4("0xb")](t){this[k4("0x14")][k4("0xb")](t)}}class A4 extends u{constructor(t,e,n){super(t),this[k4("0x8")]=e[k4("0x8")],this[k4("0xd")]=e.description,this[k4("0x16")]=new Mu,this[k4("0x16")][k4("0x3")]=this[k4("0x8")],this[k4("0x16")].extendTemplate({tag:"span",attributes:{class:[k4("0xc")],id:n}});const i=[this[k4("0x16")]];this[k4("0xd")]&&(this[k4("0xa")]=new Mu,this.descriptionView[k4("0x3")]=this.description,this[k4("0xa")][k4("0x12")]({tag:"p",attributes:{class:[k4("0x11")]}}),i[k4("0x19")](this[k4("0xa")])),this[k4("0x0")]({tag:k4("0xe"),attributes:{class:["ck",k4("0x17")]},children:i})}[k4("0xb")](t){this[k4("0x16")][k4("0xb")](t),this[k4("0xd")]&&this.descriptionView[k4("0xb")](t)}}var _4=__webpack_require__(8112),v4={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(_4.Z,v4);_4.Z.locals;class C4 extends Yt{static get pluginName(){return"TemplateUI"}init(){const{editor:t}=this,{t:e}=t,n=t.config.get("template.definitions")||[];t.ui.componentFactory.add("insertTemplate",(i=>{const o=dl(i),r=this._createTemplateListView(i,n),s=new wu(i,{filteredView:r,queryView:{label:e("Search template")},class:"ck-template-form",infoView:{text:{notFound:{primary:t=>e('No templates were found matching "%0".',t),secondary:e("Please try a different phrase or check the spelling.")},noSearchableItems:{primary:e("No templates available.")}}}}),a=t.commands.get("insertTemplate");return o.bind("isEnabled").to(a),o.panelView.children.add(s),o.buttonView.set({label:e("Insert template"),icon:K3,tooltip:!0}),o.on("change:isOpen",((t,e,n)=>{n||s.reset()})),o}))}afterInit(){!function(t){function e(t){return t.map((t=>String.fromCharCode(t))).join("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i.getRevision(0),r=i.getEarlierVisibleRevision(o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1).then((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t.context:t.editor,d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l.config.get(e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}_createTemplateListView(t,e){const{editor:n}=this,i=new c4(t);return i.extendTemplate({attributes:{class:["ck-template-list"]}}),i.items.addMany(e.map(((e,i)=>{const o=new g4(t,i),r=new w4(t,e);return o.buttonView=r,o.children.add(r),o.buttonView.on("execute",(t=>{n.execute("insertTemplate",t.source.templateDefinition.data),n.editing.view.focus()})),o}))),i}}var y4,E4,I4=["pluginName","requires","Template"];y4=I4,E4=147,function(t){for(;--t;)y4.push(y4.shift())}(++E4);var S4=function(t,e){return I4[t-=0]};class T4 extends Yt{static get[S4("0x1")](){return[i4,C4]}static get[S4("0x0")](){return S4("0x2")}}class D4 extends Yt{static get pluginName(){return"SlashCommandConfig"}constructor(t){super(t),this._allowedCommands=null}afterInit(){const t=this.editor.config.get("slashCommand.removeCommands")||[],e=function(t){let e=["heading4","heading5","heading6"];if(t){const n=t.map((t=>t.model));e=["heading1","heading2","heading3","heading4","heading5","heading6"].filter((t=>!n.includes(t)))}return e}(this.editor.config.get("heading.options"));let n=this.getDefaultCommands().filter((t=>!e.includes(t.id))).filter((e=>!t.includes(e.commandName)));const i=this.editor.config.get("slashCommand.extraCommands");i&&i.length&&(n=n.concat(i));const o=this.editor.config.get("template.definitions");o&&o.length&&(n=n.concat(o.map((t=>{const{title:e,icon:n,description:i,data:o}=t,r={id:B4(e,"template"),commandName:"insertTemplate",execute:t=>{t.execute("insertTemplate",o)},description:i,icon:n,title:e};return n&&(r.isIconColorInherited=!1),r}))));const r=this.editor.config.get("style.definitions");r&&r.length&&(n=n.concat(r.map((t=>({id:B4(t.name,"style"),commandName:"style",execute:e=>{e.execute("style",{styleName:t.name})},isEnabled:e=>{const n=e.commands.get("style");return n.isEnabled&&n.enabledStyles.includes(t.name)},title:t.name})))));const s=n.filter((t=>!t.commandName||void 0!==this.editor.commands.get(t.commandName))),a=[];for(const t of s)a.push({id:t.id,commandName:t.commandName,title:"function"==typeof t.title?t.title(this.editor):t.title,description:t.description,icon:t.icon,isIconColorInherited:t.isIconColorInherited,aliases:t.aliases,isEnabled:()=>this._proxyIsEnabled(t),execute:()=>this._proxyExecute(t)});this._allowedCommands=a.sort(M4)}getAllowedCommands(){return this._allowedCommands}getDefaultCommands(){const t=this.editor.t,e=this.editor.locale.t;return[{id:"aiAssistant",commandName:"showAIAssistant",icon:Jm,title:e("AI Assistant"),description:t("Open the AI Assistant to generate content"),execute:t=>{setTimeout((()=>t.execute("showAIAssistant")))}},{id:"blockQuote",commandName:"blockQuote",icon:Uc.quote,title:e("Block quote"),description:t("Create a block quote")},{id:"bulletedList",commandName:"bulletedList",icon:FM,title:e("Bulleted list"),description:t("Create a bulleted list")},{id:"codeBlock",commandName:"codeBlock",icon:Ob,title:e("Insert code block"),description:t("Create a code block")},{id:"ckbox",commandName:"ckbox",icon:vx,title:e("Open file manager"),description:t("Open file manager to insert an image or a file"),aliases:["ckfinder","filemanager","upload"]},{id:"ckfinder",commandName:"ckfinder",icon:ob,title:e("Insert image"),description:t("Open file browser to insert an image or a file"),aliases:["ckbox","filemanager","upload"]},{id:"heading1",commandName:"heading",icon:YI,title:e("Heading 1"),description:t("Create a heading level 1"),execute:t=>{t.execute("heading",{value:"heading1"})}},{id:"heading2",commandName:"heading",icon:JI,title:e("Heading 2"),description:t("Create a heading level 2"),execute:t=>{t.execute("heading",{value:"heading2"})}},{id:"heading3",commandName:"heading",icon:$I,title:e("Heading 3"),description:t("Create a heading level 3"),execute:t=>{t.execute("heading",{value:"heading3"})}},{id:"heading4",commandName:"heading",icon:QI,title:e("Heading 4"),description:t("Create a heading level 4"),execute:t=>{t.execute("heading",{value:"heading4"})}},{id:"heading5",commandName:"heading",icon:XI,title:e("Heading 5"),description:t("Create a heading level 5"),execute:t=>{t.execute("heading",{value:"heading5"})}},{id:"heading6",commandName:"heading",icon:tS,title:e("Heading 6"),description:t("Create a heading level 6"),execute:t=>{t.execute("heading",{value:"heading6"})}},{id:"horizontalLine",commandName:"horizontalLine",icon:bN,title:e("Horizontal line"),description:t("Insert a horizontal line")},{id:"htmlEmbed",commandName:"htmlEmbed",icon:IN,title:e("Insert HTML"),description:t("Insert an HTML snippet")},{id:"indent",commandName:"indent",icon:nD,title:e("Increase indent"),description:t("Increase the indentation")},{id:"insertMermaidCommand",commandName:"insertMermaidCommand",title:t("Insert Mermaid diagram"),description:t("Insert the Mermaid diagram")},{id:"insertTable",commandName:"insertTable",icon:VK,title:e("Insert table"),description:t("Create a table")},{id:"insertTableOfContents",commandName:"insertTableOfContents",icon:Z5,title:e("Table of contents"),description:t("Insert table of contents"),aliases:["toc"]},{id:"numberedList",commandName:"numberedList",icon:VM,title:e("Numbered list"),description:t("Create a numbered list")},{id:"outdent",commandName:"outdent",icon:iD,title:e("Decrease indent"),description:t("Decrease the indentation")},{id:"paragraph",commandName:"paragraph",icon:Uc.paragraph,title:e("Paragraph"),description:t("Insert a paragraph")},{id:"todoList",commandName:"todoList",icon:VB,title:e("To-do list"),description:t("Create a to-do list")}]}_proxyIsEnabled(t){return t.isEnabled?t.isEnabled(this.editor):!t.commandName||this.editor.commands.get(t.commandName).isEnabled}_proxyExecute(t){if(t.execute)t.execute(this.editor);else{if(!t.commandName)throw new Uu.CKEditorError("slash-command-execute-missing",this.editor,{commandDefinition:t});this.editor.execute(t.commandName)}}}function M4(t,e){return t.title<e.title?-1:t.title>e.title?1:0}function B4(t,e){return e+"-"+t.toLowerCase().split(" ").join("-")}const O4=["aliases","destroy","editor","concat","pluginName","includes","slashCommandLicenseKeyTrialLimit:operations","push","toLowerCase","filter","slash-command-invalid-license-key","You are using the trial version of CKEditor 5 slash command plugin with limited usage. Make sure you will not use it in the production environment.","_licenseKeyCheckInterval","slashCommandLicenseKeyInvalid","SlashCommandEditing","licenseKey","slashCommandLicenseKeyTrial","requires","slashCommandLicenseKeyValid","SlashCommandConfig","description","info","get","title","isEnabled"];var N4,P4;N4=O4,P4=491,function(t){for(;--t;)N4.push(N4.shift())}(++P4);const R4=function(t,e){return O4[t-=0]};class L4 extends Yt{static get[R4("0xd")](){return R4("0x17")}static get[R4("0x1")](){return[D4]}constructor(t){super(t),this[R4("0x15")]=null}init(){const t=this.editor;this[R4("0x18")]=t.config[R4("0x6")](R4("0x18"));const e=this.editor;this[R4("0x15")]=setInterval((()=>{let t;for(const n in e){const i=n,o=e[i];if(R4("0x0")===o||R4("0x16")===o||R4("0x2")===o||R4("0xf")===o){delete e[i],t=o;break}}if(R4("0x16")===t)throw clearInterval(this._licenseKeyCheckInterval),new Uu.CKEditorError(R4("0x13"),null);if(R4("0x0")===t&&console[R4("0x5")](R4("0x14")),R4("0xf")===t)throw clearInterval(this[R4("0x15")]),new Uu.CKEditorError("slash-command-trial-license-key-reached-limit-changes",null);"slashCommandLicenseKeyValid"===t&&clearInterval(this._licenseKeyCheckInterval)}),1e3)}[R4("0xa")](){this._licenseKeyCheckInterval&&clearInterval(this[R4("0x15")])}getMatchingCommands(t){const e=t&&t[R4("0x11")]();let n=this[R4("0xb")].plugins[R4("0x6")](R4("0x3")).getAllowedCommands();if(n=n[R4("0x12")]((t=>t[R4("0x8")]())),e){const t=[],i=[],o=[],r=[];for(const s of n)s.id[R4("0x11")]().includes(e)?t[R4("0x10")](s):s[R4("0x7")][R4("0x11")]()[R4("0xe")](e)?i[R4("0x10")](s):s[R4("0x9")]&&s[R4("0x9")].some((t=>t[R4("0x11")]().includes(e)))?o.push(s):s[R4("0x4")]&&s[R4("0x4")].toLowerCase()[R4("0xe")](e)&&r[R4("0x10")](s);n=t[R4("0xc")](i,o,r)}return n}}const j4=["_createTextPartView","isColorInherited","labelView","ck-slash-command-button","ck-slash-command-button__text-part","textPartView","span","render","children","isIconColorInherited","add","ck-slash-command-button__description","title"];var z4,V4;z4=j4,V4=201,function(t){for(;--t;)z4.push(z4.shift())}(++V4);const F4=function(t,e){return j4[t-=0]};class U4 extends U{constructor(t,e){super(t),this.textPartView=this._createTextPartView(t,e),void 0!==e[F4("0x3")]&&(this.iconView[F4("0x8")]=e.isIconColorInherited),this.set({icon:e.icon||'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M10 19a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm3.45-9.872a1 1 0 0 1 0 1.744l-4.96 2.79A1 1 0 0 1 7 12.79V7.21a1 1 0 0 1 1.49-.872l4.96 2.79Z"/></svg>',withText:!0,label:e[F4("0x6")],class:F4("0xa")})}render(){super[F4("0x1")](),this[F4("0x2")][F4("0x4")](this[F4("0xc")])}[F4("0x7")](t,e){const n=new u(t);return n.setTemplate({tag:"div",attributes:{class:["ck",F4("0xb")]},children:e.description?[this.labelView,{tag:F4("0x0"),attributes:{class:["ck",F4("0x5")]},children:[{text:e.description}]}]:[this[F4("0x9")]]}),n}}var H4=__webpack_require__(651),G4={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};c()(H4.Z,G4);H4.Z.locals;const q4=["change","_overrideMentionExecuteListener","mention.feeds","_setupMentionConfiguration","isNaN","SlashCommandUI","_customItemRenderer","remove","high","execute","push","then","config","getMatchingCommands","init","afterInit","fromCharCode","set","range","get","stop","plugins","join","mention","map","commands","render","ready","slashCommand.dropdownLimit","bind","marker","getEarlierVisibleRevision","editor"];var W4,K4;W4=q4,K4=121,function(t){for(;--t;)W4.push(W4.shift())}(++K4);const Z4=function(t,e){return q4[t-=0]};class Y4 extends Yt{static get pluginName(){return Z4("0x10")}constructor(t){super(t),this[Z4("0xe")]()}[Z4("0x19")](){this[Z4("0xa")].once(Z4("0x5"),this[Z4("0xc")][Z4("0x7")](this))}[Z4("0x1a")](){!function(t){function e(t){return t[Z4("0x2")]((t=>String[Z4("0x1b")](t)))[Z4("0x0")]("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i.getRevision(0),r=i[Z4("0x9")](o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[Z4("0x16")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[Z4("0xf")](Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[Z4("0xf")](Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t.context:t[Z4("0xa")],d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l[Z4("0x17")][Z4("0x1e")](e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}_setupMentionConfiguration(){const t=this[Z4("0xa")],e=this[Z4("0xa")][Z4("0x20")].get("SlashCommandEditing"),n=t[Z4("0x17")][Z4("0x1e")](Z4("0xd"));n[Z4("0x15")]({marker:"/",feed:t=>e[Z4("0x18")](t),itemRenderer:this[Z4("0x11")][Z4("0x7")](this),dropdownLimit:t[Z4("0x17")][Z4("0x1e")](Z4("0x6"))||1/0}),t.config[Z4("0x1c")](Z4("0xd"),n)}[Z4("0xc")](){const t=this[Z4("0xa")];t[Z4("0x3")].get(Z4("0x1")).on(Z4("0x14"),((e,n)=>{const i=n[0],o=t.model;"/"===i[Z4("0x8")]&&o[Z4("0xb")]((t=>{t[Z4("0x12")](i[Z4("0x1d")]),i[Z4("0x1")].execute(),e[Z4("0x1f")]()}))}),{priority:Z4("0x13")})}[Z4("0x11")](t){const e=this.editor.locale,n=new U4(e,t);return n[Z4("0x4")](),n.element}}var J4,$4,Q4=["SlashCommand","pluginName","requires","Mention"];J4=Q4,$4=391,function(t){for(;--t;)J4.push(J4.shift())}(++$4);var X4=function(t,e){return Q4[t-=0]};class t7 extends Yt{static get[X4("0x3")](){return[X4("0x0"),L4,Y4]}static get[X4("0x2")](){return X4("0x1")}}const e7=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function n7(t){return e7.test(t)}const i7=["push","tagName","className","exec","selectorText","set","name","trim","getPropertyValue","groups","cssRules","length","map","style","initial","assign"];var o7,r7;o7=i7,r7=373,function(t){for(;--t;)o7.push(o7.shift())}(++r7);const s7=function(t,e){return i7[t-=0]},a7=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function c7(t,e){const n=new Map;for(const[i,o]of e){if(!i.tagName&&!i.className)continue;const e=!i[s7("0xc")]||t[s7("0x1")]===i.tagName,r=!i[s7("0xd")]||t.hasClass(i.className);e&&r&&n[s7("0x0")](i,o)}return n}function l7(t){const e={};for(let n=0;n<t[s7("0x6")];n++){const i=t[n],o=t[s7("0x3")](i);s7("0x9")!==o&&(e[i]=o)}return e}function d7(t){const e=t.split(",")[s7("0x7")]((t=>t[s7("0x2")]())),n=[];for(const t of e){const e=a7[s7("0xe")](t);e&&n[s7("0xb")](e[s7("0x4")])}return n}function u7(t){const e={};for(const n of t)Object.assign(e,n);return e}const h7=["setStyle","size","createRangeIn","document","from","item","isActive","type","values"];var m7,g7;m7=h7,g7=116,function(t){for(;--t;)m7.push(m7.shift())}(++g7);const p7=function(t,e){return h7[t-=0]};class f7 extends qR{execute(t){const{body:e,styles:n}=t._parsedData,i=new Ga(e[p7("0x4")]),o=i[p7("0x3")](e),r=function(t){const e=new Map;for(const n in t){const i=d7(n),o=t[n];for(const t of i)e.set(t,o)}return e}(function(t){const e={};for(const n of t)for(const t of n[s7("0x5")])if(t instanceof CSSStyleRule){const n=l7(t[s7("0x8")]);e[t.selectorText]=Object[s7("0xa")]({},e[t[s7("0xf")]]||{},n)}return e}(n));for(const t of o){if("elementStart"!==t[p7("0x8")])continue;const e=c7(t.item,r);if(e[p7("0x2")]){const n=u7(Array[p7("0x5")](e[p7("0x0")]()));for(const e in n){const o=t[p7("0x6")];o.hasStyle(e)||i[p7("0x1")](e,n[e],o)}}}t.content=e}[p7("0x7")](t){return super[p7("0x7")](t)||n7(t)}}const x7=["afterInit","getData","requires","get","text/html","map","fromCharCode","context","then","inputTransformation","document","PasteFromOffice","getEarlierVisibleRevision","plugins","PasteFromOfficeEnhancedInliner","editor","config","dataTransfer","isNaN","_parsedData","high","stylesProcessor","pluginName","getRevision","execute"];var b7,k7;b7=x7,k7=428,function(t){for(;--t;)b7.push(b7.shift())}(++k7);const w7=function(t,e){return x7[t-=0]};class A7 extends Yt{static get[w7("0x13")](){return w7("0xb")}static get[w7("0x18")](){return[w7("0x8")]}init(){const t=this[w7("0xc")],e=t[w7("0xa")][w7("0x0")]("ClipboardPipeline"),n=t.editing.view[w7("0x7")],i=new f7(n);e.on(w7("0x6"),((t,e)=>{const o=e[w7("0xe")][w7("0x17")](w7("0x1"));i.isActive(o)&&(e._parsedData||(e[w7("0x10")]=XR(o,n[w7("0x12")])),i[w7("0x15")](e))}),{priority:Uu.priorities[w7("0x0")](w7("0x11"))+11})}[w7("0x16")](){!function(t){function e(t){return t[w7("0x2")]((t=>String[w7("0x3")](t))).join("")}(t=>{function n(t){return e([112,108,117,103,105,110,78,97,109,101])in t}const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,n){const i=function(t){const n=atob(t),[i,o]=n[e([115,112,108,105,116])](e([45]));try{if(atob(o))return atob(i)}catch(t){}return n}(t),o=Array[e([102,114,111,109])](function(t){const n=new Uint8Array(t[e([108,101,110,103,116,104])]);for(let i=0;i<t[e([108,101,110,103,116,104])];i++)n[i]=t[e([99,104,97,114,67,111,100,101,65,116])](i);return n}(i)),r=o[e([112,111,112])](),s=o[e([112,111,112])]();return function(t){let n="";for(const i of t)n+=String[e([102,114,111,109,67,104,97,114,67,111,100,101])](i);return n}(function(t,n,i){const o={};o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[e([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[e([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[e([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[e([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[e([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[e([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[e([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[e([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[e([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[e([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(n),l=[],d=[];!function(){const t=o[e([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[e([108,101,110,103,116,104])]];for(let n=0;n<=t;n++)l[e([112,117,115,104])]([0,0,0,0]),d[e([112,117,115,104])]([0,0,0,0]);const n=4*(t+1),i=c[e([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],d[t-s][e%4]=r[e];let a,h=0,m=i;for(;m<n;){a=r[i-1],r[0]^=o[e([83])][a>>16&255]<<24^o[e([83])][a>>8&255]<<16^o[e([83])][255&a]<<8^o[e([83])][a>>24&255]^o[e([114,99,111,110])][h]<<24,h+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[e([83])][255&a]^o[e([83])][a>>8&255]<<8^o[e([83])][a>>16&255]<<16^o[e([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&m<n;)s=m>>2,c=m%4,l[s][c]=r[u],d[t-s][c]=r[u++],m++}for(let n=1;n<t;n++)for(let t=0;t<4;t++)a=d[n][t],d[n][t]=o[e([85,49])][a>>24&255]^o[e([85,50])][a>>16&255]^o[e([85,51])][a>>8&255]^o[e([85,52])][255&a]}();for(let n=0;n<t[e([108,101,110,103,116,104])];n++)16===a&&(s=m(r),a=0,h(r)),t[n]^=s[a++];return t;function u(t){const n=[];for(let i=0;i<t[e([108,101,110,103,116,104])];i+=4)n[e([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return n}function h(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function m(t){const n=l[e([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<n;t++){for(let n=0;n<4;n++)i[n]=o[e([84,49])][r[n]>>24&255]^o[e([84,50])][r[(n+1)%4]>>16&255]^o[e([84,51])][r[(n+2)%4]>>8&255]^o[e([84,52])][255&r[(n+3)%4]]^l[t][n];r=i[e([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[n][t],s[4*t]=255&(o[e([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[e([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[e([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[e([83])][255&r[(t+3)%4]]^a);return s}}(o,n,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[e([105,100])]:1,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,111,109,109,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([99,104,101,99,107,65,108,115,111])]:[{[e([105,100])]:2,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,114,97,99,107,32,67,104,97,110,103,101,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}}],[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:3,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:4,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[e([112,108,117,103,105,110,78,97,109,101])]:e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([108,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[e([111,112,116,105,111,110,115])]:{[e([97,105,119,115,103,105,99])]:!0,[e([97,105,116,99,100,103,105,108])]:!0,[e([97,105,114,118,105,105,108])]:!0}},{[e([105,100])]:5,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:6,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[e([112,108,117,103,105,110,78,97,109,101])]:e([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:7,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([83,108,97,115,104,32,67,111,109,109,97,110,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:8,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:9,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([84,101,109,112,108,97,116,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([84,101,109,112,108,97,116,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:10,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[e([112,108,117,103,105,110,78,97,109,101])]:e([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}},{[e([105,100])]:11,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([65,73,32,65,115,115,105,115,116,97,110,116]),[e([112,108,117,103,105,110,78,97,109,101])]:e([65,73,65,115,115,105,115,116,97,110,116,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([97,105,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101])},{[e([105,100])]:12,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[e([105,100])]:13,[e([102,101,97,116,117,114,101,78,97,109,101])]:e([67,97,115,101,32,67,104,97,110,103,101]),[e([112,108,117,103,105,110,78,97,109,101])]:e([67,97,115,101,67,104,97,110,103,101,85,73]),[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:e([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[e([104,97,110,100,108,101,114])]:e([99,104,101,99,107,76,105,99,101,110,115,101]),[e([111,112,116,105,111,110,115])]:{[e([102,103,105])]:12}}];return function t(i){i[e([102,111,114,69,97,99,104])]((i=>{i[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<i[e([105,100])]-1,n(i)&&i[e([99,104,101,99,107,65,108,115,111])]&&t(i[e([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[e([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(g(t,e),e)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,n){p(function(t,n){try{if(A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}return g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)},[e([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,n){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,n){d(),f(n+e([84,114,105,97,108,76,105,109,105,116,58])+t),window[x()]=t===e([116,105,109,101])?r:s}function d(){const t=l;function n(){A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([117,112,100,97,116,101])]=w,_(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[e([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([117,110,98,105,110,100])](e([105,115,69,110,97,98,108,101,100])),_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([105,115,69,110,97,98,108,101,100])]=!1,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])]=w,_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([95,103,101,116,68,105,102,102])]=w)}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>{if(A(t,e([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&n(),A(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=_(t,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[w7("0x14")](0),r=i[w7("0x9")](o[e([105,100])]);_(t,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[e([99,111,109,112,97,114,101])](o[e([105,100])],r?r[e([105,100])]:null,1)[w7("0x5")]((()=>n()))}}))}A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]==e([99,111,110,110,101,99,116,101,100])&&(window[x()]=a),function(t,n){if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))d();else if(t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])){const t=function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[w7("0xf")](Number(t))){if(window[t]===r)return e([116,105,109,101]);if(window[t]===s)return e([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{c(e([116,105,109,101]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const d=_(l,e([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[e([95,114,101,118,105,115,105,111,110,115])];d[e([108,101,110,103,116,104])]>=7?c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):d.on(e([97,100,100]),(()=>{d[e([108,101,110,103,116,104])]>=7&&c(e([114,101,118,105,115,105,111,110,115]),n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,n){try{return function(){if(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number.isNaN(Number(t))&&window[t]===a)return!0;return!1}()?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):g(t,n)}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}(t,n),n)}},c=t[e([99,111,110,115,116,114,117,99,116,111,114])][e([112,108,117,103,105,110,78,97,109,101])],l=e([99,111,110,116,101,120,116])in t?t[w7("0x4")]:t.editor,d=e([52,48,52,54,50,52,50,52]),u=e([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l[w7("0xd")].get(e([108,105,99,101,110,115,101,75,101,121])),m=s[e([102,105,108,116,101,114])](n)[e([102,105,110,100])]((t=>t[e([112,108,117,103,105,110,78,97,109,101])]===c));function g(t,n){try{return function(t){if(!A(l,t[e([112,108,117,103,105,110,78,97,109,101])]))return!0;const n=t[e([111,112,116,105,111,110,115])]||{},i=n[e([97,105,119,115,103,105,99])]||!1,o=n[e([97,105,116,99,100,103,105,108])]||!1,r=n[e([97,105,114,118,105,105,108])]||!1;return!(!A(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,e([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[e([115,116,97,116,101])]!=e([99,111,110,110,101,99,116,101,100])||!i)||(!(!A(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,e([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!o)||!(!A(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,e([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[e([114,101,115,117,108,116])]!=e([101,110,100])||!r))}(n)?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):t&&function(t,n){const i=!!(t&n[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,n){const i=(n[e([111,112,116,105,111,110,115])]||{})[e([102,103,105])]||null;if(!i)return!1;const o=s[e([102,105,110,100])]((t=>t[e([105,100])]===i));return!!o&&!!(t&o[e([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,n);return i||o}(t[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],n)?t[e([105,115,73,110,116,101,114,110,97,108])]&&!window[e([111,112,101,110])][e([99,108,111,115,101,100])]||parseInt(d)/2>t[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])):t[e([105,115,84,114,105,97,108])]?f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([86,97,108,105,100])):f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}catch(t){return f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100]))}}function p(t,n){if(l instanceof ee){const r=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?b(r):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&window[e([115,101,116,84,105,109,101,111,117,116])]((()=>{b(r),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),r[e([101,100,105,116,111,114,115])][e([111,110])](e([97,100,100]),((i,o)=>{t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||k(o)}))}else{const i=l;t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([73,110,118,97,108,105,100])?k(i):t==n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108])&&i[e([111,110])](e([114,101,97,100,121]),(()=>{let t=0;i[e([109,111,100,101,108])][e([111,110])](e([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][e([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(k(i),f(n[e([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+e([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[e([111,102,102])]())}),{priority:e([104,105,103,104,101,115,116])})}))}}function f(t){const e=x();return l[e]=t,t}function x(){const t=String(window[e([112,101,114,102,111,114,109,97,110,99,101])][e([110,111,119])]())[e([114,101,112,108,97,99,101])](e([46]),"");let n="";for(let i=0;i<t[e([108,101,110,103,116,104])];i+=2){let o=parseInt(t[e([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[e([108,101,110,103,116,104])]&&(o-=u[e([108,101,110,103,116,104])]),n+=u[o]}return n}function b(t){for(const n of t[e([101,100,105,116,111,114,115])])k(n);_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(t,e([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[e([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function k(t){function n(){t[e([109,111,100,101,108])][e([99,104,97,110,103,101])]=w,t[e([109,111,100,101,108])][e([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[e([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](e([109,111,100,101,108]))}t[e([115,116,97,116,101])]==e([114,101,97,100,121])?n():t[e([111,110,99,101])](e([114,101,97,100,121]),(()=>n()))}function w(){return null}function A(t,n){return t[e([112,108,117,103,105,110,115])][e([104,97,115])](n)}function _(t,n){return t[e([112,108,117,103,105,110,115])][e([103,101,116])](n)}m&&function t(n,i){a[i[e([104,97,110,100,108,101,114])]](n,i),i[e([99,104,101,99,107,65,108,115,111])]&&i[e([99,104,101,99,107,65,108,115,111])][e([102,105,108,116,101,114])]((t=>A(l,t[e([112,108,117,103,105,110,78,97,109,101])])))[e([102,111,114,69,97,99,104])]((e=>t(n,e)))}(function(t){try{const n=r(t),i=JSON[e([112,97,114,115,101])](n),o=parseInt(i[e([49])]),s=i[e([50])]||"",a=parseInt(i[e([51])]),c=parseInt(i[e([52])])||0,l=parseInt(i[e([53])])||0;return{[e([112,114,111,100,117,99,116,78,97,109,101])]:s,[e([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[e([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[e([105,115,84,114,105,97,108])]:a,[e([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}}const _7=["from","getStyleNames","text-decoration","font-style","underline","insertChild","color","text-decoration-line","keys","font-family","createElement","function","super","getChildren","includes","length","getStyle","removeStyle","bolder","line-through","sub","setStyle","filter","forEach","font-size","vertical-align","bold","strong","split"];var v7,C7;v7=_7,C7=308,function(t){for(;--t;)v7.push(v7.shift())}(++C7);const y7=function(t,e){return _7[t-=0]},E7=[y7("0x11"),y7("0x14"),y7("0x6"),y7("0xd"),y7("0x12"),"font-weight",y7("0xe"),y7("0x7")],I7=["color",y7("0x14"),"font-size"],S7={"font-style":[["italic","i"]],"font-weight":[["medium",y7("0x9")],[y7("0x8"),y7("0x9")],[y7("0x0"),y7("0x9")],[t=>Number(t)>=600,y7("0x9")]],"text-decoration":[[y7("0xf"),"u"],[y7("0x1"),"s"]],"text-decoration-line":[["underline","u"],[y7("0x1"),"s"]],"vertical-align":[[y7("0x2"),"sub"],[y7("0x17"),"sup"]]};function T7(t){return E7[y7("0x19")](t)}function D7(t,e,n){const{spanStyles:i,stylesToBeHtmlElements:o}=function(t,e){const n={},i={};return e[y7("0x5")]((e=>{const o=t[y7("0x1b")](e);if(o)if(r=e,I7.includes(r))n[e]=o;else if(e in S7){const t=o[y7("0xa")](" ");S7[e][y7("0x5")]((([n,o])=>{for(const r of t)(y7("0x16")==typeof n&&n(r)||n===r)&&(i[e]=[...i[e]||[],[n,o]])}))}var r})),{spanStyles:n,stylesToBeHtmlElements:i}}(t,n);(function(t,e,n){for(const i in n)n[i][y7("0x5")]((([,n])=>{const i=e[y7("0x15")](n,[],t[y7("0x18")]());e.insertChild(0,i,t)})),e.removeStyle(i,t)})(t,e,o),function(t,e,n){if(!Object[y7("0x13")](n)[y7("0x1a")])return;const i=e[y7("0x15")]("span",[],t[y7("0x18")]());e[y7("0x3")](n,i),e[y7("0x10")](0,i,t),e[y7("0x1c")](Object[y7("0x13")](n),t)}(t,e,i)}const M7=["font","includes","content","element","createRangeIn","execute","document","name","isActive","blockElements","_parsedData"];var B7,O7;B7=M7,O7=343,function(t){for(;--t;)B7.push(B7.shift())}(++O7);const N7=function(t,e){return M7[t-=0]};class P7 extends qR{[N7("0x3")](t){const{body:e}=t[N7("0x8")],n=new Ga(e[N7("0x4")]),i=n[N7("0x2")](e),o=new oi(n[N7("0x4")].stylesProcessor),r=[...new Yi(o)[N7("0x7")],N7("0x9")],s=i.getItems();for(const t of s)if(t.is(N7("0x1"))&&r[N7("0xa")](t[N7("0x5")])){D7(t,n,(a=t,Array[y7("0xb")](a[y7("0xc")]())[y7("0x4")](T7)))}var a;t[N7("0x0")]=e}[N7("0x6")](t){return super[N7("0x6")](t)||n7(t)}}const R7=["licenseKey","stylesProcessor","plugins","execute","requires","pasteFromOfficeEnhancedLicenseKeyValid","You are using the trial version of CKEditor 5 Paste from Office Enhanced plugin with limited usage. Make sure you will not use it in the production environment.","PasteFromOffice","info","paste-from-office-enhanced-invalid-license-key","config","pluginName","paste-from-office-enhanced-trial-license-key-reached-limit-changes","destroy","pasteFromOfficeEnhancedLicenseKeyTrial","view","init","pasteFromOfficeEnhancedLicenseKeyTrialLimit:operations","inputTransformation","_parsedData","_licenseKeyCheckInterval","document","dataTransfer","text/html","PasteFromOfficeEnhancedPropagator","isActive","get","editing"];var L7,j7;L7=R7,j7=467,function(t){for(;--t;)L7.push(L7.shift())}(++j7);const z7=function(t,e){return R7[t-=0]};class V7 extends Yt{static get[z7("0x14")](){return z7("0x5")}static get[z7("0xd")](){return[z7("0x10")]}constructor(t){super(t),this[z7("0x1")]=null}[z7("0x19")](){const t=this.editor,e=t[z7("0xb")][z7("0x7")]("ClipboardPipeline"),n=t[z7("0x8")][z7("0x18")][z7("0x2")],i=new P7(n);e.on(z7("0x1b"),((t,e)=>{const o=e[z7("0x3")].getData(z7("0x4"));i[z7("0x6")](o)&&(e[z7("0x0")]||(e[z7("0x0")]=XR(o,n[z7("0xa")])),i[z7("0xc")](e))}),{priority:Uu.priorities[z7("0x7")]("high")+10}),this[z7("0x9")]=t[z7("0x13")][z7("0x7")](z7("0x9"));const o=this.editor;this._licenseKeyCheckInterval=setInterval((()=>{let t;for(const e in o){const n=e,i=o[n];if("pasteFromOfficeEnhancedLicenseKeyTrial"===i||"pasteFromOfficeEnhancedLicenseKeyInvalid"===i||z7("0xe")===i||z7("0x1a")===i){delete o[n],t=i;break}}if("pasteFromOfficeEnhancedLicenseKeyInvalid"===t)throw clearInterval(this[z7("0x1")]),new Uu.CKEditorError(z7("0x12"),null);if(z7("0x17")===t&&console[z7("0x11")](z7("0xf")),z7("0x1a")===t)throw clearInterval(this[z7("0x1")]),new Uu.CKEditorError(z7("0x15"),null);z7("0xe")===t&&clearInterval(this[z7("0x1")])}),1e3)}[z7("0x16")](){this[z7("0x1")]&&clearInterval(this[z7("0x1")])}}var F7,U7,H7=["PasteFromOfficeEnhanced","pluginName","requires","PasteFromOffice"];F7=H7,U7=268,function(t){for(;--t;)F7.push(F7.shift())}(++U7);var G7=function(t,e){return H7[t-=0]};class q7 extends Yt{static get[G7("0x1")](){return G7("0x0")}static get[G7("0x2")](){return[G7("0x3"),A7,V7]}}class W7 extends ih{}class K7 extends ch{}class Z7 extends hh{}class Y7 extends fh{}for(const t of[W7,K7,Z7,Y7])t.builtinPlugins=[Dg,vh,Bp,bf,yf,Lf,ix,Uf,Qf,Kf,Bf,_x,Jx,ib,lb,Sh,xb,Lb,AI,CI,yI,BI,VI,ZI,HS,JS,QT,XT,dS,DT,fT,wT,tD,rD,dD,pD,pM,mM,_M,wB,MB,GB,lO,Av,EO,sN,nN,FO,$O,mN,wN,TN,iR,rR,DR,RR,tL,ej,GV,sF,YV,YF,tU,oq,dq,fq,Vq,sW,hW,nZ,aZ,aY,IY,LY,HY,b2,C2,af,T2,d5,_5,K5,g3,W3,T4,t7,q7],t.defaultConfig={toolbar:["aiCommands","aiAssistant","|","tableOfContents","formatPainter","insertTemplate","|","pagination","|","trackChanges","revisionHistory","comment","|","heading","style","|","removeFormat","bold","italic","strikethrough","underline","code","subscript","superscript","link","|","highlight","fontSize","fontFamily","fontColor","fontBackgroundColor","|","bulletedList","numberedList","todoList","|","blockQuote","uploadImage","insertTable","mediaEmbed","codeBlock","|","htmlEmbed","|","alignment","outdent","indent","|","pageBreak","horizontalLine","specialCharacters","|","textPartLanguage","|","showBlocks","|","undo","redo","findAndReplace"],table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties","toggleTableCaption"]},image:{styles:["alignCenter","alignLeft","alignRight"],resizeOptions:[{name:"resizeImage:original",label:"Original size",value:null},{name:"resizeImage:50",label:"50%",value:"50"},{name:"resizeImage:75",label:"75%",value:"75"}],toolbar:["imageTextAlternative","toggleImageCaption","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","imageStyle:side","|","resizeImage","|","ckboxImageEdit"],insert:{integrations:["insertImageViaUrl"]}},comments:{editorConfig:{extraPlugins:[yf,Lf,ix,wB]}},placeholder:"Type the content here!",language:"en"},t===W7&&(t.builtinPlugins.push(Wq),t.defaultConfig.toolbar.push("|","sourceEditing")),t===Y7&&(t.builtinPlugins.push(ej),t.defaultConfig.toolbar.unshift("sourceEditing","|"),t.defaultConfig.pagination={pageWidth:"21cm",pageHeight:"29.7cm",pageMargins:{top:"20mm",bottom:"20mm",right:"12mm",left:"12mm"}});const J7={ClassicEditor:W7,InlineEditor:K7,BalloonEditor:Z7,DecoupledEditor:Y7}})(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})()));
//# sourceMappingURL=ckeditor.js.map