1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7123],{8487:(e,t,n)=>{var i;e=n.nmd(e),function(e){let t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot 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","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","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 link":"Create link",Custom:"Custom","Custom image size":"Custom image size",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown menu":"Dropdown menu","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Entering a to-do list":"Entering a to-do list","Error during image upload":"Error during image upload","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.","Failed to determine category of edited image.":"Failed to determine category of edited image.",File:"File","From computer":"From computer","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar",Image:"Image","Image from computer":"Image from computer","Image resize list":"Image resize list","Image toolbar":"Image toolbar","Image upload complete":"Image upload complete","Image via URL":"Image via URL","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a new table row (when in the last cell of a table)":"Insert a new table row (when in the last cell of a table)","Insert a soft break (a <code><br></code> element)":"Insert a soft break (a <code><br></code> element)","Insert column left":"Insert column left","Insert column right":"Insert column right","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 paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert via URL":"Insert via URL","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset","Invalid start index value.":"Invalid start index value.",Italic:"Italic","Italic text":"Italic text","Justify cell text":"Justify cell text","Keystrokes that can be used in a list":"Keystrokes that can be used in a list","Keystrokes that can be used in a table cell":"Keystrokes that can be used in a table cell","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Leaving a to-do list":"Leaving a to-do list","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","Link URL must not be empty.":"Link URL must not be empty.","List properties":"List properties","Lower-latin":"Lower-latin","Lowerâroman":"Lowerâroman",Media:"Media","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus from an editable area back to the parent widget":"Move focus from an editable area back to the parent widget","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move out of a link":"Move out of a link","Move out of an inline code style":"Move out of an inline code style","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Move the selection to the next cell":"Move the selection to the next cell","Move the selection to the previous cell":"Move the selection to the previous cell","Navigate through the table":"Navigate through the table","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","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 the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text","Paste the media URL in the input.":"Paste the media URL in the input.",'Please enter a valid color (e.g. "ff0000").':'Please enter a valid color (e.g. "ff0000").',"Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove c
1olor":"Remove color","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","Resize image":"Resize image","Resize image (in %0)":"Resize image (in %0)","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Revert autoformatting action":"Revert autoformatting action","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","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 more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough","Strikethrough text":"Strikethrough text",Style:"Style",Subscript:"Subscript",Superscript:"Superscript",Table:"Table","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'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 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".',"The value must not be empty.":"The value must not be empty.","The value should be a plain number.":"The value should be a plain number.","These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","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",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline","Underline text":"Underline text",Undo:"Undo",Unlink:"Unlink","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Uploading image":"Uploading image","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes","Vertical text alignment toolbar":"Vertical text alignment toolbar","Via URL":"Via URL",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","With file manager":"With file manager","Wrap text":"Wrap text",Yellow:"Yellow","You have no image editing permissions.":"You have no image editing permissions.","You have no image upload permissions.":"You have no image upload permissions."}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,i=()=>(()=>{var i={9246:(e,t,n)=>{let i=n(6931),o={};for(let e of Object.keys(i))o[i[e]]=e;let 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"]}};
1for(let t of(e.exports=r,Object.keys(r))){if(!("channels"in r[t]))throw Error("missing channels property: "+t);if(!("labels"in r[t]))throw Error("missing channel labels property: "+t);if(r[t].labels.length!==r[t].channels)throw Error("channel and label counts mismatch: "+t);let{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(e){let t;let n=e[0]/255,i=e[1]/255,o=e[2]/255,r=Math.min(n,i,o),s=Math.max(n,i,o),a=s-r;s===r?t=0:n===s?t=(i-o)/a:i===s?t=2+(o-n)/a:o===s&&(t=4+(n-i)/a),(t=Math.min(60*t,360))<0&&(t+=360);let l=(r+s)/2;return[t,100*(s===r?0:l<=.5?a/(s+r):a/(2-s-r)),100*l]},r.rgb.hsv=function(e){let t,n,i,o,r;let s=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(s,a,l),d=c-Math.min(s,a,l),u=function(e){return(c-e)/6/d+.5};return 0===d?(o=0,r=0):(r=d/c,t=u(s),n=u(a),i=u(l),s===c?o=i-n:a===c?o=1/3+t-i:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*c]},r.rgb.hwb=function(e){let t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(1-t,1-n,1-i);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-i-o)/(1-o)||0),100*o]},r.rgb.keyword=function(e){let t=o[e];if(t)return t;let n,r=1/0;for(let t of Object.keys(i)){let o=i[t],s=(e[0]-o[0])**2+(e[1]-o[1])**2+(e[2]-o[2])**2;s<r&&(r=s,n=t)}return n},r.keyword.rgb=function(e){return i[e]},r.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)+.1805*(i=i>.04045?((i+.055)/1.055)**2.4:i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){let t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return n/=95.047,i/=100,o/=108.883,[116*(i=i>.008856?i**(1/3):7.787*i+16/116)-16,500*((n=n>.008856?n**(1/3):7.787*n+16/116)-i),200*(i-(o=o>.008856?o**(1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){let t,n,i;let o=e[0]/360,r=e[1]/100,s=e[2]/100;if(0===r)return[i=255*s,i,i];t=s<.5?s*(1+r):s+r-s*r;let a=2*s-t,l=[0,0,0];for(let e=0;e<3;e++)(n=o+-(1/3*(e-1)))<0&&n++,n>1&&n--,i=6*n<1?a+6*(t-a)*n:2*n<1?t:3*n<2?a+(t-a)*(2/3-n)*6:a,l[e]=255*i;return l},r.hsl.hsv=function(e){let t=e[0],n=e[1]/100,i=e[2]/100,o=n,r=Math.max(i,.01);return i*=2,n*=i<=1?i:2-i,o*=r<=1?r:2-r,[t,100*(0===i?2*o/(r+o):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),s=255*i*(1-n),a=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,l,s];case 1:return[a,i,s];case 2:return[s,i,l];case 3:return[s,a,i];case 4:return[l,s,i];case 5:return[i,s,a]}},r.hsv.hsl=function(e){let t,n;let i=e[0],o=e[1]/100,r=e[2]/100,s=Math.max(r,.01);n=(2-o)*r;let a=(2-o)*s;return[i,100*(o*s/(a<=1?a:2-a)||0),100*(n/=2)]},r.hwb.rgb=function(e){let t,n,i,o;let r=e[0]/360,s=e[1]/100,a=e[2]/100,l=s+a;l>1&&(s/=l,a/=l);let c=Math.floor(6*r),d=1-a;t=6*r-c,1&c&&(t=1-t);let u=s+t*(d-s);switch(c){default:case 6:case 0:n=d,i=u,o=s;break;case 1:n=u,i=d,o=s;break;case 2:n=s,i=d,o=u;break;case 3:n=s,i=u,o=d;break;case 4:n=u,i=s,o=d;break;case 5:n=d,i=s,o=u}return[255*n,255*i,255*o]},r.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,i=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(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(e){let t,n,i;let o=e[0]/100,r=e[1]/100,s=e[2]/100;return t=(t=3.2406*o+-1.5372*r+-.4986*s)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,n=(n=-.9689*o+1.8758*r+.0415*s)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=(i=.0557*o+-.204*r+1.057*s)>.0031308?1.055*i**(1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){let t=e[0],n=e[1],i=e[2];return t/=95.047,n/=100,i/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-n),200*(n-(i=i>.008856?i**(1/3):7.787*i+16/116))]},r.lab.xyz=function(e){let t,n,i;n=(e[0]+16)/116,t=e[1]/500+n,i=n-e[2]/200;let o=n**3,r=t**3,s=i**3;return n=(o>.008856?o:(n-16/116)/7.787)*100,[t=(r>.008856?r:(t-16/116)/7.787)*95.047,n,i=(s>.008856?s:(i-16/116)/7.787)*108.883]},r.lab.lch=function(e){let t;let n=e[0],i=e[1],o=e[2];return(t=360*Math.atan2(o,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+o*o),t]},r.lch.lab=function(e){let t=e[0],n=e[1],i=e[2]/360*2*Math.PI;return[t,n*Math.cos(i),n*Math.sin(i)]},r.rgb.ansi16=function(e,t=null){let[n,i,o]=e,s=null===t?r.rgb.hsv(e)[2]:t;
1if(0===(s=Math.round(s/50)))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(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){let t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){let t;if(e>=232){let t=10*(e-232)+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));let i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){let t;let n=e[0]/255,i=e[1]/255,o=e[2]/255,r=Math.max(Math.max(n,i),o),s=Math.min(Math.min(n,i),o),a=r-s;return t=a<1?s/(1-a):0,[(a<=0?0:r===n?(i-o)/a%6:r===i?2+(o-n)/a:4+(n-i)/a)/6%1*360,100*a,100*t]},r.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,i=n<.5?2*t*n:2*t*(1-n),o=0;return i<1&&(o=(n-.5*i)/(1-i)),[e[0],100*i,100*o]},r.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,i=t*n,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],100*i,100*o]},r.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];let o=[0,0,0],r=t%1*6,s=r%1,a=1-s,l=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 l=(1-n)*i,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},r.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],100*i,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=function(e){return[0,0,e[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},9047:(e,t,n)=>{let i=n(9246),o=n(802),r={};
1Object.keys(i).forEach(e=>{r[e]={},Object.defineProperty(r[e],"channels",{value:i[e].channels}),Object.defineProperty(r[e],"labels",{value:i[e].labels});let t=o(e);Object.keys(t).forEach(n=>{let i=t[n];r[e][n]=function(e){let t=function(...t){let n=t[0];if(null==n)return n;n.length>1&&(t=n);let i=e(t);if("object"==typeof i)for(let e=i.length,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}(i),r[e][n].raw=function(e){let t=function(...t){let n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})}),e.exports=r},802:(e,t,n)=>{let i=n(9246);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(i);for(let n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){let e=n.pop(),o=Object.keys(i[e]);for(let i=o.length,r=0;r<i;r++){let i=o[r],s=t[i];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(i))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){let e=o[r];null!==t[e].parent&&(n[e]=function(e,t){let n=[t[e].parent,e],o=i[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),o=function(e,t){return function(n){return t(e(n))}}(i[t[r].parent][r],o),r=t[r].parent;return o.conversion=n,o}(e,t))}return n}},6931:e=>{"use strict";e.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
1],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]}},4199:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 background-color: hsla(0, 0%, 78%, 0.3);\n padding: .15em;\n border-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n background-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);let a=s},8708:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* See #12 */\n overflow: hidden;\n\n /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n padding-right: 1.5em;\n padding-left: 1.5em;\n\n margin-left: 0;\n margin-right: 0;\n font-style: italic;\n border-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n border-left: 0;\n border-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);let a=s},1866:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.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://./../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-2024, CKSource Holding 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 /* Based on default CKBox theme colors */\n --ck-image-processing-highlight-color: hsl(220, 10%, 98%);\n --ck-image-processing-background-color: hsl(220, 10%, 90%);\n}\n\n.ck.ck-editor__editable {\n & .image {\n &.image-processing {\n position: relative;\n\n &:before {\n content: '';\n\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n\n height: 100%;\n width: 100%;\n\n background: linear-gradient(\n 90deg,\n var(--ck-image-processing-background-color),\n var(--ck-image-processing-highlight-color),\n var(--ck-image-processing-background-color)\n );\n background-size: 200% 100%;\n\n animation: ck-image-processing-animation 2s linear infinite;\n }\n\n & img {\n height: 100%;\n }\n }\n }\n}\n\n@keyframes ck-image-processing-animation {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n"],sourceRoot:""}]);let a=s}
1,7793:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.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,CCjFA,mDDwEE,sFAAuF,CADvF,+JAAoK,CAFpK,SCnEF,CAFA,mDD+EE,sFAAuF,CADvF,+JAAmK,CAFnK,UC1EF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /*\n * Vertical drop target (in text).\n */\n & .ck.ck-clipboard-drop-target-position {\n display: inline;\n position: relative;\n pointer-events: none;\n\n & span {\n position: absolute;\n width: 0;\n }\n }\n\n /*\n * Styles of the widget being dragged (its preview).\n */\n & .ck-widget:-webkit-drag {\n & > .ck-widget__selection-handle {\n display: none;\n }\n\n & > .ck-widget__type-around {\n display: none;\n }\n }\n}\n\n.ck.ck-clipboard-drop-target-line {\n position: absolute;\n pointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-clipboard-drop-target-dot-width: 12px;\n --ck-clipboard-drop-target-dot-height: 8px;\n --ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n /*\n * Vertical drop target (in text).\n */\n & .ck.ck-clipboard-drop-target-position {\n & span {\n bottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n border: 1px solid var(--ck-clipboard-drop-target-color);\n background: var(--ck-clipboard-drop-target-color);\n margin-left: -1px;
1\n\n /* The triangle above the marker */\n &::after {\n content: '';\n width: 0;\n height: 0;\n\n display: block;\n position: absolute;\n left: 50%;\n top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n transform: translateX(-50%);\n border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n border-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 border-style: solid;\n }\n }\n }\n\n /*\n * Styles of the widget that it a drop target.\n */\n & .ck-widget.ck-clipboard-drop-target-range {\n outline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n }\n\n /*\n * Styles of the widget being dragged (its preview).\n */\n & .ck-widget:-webkit-drag {\n zoom: 0.6;\n outline: none !important;\n }\n}\n\n.ck.ck-clipboard-drop-target-line {\n height: 0;\n border: 1px solid var(--ck-clipboard-drop-target-color);\n background: var(--ck-clipboard-drop-target-color);\n margin-top: -1px;\n\n &::before {\n content: '';\n position: absolute;\n top: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n width: 0;\n height: 0;\n border-style: solid;\n\n @mixin ck-dir ltr {\n left: -1px;\n\n border-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 border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n }\n\n @mixin ck-dir rtl {\n right: -1px;\n\n border-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 border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},7388:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-panel)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border:solid var(--ck-color-base-border);border-radius:0;border-width:1px 1px 0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.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-sticky-panel__content.ck-sticky-panel__content_sticky{border-bottom-width:1px}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-menu-bar{border:0;border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-toolbar{border:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,8DAOC,wCAAsB,CCLxB,eAAgB,CDKd,sBAcD,CCjBD,mKAEC,qCAAsC,CDJpC,2BAA4B,CAC5B,4BCKH,CDCE,8FACC,uBACD,CAEA,2EACC,QAAS,CACT,mDACD,CAEA,0EACC,QACD,CAMH,yCAEC,0CAA2C,CC1B3C,eDoCD,CClCC,yHAEC,qCAAsC,CDyBtC,wBAAyB,CACzB,yBCxBD,CD2BA,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* All the elements within `.ck-editor` are positioned relatively to it.\n If any element needs to be positioned with respect to the <body>, etc.,\n it must land outside of the `.ck-editor` in DOM. */\n position: relative;\n\n & .ck-editor__top .ck-sticky-panel .ck-toolbar {\n /* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n z-index: var(--ck-z-panel);\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-sticky-panel {\n & .ck-sticky-panel__content {\n @mixin ck-rounded-corners {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n border: 1px solid var(--ck-color-base-border);\n border-bottom-width: 0;\n\n &.ck-sticky-panel__content_sticky {\n border-bottom-width: 1px;\n }\n\n & .ck-menu-bar {\n border: 0;\n border-bottom: 1px solid var(--ck-color-base-border);\n }\n\n & .ck-toolbar {\n border: 0;\n }\n }\n }\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 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n background: var(--ck-color-base-background);\n\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n &:not(.ck-focused) {\n border-color: var(--ck-color-base-border);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s}
1,4098:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}@media (forced-colors:active){.ck .ck-placeholder,.ck.ck-placeholder{forced-color-adjust:preserve-parent-color}}.ck .ck-placeholder:before,.ck.ck-placeholder:before{cursor:text}@media (forced-colors:none){.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text)}}@media (forced-colors:active){.ck .ck-placeholder:before,.ck.ck-placeholder:before{font-style:italic;margin-left:1px}}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC7BC,8BACC,uCCOA,yCDLA,CACD,CCOA,qDACC,WAmBD,CDvBA,4BACC,qDCMC,6CDJD,CACD,CAZA,8BACC,qDCsBC,iBAAkB,CAMlB,eD1BD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 position: relative;\n\n &::before {\n position: absolute;\n left: 0;\n right: 0;\n content: attr(data-placeholder);\n\n /* See ckeditor/ckeditor5#469. */\n pointer-events: none;\n }\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n &::before {\n display: none;\n }\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 position: relative;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-forced-colors {\n @media (forced-colors: active) {\n & {\n @mixin-content;\n }\n }\n}\n\n@define-mixin ck-media-default-colors {\n @media (forced-colors: none) {\n & {\n @mixin-content;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_mediacolors.css";\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n @mixin ck-media-forced-colors {\n /*\n * This is needed for Edge on Windows to use the right color for the placeholder content (::before).\n * See https://github.com/ckeditor/ckeditor5/issues/14907.\n */\n forced-color-adjust: preserve-parent-color;\n }\n\n &::before {\n cursor: text;\n\n @mixin ck-media-default-colors {\n color: var(--ck-color-engine-placeholder-text);\n }\n\n @mixin ck-media-forced-colors {\n /*\n * In the high contrast mode there is no telling between regular and placeholder text. Using\n * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.\n */\n font-style: italic;\n\n /*\n * Without this margin, the caret will not show up and blink when the user puts the selection\n * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.\n */\n margin-left: 1px;\n }\n }\n}\n'],sourceRoot:""}]);let a=s},8264:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: none;\n}\n"],sourceRoot:""}]);let a=s},6269:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-heading_heading1 .ck-button__label{font-size:20px}.ck.ck-heading_heading2 .ck-button__label{font-size:17px}.ck.ck-heading_heading3 .ck-button__label{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 .ck-button__label {\n font-size: 20px;\n}\n\n.ck.ck-heading_heading2 .ck-button__label {\n font-size: 17px;\n}\n\n.ck.ck-heading_heading3 .ck-button__label {\n font-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n font-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-dropdown__button .ck-button__label {\n width: 8em;\n }\n\n & .ck-dropdown__panel .ck-list__item {\n min-width: 18em;\n }\n}\n"],sourceRoot:""}]);let a=s},265:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .image {\n display: table;\n clear: both;\n text-align: center;\n\n /* Make sure there is some space between the content and the image. Center image by default. */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em auto;\n\n /* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n min-width: 50px;\n\n & img {\n /* Prevent unnecessary margins caused by line-height (see #44). */\n display: block;\n\n /* Center the image if its width is smaller than the content\'s width. */\n margin: 0 auto;\n\n /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n max-width: 100%;\n\n /* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n min-width: 100%;\n\n /* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n See https://github.com/ckeditor/ckeditor5/issues/14542. */\n height: auto;\n }\n }\n\n & .image-inline {\n /*\n * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n * This strange behavior does not happen with inline-flex.\n */\n display: inline-flex;\n\n /* While being resized, don\'t allow the image to exceed the width of the editing root. */\n max-width: 100%;\n\n /* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n align-items: flex-start;\n\n /* When the picture is present it must act as a flex container to let the img resize properly */\n & picture {\n display: flex;\n }\n\n /* When the picture is present, it must act like a resizable img. */\n & picture,\n & img {\n /* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n flex-grow: 1;\n flex-shrink: 1;\n\n /* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n max-width: 100%;\n }\n }\n}\n\n.ck.ck-editor__editable {\n /*\n * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\n * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n * caret does, and not at the edge of <figcaption>.\n */\n & .image > figcaption.ck-placeholder::before {\n padding-left: inherit;\n padding-right: inherit;\n\n /*\n * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n * See https://github.com/ckeditor/ckeditor5/issues/9162.\n */\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /*\n * See https://github.com/ckeditor/ckeditor5/issues/15115.\n */\n & .image {\n z-index: 1;\n\n /*\n * Make sure the selected image always stays on top of its siblings.\
1n * See https://github.com/ckeditor/ckeditor5/issues/9108.\n */\n &.ck-widget_selected {\n z-index: 2;\n }\n }\n\n /*\n * See https://github.com/ckeditor/ckeditor5/issues/15115.\n */\n & .image-inline {\n z-index: 1;\n\n /*\n * Make sure the selected inline image always stays on top of its siblings.\n * See https://github.com/ckeditor/ckeditor5/issues/9108.\n */\n &.ck-widget_selected {\n z-index: 2;\n\n /*\n * Make sure the native browser selection style is not displayed.\n * Inline image widgets have their own styles for the selected state and\n * leaving this up to the browser is asking for a visual collision.\n */\n & ::selection {\n display: none;\n }\n }\n }\n\n /* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n See https://github.com/ckeditor/ckeditor5/issues/14542. */\n & .image-inline img {\n height: auto;\n }\n\n /* The inline image nested in the table should have its original size if not resized.\n See https://github.com/ckeditor/ckeditor5/issues/9117. */\n & td,\n & th {\n & .image-inline img {\n max-width: none;\n }\n }\n}\n'],sourceRoot:""}]);let a=s},5247:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highlighted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}@media (forced-colors:active){.ck-content .image>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:none}}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highlighted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAYD,CAJC,8BAXD,8BAYE,sBAAuB,CACvB,WAEF,CADC,CCdA,4BACC,qEDmBA,iDCjBA,CACD,CDmBA,uCALD,qEAME,cAEF,CADC,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_mediacolors.css";\n\n:root {\n --ck-color-image-caption-background: hsl(0, 0%, 97%);\n --ck-color-image-caption-text: hsl(0, 0%, 20%);\n --ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n display: table-caption;\n caption-side: bottom;\n word-break: break-word;\n color: var(--ck-color-image-caption-text);\n background-color: var(--ck-color-image-caption-background);\n padding: .6em;\n font-size: .75em;\n outline-offset: -1px;\n\n /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n @media (forced-colors: active) {\n background-color: unset;\n color: unset;\n }\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n @mixin ck-media-default-colors {\n animation: ck-image-caption-highlight .6s ease-out;\n }\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes ck-image-caption-highlight {\n 0% {\n background-color: var(--ck-color-image-caption-highlighted-background);\n }\n\n 100% {\n background-color: var(--ck-color-image-caption-background);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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-forced-colors {\n @media (forced-colors: active) {\n & {\n @mixin-content;\n }\n }\n}\n\n@define-mixin ck-media-default-colors {\n @media (forced-colors: none) {\n & {\n @mixin-content;\n }\n }\n}\n"],sourceRoot:""}]);let a=s},4642:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-image-custom-resize-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{display:inline-block}.ck.ck-image-custom-resize-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-image-custom-resize-form{flex-wrap:wrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-image-custom-resize-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecustomresizeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,gCAIC,sBAAuB,CAHvB,YAAa,CACb,kBAAmB,CACnB,gBAsBD,CAnBC,uDACC,oBACD,CAEA,0CACC,YACD,CCbA,oCDCD,gCAeE,cAUF,CARE,uDACC,eACD,CAEA,2CACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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-image-custom-resize-form {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: flex-start;\n\n & .ck-labeled-field-view {\n display: inline-block;\n }\n\n & .ck-label {\n display: none;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},3350:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-image-insert-url{padding:var(--ck-spacing-large) var(--ck-spacing-large) 0;width:400px}.ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width);padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,wBAEC,yDAA0D,CAD1D,WAOD,CAJC,yDACC,YAAa,CACb,mCACD,CCLD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CACd,UASD,CCpCA,iDD8BE,eC5BF,CAFA,iDDkCE,gBChCF,CDoCA,4CASC,oDACD,CATC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,iDACC,oDAAqD,CACrD,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 width: 400px;\n padding: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n & .ck-image-insert-url__action-row {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-image-insert-insert-by-url-width: 250px;\n}\n\n.ck.ck-image-insert-url {\n --ck-input-width: 100%;\n\n & .ck-image-insert-url__action-row {\n grid-column-gap: var(--ck-spacing-large);\n margin-top: var(--ck-spacing-large);\n\n & .ck-button-save,\n & .ck-button-cancel {\n justify-content: center;\n min-width: auto;\n }
1\n\n & .ck-button .ck-button__label {\n color: var(--ck-color-text);\n }\n }\n}\n\n.ck.ck-image-insert-form {\n & > .ck.ck-button {\n display: block;\n width: 100%;\n\n @mixin ck-dir ltr {\n text-align: left;\n }\n\n @mixin ck-dir rtl {\n text-align: right;\n }\n }\n\n & > .ck.ck-collapsible {\n &:not(:first-child) {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n &:not(:last-child) {\n border-bottom: 1px solid var(--ck-color-base-border);\n }\n\n min-width: var(--ck-image-insert-insert-by-url-width);\n }\n\n /* This is the case when there are no other integrations configured than insert by URL */\n & > .ck.ck-image-insert-url {\n min-width: var(--ck-image-insert-insert-by-url-width);\n padding: var(--ck-spacing-large);\n }\n\n &:focus {\n outline: none;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},7378:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & img.image_placeholder {\n background-size: 100% 100%;\n }\n}\n"],sourceRoot:""}]);let a=s},3469:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 height: auto;\n}\n\n.ck-content .image.image_resized {\n max-width: 100%;\n /*\n The `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n Fortunately, since we control the width, there is no risk that the image will look bad.\n */\n display: block;\n box-sizing: border-box;\n\n & img {\n /* For resized images it is the `<figure>` element that determines the image width. */\n width: 100%;\n }\n\n & > figcaption {\n /* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n display: block;\n }\n}\n\n.ck.ck-editor__editable {\n /* The resized inline image nested in the table should respect its parent size.\n See https://github.com/ckeditor/ckeditor5/issues/9117. */\n & td,\n & th {\n & .image-inline.image_resized img {\n max-width: 100%;\n }\n }\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n margin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n margin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n width: 4em;\n}\n'],sourceRoot:""}]);let a=s},6386:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image.image-style-block-align-left,.ck-content .image.image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image.image-style-align-left,.ck-content .image.image-style-align-right{clear:none}.ck-content .image.image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image.image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image.image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image.image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image.image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content p+.image.image-style-align-left,.ck-content p+.image.image-style-align-right,.ck-content p+.image.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAQE,iGAEC,oDACD,CAIA,qFAEC,UACD,CAEA,oCACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,0CACC,UAAW,CACX,0CACD,CAEA,2CACC,WAAY,CACZ,yCACD,CAEA,iDAEC,gBAAiB,CADjB,cAED,CAEA,gDACC,aAAc,CACd,iBACD,CAGD,sCACC,gBAAiB,CACjB,iBACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAGA,+HAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-image-style-spacing: 1.5em;\n --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n /* See: https://github.com/ckeditor/ckeditor5/issues/16317 */\n & .image {\n /* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n confirming successful application of the style if image width exceeds the editor's size.\n See https://github.com/ckeditor/ckeditor5/issues/9342 */\n &.image-style-block-align-left,\n &.image-style-block-align-right {\n max-width: calc(100% - var(--ck-image-style-spacing));\n }\n\n /* Allows displaying multiple floating images in the same line.\n See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n &.image-style-align-left,\n &.image-style-align-right {\n clear: none;\n }\n\n &.image-style-side {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n max-width: 50%;\n }\n\n &.image-style-align-left {\n float: left;\n margin-right: var(--ck-image-style-spacing);\n }\n\n &.image-style-align-right {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n }\n\n &.image-style-block-align-right {\n margin-right: 0;\n margin-left: auto;\n }\n\n &.image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n }\n\n & .image-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n & .image-style-align-left {\n float: left;\n margin-right: var(--ck-image-style-spacing);\n }\n\n & .image-style-align-right {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n }\n\n /* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n & p + .image.image-style-align-left,\n & p + .image.image-style-align-right,\n & p + .image.image-style-side {\n margin-top: 0;\n }\n\n & .image-inline {\n &.image-style-align-left,\n &.image-style-align-right {\n margin-top: var(--ck-inline-image-style-spacing);\n margin-bottom: var(--ck-inline-image-style-spacing);\n }\n\n &.image-style-align-left {\n margin-right: var(--ck-inline-image-style-spacing);\n }\n\n &.image-style-align-right {\n margin-left: var(--ck-inline-image-style-spacing);\n }\n }\n}\n\n.ck.ck-splitbutton {\n /* The button should display as a regular drop-down if the action button\n is forced to fire the same action as the arrow button. */\n &.ck-splitbutton_flatten {\n &:hover,\n &.ck-splitbutton_open {\n & > .ck-splitbutton__action:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n background-color: var(--ck-color-button-on-background);\n\n &::after {\n display: none;\n }\n }\n }\n\n &.ck-splitbutton_open:hover {\n & > .ck-splitbutton__action:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n background-color: var(--ck-color-button-on-hover-background);\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s}
1,7693:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.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:0s,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0s}.ck-image-upload-complete-icon:after{animation:none;height:.45em;opacity:1;width:.3em}}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,qBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFAqCD,CAjCC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAEA,uCA7CD,+BA8CE,qBASF,CAPE,qCACC,cAAe,CAGf,YAAc,CAFd,SAAU,CACV,UAED,CACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: block;\n position: absolute;\n\n /*\n * Smaller images should have the icon closer to the border.\n * Match the icon position with the linked image indicator brought by the link image feature.\n */\n top: min(var(--ck-spacing-medium), 6%);\n right: min(var(--ck-spacing-medium), 6%);\n border-radius: 50%;\n z-index: 1;\n\n &::after {\n content: "";\n position: absolute;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-image-upload-icon: hsl(0, 0%, 100%);\n --ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n /* Match the icon size with the linked image indicator brought by the link image feature. */\n --ck-image-upload-icon-size: 20;\n --ck-image-upload-icon-width: 2px;\n --ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n opacity: 0;\n background: var(--ck-color-image-upload-icon-background);\n animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n animation-fill-mode: forwards, forwards;\n animation-duration: 500ms, 500ms;\n\n /* To make animation scalable. */\n font-size: calc(1px * var(--ck-image-upload-icon-size));\n\n /* Hide completed upload icon after 3 seconds. */\n animation-delay: 0ms, 3000ms;\n\n /*\n * Use CSS math to simulate container queries.\n * https://css-tricks.
1com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n */\n overflow: hidden;\n width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n /* This is check icon element made from border-width mixed with animations. */\n &::after {\n /* Because of border transformation we need to "hard code" left position. */\n left: 25%;\n\n top: 50%;\n opacity: 0;\n height: 0;\n width: 0;\n\n transform: scaleX(-1) rotate(135deg);\n transform-origin: left top;\n border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n animation-name: ck-upload-complete-icon-check;\n animation-duration: 500ms;\n animation-delay: 500ms;\n animation-fill-mode: forwards;\n\n /* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n box-sizing: border-box;\n }\n\n @media (prefers-reduced-motion: reduce) {\n animation-duration: 0ms;\n\n &::after {\n animation: none;\n opacity: 1;\n width: 0.3em;\n height: 0.45em;\n }\n }\n}\n\n@keyframes ck-upload-complete-icon-show {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@keyframes ck-upload-complete-icon-hide {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n}\n\n@keyframes ck-upload-complete-icon-check {\n 0% {\n opacity: 1;\n width: 0;\n height: 0;\n }\n 33% {\n width: 0.3em;\n height: 0;\n }\n 100% {\n opacity: 1;\n width: 0.3em;\n height: 0.45em;\n }\n}\n'],sourceRoot:""}]);let a=s},1559:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n\n &::before {\n content: '';\n position: relative;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n --ck-upload-placeholder-loader-size: 32px;\n --ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n /* We need to control the full width of the SVG gray background. */\n width: 100%;\n margin: 0;\n\n &.image-inline {\n width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n }\n\n & img {\n /*\n * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n * There's nothing special about this number except that it should make the image placeholder look like\n * a real image during this short period after the upload started and before the image was read from the\n * file system (and a rich preview was loaded).\n */\n aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n }\n}\n\n.ck .ck-upload-placeholder-loader {\n width: 100%;\n height: 100%;\n\n &::before {\n width: var(--ck-upload-placeholder-loader-size);\n height: var(--ck-upload-placeholder-loader-size);\n border-radius: 50%;\n border-top: 3px solid var(--ck-color-upload-placeholder-loader);\n border-right: 2px solid transparent;\n animation: ck-upload-placeholder-loader 1s linear infinite;\n }\n}\n\n@keyframes ck-upload-placeholder-loader {\n to {\n transform: rotate( 360deg );\n }\n}\n"],sourceRoot:""}]);let a=s},2267:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:none;opacity:1}}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBAMD,CAJC,uCAHD,yFAKE,cAAe,CADf,SAGF,CADC,CAKF,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .image,\n & .image-inline {\n position: relative;\n }\n\n /* Upload progress bar. */\n & .image .ck-progress-bar,\n & .image-inline .ck-progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .image,\n & .image-inline {\n /* Showing animation. */\n &.ck-appear {\n animation: fadeIn 700ms;\n\n @media (prefers-reduced-motion: reduce) {\n opacity: 1;\n animation: none;\n }\n }\n }\n\n /* Upload progress bar. */\n & .image .ck-progress-bar,\n & .image-inline .ck-progress-bar {\n height: 2px;\n width: 0;\n background: var(--ck-color-upload-bar-background);\n transition: width 100ms;\n }\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n"],sourceRoot:""}]);let a=s},4062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n & .ck-labeled-field-view {\n display: inline-block;\n }\n\n & .ck-label {\n display: none;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},7719:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
vendor: 7,553 bytes, line 1
1s.push([e.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 background: var(--ck-color-link-selected-background);\n\n /* Give linked inline images some outline to let the user know they are also part of the link. */\n & span.image-inline {\n outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n }\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 background: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n height: 100%;\n border-right: 1px solid var(--ck-color-base-text);\n margin-right: -1px;\n outline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);let a=s},8762:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.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,CChEF,gJDyEG,aCvEH,CFAA",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n & .ck-link-actions__preview {\n display: inline-block;\n\n & .ck-button__label {\n overflow: hidden;\n }\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-link-actions__preview {\n flex-basis: 100%;\n }\n\n & .ck-button:not(.ck-link-actions__preview) {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-button.ck-link-actions__preview {\n padding-left: 0;\n padding-right: 0;\n\n & .ck-button__label {\n padding: 0 var(--ck-spacing-medium);\n color: var(--ck-color-link-default);\n text-overflow: ellipsis;\n cursor: pointer;\n\n /* Match the box model of the link editor form\'s input so the balloon\n does not change width when moving between actions and the form. */\n max-width: var(--ck-input-width);\n min-width: 3em;\n text-align: center;\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n &,\n &:hover,\n &:focus,\n &:active {\n background: none;\n }\n\n &:active {\n box-shadow: none;\n }\n\n &:focus {\n & .ck-button__label {\n text-decoration: underline;\n }\n }\n }\n\n @mixin ck-dir ltr {\n & .ck-button:not(:first-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n & .ck-button:not(:last-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-media-phone {\n & .ck-button.ck-link-actions__preview {\n margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n & .ck-button__label {\n min-width: 0;\n max-width: 100%;\n }\n }\n\n & .ck-button:not(.ck-link-actions__preview) {\n @mixin ck-dir ltr {\n margin-left: 0;\n }\n\n @mixin ck-dir rtl {\n margin-left: 0;\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},3817:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-link-form{align-items:flex-start;display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:0 var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAOA,iBAEC,sBAAuB,CADvB,YAkBD,CAfC,2BACC,YACD,CCPA,oCDCD,iBASE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CChBD,CDwBD,iCACC,aAYD,CALE,wHAEC,mCACD,CEhCF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CC1BD,4GDiCE,aC/BF,CDiCE,mEACC,kDACD,CAKF,6CACC,gCAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n align-items: flex-start;\n\n & .ck-label {\n display: none;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\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 display: block;\n\n /*\n * Whether the form is in the responsive mode or not, if there are decorator buttons\n * keep the top margin of action buttons medium.\n */\n & .ck-button {\n &.ck-button-save,\n &.ck-button-cancel {\n margin-top: var(--ck-spacing-medium);\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 padding: 0;\n min-width: var(--ck-input-width);\n\n & .ck-labeled-field-view {\n margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n & .ck-input-text {\n min-width: 0;\n width: 100%;\n }\n }\n\n & > .ck-button {\n padding: var(--ck-spacing-standard);\n margin: 0;\n width: 50%;\n border-radius: 0;\n\n &:not(:focus) {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n @mixin ck-dir ltr {\n margin-left: 0;\n }\n\n @mixin ck-dir rtl {\n margin-left: 0;\n\n &:last-of-type {\n border-right: 1px solid var(--ck-color-base-border);\n }\n }\n }\n\n /* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n & .ck.ck-list {\n margin: 0 var(--ck-spacing-large);\n\n & .ck-button.ck-switchbutton {\n padding: 0;\n width: 100%;\n\n &:hover {\n background: none;\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},4808:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r),a=n(62),l=n.n(a),c=new URL(n(4782),n.b),d=s()(o()),u=l()(c);
1d.push([e.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(${u});background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}`,"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,wDAA+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-2024, CKSource Holding 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 /* Linked image indicator */\n & figure.image > a,\n & a span.image-inline {\n &::after {\n display: block;\n position: absolute;\n }\n }\n}\n\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Match the icon size with the upload indicator brought by the image upload feature. */\n --ck-link-image-indicator-icon-size: 20;\n --ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n /* Linked image indicator */\n & figure.image > a,\n & a span.image-inline {\n &::after {\n content: "";\n\n /*\n * Smaller images should have the icon closer to the border.\n * Match the icon position with the upload indicator brought by the image upload feature.\n */\n top: min(var(--ck-spacing-medium), 6%);\n right: min(var(--ck-spacing-medium), 6%);\n\n background-color: hsla(0, 0%, 0%, .4);\n background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n background-size: 14px;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 100%;\n\n /*\n * Use CSS math to simulate container queries.\n * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n */\n overflow: hidden;\n width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n }\n }\n}\n\n'],sourceRoot:""}]);let h=d},1232:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: block;\n}\n"],sourceRoot:""}]);let a=s},6903:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 list-style-type: decimal;\n\n & ol {\n list-style-type: lower-latin;\n\n & ol {\n list-style-type: lower-roman;\n\n & ol {\n list-style-type: upper-latin;\n\n & ol {\n list-style-type: upper-roman;\n }\n }\n }\n }\n}\n\n.ck-content ul {\n list-style-type: disc;\n\n & ul {\n list-style-type: circle;\n\n & ul {\n list-style-type: square;\n\n & ul {\n list-style-type: square;\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s},9968:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* When there are no list styles and there is no collapsible. */\n &.ck-list-properties_without-styles {\n padding: var(--ck-spacing-large);\n\n & > * {\n min-width: 14em;\n\n & + * {\n margin-top: var(--ck-spacing-standard);\n }\n }\n }\n\n /*\n * When the numbered list property fields (start at, reversed) should be displayed,\n * more horizontal space is needed. Reconfigure the style grid to create that space.\n */\n &.ck-list-properties_with-numbered-properties {\n & > .ck-list-styles-list {\n grid-template-columns: repeat( 4, auto );\n }\n\n /* When list styles are rendered and property fields are in a collapsible. */\n & > .ck-collapsible {\n border-top: 1px solid var(--ck-color-base-border);\n\n & > .ck-collapsible__children {\n & > * {\n width: 100%;\n\n & + * {\n margin-top: var(--ck-spacing-standard);\n }\n }\n }\n }\n }\n\n & .ck.ck-numbered-list-properties__start-index .ck-input {\n min-width: auto;\n width: 100%;\n }\n\n & .ck.ck-numbered-list-properties__reversed-order {\n background: transparent;\n padding-left: 0;\n padding-right: 0;\n margin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n &:active, &:hover {\n box-shadow: none;\n border-color: transparent;\n background: none;\n }\n }\n}\n"],sourceRoot:""}]);let a=s},7141:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: grid;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n grid-template-columns: repeat( 3, auto );\n row-gap: var(--ck-spacing-medium);\n column-gap: var(--ck-spacing-medium);\n padding: var(--ck-spacing-large);\n\n & .ck-button {\n /* Make the button look like a thumbnail (the icon "takes it all"). */\n width: var(--ck-list-style-button-size);\n height: var(--ck-list-style-button-size);\n padding: 0;\n\n /*\n * Buttons are aligned by the grid so disable default button margins to not collide with the\n * gaps in the grid.\n */\n margin: 0;\n\n /*\n * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n * from the button dimensions and, as a result, decrease the size of the icon\n * (which becomes blurry as it scales down).\n */\n box-sizing: content-box;\n\n & .ck-icon {\n width: var(--ck-list-style-button-size);\n height: var(--ck-list-style-button-size);\n }\n }\n}\n'],sourceRoot:""}]);let a=s},8991:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;
1transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{transition:none}}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CA4EA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAtFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqFC,CAvED,wDACC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAED,CAEA,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sDAYE,eAEF,CADC,CAGD,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FAxHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAuHA,CAzGA,wGACC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAED,CAEA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sGAYE,eAEF,CADC,CAGD,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n -webkit-appearance: none;\n display: inline-block;\n position: relative;\n width: var(--ck-todo-list-checkmark-size);\n height: var(--ck-todo-list-checkmark-size);\n vertical-align: middle;\n\n /* Needed on iOS */\n border: 0;\n\n /* LTR styles */\n left: -25px;\n margin-right: -15px;\n right: 0;\n margin-left: 0;\n\n /* RTL styles */\n [dir=rtl]& {\n left: 0;\n margin-right: 0;\n right: -25px;\n margin-left: -15px;\n }\n\n &::before {\n display: block;\n position: absolute;\n box-sizing: border-box;\n content: '';\n width: 100%;\n height: 100%;\n border: 1px solid hsl(0, 0%, 20%);\n border-radius: 2px;\n transition: 250ms ease-in-out box-shadow;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n\n &::after {\n display: block;\n position: absolute;\n box-sizing: content-box;\n pointer-events: none;\n content: '';\n\n /* Calculate tick position, size and border-width proportional to the checkmark size. */\n left: calc( var(--ck-todo-list-checkmark-size) / 3 );\n top: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n width: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n height: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n border-style: solid;\n border-color: transparent;\n border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n transform: rotate(45deg);\n }\n\n &[checked] {\n &::before {\n background: hsl(126, 64%, 41%);\n border-color: hsl(126, 64%, 41%);\n }\n\n &::after {\n border-color: hsl(0, 0%, 100%);\n }\n }\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n list-style: none;\n\n & li {\n position: relative;\n margin-bottom: 5px;\n\n & .todo-list {\n margin-top: 5px;\n }\n }\n\n & .todo-list__label {\n & > input {\n @mixin todo-list-checkbox;\n }\n\n & .todo-list__label__description {\n vertical-align: middle;\n }\n\n &.todo-list__label_without-description input[type=checkbox] {\n position: absolute;\n }\n }\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n /*\n * To-do list should be interactive only during the editing\n * (https://github.com/ckeditor/ckeditor5/issues/2090).\n */\n & > input,\n & > span[contenteditable=false] > input {\n cursor: pointer;\n\n &:hover::before {\n box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n }\n }\n\n /*\n * Document Lists - editing view has an additional span around checkbox.\n */\n & > span[contenteditable=false] > input {\n @mixin todo-list-checkbox;\n }\n\n &.todo-list__label_without-description {\n & input[type=checkbox] {\n position: absolute;\n }\n }\n}\n"],sourceRoot:""}]);let a=s},70:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
vendor: 8,900 bytes, line 1
1s.push([e.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Don\'t allow floated content overlap the media.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n clear: both;\n\n /* Make sure there is some space between the content and the media. */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em 0;\n\n /* Make sure media is not overriden with Bootstrap default `flex` value.\n See: https://github.com/ckeditor/ckeditor5/issues/1373. */\n display: block;\n\n /* Give the media some minimal width in the content to prevent them\n from being "squashed" in tight spaces, e.g. in table cells (#44) */\n min-width: 15em;\n}\n'],sourceRoot:""}]);let a=s},7048:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r),a=n(62),l=n.n(a),c=new URL(n(657),n.b),d=new URL(n(9736),n.b),u=new URL(n(6341),n.b),h=new URL(n(7784),n.b),g=s()(o()),m=l()(c),p=l()(d),k=l()(u),f=l()(h);g.push([e.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(${m})}.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(${p})}.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(${k})}.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(${f})}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}`,"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wDACD,CAEA,2EACC,kBAaD,CAXC,wGACC,wDACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,wDACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wDACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-media__placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n & .ck-media__placeholder__url {\n /* Otherwise the URL will overflow when the content is very narrow. */\n max-width: 100%;\n\n position: relative;\n\n & .ck-media__placeholder__url__text {\n overflow: hidden;\n display: block;\n }\n }\n }\n\n &[data-oembed-url*="twitter.com"],\n &[data-oembed-url*="google.com/maps"],\n &[data-oembed-url*="goo.gl/maps"],\n &[data-oembed-url*="maps.google.com"],\n &[data-oembed-url*="maps.app.goo.gl"],\n &[data-oembed-url*="facebook.com"],\n &[data-oembed-url*="instagram.com"] {\n & .ck-media__placeholder__icon * {\n display: none;\n }\n }\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 pointer-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 pointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-media-embed-placeholder-icon-size: 3em;\n\n --ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n --ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n margin: 0 auto;\n\n & .ck-media__placeholder {\n padding: calc( 3 * var(--ck-spacing-standard) );\n background: var(--ck-color-base-foreground);\n\n & .ck-media__placeholder__icon {\n min-width: var(--ck-media-embed-placeholder-icon-size);\n height: var(--ck-media-embed-placeholder-icon-size);\n margin-bottom: var(--ck-spacing-large);\n background-position: center;\n background-size: cover;\n\n & .ck-icon {\n width: 100%;\n height: 100%;\n }\n }
1\n\n & .ck-media__placeholder__url__text {\n color: var(--ck-color-media-embed-placeholder-url-text);\n white-space: nowrap;\n text-align: center;\n font-style: italic;\n text-overflow: ellipsis;\n\n &:hover {\n color: var(--ck-color-media-embed-placeholder-url-text-hover);\n cursor: pointer;\n text-decoration: underline;\n }\n }\n }\n\n &[data-oembed-url*="open.spotify.com"] {\n max-width: 300px;\n max-height: 380px;\n }\n\n &[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n &[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n &[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n &[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n }\n\n &[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n background: hsl(220, 46%, 48%);\n\n & .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n }
1\n\n & .ck-media__placeholder__url__text {\n color: hsl(220, 100%, 90%);\n\n &:hover {\n color: hsl(0, 0%, 100%);\n }\n }\n }\n\n &[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n & .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMu
1NTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n }\n\n /* stylelint-disable-next-line no-descending-specificity */\n & .ck-media__placeholder__url__text {\n color: hsl(302, 100%, 94%);\n\n &:hover {\n color: hsl(0, 0%, 100%);\n }\n }\n }\n\n &[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n /* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n & .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n }\n\n & .ck-media__placeholder__url__text {\n color: hsl(201, 100%, 86%);\n\n &:hover {\n color: hsl(0, 0%, 100%);\n }\n }\n }\n}\n'],sourceRoot:""}]);let b=g},5651:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap;width:400px}.ck.ck-media-form .ck-labeled-field-view{display:inline-block;width:100%}.ck.ck-media-form .ck-label{display:none}.ck.ck-media-form .ck-input{width:100%}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAAiB,CACjB,WA0BD,CAxBC,yCACC,oBAAqB,CACrB,UACD,CAEA,4BACC,YACD,CAEA,4BACC,UACD,CCnBA,oCDCD,kBAqBE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CC5BD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n align-items: flex-start;\n flex-direction: row;\n flex-wrap: nowrap;\n width: 400px;\n\n & .ck-labeled-field-view {\n display: inline-block;\n width: 100%;\n }\n\n & .ck-label {\n display: none;\n }\n\n & .ck-input {\n width: 100%;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},5506:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.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:1px solid var(--ck-color-input-border);border-radius:0;height:20px;width:20px}.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>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC7BF,+CCME,4BAA6B,CAD7B,yBDHF,CAFA,+CCWE,2BAA4B,CAD5B,wBDRF,CCcC,2CACC,SACD,CAIA,wEACC,SA0CD,CDjED,kFC2BG,2BAA4B,CAD5B,wBDxBH,CC2BG,8FACC,iCACD,CD/BH,kFCoCG,4BAA6B,CAD7B,yBDjCH,CCoCG,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GAKC,6CAA8C,CC/CjD,eAAgB,CD8Cb,WAAY,CADZ,UAcD,CCzDF,+PAEC,qCAED,CD2CG,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,CD7ED,8DCgFE,yBD9EF,CAFA,8DCoFE,wBDlFF,CCqFC,gEACC,uCAMD,CD9FD,0EC4FG,sCAAuC,CADvC,cDzFH",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 width: 100%;\n display: flex;\n flex-direction: row-reverse;\n\n & > input.ck.ck-input-text {\n min-width: auto;\n flex-grow: 1;\n }\n\n & > div.ck.ck-dropdown {\n min-width: auto;\n\n /* This dropdown has no arrow but a color preview instead. */\n & > .ck-input-color__button .ck-dropdown__arrow {\n display: none;\n }\n }\n\n & .ck.ck-input-color__button {\n /* Resolving issue with misaligned buttons on Safari (see #10589) */\n display: flex;\n\n & .ck.ck-input-color__button__preview {\n position: relative;\n overflow: hidden;\n\n & > .ck.ck-input-color__button__preview__no-color-indicator {\n position: absolute;\n display: block;\n }\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & > .ck.ck-input-text {\n @mixin ck-dir ltr {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n @mixin ck-dir rtl {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n /* Make sure the focused input is always on top of the dropdown button so its\n outline and border are never cropped (also when the input is read-only). */\n &:focus {\n z-index: 0;\n }\n }\n\n & > .ck.ck-dropdown {\n & > .ck.ck-button.ck-input-color__button {\n padding: 0;\n\n @mixin ck-dir ltr {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n &:not(:focus) {\n border-left: 1px solid transparent;\n }\n }\n\n @mixin ck-dir rtl {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\n &:not(:focus) {\n border-right: 1px solid transparent;\n }\n }\n\n &.ck-disabled {\n background: var(--ck-color-input-disabled-background);\n }\n\n & > .ck.ck-input-color__button__preview {\n @mixin ck-rounded-corners;
1\n\n width: 20px;\n height: 20px;\n border: 1px solid var(--ck-color-input-border);\n\n & > .ck.ck-input-color__button__preview__no-color-indicator {\n top: -30%;\n left: 50%;\n height: 150%;\n width: 8%;\n background: hsl(0, 100%, 50%);\n border-radius: 2px;\n transform: rotate(45deg);\n transform-origin: 50%;\n }\n }\n }\n }\n\n & .ck.ck-input-color__remove-color {\n width: 100%;\n padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:not(:focus) {\n border-bottom: 1px solid var(--ck-color-input-border);\n }\n\n @mixin ck-dir ltr {\n border-top-right-radius: 0;\n }\n\n @mixin ck-dir rtl {\n border-top-left-radius: 0;\n }\n\n & .ck.ck-icon {\n margin-right: var(--ck-spacing-standard);\n\n @mixin ck-dir rtl {\n margin-right: 0;\n margin-left: var(--ck-spacing-standard);\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},4043:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 padding: 0 0 var(--ck-spacing-large);\n\n &:focus {\n /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n outline: none;\n }\n\n & .ck.ck-input-text {\n min-width: 100%;\n width: 0;\n }\n\n & .ck.ck-dropdown {\n min-width: 100%;\n\n & .ck-dropdown__button {\n &:not(:focus) {\n border: 1px solid var(--ck-color-base-border);\n }\n\n & .ck-button__label {\n width: 100%;\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s},2655:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CC7BC,6CDQG,mCCNH,CAFA,6CDYG,oCCVH,CDeA,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n\n /* Ignore labels that work as fieldset legends */\n & > *:not(.ck-label) {\n flex-grow: 1;\n }\n\n &.ck-table-form__action-row {\n & .ck-button-save,\n & .ck-button-cancel {\n justify-content: center;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n /* Ignore labels that work as fieldset legends */\n & > *:not(.ck-label) {\n & + * {\n @mixin ck-dir ltr {\n margin-left: var(--ck-spacing-large);\n }\n\n @mixin ck-dir rtl {\n margin-right: var(--ck-spacing-large);\n }\n }\n }\n\n & > .ck-label {\n width: 100%;\n min-width: 100%;\n }\n\n &.ck-table-form__action-row {\n margin-top: var(--ck-spacing-large);
1\n\n & .ck-button .ck-button__label {\n color: var(--ck-color-text);\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},5032:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAcD,CAZC,uCATD,uCAUE,eAWF,CAVC,CAEA,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-insert-table-dropdown-padding: 10px;\n --ck-insert-table-dropdown-box-height: 11px;\n --ck-insert-table-dropdown-box-width: 12px;\n --ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n /* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n 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);\n padding: 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 text-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n min-width: var(--ck-insert-table-dropdown-box-width);\n min-height: var(--ck-insert-table-dropdown-box-height);\n margin: var(--ck-insert-table-dropdown-box-margin);\n border: 1px solid var(--ck-color-base-border);\n border-radius: 1px;\n outline: none;\n transition: none;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &:focus {\n box-shadow: none;\n }\n\n &.ck-on {\n border-color: var(--ck-color-focus-border);\n background: var(--ck-color-focus-outer-shadow);\n }\n}\n\n"],sourceRoot:""}]);let a=s},2329:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}@media print{.ck-content .table table{height:auto}}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,w
1BAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAeF,aACC,yBACC,WACD,CACD,CAIA,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Give the table widget some air and center it horizontally */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em auto;\n display: table;\n\n & table {\n /* The table cells should have slight borders */\n border-collapse: collapse;\n border-spacing: 0;\n\n /* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n width: 100%;\n height: 100%;\n\n /* The outer border of the table should be slightly darker than the inner lines.\n Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n border: 1px double hsl(0, 0%, 70%);\n\n & td,\n & th {\n min-width: 2em;\n padding: .4em;\n\n /* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n However, the border is a content style, so it should use .ck-content (so it works outside the editor).\n Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n border: 1px solid hsl(0, 0%, 75%);\n }\n\n & th {\n font-weight: bold;\n background: hsla(0, 0%, 0%, 5%);\n }\n }\n}\n\n/**\n * Expanding the table to the full height of the parent container is necessary because tables\n * are rendered inside <figure> elements, which is kinda buggy in table height calculation.\n * While setting `height: 100%` fixes the issue in the editing mode described here:\n * https://github.com/ckeditor/ckeditor5/issues/6186\n *\n * it\'s causing another issue with the table height in the print preview mode here:\n * https://github.com/ckeditor/ckeditor5/issues/16856\n *\n * For now, resetting the height to `initial` in the print mode works as a workaround.\n */\n@media print {\n .ck-content .table table {\n height: initial;\n }\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n text-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n text-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n /*\n * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n * See https://github.com/ckeditor/ckeditor5/issues/6062.\n */\n display: inline-block;\n\n /*\n * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n * See https://github.com/ckeditor/ckeditor5/issues/9117.\n */\n width: 100%;\n}\n'],sourceRoot:""}]);let a=s},4143:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAaD,CCxBC,8BACC,8BDoBA,sBAAuB,CACvB,WCnBA,CACD,
1CAIA,4BDqBC,qEACC,iDACD,CCnBD,CDsBA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_mediacolors.css";\n\n:root {\n --ck-color-selector-caption-background: hsl(0, 0%, 97%);\n --ck-color-selector-caption-text: hsl(0, 0%, 20%);\n --ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n display: table-caption;\n caption-side: top;\n word-break: break-word;\n text-align: center;\n color: var(--ck-color-selector-caption-text);\n background-color: var(--ck-color-selector-caption-background);\n padding: .6em;\n font-size: .75em;\n outline-offset: -1px;\n\n /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n @mixin ck-media-forced-colors {\n background-color: unset;\n color: unset;\n }\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n @mixin ck-media-default-colors {\n &.table__caption_highlighted {\n animation: ck-table-caption-highlight .6s ease-out;\n }\n }\n\n &.ck-placeholder::before {\n padding-left: inherit;\n padding-right: inherit;\n\n /*\n * Make sure the table caption placeholder doesn\'t overflow the placeholder area.\n * See https://github.com/ckeditor/ckeditor5/issues/9162.\n */\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n}\n\n@keyframes ck-table-caption-highlight {\n 0% {\n background-color: var(--ck-color-selector-caption-highlighted-background);\n }\n\n 100% {\n background-color: var(--ck-color-selector-caption-background);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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-forced-colors {\n @media (forced-colors: active) {\n & {\n @mixin-content;\n }\n }\n}\n\n@define-mixin ck-media-default-colors {\n @media (forced-colors: none) {\n & {\n @mixin-content;\n }\n }\n}\n"],sourceRoot:""}]);let a=s},8986:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-form__row {\n &.ck-table-cell-properties-form__alignment-row {\n flex-wrap: wrap;\n\n & .ck.ck-toolbar {\n &:first-of-type {\n /* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n flex-grow: 0.57;\n }\n\n &:last-of-type {\n /* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n flex-grow: 0.43;\n }\n\n & .ck-button {\n flex-grow: 1;\n }\n }\n }\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 width: 320px;\n\n & .ck-form__row {\n &.ck-table-cell-properties-form__padding-row {\n align-self: flex-end;\n padding: 0;\n width: 25%;\n }\n\n &.ck-table-cell-properties-form__alignment-row {\n & .ck.ck-toolbar {\n background: none;\n\n /* Compensate for missing input label that would push the margin (toolbar has no input
1s). */\n margin-top: var(--ck-spacing-standard);\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s},8795:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n --ck-table-column-resizer-width: 7px;\n\n /* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n --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 table-layout: fixed;\n}\n\n.ck-content .table table {\n overflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n /* To prevent text overflowing beyond its cell when columns are resized by resize handler\n (https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n overflow-wrap: break-word;\n position: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n position: absolute;\n top: 0;\n bottom: 0;\n right: var(--ck-table-column-resizer-position-offset);\n width: var(--ck-table-column-resizer-width);\n cursor: col-resize;\n user-select: none;\n z-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n display: 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 display: 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 background-color: var(--ck-color-selector-column-resizer-hover);\n opacity: 0.25;\n /* 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 it is extended to an extremely high height. Even for screens
1with a very high pixel density, the resizer will fulfill its role as\n 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 unrealistic height for a single table. */\n top: -999999px;\n bottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n left: var(--ck-table-column-resizer-position-offset);\n right: unset;\n}\n"],sourceRoot:""}]);let a=s},8137:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAWE,8QAGC,2DAA4D,CAC5D,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n & td,\n & th {\n /**\n * While setting outline is fine, the border should not be modified here\n * because it overrides the default table cell border color which is not expected.\n * So do not use `@mixin ck-focus-ring;` here, or any other border styles.\n * See more: https://github.com/ckeditor/ckeditor5/issues/16979\n */\n &.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n &.ck-editor__nested-editable:focus {\n /* A very slight background to highlight the focused cell */\n background: var(--ck-color-selector-focused-cell-background);\n outline: 1px solid var(--ck-color-focus-border);\n outline-offset: -1px; /* progressive enhancement - no IE support */\n }\n }\n}\n"],sourceRoot:""}]);let a=s},1623:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.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{animation:ck-table-form-labeled-view-status-appear .15s ease both;background:var(--ck-color-base-error);border-radius:0;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-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:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}
1to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCA6BD,CA3BC,8EAgBC,iEAAkE,CAblE,qCAAsC,CC3CxC,eAAgB,CD4Cd,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CC3DD,mMAEC,qCAED,CD4CE,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAIA,uCAlBD,8EAmBE,cAEF,CADC,CAID,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-form__row {\n &.ck-table-form__border-row {\n flex-wrap: wrap;\n }\n\n &.ck-table-form__background-row {\n flex-wrap: wrap;\n }\n\n &.ck-table-form__dimensions-row {\n flex-wrap: wrap;\n align-items: center;\n\n & .ck-labeled-field-view {\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n\n & .ck.ck-dropdown {\n flex-grow: 0;\n }\n }\n\n & .ck-table-form__dimension-operator {\n flex-grow: 0;\n }\n }\n }\n\n & .ck.ck-labeled-field-view {\n /* Allow absolute positioning of the status (error) balloons. */\n position: relative;\n\n & .ck.ck-labeled-field-view__status {\n position: absolute;\n left: 50%;\n bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n transform: translate(-50%,100%);\n\n /* Make sure the balloon status stays on top of other form elements. */\n z-index: 1;\n\n /* The arrow pointing towards the field. */\n &::after {\n content: "";\n position: absolute;\n top: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n left: 50%;\n transform: translateX( -50% );\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-table-properties-error-arrow-size: 6px;\n --ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n & .ck-form__row {\n &.ck-table-form__border-row {\n & .ck-labeled-field-view {\n & > .ck-label {\n font-size: var(--ck-font-size-tiny);\n text-align: center;\n }\n }\n\n & .ck-table-form__border-style,\n & .ck-table-form__border-width {\n width: 80px;\n min-width: 80px;\n max-width: 80px;\n }\n }\n\n &.ck-table-form__dimensions-row {\n padding: 0;\n\n & .ck-table-form__dimensions-row__width,\n & .ck-table-form__dimensions-row__height {\n margin: 0\n }\n\n & .ck-table-form__dimension-operator {\n align-self: flex-end;\n display: inline-block;\n height: var(--ck-ui-component-min-height);\n line-height: var(--ck-ui-component-min-height);\n margin: 0 var(--ck-spacing-small);\n }\n }\n }\n\n & .ck.ck-labeled-field-view {\n padding-top: var(--ck-spacing-standard);\n\n & .ck.ck-labeled-field-view__status {\n @mixin ck-rounded-corners;\n\n background: var(--ck-color-base-error);\n color: var(--ck-color-base-background);\n padding: var(--ck-spacing-small) var(--ck-spacing-medium);\n min-width: var(--ck-table-properties-min-error-width);\n text-align: center;\n\n /* The arrow pointing towards the field. */\n &::after {\n border-color: transparent transparent var(--ck-color-base-error) transparent;\n border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n border-style: solid;\n }\n\n animation: ck-table-form-labeled-view-status-appear .15s ease both;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n\n /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n display: none;\n }\n }\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s}
1,5562:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-form__row {\n &.ck-table-properties-form__alignment-row {\n flex-wrap: wrap;\n flex-basis: 0;\n align-content: baseline;\n\n & .ck.ck-toolbar .ck-toolbar__items {\n flex-wrap: nowrap;\n }\n }\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 width: 320px;\n\n & .ck-form__row {\n &.ck-table-properties-form__alignment-row {\n align-self: flex-end;\n padding: 0;\n\n & .ck.ck-toolbar {\n background: none;\n\n /* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n margin-top: var(--ck-spacing-standard);\n\n & .ck-toolbar__items > * {\n width: 40px;\n }\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s}
1,8423:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n & td.ck-editor__editable_selected,\n & th.ck-editor__editable_selected {\n position: relative;\n caret-color: transparent;\n outline: unset;\n box-shadow: unset;\n\n /* https://github.com/ckeditor/ckeditor5/issues/6446 */\n &:after {\n content: '';\n pointer-events: none;\n background-color: var(--ck-table-selected-cell-background);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n & ::selection,\n &:focus {\n background-color: transparent;\n }\n\n /*\n * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n * See https://github.com/ckeditor/ckeditor5/issues/9491.\n */\n & .ck-widget {\n outline: unset;\n\n & > .ck-widget__selection-handle {\n display: none;\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s},1801:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}.ck.ck-aria-live-region-list{list-style-type:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD,CAEA,6BACC,oBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 position: absolute;\n left: -10000px;\n top: -10000px;\n}\n\n.ck.ck-aria-live-region-list {\n list-style-type: none;\n}\n"],sourceRoot:""}]);let a=s},5727:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;max-height:200px;min-width:auto;overflow-y:auto}.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{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/
1autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCAMC,0CAA2C,CAC3C,sDAAuD,CCLxD,eAAgB,CDEf,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CCrBA,uHAEC,qCAED,CDRA,wCEAA,oCFyBA,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 position: relative;\n\n & > .ck-search__results {\n position: absolute;\n z-index: var(--ck-z-panel);\n\n &.ck-search__results_n {\n bottom: 100%;\n }\n\n &.ck-search__results_s {\n top: 100%;\n bottom: auto;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & > .ck-search__results {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n max-height: 200px;\n overflow-y: auto;\n background: var(--ck-color-base-background);\n border: 1px solid var(--ck-color-dropdown-panel-border);\n min-width: auto;\n\n &.ck-search__results_n {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n /* Prevent duplicated borders between the input and the results pane. */\n margin-bottom: -1px;\n }\n\n &.ck-search__results_s {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n\n /* Prevent duplicated borders between the input and the results pane. */\n margin-top: -1px;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},9715:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;background:var(--ck-color-button-default-background);border:1px solid transparent;border-radius:0;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.
1ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit;opacity:.5}[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-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-medium)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background);color:var(--ck-color-button-on-color)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background);color:var(--ck-color-button-action-text)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CEhCC,iDFWC,oBETD,CAFA,iDFeC,qBEbD,CFgBA,iEACC,YACD,CAGC,yGACC,oBACD,
1CAID,iFACC,sBACD,CGzBD,6BA6BC,uBAAwB,CC7BxB,oDAAqC,CDuBrC,4BAA6B,CExB7B,eAAgB,CFOhB,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAwID,CC1IE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CCdA,wIAEC,qCAED,CF0BA,uCA/BD,6BAgCE,eA6GF,CA5GC,CAEA,oFGpCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHyCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CDzEA,qFCmEE,eDjEF,CAFA,qFCuEE,gBDrEF,CCyEA,yEACC,aAAc,CAUd,UACD,CDvFA,6FC+EE,mCD7EF,CAFA,6FCmFE,oCDjFF,CCyFC,oIIxFD,oDJ4FC,CAOA,gLKnGD,kCLqGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAYD,CD5HA,2HCqHG,qCDnHH,CAFA,2HCyHG,oCDvHH,CC8HC,mHACC,WACD,CAID,yCChIA,+CAAqC,CDmIpC,qCACD,CCjIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDuHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CChJC,mDAAqC,CDoJrC,wCACD,CClJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDwID,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @mixin ck-unselectable;\n\n position: relative;\n display: inline-flex;\n align-items: center;\n\n @mixin ck-dir ltr {\n justify-content: left;\n }\n\n @mixin ck-dir rtl {\n justify-content: right;\n }\n\n & .ck-button__label {\n display: none;\n }\n\n &.ck-button_with-text {\n & .ck-button__label {\n display: inline-block;\n }\n }\n\n /* Center the icon horizontally in a button without text. */\n &:not(.ck-button_with-text) {\n justify-content: center;\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @mixin ck-button-colors --ck-color-button-default;\n @mixin ck-rounded-corners;\n\n white-space: nowrap;\n cursor: default;\n vertical-align: middle;\n padding: var(--ck-spacing-tiny);\n text-align: center;\n\n /* A very important piece of styling. Go to variable declaration to learn more. */\n min-width: var(--ck-ui-component-min-height);\n min-height: var(--ck-ui-component-min-height);\n\n /* Normalize the height of the line. Removing this will break consistent height\n among text and text-less buttons (with icons). */\n line-height: 1;\n\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n /* Avoid flickering when the foucs border shows up. */\n border: 1px solid transparent;\n\n /* Apply some smooth transition to the box-shadow and border. */\n transition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n -webkit-appearance: none;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &:active,\n &:focus {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n\n /* Allow icon coloring using the text "color" property. */\n & .ck-button__icon {\n & use,\n & use * {\n color: inherit;\n }\n }\n\n & .ck-button__label {\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n font-weight: inherit;\n color: inherit;\n cursor: inherit;\n\n /* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n without labels (but with icons) have different sizes in Chrome */\n vertical-align: middle;\n\n @mixin ck-dir ltr {\n text-align: left;\n }\n\n @mixin ck-dir rtl {\n text-align: right;\n }\n }\n\n & .ck-button__keystroke {\n color: inherit;\n\n @mixin ck-dir ltr {\n margin-left: var(--ck-spacing-large);\n }\n\n @mixin ck-dir rtl {\n margin-right: var(--ck-spacing-large);\n }\n\n opacity: .5;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n &.ck-disabled {\n &:active,\n &:focus {\n /* The disabled button should have a slightly less visible shadow when focu
1sed. */\n @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n }\n\n & .ck-button__icon {\n @mixin ck-disabled;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n & .ck-button__label {\n @mixin ck-disabled;\n }\n\n & .ck-button__keystroke {\n opacity: .3;\n }\n }\n\n &.ck-button_with-text {\n padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n /* stylelint-disable-next-line no-descending-specificity */\n & .ck-button__icon {\n @mixin ck-dir ltr {\n margin-right: var(--ck-spacing-medium);\n }\n\n @mixin ck-dir rtl {\n margin-left: var(--ck-spacing-medium);\n }\n }\n }\n\n &.ck-button_with-keystroke {\n /* stylelint-disable-next-line no-descending-specificity */\n & .ck-button__label {\n flex-grow: 1;\n }\n }\n\n /* A style of the button which is currently on, e.g. its feature is active. */\n &.ck-on {\n @mixin ck-button-colors --ck-color-button-on;\n\n color: var(--ck-color-button-on-color);\n }\n\n &.ck-button-save {\n color: var(--ck-color-button-save);\n }\n\n &.ck-button-cancel {\n color: var(--ck-color-button-cancel);\n }\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n @mixin ck-button-colors --ck-color-button-action;\n\n color: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n font-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 background: var($(prefix)-background);\n\n &:not(.ck-disabled) {\n &:hover {\n background: var($(prefix)-hover-background);\n }\n\n &:active {\n background: var($(prefix)-active-background);\n }\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n &.ck-disabled {\n background: var($(prefix)-disabled-background);\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 opacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);let a=s},278:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-list-item-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list-item-button{text-align:left}[dir=rtl] .ck.ck-list-item-button{text-align:right}[dir=ltr] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-right:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-holder{display:inline-flex;height:.9em;width:.9em}[dir=ltr] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-left:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-icon{height:100%}.ck.ck-button.ck-list-item-button{padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2)}.ck.ck-button.ck-list-item-button,.ck.ck-button.ck-list-item-button.ck-on{background:var(--ck-color-list-background);color:var(--ck-color-text)}[dir=ltr] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-right:var(--ck-spacing-small)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable):not(.ck-disabled),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled){color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/listitembutton.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/listitembutton.css"],names:[],mappings:"AAOA,wBAGC,eAAgB,CAFhB,gBAAiB,CACjB,UAsCD,CCzCC,kCDOC,eCLD,CAFA,kCDWC,gBCTD,CAFA,iEDgBE,oCCdF,CAFA,iEDoBE,qCClBF,CDsBA,2DACC,mBAAoB,CAEpB,WAAY,CADZ,UAUD,CCpCA,qED8BE,oCC5BF,CAFA,qEDkCE,mCChCF,CDoCA,yDACC,WACD,CEvCD,kCACC,iEAiCD,CA/BC,0EAEC,0CAA2C,CAC3C,0BACD,CDRA,oFCYE,oCDVF,CAFA,oFCgBE,qCDdF,CCuBA,6OAIC,uDAKD,CAHC,qTACC,0BACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_dir.css";\n\n.ck.ck-list-item-button {\n min-height: unset;\n width: 100%;\n border-radius: 0;\n\n @mixin ck-dir ltr {\n text-align: left;\n }\n\n @mixin ck-dir rtl {\n text-align: right;\n }\n\n &.ck-list-item-button_toggleable {\n @mixin ck-dir ltr {\n padding-left: var(--ck-spacing-small);\n }\n\n @mixin ck-dir rtl {\n padding-right: var(--ck-spacing-small);\n }\n }\n\n & .ck-list-item-button__check-holder {\n display: inline-flex;\n width: .9em;\n height: .9em;\n\n @mixin ck-dir ltr {\n margin-right: var(--ck-spacing-small);\n }\n\n @mixin ck-dir rtl {\n margin-left: var(--ck-spacing-small);\n }\n }\n\n & .ck-list-item-button__check-icon {\n height: 100%;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-button.ck-list-item-button {\n padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\n\n &,\n &.ck-on {\n background: var(--ck-color-list-background);\n color: var(--ck-color-text);\n }\n\n &:has(.ck-list-item-button__check-holder) {\n @mixin ck-dir ltr {\n padding-left: var(--ck-spacing-small);\n }\n\n @mixin ck-dir rtl {\n padding-right: var(--ck-spacing-small);\n }\n }\n\n /*\n * `.ck-on` class and background styling is overridden for `ck-button` in many places.\n * This is a workaround to make sure that the background is not overridden and uses similar\n * selector specificity as the other overrides.\n */\n &:hover:not(.ck-disabled),\n &.ck-button.ck-on:hover,\n &.ck-on:not(.ck-list-item-button_toggleable),\n &.ck-on:hover {\n background: var(--ck-color-list-button-hover-background);\n\n &:not(.ck-disabled) {\n color: var(--ck-color-text);\n }\n }\n}\n'],sourceRoot:""}]);let a=s},4391:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.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{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;border-radius:0;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.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 .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);border-radius:0;height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.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)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CC3BA,0DDgCE,4CC9BF,CAFA,0DDqCE,2CCnCF,CDuCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CEpD9B,eAAgB,CFmDf,iFAAsF,CAEtF,0CA2BD,CE9EA,yIAEC,qCAED,CDXA,2DD8CE,gBC5CF,CAFA,2DDmDE,iBCjDF,CD2DC,2EAOC,yDAA0D,CE/D5D,eAAgB,CF8Dd,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAUD,CErED,6LAEC,qCAAsC,CFsDpC,8CEpDH,CF8DE,uCAZD,2EAaE,eAEF,CADC,CAGD,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DGpFA,kCHs
1FA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CC/GF,2FDsHI,2DCpHJ,CAFA,2FD0HI,oECxHJ",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-button__toggle {\n display: block;\n\n & .ck-button__toggle__inner {\n display: block;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* 34px at 13px font-size */\n --ck-switch-button-toggle-width: 2.6153846154em;\n /* 14px at 13px font-size */\n --ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n --ck-switch-button-translation: calc(\n var(--ck-switch-button-toggle-width) -\n var(--ck-switch-button-toggle-inner-size) -\n 2px /* Border */\n );\n --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 /* Unlike a regular button, the switch button text color and background should never change.\n * Changing toggle switch (background, outline) is enough to carry the information about the\n * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n */\n &, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n color: inherit;\n background: transparent;\n }\n\n & .ck-button__label {\n @mixin ck-dir ltr {\n /* Separate the label from the switch */\n margin-right: calc(2 * var(--ck-spacing-large));\n }\n\n @mixin ck-dir rtl {\n /* Separate the label from the switch */\n margin-left: calc(2 * var(--ck-spacing-large));\n }\n }\n\n & .ck-button__toggle {\n @mixin ck-rounded-corners;\n\n @mixin ck-dir ltr {\n /* Make sure the toggle is always to the right as far as possible. */\n margin-left: auto;\n }\n\n @mixin ck-dir rtl {\n /* Make sure the toggle is always to the left as far as possible. */\n margin-right: auto;\n }\n\n /* Apply some smooth transition to the box-shadow and border. */\n /* Gently animate the background color of the toggle switch */\n transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n border: 1px solid transparent;\n width: var(--ck-switch-button-toggle-width);\n background: var(--ck-color-switch-button-off-background);\n\n & .ck-button__toggle__inner {\n @mixin ck-rounded-corners {\n border-radius: calc(.5 * var(--ck-border-radius));\n }\n\n width: var(--ck-switch-button-toggle-inner-size);\n height: var(--ck-switch-button-toggle-inner-size);\n background: var(--ck-color-switch-button-inner-background);\n\n /* Gently animate the inner part of the toggle switch */\n transition: all 300ms ease;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n\n &:hover {\n background: var(--ck-color-switch-button-off-hover-background);\n\n & .ck-button__toggle__inner {\n box-shadow: var(--ck-switch-button-inner-hover-shadow);\n }\n }\n }\n\n &.ck-disabled .ck-button__toggle {\n @mixin ck-disabled;\n }\n\n /* Overriding default .ck-button:focus styles + an outline around the toogle */\n &:focus {\n border-color: transparent;\n outline: none;\n box-shadow: none;\n\n & .ck-button__toggle {\n box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n outline-offset: 1px;\n outline: var(--ck-focus-ring);\n }\n }\n\n /* stylelint-disable-next-line no-descending-specificity */\n &.ck-on {\n & .ck-button__toggle {\n background: var(--ck-color-switch-button-on-background);\n\n &:hover {\n background: var(--ck-color-switch-button-on-hover-background);\n }\n\n & .ck-button__toggle__inner {\n /*\n * Move the toggle switch to the right. It will be animated.\n */\n @mixin ck-dir ltr {\n transform: translateX( var( --ck-switch-button-translation ) );\n }\n\n @mixin ck-dir rtl {\n transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n }\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 opacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);let a=s},25:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAGC,eAAgB,CAChB,aAAc,CAFd,eAAiB,CADjB,UAmBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & > .ck-collapsible__children {\n display: none;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n & > .ck.ck-button {\n width: 100%;\n font-weight: bold;\n border-radius: 0;\n color: inherit;\n\n &:focus {\n background: transparent;\n }\n\n &:active, &:not(:focus), &:hover:not(:focus) {\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n }\n\n & > .ck-icon {\n margin-right: var(--ck-spacing-medium);\n width: var(--ck-collapsible-arrow-size);\n }\n }\n\n & > .ck-collapsible__children {\n padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\n }\n\n &.ck-collapsible_collapsed {\n & > .ck.ck-button .ck-icon {\n transform: rotate(-90deg);\n }\n }\n}\n"],sourceRoot:""}]);let a=s},7317:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{transition:box-shadow .2s ease}@media (forced-colors:none){.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}}@media (forced-colors:active){.ck.ck-color-grid__tile{height:unset;min-height:unset;min-width:unset;padding:0 var(--ck-spacing-small);width:unset}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAKA,kBACC,YACD,CCCA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,8BAkED,CC3EC,4BACC,wBDgBA,QAAS,CAJT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CAJV,oCCTA,CDgBA,8HAIC,QACD,CAEA,+DACC,gDACD,CAEA,8BACC,8FACD,CAEA,gGAEC,iGACD,CCjCD,CAZA,8BACC,wBDqDA,YAAa,CAEb,gBAAiB,CADjB,eAAgB,CAEhB,iCAAkC,CAJlC,WClDA,CDwDA,0CACC,oBACD,
1CCzDD,CD4DA,uCAhDD,wBAiDE,eAkBF,CAjBC,CAEA,oCACC,YAAa,CACb,gBACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAGC,0CACC,aACD,CAIF,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: grid;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_mediacolors.css";\n\n:root {\n --ck-color-grid-tile-size: 24px;\n\n /* Not using global colors here because these may change but some colors in a pallette\n * require special treatment. For instance, this ensures no matter what the UI text color is,\n * the check icon will look good on the black color tile. */\n --ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n grid-gap: 5px;\n padding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n transition: .2s ease box-shadow;\n\n @mixin ck-media-default-colors {\n width: var(--ck-color-grid-tile-size);\n height: var(--ck-color-grid-tile-size);\n min-width: var(--ck-color-grid-tile-size);\n min-height: var(--ck-color-grid-tile-size);\n padding: 0;\n border: 0;\n\n &.ck-on,\n &:focus:not( .ck-disabled ),\n &:hover:not( .ck-disabled ) {\n /* Disable the default .ck-button\'s border ring. */\n border: 0;\n }\n\n &.ck-color-selector__color-tile_bordered {\n box-shadow: 0 0 0 1px var(--ck-color-base-border);\n }\n\n &.ck-on {\n box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n }\n\n &:focus:not( .ck-disabled ),\n &:hover:not( .ck-disabled ) {\n box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n }\n }\n\n /*\n * In high contrast mode, the colors are replaced with text labels.\n * See https://github.com/ckeditor/ckeditor5/issues/14907.\n */\n @mixin ck-media-forced-colors {\n width: unset;\n height: unset;\n min-width: unset;\n min-height: unset;\n padding: 0 var(--ck-spacing-small);\n\n & .ck-button__label {\n display: inline-block;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &.ck-disabled {\n cursor: unset;\n transition: unset;\n }\n\n & .ck.ck-icon {\n display: none;\n color: var(--ck-color-color-grid-check-icon);\n }\n\n &.ck-on {\n & .ck.ck-icon {\n display: block;\n }\n }\n}\n\n.ck.ck-color-grid__label {\n padding: 0 var(--ck-spacing-standard);\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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-forced-colors {\n @media (forced-colors: active) {\n & {\n @mixin-content;\n }\n }\n}\n\n@define-mixin ck-media-default-colors {\n @media (forced-colors: none) {\n & {\n @mixin-content;\n }\n }\n}\n"],sourceRoot:""}]);let a=s},1905:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 width: max-content;\n\n & .ck.ck-input {\n min-width: unset;\n }\n}\n\n.ck.ck-color-picker__row {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n margin: var(--ck-spacing-large) 0 0;\n width: unset;\n\n & .ck.ck-labeled-field-view {\n padding-top: unset;\n }\n\n & .ck.ck-input-text {\n width: unset;\n }\n\n & .ck-color-picker__hash-view {\n padding-top: var(--ck-spacing-tiny);\n padding-right: var(--ck-spacing-medium);\n }\n}\n"],sourceRoot:""}]);let a=s},6309:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CCZD,wMDUG,0BCRH,CDeC,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CErBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CDhBF,gHCoBI,uCDlBJ,CAFA,gHCwBI,sCDtBJ,CC2BC,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-2024, CKSource Holding 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 /* View fragment with color grids. */\n & .ck-color-grids-fragment {\n & .ck-button.ck-color-selector__remove-color,\n & .ck-button.ck-color-selector__color-picker {\n display: flex;\n align-items: center;\n\n @mixin ck-dir rtl {\n justify-content: flex-start;\n }\n }\n }\n\n /* View fragment with a color picker. */\n & .ck-color-picker-fragment {\n & .ck.ck-color-selector_action-bar {\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n\n & .ck-button-save,\n & .ck-button-cancel {\n flex: 1\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* View fragment with color grids. */\n & .ck-color-grids-fragment {\n & .ck-button.ck-color-selector__remove-color,\n & .ck-button.ck-color-selector__color-picker {\n width: 100%;\n }\n\n & .ck-button.ck-color-selector__color-picker {\n padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:not(:focus) {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n & .ck.ck-icon {\n @mixin ck-dir ltr {\n margin-right: var(--ck-spacing-standard);\n }\n\n @mixin ck-dir rtl {\n margin-left: var(--ck-spacing-standard);\n }\n }\n }\n\n & label.ck.ck-color-grid__label {\n font-weight: unset;\n }\n }\n\n /* View fragment with a color picker. */\n & .ck-color-picker-fragment {\n & .ck.ck-color-picker {\n padding: 8px;\n\n & .hex-color-picker {\n height: 100px;\n min-width: 180px;\n\n &::part(saturation) {\n border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n }\n\n &::part(hue) {\n border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n }\n\n &::part(saturation-pointer),\n &::part(hue-pointer) {\n width: 15px;\n height: 15px;\n }\n }\n }\n\n & .ck.ck-color-selector_action-bar {\n padding: 0 8px 8px;\n }\n }\n}\n'],sourceRoot:""}]);let a=s},9819:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog:not(.ck-dialog_modal) .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width);overscroll-behavior:contain}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}.ck-dialog-scroll-locked{overflow:hidden}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAiBD,CAdC,kCACC,aACD,CAIC,gFACC,WACD,CAGD,mEACC,kBACD,CC/BD,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BAA4B,CAC5B,4DAA6D,CAC7D,gEACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCbC,eAAgB,CDiBhB,6CAA8C,CAE9C,4CAA6C,CAG7C,4CAA6C,CAF7C,sCAAuC,CACvC,oCAAqC,CAErC,2BAKD,CC1BC,mEAEC,qCAED,CDOD,cEfC,oCF8BD,CAHC,kCACC,iEACD,CAGD,yBACC,eACD,CAEA,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dialog-overlay {\n user-select: none;
1\n overscroll-behavior: none;\n\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n\n &.ck-dialog-overlay__transparent {\n pointer-events: none;\n animation: none;\n background: none;\n }\n}\n\n.ck.ck-dialog {\n overscroll-behavior: none;\n width: fit-content;\n position: absolute;\n\n & .ck.ck-form__header {\n flex-shrink: 0;\n }\n\n /* Modals should not be draggable. */\n &:not(.ck-dialog_modal) {\n & .ck.ck-form__header .ck-form__header__label {\n cursor: grab;\n }\n }\n\n .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & {\n pointer-events: all;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n:root {\n --ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );\n --ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);\n --ck-dialog-max-width: 100vw;\n --ck-dialog-max-height: 90vh;\n --ck-color-dialog-background: var(--ck-color-base-background);\n --ck-color-dialog-form-header-border: var(--ck-color-base-border);\n}\n\n.ck.ck-dialog-overlay {\n animation: ck-dialog-fade-in .3s;\n background: var(--ck-dialog-overlay-background-color);\n z-index: var(--ck-z-dialog);\n}\n\n.ck.ck-dialog {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n --ck-drop-shadow: var(--ck-dialog-drop-shadow);\n\n background: var(--ck-color-dialog-background);\n max-height: var(--ck-dialog-max-height);\n max-width: var(--ck-dialog-max-width);\n border: 1px solid var(--ck-color-base-border);\n overscroll-behavior: contain;\n\n & .ck.ck-form__header {\n border-bottom: 1px solid var(--ck-color-dialog-form-header-border);\n }\n}\n\n.ck-dialog-scroll-locked {\n overflow: hidden;\n}\n\n@keyframes ck-dialog-fade-in {\n 0% {\n background: hsla( 0, 0%, 0%, 0 );\n }\n\n 100% {\n background: var(--ck-dialog-overlay-background-color);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},9822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-dialog .ck.ck-dialog__actions{display:flex;justify-content:flex-end;padding:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialogactions.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialogactions.css"],names:[],mappings:"AAMC,qCACC,YAAa,CACb,wBAAyB,CCDzB,+BDED,CCAC,yCACC,mCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dialog {\n & .ck.ck-dialog__actions {\n display: flex;\n justify-content: flex-end;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dialog {\n & .ck.ck-dialog__actions {\n padding: var(--ck-spacing-large);\n\n & > * + * {\n margin-left: var(--ck-spacing-large);\n }\n }\n}\n"],sourceRoot:""}]);let a=s}
1,8149:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e
vendor: 5,293 bytes, line 1
1.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;bottom:0;min-width:100%}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBAIC,oDAAqD,CACrD,sDAAuD,CGvFvD,eAAgB,CHwFhB,QAAS,CAGT,cAuBD,CGhHC,qFAEC,qCAED,CH4ED,uBEpFC,oCFoHD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-202
14, CKSource Holding 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 --ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n display: inline-block;\n position: relative;\n\n & .ck-dropdown__arrow {\n pointer-events: none;\n z-index: var(--ck-z-default);\n }\n\n /* Dropdown button should span horizontally, e.g. in vertical toolbars */\n & .ck-button.ck-dropdown__button {\n width: 100%;\n }\n\n & .ck-dropdown__panel {\n display: none;\n z-index: var(--ck-z-panel);\n max-width: var(--ck-dropdown-max-width);\n\n position: absolute;\n\n &.ck-dropdown__panel-visible {\n display: inline-block;\n }\n\n &.ck-dropdown__panel_ne,\n &.ck-dropdown__panel_nw,\n &.ck-dropdown__panel_n,\n &.ck-dropdown__panel_nmw,\n &.ck-dropdown__panel_nme {\n bottom: 100%;\n }\n\n &.ck-dropdown__panel_se,\n &.ck-dropdown__panel_sw,\n &.ck-dropdown__panel_smw,\n &.ck-dropdown__panel_sme,\n &.ck-dropdown__panel_s {\n /*\n * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n * See https://github.com/ckeditor/ckeditor5/issues/1053.\n */\n top: 100%;\n bottom: auto;\n }\n\n &.ck-dropdown__panel_ne,\n &.ck-dropdown__panel_se {\n left: 0px;\n }\n\n &.ck-dropdown__panel_nw,\n &.ck-dropdown__panel_sw {\n right: 0px;\n }\n\n &.ck-dropdown__panel_s,\n &.ck-dropdown__panel_n {\n /* Positioning panels relative to the center of the button */\n left: 50%;\n transform: translateX(-50%);\n }\n\n &.ck-dropdown__panel_nmw,\n &.ck-dropdown__panel_smw {\n /* Positioning panels relative to the middle-west of the button */\n left: 75%;\n transform: translateX(-75%);\n }\n\n &.ck-dropdown__panel_nme,\n &.ck-dropdown__panel_sme {\n /* Positioning panels relative to the middle-east of the button */\n left: 25%;\n transform: translateX(-25%);\n }\n }\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 z-index: calc( var(--ck-z-panel) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n & .ck-dropdown__arrow {\n width: var(--ck-dropdown-arrow-size);\n }\n\n @mixin ck-dir ltr {\n & .ck-dropdown__arrow {\n right: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n & .ck-dropdown__arrow {\n left: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-right: var(--ck-spacing-small);\n }\n }\n\n &.ck-disabled .ck-dropdown__arrow {\n @mixin ck-disabled;\n }\n\n & .ck-button.ck-dropdown__button {\n @mixin ck-dir ltr {\n &:not(.ck-button_with-text) {\n /* Make sure dropdowns with just an icon have the right inner spacing */\n padding-left: var(--ck-spacing-small);\n }\n }\n\n @mixin ck-dir rtl {\n &:not(.ck-button_with-text) {\n /* Make sure dropdowns with just an icon have the right inner spacing */\n padding-right: var(--ck-spacing-small);\n }\n }\n\n /* #23 */\n & .ck-button__label {\n width: 7em;
1\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n &.ck-disabled .ck-button__label {\n @mixin ck-disabled;\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/816 */\n &.ck-on {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n &.ck-dropdown__button_label-width_auto .ck-button__label {\n width: auto;\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/8699 */\n &.ck-off:active,\n &.ck-on:active {\n box-shadow: none;\n\n &:focus {\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n }\n }\n}\n\n.ck.ck-dropdown__panel {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n background: var(--ck-color-dropdown-panel-background);\n border: 1px solid var(--ck-color-dropdown-panel-border);\n bottom: 0;\n\n /* Make sure the panel is at least as wide as the drop-down\'s button. */\n min-width: 100%;\n\n /* Disabled corner border radius to be consistent with the .dropdown__button\n https://github.com/ckeditor/ckeditor5/issues/816 */\n &.ck-dropdown__panel_se {\n border-top-left-radius: 0;\n }\n\n &.ck-dropdown__panel_sw {\n border-top-right-radius: 0;\n }\n\n &.ck-dropdown__panel_ne {\n border-bottom-left-radius: 0;\n }\n\n &.ck-dropdown__panel_nw {\n border-bottom-right-radius: 0;\n }\n\n &:focus {\n outline: none;\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 opacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},3629:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CCnBC,iIAEC,qCAAsC,CDJtC,wBCMD,CDAC,mFCND,eDYC,CCVD,6MAEC,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBCFH,CDQC,kFCdD,eDmBC,CCjBD,2MAEC,qCAAsC,CDYpC,wBAAyB,CACzB,yBCXH",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disabled radius of top-left border to be consistent with .dropdown__button\n https://github.com/ckeditor/ckeditor5/issues/816 */\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n }\n\n /* Make sure the button belonging to the first/last child of the list goes well with the\n border radius of the entire panel. */\n & .ck-list__item {\n &:first-child > .ck-button {\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n\n &:last-child > .ck-button {\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},7218:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
vendor: 6,976 bytes, line 1
1s.push([e.id,".ck.ck-dropdown-menu-list__nested-menu{display:block}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenu.css"],names:[],mappings:"AAKA,uCACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-list__nested-menu {\n display: block;\n}\n"],sourceRoot:""}]);let a=s},9554:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button{border-radius:0;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-icon-spacing:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:calc(var(--ck-spacing-small)*-1);transform:rotate(90deg)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-dropdown-menu-list__nested-menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,kGACC,mBAAoB,CACpB,2BACD,CCIA,yDAGC,eAAgB,CADhB,iEAAoE,CADpE,UA2ED,CAvEC,+DACC,wBAAyB,CACzB,eAKD,CAHC,2EACC,0DACD,CAGD,2EACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,uFCvBA,kCDyBA,CAGA,uHACC,+DACD,CAEA,4GACC,mCAeD,CEnDA,sHF0CE,6CAAgD,CAHhD,wBErCF,CAFA,sHFiDE,4CAA+C,CAH/C,uBE5CF,CFmDA,wHClDA,kCDoDA,CAGC,6FACC,oCACD,CAEA,sHAIC,sCAAuC,CAHvC,gCAID,CAIA,6FACC,qCACD,CAEA,sHACC,+BAAgC,CAGhC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-list__nested-menu__button > .ck-dropdown-menu-list__nested-menu__button__arrow {\n pointer-events: none;\n z-index: var(--ck-z-default);\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * All menu buttons.\n */\n.ck.ck-button.ck-dropdown-menu-list__nested-menu__button {\n width: 100%;\n padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\n border-radius: 0;\n\n &:focus {\n border-color: transparent;\n box-shadow: none;\n\n &:not(.ck-on) {\n background: var(--ck-color-button-default-hover-background);\n }\n }\n\n & > .ck-button__label {\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n &.ck-disabled > .ck-button__label {\n @mixin ck-disabled;\n }\n\n /* Spacing in buttons that miss the icon. */\n &.ck-icon-spacing:not(:has(.ck-button__icon)) > .ck-button__label {\n margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));\n }\n\n & > .ck-dropdown-menu-list__nested-menu__button__arrow {\n width: var(--ck-dropdown-arrow-size);\n\n @mixin ck-dir ltr {\n transform: rotate(-90deg);\n\n /* Nudge the arrow gently to the right because its center of gravity is to the left */\n margin-right: calc(-1 * var(--ck-spacing-small));\n }\n\n @mixin ck-dir rtl {\n transform: rotate(90deg);\n\n /* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */\n margin-left: calc(-1 * var(--ck-spacing-small));\n }\n }\n\n &.ck-disabled > .ck-dropdown-menu-list__nested-menu__button__arrow {\n @mixin ck-disabled;\n }\n\n @mixin ck-dir ltr {\n &:not(.ck-button_with-text) {\n padding-left: var(--ck-spacing-small);\n }\n\n & > .ck-dropdown-menu-list__nested-menu__button__arrow {\n right: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n &:not(.ck-button_with-text) {\n padding-right: var(--ck-spacing-small);\n }\n\n & > .ck-dropdown-menu-list__nested-menu__button__arrow {\n left: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-right: var(--ck-spacing-small);\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 opacity: var(--ck-disabled-opacity);\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},2171:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,":root{--ck-dropdown-menu-menu-item-min-width:18em}.ck.ck-dropdown-menu-list__nested-menu__item{min-width:var(--ck-dropdown-menu-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css"],names:[],mappings:"AAKA,MACC,2CACD,CAEA,6CACC,qDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-dropdown-menu-menu-item-min-width: 18em;\n}\n\n.ck.ck-dropdown-menu-list__nested-menu__item {\n min-width: var(--ck-dropdown-menu-menu-item-min-width);\n}\n"],sourceRoot:""}]);let a=s},4767:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck-button.ck-dropdown-menu-list__nested-menu__item__button{border-radius:0}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container,.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus{border-color:transparent;box-shadow:none}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css"],names:[],mappings:"AAQA,4DACC,eA0BD,CAxBC,gLAGC,8BACD,CAEA,kFAEC,4CAA+C,CAC/C,oCACD,CAMA,kEACC,wBAAyB,CACzB,eAKD,CAHC,8EACC,0DACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 * List item buttons.\n */\n.ck-button.ck-dropdown-menu-list__nested-menu__item__button {\n border-radius: 0;\n\n & > .ck-spinner-container,\n & > .ck-spinner-container .ck-spinner {\n /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */\n --ck-toolbar-spinner-size: 20px;\n }\n\n & > .ck-spinner-container {\n /* These margins are the same as for .ck-icon. */\n margin-left: calc(-1 * var(--ck-spacing-small));\n margin-right: var(--ck-spacing-small);\n }\n\n /*\n * Hovered items automatically get focused. Default focus styles look odd\n * while moving across a huge list of items so let's get rid of them\n */\n &:focus {\n border-color: transparent;\n box-shadow: none;\n\n &:not(.ck-on) {\n background: var(--ck-color-button-default-hover-background);\n }\n }\n}\n"],sourceRoot:""}]);let a=s},3610:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{max-height:314px;overflow-y:auto;position:absolute;z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-menu-menu-panel-max-width:75vw}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-dropdown-menu-menu-panel-max-width)}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:after,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:before{display:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_es,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_se{border-top-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_sw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ws{border-top-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_en,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ne{border-bottom-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_nw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_wn{border-bottom-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,0DAEC,gBAAiB,CACjB,eAAgB,CAFhB,iBAAkB,CAGlB,mCACD,CCFA,MACC,4CACD,CAEA,0DAGC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CCRT,oCAA8B,CDS9B,kBAAmB,CACnB,sDAgCD,CA7BC,iIAEC,YACD,CAGA,4JAEC,wBACD,CAEA,4JAEC,yBACD,CAEA,4JAEC,2BACD,CAEA,4JAEC,4BACD,CAEA,gEACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dropdown-menu__nested-menu__panel {\n position: absolute;\n max-height: 314px; /* With the default settings, this is equal to 10 menu items. */\n overflow-y: auto;\n z-index: calc(var(--ck-z-panel) + 1);\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-dropdown-menu-menu-panel-max-width: 75vw;\n}\n\n.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {\n @mixin ck-drop-shadow;\n\n background: var(--ck-color-dropdown-panel-background);\n border: 1px solid var(--ck-color-dropdown-panel-border);\n bottom: 0;\n height: fit-content;\n max-width: var(--ck-dropdown-menu-menu-panel-max-width);\n\n /* Reset balloon styling */\n &::after,\n &::before {\n display: none;\n }\n\n /* Corner border radius consistent with the button. */\n &.ck-balloon-panel_es,\n &.ck-balloon-panel_se {\n border-top-left-radius: 0;\n }\n\n &.ck-balloon-panel_ws,\n &.ck-balloon-panel_sw {\n border-top-right-radius: 0;\n }\n\n &.ck-balloon-panel_en,\n &.ck-balloon-panel_ne {\n border-bottom-left-radius: 0;\n }\n\n &.ck-balloon-panel_wn,\n &.ck-balloon-panel_nw {\n border-bottom-right-radius: 0;\n }\n\n &:focus {\n outline: none;\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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-sha
1dow $shadowA, $shadowB: 0 0 {\n box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},1792:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.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{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}.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}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAQE,oIAGC,gCAAiC,CADjC,6BAED,CAEA,oIAGC,+BAAgC,CADhC,4BAED,CAGD,0CAGC,eAiBD,CAfC,oDAGC,+BAAgC,CADhC,4BAED,CAEA,oDAGC,gCAAiC,CADjC,6BAED,CAEA,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAIA,uCCnDA,eD6DA,CC3DA,qHAEC,qCAED,CD+CE,qKACC,2BACD,CAEA,mKACC,4BACD,CAUD,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n & .ck-splitbutton__action:focus {\n z-index: calc(var(--ck-z-default) + 1);\n }\n}\n\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n --ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n /*\n * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n */\n &:hover > .ck-splitbutton__action,\n &.ck-splitbutton_open > .ck-splitbutton__action {\n [dir="ltr"] & {\n /* Don\'t round the action button on the right side */\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n }\n\n [dir="rtl"] & {\n /* Don\'t round the action button on the left side */\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n & > .ck-splitbutton__arrow {\n /* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n it must get some arbitrary min-width. */\n min-width: unset;\n\n [dir="ltr"] & {\n /* Don\'t round the arrow button on the left side */\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n\n [dir="rtl"] & {\n /* Don\'t round the arrow button on the right side */\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n }\n\n & svg {\n width: var(--ck-dropdown-arrow-size);\n }\n }\n\n /* Make sure the divider stretches 100% height of the button\n https://github.com/ckeditor/ckeditor5/issues/10936 */\n & > .ck-splitbutton__arrow:not(:focus) {\n border-top-width: 0px;\n border-bottom-width: 0px;\n }\n\n /* Don\'t round the bottom left and right corners of the buttons when "open"\n https://github.com/ckeditor/ckeditor5/issues/816 */\n &.ck-splitbutton_open {\n @mixin ck-rounded-corners {\n & > .ck-splitbutton__action {\n border-bottom-left-radius: 0;\n }\n\n & > .ck-splitbutton__arrow {\n border-bottom-right-radius: 0;\n }\n }\n }\n\n /* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n as a whole. The background of both buttons should stand out and there should be a visual\n separation between both buttons. */\n &.ck-splitbutton_open,\n &:hover {\n /* When the split button hovered as a whole, not as individual buttons. */\n & > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n background: var(--ck-color-split-button-hover-background);\n }\n\n /* Splitbutton separator needs to be set with the ::after pseudoselector\n to display properly the borders on focus */\n & >
1 .ck-splitbutton__arrow:not(.ck-disabled)::after {\n content: \'\';\n position: absolute;\n width: 1px;\n height: 100%;\n background-color: var(--ck-color-split-button-hover-border);\n }\n\n /* Make sure the divider between the buttons looks fine when the button is focused */\n & > .ck-splitbutton__arrow:focus::after {\n --ck-color-split-button-hover-border: var(--ck-color-focus-border);\n }\n\n [dir="ltr"] & {\n & > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n left: -1px;\n }\n }\n\n [dir="rtl"] & {\n & > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n right: -1px;\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},1666:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n /* https://github.com/ckeditor/ckeditor5/issues/5586 */\n width: max-content;\n max-width: var(--ck-toolbar-dropdown-max-width);\n\n & .ck-button {\n &:focus {\n z-index: calc(var(--ck-z-default) + 1);\n }\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border: 0;\n}\n"],sourceRoot:""}]);let a=s},8527:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content *{white-space:normal}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}
1.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAQA,MACC,8CAA+C,CAC/C,+CAAgD,CAChD,mDAA8D,CAC9D,4DAAyE,CACzE,uDACD,CAEA,wEAOC,4BAA6B,CAJ7B,yDAA0D,CAD1D,uDAAwD,CAExD,aAAc,CAHd,+BAAgC,CAIhC,gBAgFD,CA5EC,8ECdA,2BAA2B,CCF3B,2CAA8B,CDC9B,YDkBA,CAEA,0EACC,kBACD,CAGA,kFACC,YACD,CAEA,2EAEC,eAAgB,CADhB,eAED,CAEA,2EAEC,aAAc,CADd,eAED,CAEA,8SAIC,YACD,CAEA,2EAIC,kBAAmB,CADnB,qEAAsE,CAFtE,YAAa,CACb,6BAiBD,CAbC,4JACC,wEAAyE,CACzE,cACD,CAEA,8EACC,mBACD,CAEA,8EACC,mBAAoB,CACpB,gBACD,CAGD,yJAEC,oEAAqE,CAIrE,iBAAkB,CALlB,oBAAqB,CAOrB,cAAe,CAHf,aAAc,CAFd,YAAa,CAIb,iBAAkB,CAHlB,qBAKD,CAEA,6EACC,qBACD,CAEA,4EAEC,yEAA4E,CAC5E,YAAa,CAFb,eAOD,CAHC,gFACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-accessibility-help-dialog-max-width: 600px;\n --ck-accessibility-help-dialog-max-height: 400px;\n --ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%);\n --ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%);\n --ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%);\n}\n\n.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content {\n padding: var(--ck-spacing-large);\n max-width: var(--ck-accessibility-help-dialog-max-width);\n max-height: var(--ck-accessibility-help-dialog-max-height);\n overflow: auto;\n user-select: text;\n\n border: 1px solid transparent;\n\n &:focus {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n\n * {\n white-space: normal;\n }\n\n /* Hide the main label of the content container. */\n & .ck-label {\n display: none;\n }\n\n & h3 {\n font-weight: bold;\n font-size: 1.2em;\n }\n\n & h4 {\n font-weight: bold;\n font-size: 1em;\n }\n\n & p,\n & h3,\n & h4,\n & table {\n margin: 1em 0;\n }\n\n & dl {\n display: grid;\n grid-template-columns: 2fr 1fr;\n border-top: 1px solid var(--ck-accessibility-help-dialog-border-color);\n border-bottom: none;\n\n & dt, & dd {\n border-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color);\n padding: .4em 0;\n }\n\n & dt {\n grid-column-start: 1;\n }\n\n & dd {\n grid-column-start: 2;\n text-align: right;\n }\n }\n\n & kbd, & code {\n display: inline-block;\n background: var(--ck-accessibility-help-dialog-code-background-color);\n padding: .4em;\n vertical-align: middle;\n line-height: 1;\n border-radius: 2px;\n text-align: center;\n font-size: .9em;\n }\n\n & code {\n font-family: monospace;\n }\n\n & kbd {\n min-width: 1.8em;\n box-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);\n margin: 0 1px;\n\n & + kbd {\n margin-left: 2px;\n }\n }\n}\n\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-sha
1dow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},1185:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CCTC,yJAEC,qCAED,CDCA,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-2024, CKSource Holding 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 --ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n @mixin ck-rounded-corners;\n\n &.ck-focused {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-inner-shadow);\n }\n}\n\n.ck.ck-editor__editable_inline {\n overflow: auto;\n padding: 0 var(--ck-spacing-standard);\n border: 1px solid transparent;\n\n &[dir="ltr"] {\n text-align: left;\n }\n\n &[dir="rtl"] {\n text-align: right;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n & > *:first-child {\n margin-top: var(--ck-spacing-large);\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/847 */\n & > *:last-child {\n /*\n * This value should match with the default margins of the block elements (like .media or .image)\n * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n */\n margin-bottom: var(--ck-spacing-large);\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/6517 */\n &.ck-blurred ::selection {\n background: var(--ck-color-editable-blur-selection);\n }\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n &::after {\n border-bottom-color: var(--ck-color-panel-background);\n }\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n &::after {\n border-top-color: var(--ck-color-panel-background);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-sha
1dow $shadowA, $shadowB: 0 0 {\n box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},7913:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CCzBC,uCDaE,qCCXF,CAFA,uCDiBE,oCCfF,CDmBA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n\n & h2.ck-form__header__label {\n flex-grow: 1;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-form-header-height: 44px;\n}\n\n.ck.ck-form__header {\n padding: var(--ck-spacing-small) var(--ck-spacing-large);\n height: var(--ck-form-header-height);\n line-height: var(--ck-form-header-height);\n border-bottom: 1px solid var(--ck-color-base-border);\n\n & > .ck-icon {\n @mixin ck-dir ltr {\n margin-right: var(--ck-spacing-medium);\n }\n\n @mixin ck-dir rtl {\n margin-left: var(--ck-spacing-medium);\n }\n }\n\n & .ck-form__header__label {\n --ck-font-size-base: 15px;\n font-weight: bold;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},9529:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 background: var(--ck-color-highlight-background);\n vertical-align: initial;\n font-weight: inherit;\n line-height: inherit;\n font-size: inherit;\n}\n"],sourceRoot:""}]);let a=s},7621:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal));--ck-icon-font-size:.8333350694em}.ck.ck-icon{font-size:var(--ck-icon-font-size);height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EAA6E,CAC7E,iCACD,CAEA,YAKC,kCAAmC,CAHnC,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 vertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n --ck-icon-font-size: .8333350694em;\n}\n\n.ck.ck-icon {\n width: var(--ck-icon-size);\n height: var(--ck-icon-size);\n\n /* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n font-size: var(--ck-icon-font-size);\n\n /* Inherit cursor style (#5). */\n cursor: inherit;\n\n /* This will prevent blurry icons on Firefox. See #340. */\n will-change: transform;\n\n & * {\n /* Inherit cursor style (#5). */\n cursor: inherit;\n }\n\n /* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n &.ck-icon_inherit-color {\n color: inherit;\n\n & * {\n color: inherit;\n\n &:not([fill]) {\n /* Needed by FF. */\n fill: currentColor;\n }\n }\n }\n}\n'],sourceRoot:""}]);let a=s},253:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);border-radius:0;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-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aAGC,2CAA4C,CAC5C,6CAA8C,CCT9C,eAAgB,CDchB,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DAkCD,CCjDC,iEAEC,qCAED,CDaA,uCAdD,aAeE,eA+BF,CA9BC,CAEA,mBEvBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YF2BA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BGnCD,oDHsCC,CAGD,sBAEC,sCAAuC,CADvC,+CAUD,CAPC,uCAJD,sBAKE,cAMF,CALC,CAEA,4BGjDD,iDHmDC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-input-width: 18em;\n\n /* Backward compatibility. */\n --ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n @mixin ck-rounded-corners;\n\n background: var(--ck-color-input-background);\n border: 1px solid var(--ck-color-input-border);\n padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n min-width: var(--ck-input-width);\n\n /* This is important to stay of the same height as surrounding buttons */\n min-height: var(--ck-ui-component-min-height);\n\n /* Apply some smooth transition to the box-shadow and border. */\n transition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &:focus {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n\n &[readonly] {\n border: 1px solid var(--ck-color-input-disabled-border);\n background: var(--ck-color-input-disabled-background);\n color: var(--ck-color-input-disabled-text);\n\n &:focus {\n /* The read-only input should have a slightly less visible shadow when focused. */\n @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n }\n }\n\n &.ck-error {\n border-color: var(--ck-color-input-error-border);\n animation: ck-input-shake .3s ease both;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n &:focus {\n @mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n }\n }\n}\n\n@keyframes ck-input-shake {\n 20% {\n transform: translateX(-2px);\n }\n\n 40% {\n transform: translateX(2px);\n }\n\n 60% {\n transform: translateX(-1px);\n }\n\n 80% {\n transform: translateX(1px);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-sha
1dow $shadowA, $shadowB: 0 0 {\n box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},7801:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: block;\n}\n\n.ck.ck-voice-label {\n display: none;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 font-weight: bold;\n}\n"],sourceRoot:""}]);let a=s},4962:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.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{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;top:0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}[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}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>
1.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eDmHD,CCjHC,2FAEC,qCAED,CDEA,mEACC,UAwCD,CAtCC,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAvBvB,KAAQ,CA4BR,+JAQD,CErDD,0FFoBG,MAAS,CAGT,6DAA+D,CAF/D,oBEnBH,CAFA,0FF2BG,OAAU,CAEV,sEAA0E,CAD1E,uBE1BH,CFgDE,uCAlCD,gFAmCE,eAEF,CADC,CASD,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,uWAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CEtGA,2XF0FE,+HExFF,CAFA,2XF8FE,wIE5FF,CFyGA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & > .ck.ck-labeled-field-view__input-wrapper {\n display: flex;\n position: relative;\n }\n\n & .ck.ck-label {\n display: block;\n position: absolute;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n --ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n --ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n --ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n @mixin ck-rounded-corners;\n\n & > .ck.ck-labeled-field-view__input-wrapper {\n width: 100%;\n\n & > .ck.ck-label {\n top: 0px;\n\n @mixin ck-dir ltr {\n left: 0px;\n transform-origin: 0 0;\n /* By default, display the label scaled down above the field. */\n transform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n }\n\n @mixin ck-dir rtl {\n right: 0px;\n transform-origin: 100% 0;\n transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\n }\n\n pointer-events: none;\n\n background: var(--ck-color-labeled-field-label-background);\n padding: 0 calc(.5 * var(--ck-font-size-tiny));\n line-height: initial;\n font-weight: normal;\n\n /* Prevent overflow when the label is longer than the input */\n text-overflow: ellipsis;\n overflow: hidden;\n\n max-width: 100%;\n\n transition:\n transform var(--ck-labeled-field-view-transition),\n padding var(--ck-labeled-field-view-transition),\n background var(--ck-labeled-field-view-transition);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n }\n\n &.ck-error {\n & > .ck.ck-labeled-field-view__input-wrapper >
1 .ck.ck-label {\n color: var(--ck-color-base-error);\n }\n\n & .ck-input:not([readonly]) + .ck.ck-label {\n color: var(--ck-color-base-error);\n }\n }\n\n & .ck-labeled-field-view__status {\n font-size: var(--ck-font-size-small);\n margin-top: var(--ck-spacing-small);\n\n /* Let the info wrap to the next line to avoid stretching the layout horizontally.\n The status could be very long. */\n white-space: normal;\n\n &.ck-labeled-field-view__status_error {\n color: var(--ck-color-base-error);\n }\n }\n\n /* Disabled fields and fields that have no focus should fade out. */\n &.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n color: var(--ck-color-input-disabled-text);\n }\n\n /* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n /* stylelint-disable-next-line no-descending-specificity */\n &.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n @mixin ck-dir ltr {\n transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n }\n\n @mixin ck-dir rtl {\n transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n }\n\n /* Compensate for the default translate position. */\n max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n background: transparent;\n padding: 0;\n }\n\n /*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n /* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n & > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n background: transparent;\n }\n\n /* When the dropdown is "empty", the labeled field label replaces its label. */\n &.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n opacity: 0;\n }\n\n /* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n &.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 max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},5199:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{background:var(--ck-color-list-background);border-radius:0;list-style-type:none;padding:var(--ck-spacing-small) 0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list__item{cursor:default;min-width:15em}.ck.ck-list__item>.ck-button:not(.ck-list-item-button){border-radius:0;min-height:unset;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}[dir=ltr] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:right}.ck.ck-list__item>.ck-button:not(.ck-list-item-button) .ck-button__label{line-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button){background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium)}.ck-list .ck-list__group:first-child{padding-top:0}
1:not(.ck-hidden)~.ck-list .ck-list__group{border-top:1px solid var(--ck-color-base-border)}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large) 0}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;margin:var(--ck-spacing-small) 0;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.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,YAIC,0CAA2C,CCH3C,eAAgB,CDEhB,oBAAqB,CAIrB,iCACD,CCLC,+DAEC,qCAED,CDGD,kBACC,cAAe,CAGf,cA4DD,CA1DC,uDAIC,eAAgB,CAFhB,gBAAiB,CADjB,iEAAoE,CAEpE,UAwCD,CE/DA,iEF2BE,eEzBF,CAFA,iEF+BE,gBE7BF,CFgCC,yEAEC,qEACD,CAEA,8DACC,eACD,CAEA,6DACC,oDAAqD,CACrD,yCAaD,CAXC,oEACC,eACD,CAEA,qFACC,0DACD,CAEA,qFACC,4CACD,CAGD,+EACC,uDACD,CAMA,mDACC,0CAA2C,CAC3C,aAMD,CAJC,2EACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAiBD,CAdC,qCACC,aACD,CAGA,0CACC,gDACD,CAEA,mCACC,cAAe,CACf,eAAiB,CACjB,0DACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CAKX,gCAAiC,CAJjC,UAKD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @mixin ck-unselectable;\n\n display: flex;\n flex-direction: column;\n\n & .ck-list__item,\n & .ck-list__separator {\n display: block;\n }\n\n /* Make sure that whatever child of the list item gets focus, it remains on the\n top. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n adjacent list items. */\n & .ck-list__item > *:focus {\n position: relative;\n z-index: var(--ck-z-default);\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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.ck.ck-list {\n @mixin ck-rounded-corners;\n\n list-style-type: none;\n background: var(--ck-color-list-background);\n\n /* A spacing at the beginning and end of the list */\n padding: var(--ck-spacing-small) 0;\n}\n\n.ck.ck-list__item {\n cursor: default;\n\n /* Almost as wide as menu bar items. */\n min-width: 15em;\n\n & > .ck-button:not(.ck-list-item-button) {\n padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\n min-height: unset;\n width: 100%;\n border-radius: 0;\n\n @mixin ck-dir ltr {\n text-align: left;\n }\n\n @mixin ck-dir rtl {\n text-align: right;\n }\n\n & .ck-button__label {\n /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n line-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));\n }\n\n &:active {\n box-shadow: none;\n }\n\n &.ck-on {\n background: var(--ck-color-list-button-on-background);\n color: var(--ck-color-list-button-on-text);\n\n &:active {\n box-shadow: none;\n }\n\n &:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-on-background-focus);\n }\n\n &:focus:not(.ck-disabled) {\n border-color: var(--ck-color-base-background);\n }\n }\n\n &:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-hover-background);\n }\n }\n\n /* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n of conveying its state (like the switcher) */\n & > .ck-button.ck-switchbutton {\n &.ck-on {\n background: var(--ck-color-list-background);\n color: inherit;\n\n &:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-hover-background);\n color: inherit;\n }\n }\n }\n}\n\n.ck-list .ck-list__group {\n padding-top: var(--ck-spacing-medium);\n\n /* Lists come with an inner vertical padding. Don\'t duplicate it. */\n &:first-child {\n padding-top: 0;\n }\n\n /* The group should have a border when it\'s not the first item. */\n *:not(.ck-hidden
1) ~ & {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n & > .ck-label {\n font-size: 11px;\n font-weight: bold;\n padding: var(--ck-spacing-medium) var(--ck-spacing-large) 0;\n }\n}\n\n.ck.ck-list__separator {\n height: 1px;\n width: 100%;\n background: var(--ck-color-base-border);\n\n /* Give the separator some air */\n margin: var(--ck-spacing-small) 0;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},497:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-menu-bar{background:var(--ck-color-base-background);border:1px solid var(--ck-color-toolbar-border);display:flex;flex-wrap:wrap;gap:var(--ck-spacing-small);justify-content:flex-start;padding:var(--ck-spacing-small);width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubar.css"],names:[],mappings:"AAKA,gBAIC,0CAA2C,CAG3C,+CAAgD,CANhD,YAAa,CACb,cAAe,CAIf,2BAA4B,CAH5B,0BAA2B,CAE3B,+BAAgC,CAGhC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-bar {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n background: var(--ck-color-base-background);\n padding: var(--ck-spacing-small);\n gap: var(--ck-spacing-small);\n border: 1px solid var(--ck-color-toolbar-border);\n width: 100%;\n}\n"],sourceRoot:""}]);let a=s},4:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-menu-bar__menu{display:block;font-size:inherit;position:relative}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level{max-width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenu.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenu.css"],names:[],mappings:"AAKA,sBACC,aAAc,CCCd,iBAAkB,CDAlB,iBACD,CCCC,kDACC,cACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-bar__menu {\n display: block;\n position: relative;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-bar__menu {\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n &.ck-menu-bar__menu_top-level {\n max-width: 100%;\n }\n}\n"],sourceRoot:""}]);let a=s},3344:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{min-height:unset;padding:var(--ck-spacing-small) var(--ck-spacing-medium)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{line-height:unset;width:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{margin-left:var(--ck-spacing-standard);margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{left:var(--ck-spacing-standard);margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small);transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAMC,mFACC,mBAAoB,CACpB,2BACD,CCIA,iDACC,UAuBD,CArBC,mEACC,WAAY,CACZ,eAAgB,CAChB,s
1BACD,CAEA,+ECbD,kCDeC,CAGC,qFACC,oCACD,CAIA,qFACC,qCACD,CAOF,6EAEC,gBAAiB,CADjB,wDAgBD,CAbC,+FAEC,iBAAkB,CADlB,WAED,CAEA,mFACC,2BAA4B,CAC5B,4BACD,CAEA,sFACC,YACD,CAMD,mFACC,eA+BD,CA7BC,qHACC,mCAuBD,CErFD,+HFoEG,sCAAuC,CAGvC,6CAAgD,CANhD,wBE/DH,CAFA,+HF6EG,+BAAgC,CAMhC,4CAA+C,CAH/C,oCAAqC,CALrC,uBEzEH,CFqFC,iICpFD,kCDsFC",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-bar__menu {\n & > .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {\n pointer-events: none;\n z-index: var(--ck-z-default);\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-menu-bar__menu {\n /*\n * All menu buttons.\n */\n & > .ck-menu-bar__menu__button {\n width: 100%;\n\n & > .ck-button__label {\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n &.ck-disabled > .ck-button__label {\n @mixin ck-disabled;\n }\n\n @mixin ck-dir ltr {\n &:not(.ck-button_with-text) {\n padding-left: var(--ck-spacing-small);\n }\n }\n\n @mixin ck-dir rtl {\n &:not(.ck-button_with-text) {\n padding-right: var(--ck-spacing-small);\n }\n }\n }\n\n /*\n * Top-level menu buttons only.\n */\n &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button {\n padding: var(--ck-spacing-small) var(--ck-spacing-medium);\n min-height: unset;\n\n & .ck-button__label {\n width: unset;\n line-height: unset;\n }\n\n &.ck-on {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n & .ck-icon {\n display: none;\n }\n }\n\n /*\n * Sub-menu buttons.\n */\n &:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {\n border-radius: 0;\n\n & > .ck-menu-bar__menu__button__arrow {\n width: var(--ck-dropdown-arrow-size);\n\n @mixin ck-dir ltr {\n transform: rotate(-90deg);\n\n /* A space to accommodate the triangle. */\n margin-left: var(--ck-spacing-standard);\n\n /* Nudge the arrow gently to the right because its center of gravity is to the left */\n margin-right: calc(-1 * var(--ck-spacing-small));\n }\n\n @mixin ck-dir rtl {\n transform: rotate(90deg);\n\n left: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-right: var(--ck-spacing-small);\n\n /* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */\n margin-left: calc(-1 * var(--ck-spacing-small));\n }\n }\n\n &.ck-disabled > .ck-menu-bar__menu__button__arrow {\n @mixin ck-disabled;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 opacity: var(--ck-disabled-opacity);\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},9481:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-menu-bar-menu-item-min-width:18em}.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item{min-width:var(--ck-menu-bar-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css"],names:[],mappings:"AAKA,MACC,sCACD,CAEA,kDACC,gDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-menu-bar-menu-item-min-width: 18em;\n}\n\n.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item {\n min-width: var(--ck-menu-bar-menu-item-min-width);\n}\n"],sourceRoot:""}]);let a=s},977:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{font-size:var(--ck-icon-font-size)}[dir=ltr] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAWC,iEACC,eAoBD,CAlBC,0LAGC,8BACD,CAEA,uFAEC,kCASD,CCzBD,iGDmBG,qCCjBH,CAFA,iGDuBG,oCCrBH",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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-menu-bar__menu {\n /*\n * List item buttons.\n */\n & .ck-button.ck-menu-bar__menu__item__button {\n border-radius: 0;\n\n & > .ck-spinner-container,\n & > .ck-spinner-container .ck-spinner {\n /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */\n --ck-toolbar-spinner-size: 20px;\n }\n\n & > .ck-spinner-container {\n /* This ensures margins corresponding to the .ck-icon. */\n font-size: var(--ck-icon-font-size);\n\n @mixin ck-dir ltr {\n margin-right: var(--ck-spacing-medium);\n }\n\n @mixin ck-dir rtl {\n margin-left: var(--ck-spacing-medium);\n }\n }\n }\n}\n\n\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},9108:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;bottom:0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}.ck.ck-menu-bar .ck-list-item-button:active,.ck.ck-menu-bar .ck-list-item-button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active,.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none;position:relative;z-index:2}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,iCAAkC,CAClC,+CACD,CAEA,mDAEC,2CAA4C,CAC5C,iBAAkB,CAFlB,yBAkDD,CA9CC,gLAEC,WACD,CAEA,gLAGC,WAAY,CADZ,QAED,CAEA,gLAEC,MAC
1D,CAEA,gLAEC,OACD,CAEA,gLAEC,kEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CAEA,gLAEC,mEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CCnDD,MACC,uCACD,CAEA,mDAIC,oDAAqD,CACrD,sDAAuD,CCPvD,eAAgB,CDQhB,QAAS,CACT,kBAAmB,CACnB,iDA0BD,CClCC,6IAEC,qCAED,CDJD,mDEJC,oCFsCD,CAvBC,gLAEC,wBACD,CAEA,gLAEC,yBACD,CAEA,gLAEC,2BACD,CAEA,gLAEC,4BACD,CAEA,yDACC,YACD,CAKC,uFAEC,wBAAyB,CACzB,eACD,CAIA,yJGhDD,2BAA2B,CDF3B,2CAA8B,CCC9B,YAAa,CHoDX,iBAAkB,CAClB,SAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-menu-bar-menu-max-width: 75vw;\n --ck-menu-bar-nested-menu-horizontal-offset: 5px;\n}\n\n.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {\n z-index: var(--ck-z-panel);\n max-width: var(--ck-menu-bar-menu-max-width);\n position: absolute;\n\n &.ck-menu-bar__menu__panel_position_ne,\n &.ck-menu-bar__menu__panel_position_nw {\n bottom: 100%;\n }\n\n &.ck-menu-bar__menu__panel_position_se,\n &.ck-menu-bar__menu__panel_position_sw {\n top: 100%;\n bottom: auto;\n }\n\n &.ck-menu-bar__menu__panel_position_ne,\n &.ck-menu-bar__menu__panel_position_se {\n left: 0px;\n }\n\n &.ck-menu-bar__menu__panel_position_nw,\n &.ck-menu-bar__menu__panel_position_sw {\n right: 0px;\n }\n\n &.ck-menu-bar__menu__panel_position_es,\n &.ck-menu-bar__menu__panel_position_en {\n left: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );\n }\n\n &.ck-menu-bar__menu__panel_position_es {\n top: 0px;\n }\n\n &.ck-menu-bar__menu__panel_position_en {\n bottom: 0px;\n }\n\n &.ck-menu-bar__menu__panel_position_ws,\n &.ck-menu-bar__menu__panel_position_wn {\n right: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );\n }\n\n &.ck-menu-bar__menu__panel_position_ws {\n top: 0px;\n }\n\n &.ck-menu-bar__menu__panel_position_wn {\n bottom: 0px;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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@import "../../../mixins/_focus.css";\n\n:root {\n --ck-menu-bar-menu-panel-max-width: 75vw;\n}\n\n.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n background: var(--ck-color-dropdown-panel-background);\n border: 1px solid var(--ck-color-dropdown-panel-border);\n bottom: 0;\n height: fit-content;\n max-width: var(--ck-menu-bar-menu-panel-max-width);\n\n /* Corner border radius consistent with the button. */\n &.ck-menu-bar__menu__panel_position_es,\n &.ck-menu-bar__menu__panel_position_se {\n border-top-left-radius: 0;\n }\n\n &.ck-menu-bar__menu__panel_position_ws,\n &.ck-menu-bar__menu__panel_position_sw {\n border-top-right-radius: 0;\n }\n\n &.ck-menu-bar__menu__panel_position_en,\n &.ck-menu-bar__menu__panel_position_ne {\n border-bottom-left-radius: 0;\n }\n\n &.ck-menu-bar__menu__panel_position_wn,\n &.ck-menu-bar__menu__panel_position_nw {\n border-bottom-right-radius: 0;\n }\n\n &:focus {\n outline: none;\n }\n}\n\n.ck.ck-menu-bar {\n & .ck-list-item-button {\n &:focus,\n &:active {\n border-color: transparent;\n box-shadow: none;\n }\n }\n\n &.ck-menu-bar_focus-border-enabled .ck-list-item-button {\n &:focus,\n &:active {\n /* Fix truncated shadows due to rendering order. */\n position: relative;\n z-index: 2;\n\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-sha
1dow $shadowA, $shadowB: 0 0 {\n box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]);let a=s},3710:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-panel)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);border-radius:0;min-height:15px}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0
vendor: 5,110 bytes, line 1
1}.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://./
1../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBAMC,2CAA4C,CAC5C,wEAAyE,CCZzE,eAAgB,CDShB,eA0LD,CCjMC,iFAEC,qCAED,CDDD,qBEPC,oCFqMD,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-2024, CKSource Holding 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 /* Make sure the balloon arrow does not float over its children. */\n --ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n display: none;\n position: absolute;\n\n z-index: var(--ck-z-panel);\n\n &.ck-balloon-panel_with-arrow {\n &::before,\n &::after {\n content: "";\n position: absolute;\n }\n\n &::before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n }\n\n &::after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n }\n }\n\n &[class*="arrow_n"] {\n &::before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n }\n\n &::after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n }\n }\n\n &[class*="arrow_s"] {\n &::before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n }\n\n &::after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n }\n }\n\n &.ck-balloon-panel_visible {\n display: block;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-balloon-border-width: 1px;\n --ck-balloon-arrow-offset: 2px;\n --ck-balloon-arrow-height: 10px;\n --ck-balloon-arrow-half-width: 8px;\n --ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n min-height: 15px;\n\n background: var(--ck-color-panel-background);\n border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n &.ck-balloon-panel_with-arrow {\n &::before,\n &::after {\n width: 0;\n height: 0;\n border-style: solid;\n }\n }\n\n &[class*="arrow_n"] {\n &::before,\n &::after {\n border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n }\n\n &::before {\n border-color: transparent transparent var(--ck-color-panel-border) transparent;\n margin-top: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: transparent transparent var(--ck-color-panel-background) transparent;\n margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &[class*="arrow_s"] {\n &::before,\n &::after {\n border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n }\n\n &::before {\n border-color: var(--ck-color-panel-border) transparent transparent;\n filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n margin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: var(--ck-color-panel-background) transparent transparent transparent;\n margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &[class*="arrow_e"] {\n &::before,\n &::after {\n border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n }\n\n &::before {\n border-color: transparent transparent transparent var(--ck-color-panel-border);\n margin-right: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: transparent transparent transparent var(--ck-color-panel-background);\n margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &[class*="arrow_w"] {\n &::before,\n &::after {\n border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n }\n\n &::before {\n border-color: transparent var(--ck-color-panel-border) transparent transparent;\n margin-left: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: transparent var(--ck-color-panel-background) transparent transparent;\n margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }
1\n\n &.ck-balloon-panel_arrow_n {\n &::before,\n &::after {\n left: 50%;\n margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_nw {\n &::before,\n &::after {\n left: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_ne {\n &::before,\n &::after {\n right: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_s {\n &::before,\n &::after {\n left: 50%;\n margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_sw {\n &::before,\n &::after {\n left: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_se {\n &::before,\n &::after {\n right: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_sme {\n &::before,\n &::after {\n right: 25%;\n margin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_smw {\n &::before,\n &::after {\n left: 25%;\n margin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }
1\n\n &.ck-balloon-panel_arrow_nme {\n &::before,\n &::after {\n right: 25%;\n margin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_nmw {\n &::before,\n &::after {\n left: 25%;\n margin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_e {\n &::before,\n &::after {\n right: calc(-1 * var(--ck-balloon-arrow-height));\n margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n top: 50%;\n }\n }\n\n &.ck-balloon-panel_arrow_w {\n &::before,\n &::after {\n left: calc(-1 * var(--ck-balloon-arrow-height));\n margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n top: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},991:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 display: flex;\n align-items: center;\n justify-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 justify-content: center;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 background: var(--ck-color-toolbar-background);\n border-bottom: 1px solid var(--ck-color-toolbar-border);\n padding: 0 var(--ck-spacing-small);\n\n /* Let's keep similar appearance to `ck-toolbar`. */\n & > * {\n margin-right: var(--ck-spacing-small);\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n }\n\n /* Gives counter more breath than buttons. */\n & .ck-balloon-rotator__counter {\n margin-right: var(--ck-spacing-standard);\n\n /* We need to use smaller margin because of previous button's right margin. */\n margin-left: var(--ck-spacing-small);\n }\n}\n\n.ck .ck-balloon-rotator__content {\n\n /* Disable default annotation shadow inside rotator with fake panels. */\n & .ck.ck-annotation-wrapper {\n box-shadow: none;\n }\n}\n"],sourceRoot:""}]);let a=s},5380:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 position: absolute;\n\n /* Fake panels should be placed under main balloon content. */\n z-index: calc(var(--ck-z-panel) - 1);\n}\n\n.ck .ck-fake-panel div {\n position: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n z-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n z-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-balloon-fake-panel-offset-horizontal: 6px;\n --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 @mixin ck-drop-shadow;\n\n min-height: 15px;\n\n background: var(--ck-color-panel-background);\n border: 1px solid var(--ck-color-panel-border);\n border-radius: var(--ck-border-radius);\n\n width: 100%;\n height: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n margin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n margin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\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 --ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-sha
1dow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},8298:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-panel)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-sticky-panel__content_sticky {\n z-index: var(--ck-z-panel); /* #315 */\n position: fixed;\n top: 0;\n }\n\n & .ck-sticky-panel__content_sticky_bottom-limit {\n top: auto;\n position: absolute;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & .ck-sticky-panel__content_sticky {\n @mixin ck-drop-shadow;\n\n border-width: 0 1px 1px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},2722:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAoED,CAlEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA+CF,CA7CE,8CACC,wDAYD,CAVC,4HAEC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CC5DF,0ODmEG,aCjEH,CDmEG,+IACC,kDACD,CDrEH",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 &::after {\n content: "";\n width: 0;\n position: absolute;\n right: -1px;\n top: -1px;\n bottom: -1px;\n z-index: 1;\n }\n\n &:focus::after {\n display: none;\n }\n}\n\n.ck.ck-responsive-form {\n @mixin ck-media-phone {\n & .ck-button {\n &::after {\n content: "";\n width: 0;\n position: absolute;\n right: -1px;\n top: -1px;\n bottom: -1px;\n z-index: 1;\n }\n\n &:focus::after {\n display: none;\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n padding: var(--ck-spacing-large);\n\n &:focus {\n /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n outline: none;\n }\n\n @mixin ck-dir ltr {\n & > :not(:first-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n & > :not(:last-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-media-phone {\n padding: 0;\n width: calc(.8 * var(--ck-input-width));\n\n & .ck-labeled-field-view {\n margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n & .ck-input-text,\n & .ck-input-number {\n min-width: 0;\n width: 100%;\n }\n\n /* Let the long error messages wrap in the narrow form. */\n & .ck-labeled-field-view__error {\n white-space: normal;\n }\n }\n\n /* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n & > .ck-button:nth-last-child(2) {\n &::after {\n border-right: 1px solid var(--ck-color-base-border);\n }\n }\n\n & > .ck-button:nth-last-child(1),\n & > .ck-button:nth-last-child(2) {\n padding: var(--ck-spacing-standard);\n margin-top: var(--ck-spacing-large);\n border-radius: 0;\n\n &:not(:focus) {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n @mixin ck-dir ltr {\n margin-left: 0;\n }\n\n @mixin ck-dir rtl {\n margin-left: 0;\n\n &:last-of-type {\n border-right: 1px solid var(--ck-color-base-border);\n }\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n'],sourceRoot:""}]);let a=s},8107:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CCfD,8FDSG,6BCPH,CAFA,8FDaG,8BCXH,CDeC,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CEhCH,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,CD5DF,6FCkDI,8BDhDJ,CAFA,6FCsDI,6BDpDJ,CCuDG,yFACC,SACD,CAGD,2EACC,UAWD,CD1EF,oMCwEI,4DDtEJ,CC4EA,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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 & > .ck-labeled-field-view {\n & > .ck-labeled-field-view__input-wrapper > .ck-icon {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n\n @mixin ck-dir ltr {\n left: var(--ck-spacing-medium);\n }\n\n @mixin ck-dir rtl {\n right: var(--ck-spacing-medium);\n }\n }\n\n & .ck-search__reset {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n }\n }\n\n & > .ck-search__results {\n & > .ck-search__info {\n & > span:first-child {\n display: block;\n }\n\n /* Hide the filtered view when nothing was found */\n &:not(.ck-hidden
1) ~ * {\n display: none;\n }\n }\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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-dir $direction {\n [dir="$(direction)"] & {\n @mixin-content;\n }\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n & > .ck-labeled-field-view {\n & .ck-input {\n width: 100%;\n }\n\n &.ck-search__query_with-icon {\n --ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n & > .ck-labeled-field-view__input-wrapper > .ck-icon {\n opacity: .5;\n pointer-events: none;\n }\n\n & .ck-input {\n width: 100%;\n\n @mixin ck-dir ltr {\n padding-left: var(--ck-search-field-view-horizontal-spacing);\n }\n\n @mixin ck-dir rtl {\n &:not(.ck-input-text_empty) {\n padding-left: var(--ck-search-field-view-horizontal-spacing);\n }\n }\n }\n }\n\n &.ck-search__query_with-reset {\n --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n &.ck-labeled-field-view_empty {\n --ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n }\n\n & .ck-search__reset {\n min-width: auto;\n min-height: auto;\n\n background: none;\n opacity: .5;\n padding: 0;\n\n @mixin ck-dir ltr {\n right: var(--ck-spacing-medium);\n }\n\n @mixin ck-dir rtl {\n left: var(--ck-spacing-medium);\n }\n\n &:hover {\n opacity: 1;\n }\n }\n\n & .ck-input {\n width: 100%;\n\n @mixin ck-dir ltr {\n &:not(.ck-input-text_empty) {\n padding-right: var(--ck-search-field-view-horizontal-spacing);\n }\n }\n\n @mixin ck-dir rtl {\n padding-right: var(--ck-search-field-view-horizontal-spacing);\n }\n }\n }\n }\n\n & > .ck-search__results {\n min-width: 100%;\n\n & > .ck-search__info {\n width: 100%;\n padding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n & * {\n white-space: normal;\n }\n\n & > span:first-child {\n font-weight: bold;\n }\n\n & > span:last-child {\n margin-top: var(--ck-spacing-medium);\n }\n }\n }\n}\n\n'],sourceRoot:""}]);let a=s},109:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:ck-spinner-rotate 1.5s linear infinite;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@keyframes ck-spinner-rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,gDAAiD,CADjD,qCAAsC,CADtC,oCAOD,CAHC,uCALD,yBAME,qBAEF,CADC,CAGD,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCAA6B,CAH7B,qCAAsC,CADtC,oCAKD,CAEA,6BACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n display: block;\n position: relative;\n}\n\n.ck.ck-spinner {\n position: absolute;\n top: 50%;\n left: 0;\n right: 0;\n margin: 0 auto;\n transform: translateY(-50%);\n z-index: 1;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n width: var(--ck-toolbar-spinner-size);\n height: var(--ck-toolbar-spinner-size);\n animation: 1.5s infinite ck-spinner-rotate linear;\n\n @media (prefers-reduced-motion: reduce) {\n animation-duration: 3s;\n }\n}\n\n.ck.ck-spinner {\n width: var(--ck-toolbar-spinner-size);\n height: var(--ck-toolbar-spinner-size);\n border-radius: 50%;\n border: 2px solid var(--ck-color-text);\n border-top-color: transparent;\n}\n\n@keyframes ck-spinner-rotate {\n to {\n transform: rotate(360deg)\n }\n}\n"],sourceRoot:""}]);let a=s},1671:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
vendor: 7,208 bytes, line 1
1s.push([e.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 overflow-x: hidden\n}\n"],sourceRoot:""}]);let a=s},2710:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 position: absolute;\n z-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-block-toolbar-button: var(--ck-color-text);\n --ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n color: var(--ck-color-block-toolbar-button);\n font-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);let a=s},9677:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.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{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);border-radius:0;padding:0 var(--ck-spacing-small)}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar .ck.ck-toolbar__separator{background:var(--ck-color-toolbar-border);height:var(--ck-icon-size);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBAC
1D,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eAGC,6CAA8C,CAE9C,+CAAgD,CCFhD,eAAgB,CDChB,iCAuGD,CCtGC,qEAEC,qCAED,CDFA,yCAIC,yCAA0C,CAH1C,0BAA2B,CAU3B,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAEA,qCACC,QACD,CAaA,+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-2024, CKSource Holding 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 @mixin ck-unselectable;\n\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n & > .ck-toolbar__items {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n flex-grow: 1;\n\n }\n\n & .ck.ck-toolbar__separator {\n display: inline-block;\n\n /*\n * A leading or trailing separator makes no sense (separates from nothing on one side).\n * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n * moved to another toolbar in the dropdown.\n */\n &:first-child,\n &:last-child {\n display: none;\n }\n }\n\n & .ck-toolbar__line-break {\n flex-basis: 100%;\n }\n\n &.ck-toolbar_grouping > .ck-toolbar__items {\n flex-wrap: nowrap;\n }\n\n &.ck-toolbar_vertical > .ck-toolbar__items {\n flex-direction: column;\n }\n\n &.ck-toolbar_floating > .ck-toolbar__items {\n flex-wrap: nowrap;\n }\n\n & > .ck.ck-toolbar__grouped-dropdown {\n & > .ck-dropdown__button .ck-dropdown__arrow {\n display: none;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 @mixin ck-rounded-corners;\n\n background: var(--ck-color-toolbar-background);\n padding: 0 var(--ck-spacing-small);\n border: 1px solid var(--ck-color-toolbar-border);\n\n & .ck.ck-toolbar__separator {\n height: var(--ck-icon-size);\n width: 1px;\n min-width: 1px;\n background: var(--ck-color-toolbar-border);\n\n /*\n * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n * See https://github.com/ckeditor/ckeditor5/issues/7493.\n */\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n }\n\n & .ck-toolbar__line-break {\n height: 0;\n }\n\n & > .ck-toolbar__items {\n & > *:not(.ck-toolbar__line-break) {\n /* (#11) Separate toolbar items. */\n margin-right: var(--ck-spacing-small);\n }\n\n /* Don\'t display a separator after an empty items container, for instance,\n when all items were grouped */\n &:empty + .ck.ck-toolbar__separator {\n display: none;\n }\n }\n\n & > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n & > .ck.ck-toolbar__grouped-dropdown {\n /* Make sure items wrapped to the next line have v-spacing */\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n }\n\n &.ck-toolbar_vertical {\n /* Items in a vertical toolbar span the entire width. */\n padding: 0;\n\n /* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n & > .ck-toolbar__items > .ck {\n /* Items in a vertical toolbar should span the horizontal space. */\n width: 100%;\n\n /* Items in a vertical toolbar should have no margin. */\n margin: 0;\n\n /* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n border-radius: 0;\n }\n }\n\n &.ck-toolbar_compact {\n /* No spacing around items. */\n padding: 0;\n\n & > .ck-toolbar__items > * {\n /* Compact toolbar items have no spacing between them. */\n margin: 0;\n\n /* "Middle" children should have no rounded corners. */\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n }\n }\n\n & > .ck.ck-toolbar__grouped-dropdown {\n /*\n * Dropdown button has asymmetric padding to fit the arrow.\n * This button has no arrow so let\'s revert that padding back to normal.\n */\n & > .ck.ck-button.ck-dropdown__button {\n padding-left: var(--ck-spacing-tiny);\n }\n }\n\n /* A drop-down containing the nested toolbar with configured items. */\n & .ck-toolbar__nested-toolbar-dropdown {\n /* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n & > .ck-dropdown__panel {\n min-width: auto;\n }\n\n & > .ck-button > .ck-button__label {\n max-width: 7em;
1\n width: auto;\n }\n }\n\n &:focus {\n outline: none;\n }\n\n .ck-toolbar-container & {\n border: 0;\n }\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 & > .ck-toolbar__items > .ck {\n margin-right: 0;\n }\n\n &:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n /* (#11) Separate toolbar items. */\n margin-left: var(--ck-spacing-small);\n }\n\n & > .ck-toolbar__items > .ck:last-child {\n margin-left: 0;\n }\n\n &.ck-toolbar_compact > .ck-toolbar__items > .ck {\n /* No rounded corners on the right side of the first child. */\n &:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n /* No rounded corners on the left side of the last child. */\n &:last-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n\n /* Separate the the separator form the grouping dropdown when some items are grouped. */\n & > .ck.ck-toolbar__separator {\n margin-left: var(--ck-spacing-small);\n }\n\n /* Some spacing between the items and the separator before the grouped items dropdown. */\n &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n margin-left: var(--ck-spacing-small);\n }\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 & > .ck-toolbar__items > .ck:last-child {\n margin-right: 0;\n }\n\n &.ck-toolbar_compact > .ck-toolbar__items > .ck {\n /* No rounded corners on the right side of the first child. */\n &:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n /* No rounded corners on the left side of the last child. */\n &:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n }\n\n /* Separate the the separator form the grouping dropdown when some items are grouped. */\n & > .ck.ck-toolbar__separator {\n margin-right: var(--ck-spacing-small);\n }\n\n /* Some spacing between the items and the separator before the grouped items dropdown. */\n &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n margin-right: var(--ck-spacing-small);\n }\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 border-radius: 0;\n\n .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},9205:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck.ck-balloon-panel.ck-tooltip{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:calc(var(--ck-z-dialog) + 100);--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);box-shadow:none;padding:0 var(--ck-spacing-medium)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;max-width:200px;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAOA,gCCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,sCAAyC,CEFzC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAkB/D,eAAgB,CAhBhB,kCFJD,CEMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CAErB,eAAgB,CADhB,wCAAyC,CAFzC,wBAID,CAMA,uCACC,YACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding 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-balloon-panel.ck-tooltip {\n @mixin ck-unselectable;\n\n z-index: calc( var(--ck-z-dialog) + 100 );\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-balloon-border-width: 0px;\n --ck-balloon-arrow-offset: 0px;\n --ck-balloon-arrow-half-width: 4px;\n --ck-balloon-arrow-height: 4px;\n --ck-tooltip-text-padding: 4px;\n --ck-color-panel-background: var(--ck-color-tooltip-background);\n\n padding: 0 var(--ck-spacing-medium);\n\n & .ck-tooltip__text {\n font-size: .9em;\n line-height: 1.5;\n color: var(--ck-color-tooltip-text);\n }\n\n &.ck-tooltip_multi-line .ck-tooltip__text {\n white-space: break-spaces;\n display: inline-block;\n padding: var(--ck-tooltip-text-padding) 0;\n max-width: 200px;\n }\n\n /* Reset balloon panel styles */\n box-shadow: none;\n\n /* Hide the default shadow of the .ck-balloon-panel tip */\n &::before {\n display: none;\n }\n}\n'],sourceRoot:""}]);let a=s},7676:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,".ck-hidden{display:none!important}:root{--ck-z-default:1;--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-dialog-background:var(--ck-custom-background);--ck-color-dialog-form-header-border:var(--ck-custom-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}
1.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{background:transparent;border:0;box-sizing:border-box;height:auto;margin:0;padding:0;position:static;text-decoration:none;transition:none;vertical-align:middle;width:auto;word-wrap:break-word}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CAC/C,kBACD,CCDA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,wDAAiE,CACjE,4DAAmE,CAInE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,
1CAIzD,yBAAgD,CChHhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJgHD,CI1GA,2EAYC,sBAAuB,CADvB,QAAS,CART,qBAAsB,CAEtB,WAAY,CAIZ,QAAS,CACT,SAAU,CAJV,eAAgB,CAOhB,oBAAqB,CAErB,eAAgB,CADhB,qBAAsB,CAVtB,UAAW,CAcX,oBACD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCxFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Override selector specificity. Otherwise, all elements with some display\n style defined will override this one, which is not a desired result. */\n display: none !important;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-z-default: 1;\n --ck-z-panel: calc( var(--ck-z-default) + 999 );\n --ck-z-dialog: 9999;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 transition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-powered-by-line-height: 10px;\n --ck-powered-by-padding-vertical: 2px;\n --ck-powered-by-padding-horizontal: 4px;\n --ck-powered-by-text-color: hsl(0, 0%, 31%);\n --ck-powered-by-border-radius: var(--ck-border-radius);\n --ck-powered-by-background: hsl(0, 0%, 100%);\n --ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n --ck-border-radius: var(--ck-powered-by-border-radius);\n\n box-shadow: none;\n background: var(--ck-powered-by-background);\n min-height: unset;\n z-index: calc( var(--ck-z-panel) - 1 );\n\n & .ck.ck-powered-by {\n line-height: var(--ck-powered-by-line-height);\n\n & a {\n cursor: pointer;\n display: flex;\n align-items: center;\n opacity: .66;\n filter: grayscale(80%);\n line-height: var(--ck-powered-by-line-height);\n padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n }\n\n & .ck-powered-by__label {\n font-size: 7.5px;\n letter-spacing: -.2px;\n padding-left: 2px;\n text-transform: uppercase;\n font-weight: bold;\n margin-right: 4px;\n cursor: pointer;\n line-height: normal;\n color: var(--ck-powered-by-text-color);\n\n }\n\n & .ck-icon {\n display: block;\n cursor: pointer;\n }\n\n &:hover {\n & a {\n filter: grayscale(0%);\n opacity: 1;\n }\n }\n }\n\n &[class*="position_inside"] {\n border-color: transparent;\n }\n\n &[class*="position_border"] {\n border: var(--ck-focus-ring);\n border-color: var(--ck-powered-by-border-color);\n }\n}\n\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-base-foreground: hsl(0, 0%, 98%);\n --ck-color-base-background: hsl(0, 0%, 100%);\n --ck-color-base-border: hsl(220, 6%, 81%);\n --ck-color-base-action: hsl(104, 50.2%, 42.5%);\n --ck-color-base-focus: hsl(209, 92%, 70%);\n --ck-color-base-text: hsl(0, 0%, 20%);\n --ck-color-base-active: hsl(218.1, 100%, 58%);
1\n --ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);\n --ck-color-base-error: hsl(15, 100%, 43%);\n\n /* -- Generic colors ------------------------------------------------------------------------ */\n\n --ck-color-focus-border-coordinates: 218, 81.8%, 56.9%;\n --ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates));\n --ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%);\n --ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3);\n --ck-color-focus-error-shadow: hsla(9,100%,56%,.3);\n --ck-color-text: var(--ck-color-base-text);\n --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15);\n --ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2);\n --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);\n\n /* -- Buttons ------------------------------------------------------------------------------- */\n\n --ck-color-button-default-background: transparent;\n --ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);\n --ck-color-button-default-active-background: hsl(0, 0%, 94.1%);\n --ck-color-button-default-disabled-background: transparent;\n\n --ck-color-button-on-background: hsl(212, 100%, 97.1%);\n --ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);\n --ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);\n --ck-color-button-on-disabled-background: hsl(211, 15%, 95%);\n --ck-color-button-on-color: hsl(218.1, 100%, 58%);\n\n\n --ck-color-button-action-background: var(--ck-color-base-action);\n --ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%);\n --ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%);\n --ck-color-button-action-disabled-background: hsl(104, 44%, 58%);\n --ck-color-button-action-text: var(--ck-color-base-background);\n\n --ck-color-button-save: hsl(120, 100%, 27%);\n --ck-color-button-cancel: hsl(15, 100%, 43%);\n\n --ck-color-switch-button-off-background: hsl(0, 0%, 57.6%);\n --ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%);\n --ck-color-switch-button-on-background: var(--ck-color-button-action-background);\n --ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%);\n --ck-color-switch-button-inner-background: var(--ck-color-base-background);\n --ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1);\n\n /* -- Dropdown ------------------------------------------------------------------------------ */\n\n --ck-color-dropdown-panel-background: var(--ck-color-base-background);\n --ck-color-dropdown-panel-border: var(--ck-color-base-border);\n\n /* -- Dialog -------------------------------------------------------------------------------- */\n\n --ck-color-dialog-background: var(--ck-custom-background);\n --ck-color-dialog-form-header-border: var(--ck-custom-border);\n\n /* -- Input --------------------------------------------------------------------------------- */\n\n --ck-color-input-background: var(--ck-color-base-background);\n --ck-color-input-border: var(--ck-color-base-border);\n --ck-color-input-error-border: var(--ck-color-base-error);\n --ck-color-input-text: var(--ck-color-base-text);\n --ck-color-input-disabled-background: hsl(0, 0%, 95%);\n --ck-color-input-disabled-border: var(--ck-color-base-border);\n --ck-color-input-disabled-text: hsl(0, 0%, 46%);\n\n /* -- List ---------------------------------------------------------------------------------- */\n\n --ck-color-list-background: var(--ck-color-base-background);\n --ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background);\n --ck-color-list-button-on-background: var(--ck-color-button-on-color);\n --ck-color-list-button-on-background-focus: var(--ck-color-button-on-color);\n --ck-color-list-button-on-text: var(--ck-color-base-background);\n\n /* -- Panel --------------------------------------------------------------------------------- */\n\n --ck-color-panel-background: var(--ck-color-base-background);\n --ck-color-panel-border: var(--ck-color-base-border);\n\n /* -- Toolbar ------------------------------------------------------------------------------- */\n\n --ck-color-toolbar-background: var(--ck-color-base-background);\n --ck-color-toolbar-border: var(--ck-color-base-border);\n\n /* -- Tooltip ------------------------------------------------------------------------------- */\n\n --ck-color-tooltip-background: var(--ck-color-base-text);\n --ck-color-tooltip-text: var(--ck-color-base-background);\n\n /* -- Engine -------------------------------------------------------------------------------- */\n\n --ck-color-engine-placeholder-text: hsl(0, 0%, 44%);\n\n /* -- Upload -------------------------------------------------------------------------------- */\n\n --ck-color-upload-bar-background: hsl(209, 92%, 70%);\n\n /* -- Link -------------------------------------------------------------------------------- */\n\n --ck-color-link-default: hsl(240, 100%, 47%);\n --ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1);\n --ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3);\n\n /* -- Search result highlight ---------------------------------------------------------------- */\n\n --ck-color-highlight-background: hsl(60, 100%, 50%);\n\n /* -- Generic colors ------------------------------------------------------------------------- */\n\n --ck-color-light-red: hsl(0, 100%, 90%);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /**\n * An opacity value of disabled UI item.\n */\n --ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /**\n * The geometry of the of focused element's outer shadow.\n */\n --ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n /**\n * A visual style of focused element's outer shadow.\n */\n --ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n /**\n * A visual style of focused element's outer shadow (when disabled).\n */\n --ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n /**\n * A visual style of focused element's outer shadow (when has errors).\n */\n --ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n /**\n * A visual style of focused element's border or outline.\n */\n --ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-font-size-base: 13px;\n --ck-line-height-base: 1.84615;\n --ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n --ck-font-size-tiny: 0.7em;\n --ck-font-size-small: 0.75em;\n --ck-font-size-normal: 1em;\n --ck-font-size-big: 1.4em;
1\n --ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* This is super-important. This is **manually** adjusted so a button without an icon\n is never smaller than a button with icon, additionally making sure that text-less buttons\n are perfect squares. The value is also shared by other components which should stay "in-line"\n with buttons. */\n --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 box-sizing: border-box;\n width: auto;\n height: auto;\n position: static;\n\n /* Do not include inheritable rules here. */\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n text-decoration: none;\n vertical-align: middle;\n transition: none;\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n word-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 /* These are rule inherited by all children elements. */\n border-collapse: collapse;\n font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n color: var(--ck-color-text);\n text-align: left;\n white-space: nowrap;\n cursor: auto;\n float: none;\n}\n\n.ck-reset_all {\n & .ck-rtl *:not(.ck-reset_all-excluded *) {\n text-align: right;\n }\n\n & iframe:not(.ck-reset_all-excluded *) {\n /* For IE */\n vertical-align: inherit;\n }\n\n & textarea:not(.ck-reset_all-excluded *) {\n white-space: pre-wrap;\n }\n\n & textarea:not(.ck-reset_all-excluded *),\n & input[type="text"]:not(.ck-reset_all-excluded *),\n & input[type="password"]:not(.ck-reset_all-excluded *) {\n cursor: text;\n }\n\n & textarea[disabled]:not(.ck-reset_all-excluded *),\n & input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n & input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n cursor: default;\n }\n\n & fieldset:not(.ck-reset_all-excluded *) {\n padding: 10px;\n border: 2px groove hsl(255, 7%, 88%);\n }\n\n & button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n padding: 0;\n border: 0\n }\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n text-align: right;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /**\n * A visual style of element's inner shadow (i.e. input).\n */\n --ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n /**\n * A visual style of element's drop shadow (i.e. panel).\n */\n --ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n /**\n * A visual style of element's active shadow (i.e. comment or suggestion).\n */\n --ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-spacing-unit: 0.6em;\n --ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5);\n --ck-spacing-standard: var(--ck-spacing-unit);\n --ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8);\n --ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5);\n --ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3);\n --ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);let a=s},695:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());
1s.push([e.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{box-shadow:var(--ck-inner-shadow),0 0}@media (forced-colors:none){.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background)}}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused:not(td,th),.ck .ck-editor__nested-editable:focus:not(td,th){border:var(--ck-focus-ring);outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAs
1D,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CChFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAcD,CAZC,uCAND,eAOE,eAWF,CAVC,CAEA,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAoBD,CAhBC,yGCrCA,qCDoDA,CE/CA,4BACC,yGFmCC,iEEjCD,CACD,CFwCC,+HG/CD,2BAA2B,CAD3B,YHkDC,CAKD,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAwCD,CA3BC,uCAzBD,4EA0BE,eA0BF,CAzBC,CAEA,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAeD,CAVC,kHACC,SAAU,CAGV,+DAKD,CAHC,uCAND,kHAOE,eAEF,CADC,CAKF,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-color-resizer: var(--ck-color-focus-border);\n --ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n --ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n --ck-resizer-border-radius: var(--ck-border-radius);\n --ck-resizer-tooltip-offset: 10px;\n --ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n /* This is neccessary for type around UI to be positioned properly. */\n position: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n /* Make the widget wrapper a relative positioning container for the drag handle. */\n position: relative;\n\n & .ck-widget__selection-handle {\n position: absolute;\n\n & .ck-icon {\n /* Make sure the icon in not a subject to font-size or line-height to avoid\n unnecessary spacing around it. */\n display: block;\n }\n }\n\n /* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n &:hover > .ck-widget__selection-handle {\n visibility: visible;\n }\n\n /* Show the selection handle when the widget is selected, but not for nested widgets. */\n &.ck-widget_selected > .ck-widget__selection-handle {\n visibility: visible;\n }\n}\n\n.ck .ck-size-view {\n background: var(--ck-color-resizer-tooltip-background);\n color: var(--ck-color-resizer-tooltip-text);\n border: 1px solid var(--ck-color-resizer-tooltip-text);\n border-radius: var(--ck-resizer-border-radius);\n font-size: var(--ck-font-size-tiny);\n display: block;\n padding: 0 var(--ck-spacing-small);\n height: var(--ck-resizer-tooltip-height);\n line-height: var(--ck-resizer-tooltip-height);\n\n &.ck-orientation-top-left,\n &.ck-orientation-top-right,\n &.ck-orientation-bottom-right,\n &.ck-orientation-bottom-left,\n &.ck-orientation-above-center {\n position: absolute;\n }\n\n &.ck-orientation-top-left {\n top: var(--ck-resizer-tooltip-offset);\n left: var(--ck-resizer-tooltip-offset);\n }\n\n &.ck-orientation-top-right {\n top: var(--ck-resizer-tooltip-offset);\n right: var(--ck-resizer-tooltip-offset);\n }\n\n &.ck-orientation-bottom-right {\n bottom: var(--ck-resizer-tooltip-offset);\n right: var(--ck-resizer-tooltip-offset);\n }\n\n &.ck-orientation-bottom-left {\n bottom: var(--ck-resizer-tooltip-offset);\n left: var(--ck-resizer-tooltip-offset);\n }\n\n /* Class applied if the widget is too small to contain the size label */\n &.ck-orientation-above-center {\n top: calc(var(--ck-resizer-tooltip-height) * -1);\n left: 50%;\n transform: translate(-50%);\n }\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding 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 "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\n\n:root {\n --ck-widget-outline-thickness: 3px;\n --ck-widget-handler-icon-size: 16px;\n --ck-widget-handler-animation-duration: 200ms;\n --ck-widget-handler-animation-curve: ease;\n\n --ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n --ck-color-widget-hover-border: hsl(43, 100%, 62%);\n --ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n --ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n outline-width: var(--ck-widget-outline-thickness);\n outline-style: solid;\n outline-color: transparent;\n transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n }\n\n &:hover {\n outline-color: var(--ck-color-widget-hover-border);\n }\n}\n\n.ck .ck-editor__nested-editable {\n border: 1px solid transparent;\n\n /* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n These styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n &.ck-editor__nested-editable_focused,\n &:focus {\n @mixin ck-box-sha
1dow var(--ck-inner-shadow);\n @mixin ck-media-default-colors {\n background-color: var(--ck-color-widget-editable-focus-background);\n }\n\n /**\n * Focus border should not be applied to table cells because it overrides the default table cell border color.\n * In other words - in some scenarios, the part of the table cell border has focus color style, which is not expected behavior\n * because it should be the same as the table cell border color.\n */\n &:not(td, th) {\n @mixin ck-focus-ring;\n }\n }\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n & .ck-widget__selection-handle {\n padding: 4px;\n box-sizing: border-box;\n\n /* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n background-color: transparent;\n opacity: 0;\n\n /* Transition:\n * background-color for the .ck-widget_selected state change,\n * visibility for hiding the handler,\n * opacity for the proper look of the icon when the handler disappears. */\n transition:\n background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n /* Make only top corners round. */\n border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n /* Place the drag handler outside the widget wrapper. */\n transform: translateY(-100%);\n left: calc(0px - var(--ck-widget-outline-thickness));\n top: 0;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n & .ck-icon {\n /* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n width: var(--ck-widget-handler-icon-size);\n height: var(--ck-widget-handler-icon-size);\n color: var(--ck-color-widget-drag-handler-icon-color);\n\n /* The "selected" part of the icon is invisible by default */\n & .ck-icon__selected-indicator {\n opacity: 0;\n\n /* Note: The animation is longer on purpose. Simply feels better. */\n transition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n }\n\n /* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n &:hover .ck-icon .ck-icon__selected-indicator {\n opacity: 1;\n }\n }\n\n /* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n &:hover > .ck-widget__selection-handle {\n opacity: 1;\n background-color: var(--ck-color-widget-hover-border);\n }\n\n /* Show the selection handler when the widget is selected, but not for nested widgets. */\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n & > .ck-widget__selection-handle {\n opacity: 1;\n background-color: var(--ck-color-focus-border);\n\n /* When the widget is selected, notify the user using the proper look of the icon. */\n & .ck-icon .ck-icon__selected-indicator {\n opacity: 1;\n }\n }\n }\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 left: auto;\n right: 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 /* Prevent the :hover outline from showing up because of the used outline-color transition. */\n transition: none;\n\n &:not(.ck-widget_selected) {\n /* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n * See: https://github.com/ckeditor/ckeditor5/issues/1261\n *\n * Leave the unit because this custom property is used in calc() by other features.\n * See: https://github.com/ckeditor/ckeditor5/issues/6775\n */\n --ck-widget-outline-thickness: 0px;\n }\n\n &.ck-widget_with-selection-handle {\n & .ck-widget__selection-handle,\n & .ck-widget__selection-handle:hover {\n background: var(--ck-color-widget-blurred-border);\n }\n }\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 &.ck-widget_selected,\n &.ck-widget_selected:hover {\n outline-color: var(--ck-color-widget-blurred-border);\n\n &.ck-widget_with-selection-handle {\n & > .ck-widget__selection-handle,\n & > .ck-widget__selection-handle:hover {\n background: var(--ck-color-widget-blurred-border);\n }\n }\n }\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 /* Do n
1ot crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n In fact, anything with overflow: hidden.\n https://github.com/ckeditor/ckeditor5-block-quote/issues/28\n https://github.com/ckeditor/ckeditor5-widget/issues/44\n https://github.com/ckeditor/ckeditor5-widget/issues/66 */\n margin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding 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 box-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 @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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-forced-colors {\n @media (forced-colors: active) {\n & {\n @mixin-content;\n }\n }\n}\n\n@define-mixin ck-media-default-colors {\n @media (forced-colors: none) {\n & {\n @mixin-content;\n }\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]);let a=s},4095:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding 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 /* Make the widget wrapper a relative positioning container for the drag handle. */\n position: relative;\n}\n\n.ck .ck-widget__resizer {\n display: none;\n position: absolute;\n\n /* The wrapper itself should not interfere with the pointer device, only the handles should. */\n pointer-events: none;\n\n left: 0;\n top: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n & > .ck-widget__resizer {\n display: block;\n }\n}\n\n.ck .ck-widget__resizer__handle {\n position: absolute;\n\n /* Resizers are the only UI elements that should interfere with a pointer device. */\n pointer-events: all;\n\n &.ck-widget__resizer__handle-top-left,\n &.ck-widget__resizer__handle-bottom-right {\n cursor: nwse-resize;\n }\n\n &.ck-widget__resizer__handle-top-right,\n &.ck-widget__resizer__handle-bottom-left {\n cursor: nesw-resize;\n }\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-resizer-size: 10px;\n\n /* Set the resizer with a 50% offset. */\n --ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n --ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n outline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n width: var(--ck-resizer-size);\n height: var(--ck-resizer-size);\n background: var(--ck-color-focus-border);\n border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n border-radius: var(--ck-resizer-border-radius);\n\n &.ck-widget__resizer__handle-top-left {\n top: var(--ck-resizer-offset);\n left: var(--ck-resizer-offset);\n }\n\n &.ck-widget__resizer__handle-top-right {\n top: var(--ck-resizer-offset);\n right: var(--ck-resizer-offset);\n }\n\n &.ck-widget__resizer__handle-bottom-right {\n bottom: var(--ck-resizer-offset);\n right: var(--ck-resizer-offset);\n }\n\n &.ck-widget__resizer__handle-bottom-left {\n bottom: var(--ck-resizer-offset);\n left: var(--ck-resizer-offset);\n }\n}\n"],sourceRoot:""}]);let a=s},8508:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(2001),o=n.n(i),r=n(935),s=n.n(r)()(o());s.push([e
vendor: 10,105 bytes, line 1
1.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg line,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:none}}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAwED,CAhEC,uCATD,+CAUE,eA+DF,CA9DC,CAEA,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAwBD,CAlBC,uCAPD,mDAQE,eAiBF,CAhBC,CAEA,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DA4BD,CAtBE,kEACC,oDACD,CAEA,8DACC,wDACD,CAGD,uCAQE,qLACC,cACD,CAEF,CASD,uKA7FD,SAAU,CACV,mBA8FC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAxKD,SAAU,CACV,mBAyKC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAxNF,SAAU,CACV,mBAyNE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-202
14, CKSource Holding 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 /*\n * Styles of the type around buttons\n */\n & .ck-widget__type-around__button {\n display: block;\n position: absolute;\n overflow: hidden;\n z-index: var(--ck-z-default);\n\n & svg {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: calc(var(--ck-z-default) + 2);\n }\n\n &.ck-widget__type-around__button_before {\n /* Place it in the middle of the outline */\n top: calc(-0.5 * var(--ck-widget-outline-thickness));\n left: min(10%, 30px);\n\n transform: translateY(-50%);\n }\n\n &.ck-widget__type-around__button_after {\n /* Place it in the middle of the outline */\n bottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n right: min(10%, 30px);\n\n transform: translateY(50%);\n }\n }\n\n /*\n * Styles for the buttons when:\n * - the widget is selected,\n * - or the button is being hovered (regardless of the widget state).\n */\n &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n & > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n &::after {\n content: "";\n display: block;\n position: absolute;\n top: 1px;\n left: 1px;\n z-index: calc(var(--ck-z-default) + 1);\n }\n }\n\n /*\n * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n */\n & > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n }\n\n /*\n * When the widget is hovered the "fake caret" would normally be narrower than the\n * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n * the full width of the widget.\n */\n &:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n left: calc( -1 * var(--ck-widget-outline-thickness) );\n right: calc( -1 * var(--ck-widget-outline-thickness) );\n }\n\n /*\n * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n */\n &.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n top: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n display: block;\n }\n\n /*\n * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n */\n &.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n display: block;\n }\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 display: 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 display: 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 display: none;\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding 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 --ck-widget-type-around-button-size: 20px;\n --ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n --ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n --ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n --ck-color-widget-type-around-button-radar-start-alpha: 0;\n --ck-color-widget-type-around-button-radar-end-alpha: .3;\n --ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n opacity: 1;\n pointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n opacity: 0;\n pointer-events: none;\n}\n\n.ck .ck-widget {\n /*\n * Styles of the type around buttons\n */\n & .ck-widget__type-around__button {\n width: var(--ck-widget-type-around-button-size);\n height: var(--ck-widget-type-around-button-size);\n background: var(--ck-color-widget-type-around-button);\n border-radius: 100px;\n transition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n @mixin ck-widget-type-around-button-hidden;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n & svg {\n width: 10px;\n height: 8px;\n transform: translate(-50%,-50%);\n transition: transform .5s ease;
1\n margin-top: 1px;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n & * {\n stroke-dasharray: 10;\n stroke-dashoffset: 0;\n\n fill: none;\n stroke: var(--ck-color-widget-type-around-button-icon);\n stroke-width: 1.5px;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n & line {\n stroke-dasharray: 7;\n }\n }\n\n &:hover {\n /*\n * Display the "sonar" around the button when hovered.\n */\n animation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n /*\n * Animate active button\'s icon.\n */\n & svg {\n & polyline {\n animation: ck-widget-type-around-arrow-dash 2s linear;\n }\n\n & line {\n animation: ck-widget-type-around-arrow-tip-dash 2s linear;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n\n & svg {\n & polyline {\n animation: none;\n }\n\n & line {\n animation: none;\n }\n }\n }\n }\n }\n\n /*\n * Show type around buttons when the widget gets selected or being hovered.\n */\n &.ck-widget_selected,\n &:hover {\n & > .ck-widget__type-around > .ck-widget__type-around__button {\n @mixin ck-widget-type-around-button-visible;\n }\n }\n\n /*\n * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n * and still can be hovered).\n */\n &:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n background: var(--ck-color-widget-type-around-button-hover);\n }\n\n /*\n * Styles for the buttons when:\n * - the widget is selected,\n * - or the button is being hovered (regardless of the widget state).\n */\n &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n & > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n background: var(--ck-color-widget-type-around-button-active);\n\n &::after {\n width: calc(var(--ck-widget-type-around-button-size) - 2px);\n height: calc(var(--ck-widget-type-around-button-size) - 2px);\n border-radius: 100px;\n background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n }\n }\n\n /*\n * Styles for the "before" button when the widget has a selection handle. Because some space\n * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n */\n &.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n margin-left: 20px;\n }\n\n /*\n * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n */\n & .ck-widget__type-around__fake-caret {\n pointer-events: none;\n height: 1px;\n animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n /*\n * The semi-transparent-outline+background combo improves the contrast\n * when the background underneath the fake caret is dark.\n */\n outline: solid 1px hsla(0, 0%, 100%, .5);\n background: var(--ck-color-base-text);\n }\n\n /*\n * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n * Despite the widget being physically selected in the model, its outline should disappear.\n */\n &.ck-widget_selected {\n &.ck-widget_type-around_show-fake-caret_before,\n &.ck-widget_type-around_show-fake-caret_after {\n outline-color: transparent;\n }\n }\n\n &.ck-widget_type-around_show-fake-caret_before,\n &.ck-widget_type-around_show-fake-caret_after {\n /*\n * When the "fake caret" is visible we simulate that the widget is not selected\n * (despite being physically selected), so the outline color should be for the\n * unselected widget.\n */\n &.ck-widget_selected:hover {\n outline-color: var(--ck-color-widget-hover-border);\n }\n\n /*\n * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n * In this state, the type around buttons would collide with the fake carets so they should disappear.\n */\n & > .ck-widget__type-around > .ck-widget__type-around__button {\n @mixin ck-widget-type-around-button-hidden;\n }\n\n /*\n * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n * hide the handle because it intersects with the caret (and does not make much sense anyway).\n */\n &.ck-widget_with-selection-handle {\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n & > .ck-widget__selection-handle {\n opacity: 0\n }\n }\n }\n\n /*\n * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n * hide the resize UI because it creates too much noise. It can be visible when the user\n * hovers the widget, though.\n */\n &.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n opacity: 0\n }\n }\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 margin-left: 0;\n margin-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 & .ck-widget {\n &.ck-widget_selected,\n &:hover {\n & > .ck-widget__type-around > .ck-widget__type-around__button {\n @mixin ck-widget-type-around-button-hidden;\n }\n }\n }\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 background: var(--ck-color-widget-type-around-button-blurred-editable);\n\n & svg * {\n stroke: hsl(0,0%,60%);\n }\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n 0% {\n stroke-dashoffset: 10;\n }\n 20%, 100% {\n stroke-dashoffset: 0;\n }\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n 0%, 20% {\n stroke-dashoffset: 7;\n }\n 40%, 100% {\n stroke-dashoffset: 0;\n }\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n 0% {\n box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n }\n 50% {\n box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n }\n 100% {\n box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n }\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n 0% {\n opacity: 1;\n }\n 49% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 99% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n'],sourceRoot:""}]);let a=s},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]&&(d[1]="@media ".concat(d[2]," {").concat(d[1],"}")),d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},62:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},2001:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];
1if(!n)return t;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n))));return[t].concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i)," */")]).join("\n")}return[t].join("\n")}},2591:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},r=[],s=0;s<e.length;s++){var a=e[s],l=i.base?a[0]+i.base:a[0],c=o[l]||0,d="".concat(l," ").concat(c);o[l]=c+1;var u=n(d),h={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var g=function(e,t){var n=t.domAPI(t);return n.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&n.update(e=t):n.remove()}}(h,i);i.byIndex=s,t.splice(s,0,{identifier:d,updater:g,references:1})}r.push(d)}return r}e.exports=function(e,o){var r=i(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var a=n(r[s]);t[a].references--}for(var l=i(e,o),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},8128:e=>{"use strict";var t={};e.exports=function(e,n){var i=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(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},3051:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},8021:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}},8639:e=>{"use strict";var t,n=(t=[],function(e,n){return t[e]=n,t.filter(Boolean).join("\n")});function i(e,t,i,o){var r;if(i)r="";else{r="",o.supports&&(r+="@supports (".concat(o.supports,") {")),o.media&&(r+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(r+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),r+=o.css,s&&(r+="}"),o.media&&(r+="}"),o.supports&&(r+="}")}if(e.styleSheet)e.styleSheet.cssText=n(t,r);else{var a=document.createTextNode(r),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(a,l[t]):e.appendChild(a)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,n=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){i(n,t,!1,e)},remove:function(e){i(n,t,!0,e)}}}},4782:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzUuNzUgMCAwIDEtLjIxNy4yMDYgNS4yNTEgNS4yNTEgMCAwIDEtOC41MDMtNS45NTUuNy43IDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NHptNS40OTQtNS4zMzVhLjc1Ljc1IDAgMCAxLS4xMi4yNzRsLTEuMTQ3IDEuNjM5YS43NS43NSAwIDEgMS0xLjIyOC0uODZsLjg2LTEuMjNhMy43NSAzLjc1IDAgMCAwLTYuMTQ0LTQuMzAxbC0uODYgMS4yMjlhLjc1Ljc1IDAgMCAxLTEuMjI5LS44NmwxLjE0OC0xLjY0YS43NS43NSAwIDAgMSAuMjE3LS4yMDYgNS4yNTEgNS4yNTEgMCAwIDEgOC41MDMgNS45NTVtLTQuNTYzLTIuNTMyYS43NS43NSAwIDAgMSAuMTg0IDEuMDQ1bC0zLjE1NSA0LjUwNWEuNzUuNzUgMCAxIDEtMS4yMjktLjg2bDMuMTU1LTQuNTA2YS43NS43NSAwIDAgMSAxLjA0NS0uMTg0Ii8+PC9zdmc+"},9736:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjx0aXRsZT5GaWxsIDE8L3RpdGxlPjxwYXRoIGZpbGw9IiNGRkZGRkUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTk2Ny40ODQgMEg1Ni41MTdDMjUuMzA0IDAgMCAyNS4zMDQgMCA1Ni41MTd2OTEwLjk2NkMwIDk5OC42OTQgMjUuMjk3IDEwMjQgNTYuNTIyIDEwMjRINTQ3VjYyOEg0MTRWNDczaDEzM1YzNTkuMDI5YzAtMTMyLjI2MiA4MC43NzMtMjA0LjI4MiAxOTguNzU2LTIwNC4yODIgNTYuNTEzIDAgMTA1LjA4NiA0LjIwOCAxMTkuMjQ0IDYuMDg5VjI5OWwtODEuNjE2LjAzN2MtNjMuOTkzIDAtNzYuMzg0IDMwLjQ5Mi03Ni4zODQgNzUuMjM2VjQ3M2gxNTMuNDg3bC0xOS45ODYgMTU1SDcwN3YzOTZoMjYwLjQ4NGMzMS4yMTMgMCA1Ni41MTYtMjUuMzAzIDU2LjUxNi01Ni41MTZWNTYuNTE1QzEwMjQgMjUuMzAzIDk5OC42OTcgMCA5NjcuNDg0IDAiLz48L3N2Zz4="},657:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSlzY2FsZSguOTgwMTIpIj48cmVjdCB3aWR0aD0iNjAuMDk5IiBoZWlnaHQ9IjYwLjA5OSIgeD0iMTc2LjAzMSIgeT0iMjMxLjM5OSIgZmlsbD0iIzM0YTY2OCIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjIzOCIgcnk9IjUuMjM4Ii8+PHBhdGggZmlsbD0iIzVjODhjNSIgZD0ibTIwNi40NzcgMjYwLjktMjguOTg3IDI4Ljk4N2E1LjIyIDUuMjIgMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiLz48cGF0aCBmaWxsPSIjZGQ0YjNlIiBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwN3EuNS43NTMuOTUgMS41MDguNTE1LjcxNS45ODggMS40NGMxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5cS40NzMtLjcyMy45ODgtMS40MzkuNDUtLjc1NS45NS0xLjUwOGMuMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIGN4PSIyMjYuNzQyIiBjeT0iMjM5LjAwMiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjgyOCIgcnk9IjUuNTY0Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjlxLS4wMDEtLjU0My0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhxLS4wMDEtLjAwMy0uMDA0LS4wMDVjLTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTVtNC40MyA1LjY2LjAwMy4wMDZ2LS4wMDN6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGZpbGw9IiNjM2MzYzMiIGQ9Im0yMTUuMTg0IDI1MS45MjktNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMiA1LjIgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjl6Ii8+PHBhdGggZmlsbD0iI2ZkZGM0ZiIgZD0ibTIxMi45ODMgMjQ4LjQ5NS0zNi45NTIgMzYuOTUzdi44MTJhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzggNS4y
1MzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYgMTM2IDAgMCAwLTIuNzY0LTMuOSAzOCAzOCAwIDAgMC0uOTg5LTEuNDQgMzUgMzUgMCAwIDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4="},7784:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwME0xNjMuNCAzMDUuNWM4OC43IDAgMTM3LjItNzMuNSAxMzcuMi0xMzcuMiAwLTIuMSAwLTQuMi0uMS02LjIgOS40LTYuOCAxNy42LTE1LjMgMjQuMS0yNS04LjYgMy44LTE3LjkgNi40LTI3LjcgNy42IDEwLTYgMTcuNi0xNS40IDIxLjItMjYuNy05LjMgNS41LTE5LjYgOS41LTMwLjYgMTEuNy04LjgtOS40LTIxLjMtMTUuMi0zNS4yLTE1LjItMjYuNiAwLTQ4LjIgMjEuNi00OC4yIDQ4LjIgMCAzLjguNCA3LjUgMS4zIDExLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40LTQuMSA3LjEtNi41IDE1LjQtNi41IDI0LjIgMCAxNi43IDguNSAzMS41IDIxLjUgNDAuMS03LjktLjItMTUuMy0yLjQtMjEuOC02di42YzAgMjMuNCAxNi42IDQyLjggMzguNyA0Ny4zLTQgMS4xLTguMyAxLjctMTIuNyAxLjctMy4xIDAtNi4xLS4zLTkuMS0uOSA2LjEgMTkuMiAyMy45IDMzLjEgNDUgMzMuNS0xNi41IDEyLjktMzcuMyAyMC42LTU5LjkgMjAuNi0zLjkgMC03LjctLjItMTEuNS0uNyAyMS4xIDEzLjggNDYuNSAyMS44IDczLjcgMjEuOCIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg=="},6341:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgdmlld0JveD0iMCAwIDUwNCA1MDQiPjx0aXRsZT5nbHlwaC1sb2dvX01heTIwMTY8L3RpdGxlPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAuMTU5aDUwMy44NDFWNTAzLjk0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTI1MS45MjEuMTU5Yy02OC40MTggMC03Ni45OTcuMjktMTAzLjg2NyAxLjUxNi0yNi44MTQgMS4yMjMtNDUuMTI3IDUuNDgyLTYxLjE1MSAxMS43MS0xNi41NjYgNi40MzctMzAuNjE1IDE1LjA1MS00NC42MjEgMjkuMDU2LTE0LjAwNSAxNC4wMDYtMjIuNjE5IDI4LjA1NS0yOS4wNTYgNDQuNjIxLTYuMjI4IDE2LjAyNC0xMC40ODcgMzQuMzM3LTExLjcxIDYxLjE1MUMuMjkgMTc1LjA4MyAwIDE4My42NjIgMCAyNTIuMDhjMCA2OC40MTcuMjkgNzYuOTk2IDEuNTE2IDEwMy44NjYgMS4yMjMgMjYuODE0IDUuNDgyIDQ1LjEyNyAxMS43MSA2MS4xNTEgNi40MzcgMTYuNTY2IDE1LjA1MSAzMC42MTUgMjkuMDU2IDQ0LjYyMSAxNC4wMDYgMTQuMDA1IDI4LjA1NSAyMi42MTkgNDQuNjIxIDI5LjA1NyAxNi4wMjQgNi4yMjcgMzQuMzM3IDEwLjQ4NiA2MS4xNTEgMTEuNzA5IDI2Ljg3IDEuMjI2IDM1LjQ0OSAxLjUxNiAxMDMuODY3IDEuNTE2IDY4LjQxNyAwIDc2Ljk5Ni0uMjkgMTAzLjg2Ni0xLjUxNiAyNi44MTQtMS4yMjMgNDUuMTI3LTUuNDgyIDYxLjE1MS0xMS43MDkgMTYuNTY2LTYuNDM4IDMwLjYxNS0xNS4wNTIgNDQuNjIxLTI5LjA1NyAxNC4wMDUtMTQuMDA2IDIyLjYxOS0yOC4wNTUgMjkuMDU3LTQ0LjYyMSA2LjIyNy0xNi4wMjQgMTAuNDg2LTM0LjMzNyAxMS43MDktNjEuMTUxIDEuMjI2LTI2Ljg3IDEuNTE2LTM1LjQ0OSAxLjUxNi0xMDMuODY2IDAtNjguNDE4LS4yOS03Ni45OTctMS41MTYtMTAzLjg2Ny0xLjIyMy0yNi44MTQtNS40ODItNDUuMTI3LTExLjcwOS02MS4xNTEtNi40MzgtMTYuNTY2LTE1LjA1Mi0zMC42MTUtMjkuMDU3LTQ0LjYyMS0xNC4wMDYtMTQuMDA1LTI4LjA1NS0yMi42MTktNDQuNjIxLTI5LjA1Ni0xNi4wMjQtNi4yMjgtMzQuMzM3LTEwLjQ4Ny02MS4xNTEtMTEuNzFDMzI4LjkxNy40NDkgMzIwLjMzOC4xNTkgMjUxLjkyMS4xNTltMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1czE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NmMzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjZzLTE3LjIwNyAxNC4yNzUtMjguOTY2IDE4Ljg0NWMtOC44NzcgMy40NS0yMi4yMTYgNy41NTQtNDYuNzc4IDguNjc0LTI2LjU2IDEuMjEyLTM0LjUyNyAxLjQ2OS0xMDEuNzk3IDEuNDY5LTY3LjI3MSAwLTc1LjIzNy0uMjU3LTEwMS43OTgtMS40NjktMjQuNTYyLTEuMTItMzcuOTAxLTUuMjI0LTQ2Ljc3OC04LjY3NC0xMS43NTktNC41Ny0yMC4xNTEtMTAuMDI5LTI4Ljk2Ni0xOC44NDVzLTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2NmMtMy40NS04Ljg3Ny03LjU1NC0yMi4yMTYtOC42NzQtNDYuNzc4LTEuMjEyLTI2LjU2NC0xLjQ2OS0zNC41MzItMS40NjktMTAxLjc5NyAwLTY3LjI2Ni4yNTctNzUuMjM0IDEuNDY5LTEwMS43OTggMS4xMi0yNC41NjIgNS4yMjQtMzcuOTAxIDguNjc0LTQ2Ljc3OCA0LjU3LTExLjc1OSAxMC4wMjktMjAuMTUxIDE4Ljg0NS0yOC45NjZzMTcuMjA3LTE0LjI3NSAyOC45NjYtMTguODQ1YzguODc3LTMuNDUgMjIuMjE2LTcuNTU0IDQ2Ljc3OC04LjY3NCAyNi41NjQtMS4yMTIgMzQuNTMyLTEuNDY5IDEwMS43OTgtMS40NjkiIG1hc2s9InVybCgjYikiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzNzMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0YzQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNtMC0yMTMuMzM4Yy03MS40NDcgMC0xMjkuMzY1IDU3LjkxOC0xMjkuMzY1IDEyOS4zNjUgMCA3MS40NDYgNTcuOTE4IDEyOS4zNjQgMTI5LjM2NSAxMjkuMzY0IDcxLjQ0NiAwIDEyOS4zNjQtNTcuOTE4IDEyOS4zNjQtMTI5LjM2NCAwLTcxLjQ0Ny01Ny45MTgtMTI5LjM2NS0xMjkuMzY0LTEyOS4zNjVNNDE2LjYyNyAxMTcuNjA0YzAgMTYuNjk2LTEzLjUzNSAzMC4yMy0zMC4yMzEgMzAuMjMtMTYuNjk1IDAtMzAuMjMtMTMuNTM0LTMwLjIzLTMwLjIzczEzLjUzNS0zMC4yMzEgMzAuMjMtMzAuMjMxYzE2LjY5NiAwIDMwLjIzMSAxMy41MzUgMzAuMjMxIDMwLjIzMSIvPjwvZz48L3N2Zz4="}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e](n,n.exports,r),n.exports}r.m=i,r.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.b=document.baseURI||self.location.href;var s={};return(()=>{"use strict";let i;r.d(s,{default:()=>wm});try{i={window,document}}catch(e){i={window:{},document:{}}}let o=i,a=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}(),l={isMac:c(a),isWindows:a.indexOf("windows")>-1,isGecko:!!a.match(/gecko\/\d+/),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(a),isiOS:function(e){return!!e.match(/iphone|ipad/i)||c(e)&&navigator.maxTouchPoints>0}(a),isAndroid:a.indexOf("android")>-1,isBlink:function(e){return e.indexOf("chrome/")>-1&&0>e.indexOf("edge/")}(a),get isMediaForcedColors(){return!!o.window.matchMedia&&o.window.matchMedia("(forced-colors: active)").matches},get isMotionReduced(){return!!o.window.matchMedia&&o.window.matchMedia("(prefers-reduced-motion)").matches},features:{isRegExpUnicodePropertySupported:function(){let e=!1;try{e=0==="Ä".search(RegExp("[\\p{L}]","u"))}catch(e){}return e}()}};function c(e){return e.indexOf("macintosh")>-1}function d(e,t,n,i){n=n||function(e,t){return e===t};let o=Array.isArray(e)?e:Array.prototype.slice.call(e),r=Array.isArray(t)?t:Array.prototype.slice.call(t),s=function(e,t,n){let i=u(e,t,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};let o=u(h(e,i),h(t,i),n);return{firstIndex:i,lastIndexOld:e.length-o,lastIndexNew:t.length-o}}(o,r,n);return i?function(e,t){let{firstIndex:n,lastIndexOld:i,lastIndexNew:o}=e;if(-1===n)return Array(t).fill("equal");let r=[];return 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<t&&(r=r.concat(Array(t-o).fill("equal"))),r}(s,r.length):function(e,t){let n=[],{firstIndex:i,lastIndexOld:o,lastIndexNew:r}=t;return r-i>0&&n.push({index:i,type:"insert",values:e.slice(i,r)}),o-i>0&&n.push({index:i+(r-i),type:"delete",howMany:o-i}),n}(r,s)}function u(e,t,n){for(let i=0;i<Math.max(e.length,t.length);i++)if(void 0===e[i]||void 0===t[i]||!n(e[i],t[i]))return i;return -1}function h(e,t){return e.slice(t).reverse()}function g(e,t,n){let i,o;n=n||function(e,t){return e===t};let r=e.length,s=t.length;if(r>200||s>200||r+s>300)return g.fastDiff(e,t,n,!0);if(s<r){let n=e;e=t,t=n,i="delete",o="insert"}else i="insert",o="delete";let a=e.length,l=t.length,c=l-a,d={},u={};function h(r){let s=(void 0!==u[r-1]?u[r-1]:-1)+1,c=void 0!==u[r+1]?u[r+1]:-1,h=s>c?-1:1;d[r+h]&&(d[r]=d[r+h].slice(0)),d[r]||(d[r]=[]),d[r].push(s>c?i:o);let g=Math.max(s,c),m=g-r;for(;m<a&&g<l&&n(e[m],t[g]);)m++,g++,d[r].push("equal");return g}let m,p=0;do{for(m=-p;m<c;m++)u[m]=h(m);for(m=c+p;m>c;m--)u[m]=h(m);u[c]=h(c),p++}while(u[c]!==l);return d[c].slice(1)}g.fastDiff=d;let m=function(){return function e(){e.called=!0}};class p{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=m(),this.off=m()}}let k=Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function f(){let[e,t,n,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+k[255&e]+k[e>>8&255]+k[e>>16&255]+k[e>>24&255]+k[255&t]+k[t>>8&255]+k[t>>16&255]+k[t>>24&255]+k[255&n]+k[n>>8&255]+k[n>>16&255]+k[n>>24&255]+k[255&i]+k[i>>8&255]+k[i>>16&255]+k[i>>24&255]}let b={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function A(e,t){let n=b.get(t.priority);for(let i=0;i<e.length;i++)if(b.get(e[i].priority)<n)return void e.splice(i,0,t);e.push(t)}class w extends Error{constructor(e,t,n){super(function(e,t){let n=new WeakSet,i=t?` ${JSON.stringify(t,(e,t)=>{if("object"==typeof t&&null!==t){if(n.has(t))return`[object ${t.constructor.name}]`;n.add(t)}return t})}`:"",o=v(e);return e+i+o}(e,n)),this.name="CKEditorError",this.context=t,this.data=n}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;let n=new w(e.message,t);throw n.stack=e.stack,n}}function _(e,t){console.warn(...y(e,t))}function C(e,t){console.error(...y(e,t))}function v(e){return` 2Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${e}`}function y(e,t){let n=v(e);return t?[e,t,n]:[e,n]}let x=new Date(2024,10,6);if(globalThis.CKEDITOR_VERSION)throw new w("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="43.3.1";let E=Symbol("listeningTo"),D=Symbol("emitterId"),I=Symbol("delegations"),S=M(Object);function M(e){return e?class extends e{on(e,t,n){this.listenTo(this,e,t,n)}once(e,t,n){let i=!1;this.listenTo(this,e,(e,...n)=>{i||(i=!0,e.off(),t.call(this,e,...n))},n)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,n,i={}){let o,r;this[E]||(this[E]={});let s=this[E];e[D]||B(e);let a=e[D];(o=s[a])||(o=s[a]={emitter:e,callbacks:{}}),(r=o.callbacks[t])||(r=o.callbacks[t]=[]),r.push(n),e._addEventListener?e._addEventListener(t,n,i):this._addEventListener.call(e,t,n,i)}stopListening(e,t,n){let i=this[E],o=e&&e[D],r=i&&o?i[o]:void 0,s=r&&t?r.callbacks[t]:void 0;
2if(!(!i||e&&!r||t&&!s)){if(n)L(this,e,t,n),-1!==s.indexOf(n)&&(1===s.length?delete r.callbacks[t]:L(this,e,t,n));else if(s){for(;n=s.pop();)L(this,e,t,n);delete r.callbacks[t]}else if(r){for(t in r.callbacks)this.stopListening(e,t);delete i[o]}else{for(o in i)this.stopListening(i[o].emitter);delete this[E]}}}fire(e,...t){try{let n=e instanceof p?e:new p(this,e),i=n.name,o=function e(t,n){let i;return t._events&&(i=t._events[n])&&i.callbacks.length?i.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,i);if(n.path.push(this),o){let e=[n,...t];o=Array.from(o);for(let t=0;t<o.length&&(o[t].callback.apply(this,e),n.off.called&&(delete n.off.called,this._removeEventListener(i,o[t].callback)),!n.stop.called);t++);}let r=this[I];if(r){let e=r.get(i),o=r.get("*");e&&P(e,n,t),o&&P(o,n,t)}return n.return}catch(e){w.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,n)=>{this[I]||(this[I]=new Map),e.forEach(e=>{let i=this[I].get(e);i?i.set(t,n):this[I].set(e,new Map([[t,n]]))})}}}stopDelegating(e,t){if(this[I]){if(e){if(t){let n=this[I].get(e);n&&n.delete(t)}else this[I].delete(e)}else this[I].clear()}}_addEventListener(e,t,n){!function(e,t){let n=T(e);if(n[t])return;let i=t,o=null,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(let e of r)e.callbacks=n[i].callbacks.slice();n[i].childEvents.push(o)}}(this,e);let i=N(this,e),o={callback:t,priority:b.get(n.priority)};for(let e of i)A(e,o)}_removeEventListener(e,t){for(let n of N(this,e))for(let e=0;e<n.length;e++)n[e].callback==t&&(n.splice(e,1),e--)}}:S}function B(e,t){e[D]||(e[D]=t||f())}function T(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function N(e,t){let n=T(e)[t];if(!n)return[];let i=[n.callbacks];for(let t=0;t<n.childEvents.length;t++){let o=N(e,n.childEvents[t]);i=i.concat(o)}return i}function P(e,t,n){for(let[i,o]of e){o?"function"==typeof o&&(o=o(t.name)):o=t.name;let e=new p(t.source,o);e.path=[...t.path],i.fire(e,...n)}}function L(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{M[e]=S.prototype[e]});let O=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},z=Symbol("observableProperties"),R=Symbol("boundObservables"),F=Symbol("boundProperties"),j=Symbol("decoratedMethods"),V=Symbol("decoratedOriginal"),H=U(M());function U(e){var t;if(!e)return H;class n extends(t=e){set(e,t){if(O(e))return void Object.keys(e).forEach(t=>{this.set(t,e[t])},this);q(this);let n=this[z];if(e in this&&!n.has(e))throw new w("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>n.get(e),set(t){let i=n.get(e),o=this.fire(`set:${e}`,e,t,i);void 0===o&&(o=t),i===o&&n.has(e)||(n.set(e,o),this.fire(`change:${e}`,e,o,i))}}),this[e]=t}bind(...e){if(!e.length||!K(e))throw new w("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new w("observable-bind-duplicate-properties",this);q(this);let t=this[F];e.forEach(e=>{if(t.has(e))throw new w("observable-bind-rebind",this)});let n=new Map;return e.forEach(e=>{let i={property:e,to:[]};t.set(e,i),n.set(e,i)}),{to:G,toMany:W,_observable:this,_bindProperties:e,_to:[],_bindings:n}}unbind(...e){if(!this[z])return;let t=this[F],n=this[R];if(e.length){if(!K(e))throw new w("observable-unbind-wrong-properties",this);e.forEach(e=>{let i=t.get(e);i&&(i.to.forEach(([e,t])=>{let o=n.get(e),r=o[t];r.delete(i),r.size||delete o[t],Object.keys(o).length||(n.delete(e),this.stopListening(e,"change"))}),t.delete(e))})}else n.forEach((e,t)=>{this.stopListening(t,"change")}),n.clear(),t.clear()}decorate(e){q(this);let t=this[e];if(!t)throw new w("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(e,n)=>{e.return=t.apply(this,n)}),this[e]=function(...t){return this.fire(e,t)},this[e][V]=t,this[j]||(this[j]=[]),this[j].push(e)}stopListening(e,t,n){if(!e&&this[j]){for(let e of this[j])this[e]=this[e][V];delete this[j]}super.stopListening(e,t,n)}}return n}function q(e){e[z]||(Object.defineProperty(e,z,{value:new Map}),Object.defineProperty(e,R,{value:new Map}),Object.defineProperty(e,F,{value:new Map}))}function G(...e){var t;let n=function(...e){let t;if(!e.length)throw new w("observable-bind-to-parse-error",null);let n={to:[]};return"function"==typeof e[e.length-1]&&(n.callback=e.pop()),e.forEach(e
2=>{if("string"==typeof e)t.properties.push(e);else{if("object"!=typeof e)throw new w("observable-bind-to-parse-error",null);t={observable:e,properties:[]},n.to.push(t)}}),n}(...e),i=Array.from(this._bindings.keys()),o=i.length;if(!n.callback&&n.to.length>1)throw new w("observable-bind-to-no-callback",this);if(o>1&&n.callback)throw new w("observable-bind-to-extra-callback",this);n.to.forEach(e=>{if(e.properties.length&&e.properties.length!==o)throw new w("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)}),this._to=n.to,n.callback&&(this._bindings.get(i[0]).callback=n.callback),t=this._observable,this._to.forEach(e=>{let n;let i=t[R];i.get(e.observable)||t.listenTo(e.observable,"change",(o,r)=>{(n=i.get(e.observable)[r])&&n.forEach(e=>{$(t,e.property)})})}),function(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([o.observable,t]),function(e,t,n,i){let o=e[R],r=o.get(n),s=r||{};s[i]||(s[i]=new Set),s[i].add(t),r||o.set(n,s)}(e._observable,n,o.observable,t)})})}(this),this._bindProperties.forEach(e=>{$(this._observable,e)})}function W(e,t,n){if(this._bindings.size>1)throw new w("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){let n=e.map(e=>[e,t]);return Array.prototype.concat.apply([],n)}(e,t),n)}function K(e){return e.every(e=>"string"==typeof e)}function $(e,t){let n;let i=e[F].get(t);n=i.callback?i.callback.apply(e,i.to.map(e=>e[0][e[1]])):(n=i.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{U[e]=H.prototype[e]});class Y{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach(({element:e,newElement:t})=>{e.style.display="",t&&t.remove()}),this._replacedElements=[]}}function Q(e){let t=0;for(let n of e)t++;return t}function Z(e,t){let n=Math.min(e.length,t.length);for(let i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function J(e){return!(!e||!e[Symbol.iterator])}let X="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var ee="object"==typeof self&&self&&self.Object===Object&&self;let et=X||ee||Function("return this")(),en=et.Symbol;var ei=Object.prototype,eo=ei.hasOwnProperty,er=ei.toString,es=en?en.toStringTag:void 0;let ea=function(e){var t=eo.call(e,es),n=e[es];try{e[es]=void 0;var i=!0}catch(e){}var o=er.call(e);return i&&(t?e[es]=n:delete e[es]),o};var el=Object.prototype.toString,ec=en?en.toStringTag:void 0;let ed=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ec&&ec in Object(e)?ea(e):el.call(e)},eu=Array.isArray,eh=function(e){return null!=e&&"object"==typeof e},eg=function(e){return"string"==typeof e||!eu(e)&&eh(e)&&"[object String]"==ed(e)};function em(e,t,n={},i=[]){let o=n&&n.xmlns,r=o?e.createElementNS(o,t):e.createElement(t);for(let e in n)r.setAttribute(e,n[e]);for(let t of(!eg(i)&&J(i)||(i=[i]),i))eg(t)&&(t=e.createTextNode(t)),r.appendChild(t);return r}let ep=function(e,t){return function(n){return e(t(n))}},ek=ep(Object.getPrototypeOf,Object);var ef=Object.prototype,eb=Function.prototype.toString,eA=ef.hasOwnProperty,ew=eb.call(Object);let e_=function(e){if(!eh(e)||"[object Object]"!=ed(e))return!1;var t=ek(e);if(null===t)return!0;var n=eA.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&eb.call(n)==ew},eC=function(e,t){return e===t||e!=e&&t!=t},ev=function(e,t){for(var n=e.length;n--;)if(eC(e[n][0],t))return n;return -1};var ey=Array.prototype.splice;function ex(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ex.prototype.clear=function(){this.__data__=[],this.size=0},ex.prototype.delete=function(e){var t=this.__data__,n=ev(t,e);return!(n<0)&&(n==t.length-1?t.pop():ey.call(t,n,1),--this.size,!0)},ex.prototype.get=function(e){var t=this.__data__,n=ev(t,e);return n<0?void 0:t[n][1]},ex.prototype.has=function(e){return ev(this.__data__,e)>-1},ex.prototype.set=function(e,t){var n=this.__data__,i=ev(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};let eE=function(e){if(!O(e))return!1;var t=ed(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},eD=et["__core-js_shared__"];var eI=function(){var e=/[^.]+$/.exec(eD&&eD.keys&&eD.keys.IE_PROTO||"");
2return e?"Symbol(src)_1."+e:""}(),eS=Function.prototype.toString;let eM=function(e){if(null!=e){try{return eS.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var eB=/^\[object .+?Constructor\]$/,eT=Object.prototype,eN=Function.prototype.toString,eP=eT.hasOwnProperty,eL=RegExp("^"+eN.call(eP).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let eO=function(e,t){var n,i=null==e?void 0:e[t];return!(!O(n=i)||eI&&eI in n)&&(eE(n)?eL:eB).test(eM(n))?i:void 0},ez=eO(et,"Map"),eR=eO(Object,"create");var eF=Object.prototype.hasOwnProperty,ej=Object.prototype.hasOwnProperty;function eV(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}eV.prototype.clear=function(){this.__data__=eR?eR(null):{},this.size=0},eV.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eV.prototype.get=function(e){var t=this.__data__;if(eR){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eF.call(t,e)?t[e]:void 0},eV.prototype.has=function(e){var t=this.__data__;return eR?void 0!==t[e]:ej.call(t,e)},eV.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=eR&&void 0===t?"__lodash_hash_undefined__":t,this};let eH=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eU=function(e,t){var n=e.__data__;return eH(t)?n["string"==typeof t?"string":"hash"]:n.map};function eq(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function eG(e){var t=this.__data__=new ex(e);this.size=t.size}eq.prototype.clear=function(){this.size=0,this.__data__={hash:new eV,map:new(ez||ex),string:new eV}},eq.prototype.delete=function(e){var t=eU(this,e).delete(e);return this.size-=t?1:0,t},eq.prototype.get=function(e){return eU(this,e).get(e)},eq.prototype.has=function(e){return eU(this,e).has(e)},eq.prototype.set=function(e,t){var n=eU(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},eG.prototype.clear=function(){this.__data__=new ex,this.size=0},eG.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eG.prototype.get=function(e){return this.__data__.get(e)},eG.prototype.has=function(e){return this.__data__.has(e)},eG.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ex){var i=n.__data__;if(!ez||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new eq(i)}return n.set(e,t),this.size=n.size,this};let eW=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},eK=function(){try{var e=eO(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),e$=function(e,t,n){"__proto__"==t&&eK?eK(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var eY=Object.prototype.hasOwnProperty;let eQ=function(e,t,n){var i=e[t];eY.call(e,t)&&eC(i,n)&&(void 0!==n||t in e)||e$(e,t,n)},eZ=function(e,t,n,i){var o=!n;n||(n={});for(var r=-1,s=t.length;++r<s;){var a=t[r],l=i?i(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),o?e$(n,a,l):eQ(n,a,l)}return n},eJ=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},eX=function(e){return eh(e)&&"[object Arguments]"==ed(e)};var e0=Object.prototype,e1=e0.hasOwnProperty,e2=e0.propertyIsEnumerable;let e5=eX(function(){return arguments}())?eX:function(e){return eh(e)&&e1.call(e,"callee")&&!e2.call(e,"callee")};var e4=t&&!t.nodeType&&t,e3=e4&&e&&!e.nodeType&&e,e6=e3&&e3.exports===e4?et.Buffer:void 0;let e7=(e6?e6.isBuffer:void 0)||function(){return!1};var e9=/^(?:0|[1-9]\d*)$/;let e8=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&e9.test(e))&&e>-1&&e%1==0&&e<t},te=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var tt={};tt["[object Float32Array]"]=tt["[object Float64Array]"]=tt["[object Int8Array]"]=tt["[object Int16Array]"]=tt["[object Int32Array]"]=tt["[object Uint8Array]"]=tt["[object Uint8ClampedArray]"]=tt["[object Uint16Array]"]=tt["[object Uint32Array]"]=!0,tt["[object Arguments]"]=tt["[object Array]"]=tt["[object ArrayBuffer]"]=tt["[object Boolean]"]=tt["[object DataView]"]=tt["[object Date]"]=tt["[object Error]"]=tt["[object Function]"]=tt["[object Map]"]=tt["[object Number]"]=tt["[object Object]"]=tt["[object RegExp]"]=tt["[object Set]"]=tt["[object String]"]=tt["[object WeakMap]"]=!1;let tn=function(e){return function(t){return e(t)}};var ti=t&&!t.nodeType&&t,to=ti&&e&&!e.nodeType&&e,tr=to&&to.exports===ti&&X.process;let ts=function(){try{return to&&to.require&&to.require("util").t
2ypes||tr&&tr.binding&&tr.binding("util")}catch(e){}}();var ta=ts&&ts.isTypedArray;let tl=ta?tn(ta):function(e){return eh(e)&&te(e.length)&&!!tt[ed(e)]};var tc=Object.prototype.hasOwnProperty;let td=function(e,t){var n=eu(e),i=!n&&e5(e),o=!n&&!i&&e7(e),r=!n&&!i&&!o&&tl(e),s=n||i||o||r,a=s?eJ(e.length,String):[],l=a.length;for(var c in e)!t&&!tc.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||e8(c,l))||a.push(c);return a};var tu=Object.prototype;let th=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tu)},tg=ep(Object.keys,Object);var tm=Object.prototype.hasOwnProperty;let tp=function(e){if(!th(e))return tg(e);var t=[];for(var n in Object(e))tm.call(e,n)&&"constructor"!=n&&t.push(n);return t},tk=function(e){return null!=e&&te(e.length)&&!eE(e)},tf=function(e){return tk(e)?td(e):tp(e)},tb=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var tA=Object.prototype.hasOwnProperty;let tw=function(e){if(!O(e))return tb(e);var t=th(e),n=[];for(var i in e)("constructor"!=i||!t&&tA.call(e,i))&&n.push(i);return n},t_=function(e){return tk(e)?td(e,!0):tw(e)};var tC=t&&!t.nodeType&&t,tv=tC&&e&&!e.nodeType&&e,ty=tv&&tv.exports===tC?et.Buffer:void 0,tx=ty?ty.allocUnsafe:void 0;let tE=function(e,t){if(t)return e.slice();var n=e.length,i=tx?tx(n):new e.constructor(n);return e.copy(i),i},tD=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},tI=function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[o++]=s)}return r},tS=function(){return[]};var tM=Object.prototype.propertyIsEnumerable,tB=Object.getOwnPropertySymbols;let tT=tB?function(e){return null==e?[]:tI(tB(e=Object(e)),function(t){return tM.call(e,t)})}:tS,tN=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e},tP=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)tN(t,tT(e)),e=ek(e);return t}:tS,tL=function(e,t,n){var i=t(e);return eu(e)?i:tN(i,n(e))},tO=function(e){return tL(e,tf,tT)},tz=eO(et,"DataView"),tR=eO(et,"Promise"),tF=eO(et,"Set"),tj=eO(et,"WeakMap");var tV="[object Map]",tH="[object Promise]",tU="[object Set]",tq="[object WeakMap]",tG="[object DataView]",tW=eM(tz),tK=eM(ez),t$=eM(tR),tY=eM(tF),tQ=eM(tj),tZ=ed;(tz&&tZ(new tz(new ArrayBuffer(1)))!=tG||ez&&tZ(new ez)!=tV||tR&&tZ(tR.resolve())!=tH||tF&&tZ(new tF)!=tU||tj&&tZ(new tj)!=tq)&&(tZ=function(e){var t=ed(e),n="[object Object]"==t?e.constructor:void 0,i=n?eM(n):"";if(i)switch(i){case tW:return tG;case tK:return tV;case t$:return tH;case tY:return tU;case tQ:return tq}return t});let tJ=tZ;var tX=Object.prototype.hasOwnProperty;let t0=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tX.call(e,"index")&&(n.index=e.index,n.input=e.input),n},t1=et.Uint8Array,t2=function(e){var t=new e.constructor(e.byteLength);return new t1(t).set(new t1(e)),t},t5=function(e,t){var n=t?t2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var t4=/\w*$/;let t3=function(e){var t=new e.constructor(e.source,t4.exec(e));return t.lastIndex=e.lastIndex,t};var t6=en?en.prototype:void 0,t7=t6?t6.valueOf:void 0;let t9=function(e,t){var n=t?t2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},t8=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return t2(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return t5(e,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 t9(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return t3(e);case"[object Symbol]":return t7?Object(t7.call(e)):{}}};var ne=Object.create;let nt=function(){function e(){}return function(t){if(!O(t))return{};if(ne)return ne(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nn=function(e){return"function"!=typeof e.constructor||th(e)?{}:nt(ek(e))};var ni=ts&&ts.isMap;let no=ni?tn(ni):function(e){return eh(e)&&"[object Map]"==tJ(e)};var nr=ts&&ts.isSet;let ns=nr?tn(nr):function(e){return eh(e)&&"[object Set]"==tJ(e)};var na="[object Arguments]",nl="[object Function]",nc="[object Object]",nd={};nd[na]=nd["[object Array]"]=nd["[object ArrayBuffer]"]=nd["[object DataView]"]=nd["[object Boolean]"]=nd["[object Date]"]=nd["[object Float32Array]"]=nd["[object Float64Array
2]"]=nd["[object Int8Array]"]=nd["[object Int16Array]"]=nd["[object Int32Array]"]=nd["[object Map]"]=nd["[object Number]"]=nd[nc]=nd["[object RegExp]"]=nd["[object Set]"]=nd["[object String]"]=nd["[object Symbol]"]=nd["[object Uint8Array]"]=nd["[object Uint8ClampedArray]"]=nd["[object Uint16Array]"]=nd["[object Uint32Array]"]=!0,nd["[object Error]"]=nd[nl]=nd["[object WeakMap]"]=!1;let nu=function e(t,n,i,o,r,s){var a,l=1&n,c=2&n,d=4&n;if(i&&(a=r?i(t,o,r,s):i(t)),void 0!==a)return a;if(!O(t))return t;var u=eu(t);if(u){if(a=t0(t),!l)return tD(t,a)}else{var h,g,m,p,k=tJ(t),f=k==nl||"[object GeneratorFunction]"==k;if(e7(t))return tE(t,l);if(k==nc||k==na||f&&!r){if(a=c||f?{}:nn(t),!l)return c?(g=(h=a)&&eZ(t,t_(t),h),eZ(t,tP(t),g)):(p=(m=a)&&eZ(t,tf(t),m),eZ(t,tT(t),p))}else{if(!nd[k])return r?t:{};a=t8(t,k,l)}}s||(s=new eG);var b=s.get(t);if(b)return b;s.set(t,a),ns(t)?t.forEach(function(o){a.add(e(o,n,i,o,t,s))}):no(t)&&t.forEach(function(o,r){a.set(r,e(o,n,i,r,t,s))});var A=u?void 0:(d?c?function(e){return tL(e,t_,tP)}:tO:c?t_:tf)(t);return eW(A||t,function(o,r){A&&(o=t[r=o]),eQ(a,r,e(o,n,i,r,t,s))}),a},nh=function(e,t){return nu(e,5,t="function"==typeof t?t:void 0)},ng=function(e){return eh(e)&&1===e.nodeType&&!e_(e)};
2class nm{constructor(e,t){this._config=Object.create(null),t&&this.define(nh(t,np)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(let e of Object.keys(this._config))yield e}_setToTarget(e,t,n,i=!1){if(e_(t))return void this._setObjectToTarget(e,t,i);let o=t.split(".");for(let n of(t=o.pop(),o))e_(e[n])||(e[n]=Object.create(null)),e=e[n];if(e_(n))return e_(e[t])||(e[t]=Object.create(null)),e=e[t],void this._setObjectToTarget(e,n,i);i&&void 0!==e[t]||(e[t]=n)}_getFromSource(e,t){let n=t.split(".");for(let i of(t=n.pop(),n)){if(!e_(e[i])){e=null;break}e=e[i]}return e?nh(e[t],np):void 0}_setObjectToTarget(e,t,n){Object.keys(t).forEach(i=>{this._setToTarget(e,i,t[i],n)})}}function np(e){return ng(e)||"function"==typeof e?e:void 0}function nk(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function nf(e){let t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}let nb=nA(M());function nA(e){return e?class extends e{listenTo(e,t,n,i={}){if(nk(e)||nf(e)){let o={capture:!!i.useCapture,passive:!!i.usePassive},r=this._getProxyEmitter(e,o)||new nw(e,o);this.listenTo(r,t,n,i)}else super.listenTo(e,t,n,i)}stopListening(e,t,n){if(nk(e)||nf(e))for(let i of this._getAllProxyEmitters(e))this.stopListening(i,t,n);else super.stopListening(e,t,n)}_getProxyEmitter(e,t){return function(e,t){let n=e[E];return n&&n[t]?n[t].emitter:null}(this,n_(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(t=>this._getProxyEmitter(e,t)).filter(e=>!!e)}}:nb}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{nA[e]=nb.prototype[e]});class nw extends M(){constructor(e,t){super(),B(this,n_(e,t)),this._domNode=e,this._options=t}attach(e){if(this._domListeners&&this._domListeners[e])return;let t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,n){this.attach(e),M().prototype._addEventListener.call(this,e,t,n)}_removeEventListener(e,t){M().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){let t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function n_(e,t){let n=e["data-ck-expando"]||(e["data-ck-expando"]=f());for(let e of Object.keys(t).sort())t[e]&&(n+="-"+e);return n}function nC(e){let t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function nv(e){if(!e.target)return null;let t=e.target.ownerDocument,n=e.clientX,i=e.clientY,o=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(n,i)?o=t.caretRangeFromPoint(n,i):e.rangeParent&&((o=t.createRange()).setStart(e.rangeParent,e.rangeOffset),o.collapse(!0)),o}function ny(e){return"[object Text]"==Object.prototype.toString.call(e)}function nx(e){return"[object Range]"==Object.prototype.toString.apply(e)}function nE(e){return e&&e.parentNode?e.offsetParent===o.document.body?null:e.offsetParent:null}let nD=["top","right","bottom","left","width","height"];class nI{constructor(e){let t=nx(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),nB(e)||t){if(t){let t=nI.getDomRangeRects(e);nS(this,nI.getBoundingRect(t))}else nS(this,e.getBoundingClientRect())}else if(nf(e)){let{innerWidth:t,innerHeight:n}=e;nS(this,{top:0,right:t,bottom:n,left:0,width:t,height:n})}else nS(this,e)}clone(){return new nI(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){let t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};if(t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0)return null;{let e=new nI(t);return e._source=this._source,e}}getIntersectionArea(e){let t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){var e;let t=this._source,n=this.clone();if(nM(t))return n;let i,o=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!nM(r);){let t="visible"===((e=r)instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).overflow:"visible");o instanceof HTMLElement&&"absolute"===nT(o)&&(i=o);let s=nT(r);if(t||i&&("relative"===s&&t||"relative"!==s)){o=r,r=r.parentNode;continue}let a=new nI(r),l=n.getIntersection(a);if(!l)return null;l.getArea()<n.getArea()&&(n=l),o=r,r=r.parentNode}return n}isEqual(e){for(let t of nD)if(this[t]!==e[t])return!1;return!0}contains(e){let t=this.getIntersection(e);return!(!t||!t.isEqual(e))}toAbsoluteRect(){let{scrollX:e,scrollY:t}=o.window,n=this.clone().moveBy(e,t);if(nB(n._source)){let e=nE(n._source);e&&function(e,t){let n=new nI(t),i=nC(t),o,r=0;o=0-n.left,r-=n.top,o+=t.scrollLeft,r+=t.scrollTop,o-=i.left,r-=i.top,e.moveBy(o,r)}(n,e)}return n}excludeScrollbarsAndBorders(){let e,t,n;let i=this._source;if(nf(i))e=i.innerWidth-i.document.documentElement.clientWidth,t=i.innerHeight-i.document.documentElement.clientHeight,n=i.getComputedStyle(i.document.documentElement).direction;else{let o=nC(i);e=i.offsetWidth-i.clientWidth-o.left-o.right,t=i.offsetHeight-i.clientHeight-o.top-o.bottom,n=i.ownerDocument.defaultView.getComputedStyle(i).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"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}static getDomRangeRects(e){let t=[],n=Array.from(e.getClientRects());if(n.length)for(let e of n)t.push(new nI(e));else{let n=e.startContainer;ny(n)&&(n=n.parentNode);let i=new nI(n.getBoundingClientRect());i.right=i.left,i.width=0,t.push(i)}return t}
2static getBoundingRect(e){let t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0},n=0;for(let i of e)n++,t.left=Math.min(t.left,i.left),t.top=Math.min(t.top,i.top),t.right=Math.max(t.right,i.right),t.bottom=Math.max(t.bottom,i.bottom);return 0==n?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new nI(t))}}function nS(e,t){for(let n of nD)e[n]=t[n]}function nM(e){return!!nB(e)&&e===e.ownerDocument.body}function nB(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect}function nT(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).position:"static"}class nN{static{this._observerInstance=null}static{this._elementCallbacks=null}constructor(e,t){nN._observerInstance||nN._createObserver(),this._element=e,this._callback=t,nN._addElementCallback(e,t),nN._observerInstance.observe(e)}get element(){return this._element}destroy(){nN._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){nN._elementCallbacks||(nN._elementCallbacks=new Map);let n=nN._elementCallbacks.get(e);n||(n=new Set,nN._elementCallbacks.set(e,n)),n.add(t)}static _deleteElementCallback(e,t){let n=nN._getElementCallbacks(e);n&&(n.delete(t),n.size||(nN._elementCallbacks.delete(e),nN._observerInstance.unobserve(e))),nN._elementCallbacks&&!nN._elementCallbacks.size&&(nN._observerInstance=null,nN._elementCallbacks=null)}static _getElementCallbacks(e){return nN._elementCallbacks?nN._elementCallbacks.get(e):null}static _createObserver(){nN._observerInstance=new o.window.ResizeObserver(e=>{for(let t of e){let e=nN._getElementCallbacks(t.target);if(e)for(let n of e)n(t)}})}}function nP(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function nL(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function nO(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function nz(e){return e&&e.nodeType===Node.COMMENT_NODE}function nR(e){return!!e&&(ny(e)?nR(e.parentElement):!!e.getClientRects&&!!e.getClientRects().length)}function nF({element:e,target:t,positions:n,limiter:i,fitInViewport:r,viewportOffsetConfig:s}){let a;eE(t)&&(t=t()),eE(i)&&(i=i());let l=nE(e),c=function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);let t=new nI(o.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}(s),d=new nI(e),u=nj(t,c);if(!u||!c.getIntersection(u))return null;let h={targetRect:u,elementRect:d,positionedElementAncestor:l,viewportRect:c};if(i||r){if(i){let e=nj(i,c);e&&(h.limiterRect=e)}a=function(e,t){let{elementRect:n}=t,i=n.getArea(),o=e.map(e=>new nV(e,t)).filter(e=>!!e.name),r=0,s=null;for(let e of o){let{limiterIntersectionArea:t,viewportIntersectionArea:n}=e;if(t===i)return e;let o=n**2+t**2;o>r&&(r=o,s=e)}return s}(n,h)}else a=new nV(n[0],h);return a}function nj(e,t){let n=new nI(e).getVisible();return n?n.getIntersection(t):null}class nV{constructor(e,t){let n=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!n)return;let{left:i,top:o,name:r,config:s}=n;this.name=r,this.config=s,this._positioningFunctionCoordinates={left:i,top:o},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){let e=this._options.limiterRect;return e?e.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 nH(e){let t=e.parentNode;t&&t.removeChild(e)}function nU(e,t){return e.bottom>t.bottom}function nq(e,t){return e.right>t.right}function nG(e){return nx(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function nW(e,t){let n=nG(e),i=new nI(e);if(n===t)return i;{let e=n;for(;e!=t;){let t=new nI(e.frameElement).excludeScrollbarsAndBorders();i.moveBy(t.left,t.top),e=e.parent}}return i}let nK={ctrl:"â",cmd:"â",alt:"â¥",shift:"â§"},n$={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},nY={37:"â",38:"â",39:"â",40:"â",9:"â¥",33:"Page Up",34:"Page Down"},nQ=function(){let e={pageup:33,pagedown:34,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;return Object.assign(e,{"'":222,",":108,"-":109,".":110,"/":111,";
2":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),e}(),nZ=Object.fromEntries(Object.entries(nQ).map(([e,t])=>{let n;return n=t in nY?nY[t]:e.charAt(0).toUpperCase()+e.slice(1),[t,n]}));function nJ(e){let t;if("string"==typeof e){if(!(t=nQ[e.toLowerCase()]))throw new w("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?nQ.alt:0)+(e.ctrlKey?nQ.ctrl:0)+(e.shiftKey?nQ.shift:0)+(e.metaKey?nQ.cmd:0);return t}function nX(e){return"string"==typeof e&&(e=e.split("+").map(e=>e.trim())),e.map(e=>"string"==typeof e?function(e){if(e.endsWith("!"))return nJ(e.slice(0,-1));let t=nJ(e);return(l.isMac||l.isiOS)&&t==nQ.ctrl?nQ.cmd:t}(e):e).reduce((e,t)=>t+e,0)}function n0(e){let t=nX(e);return Object.entries(l.isMac||l.isiOS?nK:n$).reduce((e,[n,i])=>(t&nQ[n]&&(t&=~nQ[n],e+=i),e),"")+(t?nZ[t]:"")}function n1(e,t){let n="ltr"===t;switch(e){case nQ.arrowleft:return n?"left":"right";case nQ.arrowright:return n?"right":"left";case nQ.arrowup:return"up";case nQ.arrowdown:return"down"}}function n2(e){return Array.isArray(e)?e:[e]}let n5=function(e,t,n){(void 0===n||eC(e[t],n))&&(void 0!==n||t in e)||e$(e,t,n)},n4=function(e,t,n){for(var i=-1,o=Object(e),r=n(e),s=r.length;s--;){var a=r[++i];if(!1===t(o[a],a,o))break}return e},n3=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},n6=function(e,t,n,i,o,r,s){var a=n3(e,n),l=n3(t,n),c=s.get(l);if(c)n5(e,n,c);else{var d=r?r(a,l,n+"",e,t,s):void 0,u=void 0===d;if(u){var h=eu(l),g=!h&&e7(l),m=!h&&!g&&tl(l);d=l,h||g||m?eu(a)?d=a:eh(a)&&tk(a)?d=tD(a):g?(u=!1,d=tE(l,!0)):m?(u=!1,d=t9(l,!0)):d=[]:e_(l)||e5(l)?(d=a,e5(a)?d=eZ(a,t_(a)):O(a)&&!eE(a)||(d=nn(l))):u=!1}u&&(s.set(l,d),o(d,l,i,r,s),s.delete(l)),n5(e,n,d)}},n7=function e(t,n,i,o,r){t!==n&&n4(n,function(s,a){if(r||(r=new eG),O(s))n6(t,n,a,i,e,o,r);else{var l=o?o(n3(t,a),s,a+"",t,n,r):void 0;void 0===l&&(l=s),n5(t,a,l)}},t_)},n9=function(e){return e},n8=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var ie=Math.max,it=Date.now;let ii=function(e){var t=0,n=0;return function(){var i=it(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(eK?function(e,t){return eK(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:n9),io=function(e,t){var n;return ii((n=ie(void 0===(n=t)?e.length-1:n,0),function(){for(var t=arguments,i=-1,o=ie(t.length-n,0),r=Array(o);++i<o;)r[i]=t[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=t[i];return s[n]=n9(r),n8(e,this,s)}),e+"")},ir=function(e,t,n){if(!O(n))return!1;var i=typeof t;return!!("number"==i?tk(n)&&e8(t,n.length):"string"==i&&t in n)&&eC(n[t],e)},is=function(e){return io(function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,s&&ir(n[0],n[1],s)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var a=n[i];a&&e(t,a,i,r)}return t})},ia=is(function(e,t,n){n7(e,t,n)});o.window.CKEDITOR_TRANSLATIONS||(o.window.CKEDITOR_TRANSLATIONS={});let il=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function ic(e){return il.includes(e)?"rtl":"ltr"}class id{constructor({uiLanguage:e="en",contentLanguage:t,translations:n}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=ic(this.uiLanguage),this.contentLanguageDirection=ic(this.contentLanguage),this.translations=function(e){return Array.isArray(e)?e.reduce((e,t)=>ia(e,t)):e}(n),this.t=(e,t)=>this._t(e,t)}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(e,t=[]){var n,i;t=n2(t),"string"==typeof e&&(e={string:e});let r=e.plural?t[0]:1;return n=function(e,t,n=1,i){var r;if("number"!=typeof n)throw new w("translation-service-quantity-not-a-number",null,{quantity:n});let s=i||o.window.CKEDITOR_TRANSLATIONS,a=Object.keys(s).length;1===a&&(e=Object.keys(s)[0]);let l=t.id||t.string;if(0===a||!s[r=e]||!s[r].dictionary[l])return 1!==n?t.plural:t.string;
2let c=s[e].dictionary,d=s[e].getPluralForm||(e=>1===e?0:1),u=c[l];return"string"==typeof u?u:u[Number(d(n))]}(this.uiLanguage,e,r,this.translations),i=t,n.replace(/%(\d+)/g,(e,t)=>t<i.length?i[t]:e)}}class iu extends M(){constructor(e={},t={}){super();let n=J(e);if(n||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(let t of e)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new w("collection-add-item-invalid-index",this);let n=0;for(let i of e){let e=this._getItemIdBeforeAdding(i),o=t+n;this._items.splice(o,0,i),this._itemMap.set(e,i),this.fire("add",i,o),n++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new w("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{let t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return(t="string"==typeof e?this._itemMap.get(e):e)?this._items.indexOf(t):-1}remove(e){let[t,n]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:n}),t}map(e,t){return this._items.map(e,t)}forEach(e,t){this._items.forEach(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);let e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new w("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding(t=>new e(t))},using:e=>{"function"==typeof e?this._setUpBindToBinding(e):this._setUpBindToBinding(t=>t[e])}}}_setUpBindToBinding(e){let t=this._bindToCollection,n=(n,i,o)=>{let r=t._bindToCollection==this,s=t._bindToInternalToExternalMap.get(i);if(r&&s)this._bindToExternalToInternalMap.set(i,s),this._bindToInternalToExternalMap.set(s,i);else{let n=e(i);if(!n)return void this._skippedIndexesFromExternal.push(o);let r=o;for(let e of this._skippedIndexesFromExternal)o>e&&r--;for(let e of t._skippedIndexesFromExternal)r>=e&&r++;this._bindToExternalToInternalMap.set(i,n),this._bindToInternalToExternalMap.set(n,i),this.add(n,r);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)r<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(let e of t)n(0,e,t.getIndex(e));this.listenTo(t,"add",n),this.listenTo(t,"remove",(e,t,n)=>{let i=this._bindToExternalToInternalMap.get(t);i&&this.remove(i),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>(n<t&&e.push(t-1),n>t&&e.push(t),e),[])})}_getItemIdBeforeAdding(e){let t;let n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new w("collection-add-invalid-id",this);if(this.get(t))throw new w("collection-add-item-already-exists",this)}else e[n]=t=f();return t}_remove(e){let t,n,i,o=!1,r=this._idProperty;if("string"==typeof e?(n=e,o=!(i=this._itemMap.get(n)),i&&(t=this._items.indexOf(i))):"number"==typeof e?(t=e,o=!(i=this._items[t]),i&&(n=i[r])):(n=(i=e)[r],o=-1==(t=this._items.indexOf(i))||!this._itemMap.get(n)),o)throw new w("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);let s=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(s),this.fire("remove",i,t),[i,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function ih(e){let t=e.next();return t.done?null:t.value}class ig extends nA(U()){constructor(){super(),this._elements=new Set,this._externalViews=new Set,this._blurTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(e){if(ng(e))this._addElement(e);else if(im(e))this._addView(e);else{if(!e.element)throw new w("focustracker-add-view-missing-element",{focusTracker:this,view:e});this._addElement(e.element)}}remove(e){ng(e)?this._removeElement(e):im(e)?this._removeView(e):this._removeElement(e.element)}_addElement(e){if(this._elements.has(e))throw new w("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>{let t=this.externalViews.find(t=>!!ip(e,t)||!!t.focusTracker.externalViews.find(t=>ip(e,t)));t?this._focus(t.element):this._focus(e)},{useCapture:!0}),this.listenTo(e,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(e)}_removeElement(e){this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e)),e===this.focusedElement&&this._blur()}_addView(e){e.element&&this._addElement(e.element),this.listenTo(e.focusTracker,"change:focusedElement",()=>{e.focusTracker.focusedElement?e.element&&this._focus(e.element):this._blur()}),this._externalViews.add(e)}_removeView(e){e.element&&this._removeElement(e.element),this.stopListening(e.focusTracker),this._externalViews.delete(e)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(e){this._clearBlurTimeout(),this.focusedElement=e,this.isFocused=!0}_blur(){!this.elements.find(e=>e.contains(document.activeElement))&&(this.externalViews.find(e=>
2e.focusTracker.isFocused&&!e.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function im(e){return"focusTracker"in e&&e.focusTracker instanceof ig}function ip(e,t){return!!t.element&&t.element.contains(document.activeElement)&&e.contains(t.element)}class ik{constructor(){this._listener=new(nA())}listenTo(e){this._listener.listenTo(e,"keydown",(e,t)=>{this._listener.fire("_keydown:"+nJ(t),t)})}set(e,t,n={}){let i=nX(e),o=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(e,i)=>{n.filter&&!n.filter(i)||(t(i,()=>{i.preventDefault(),i.stopPropagation(),e.stop()}),e.return=!0)},{priority:o})}press(e){return!!this._listener.fire("_keydown:"+nJ(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}function ib(e){return J(e)?new Map(e):function(e){let t=new Map;for(let n in e)t.set(n,e[n]);return t}(e)}function iA(e,t,n,i){if(Math.max(t.length,e.length)>1e4)return e.slice(0,n).concat(t).concat(e.slice(n+i,e.length));{let o=Array.from(e);return o.splice(n,i,...t),o}}function iw(e,t){let n;function i(...o){i.cancel(),n=setTimeout(()=>e(...o),t)}return i.cancel=()=>{clearTimeout(n)},i}function i_(e,t){var n,i;return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&!!(i=e.charAt(t))&&1==i.length&&/[\udc00-\udfff]/.test(i)}function iC(e,t){var n;return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n)}let iv=function(){let e=/\p{Regional_Indicator}{2}/u.source,t="(?:"+[/\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(e=>e.source).join("|")+")";return RegExp(`${e}|${t}(?:â${t})*`,"ug")}();function iy(e,t){return Array.from(String(e).matchAll(iv)).some(e=>e.index<t&&t<e.index+e[0].length)}class ix extends iu{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(e,t,n)=>{this._renderViewIntoCollectionParent(t,n)}),this.on("remove",(e,t)=>{t.element&&this._parentElement&&t.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){for(let t of(this._parentElement=e,this))this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!e.every(e=>"string"==typeof e))throw new w("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(let n of this)for(let i of e)n.delegate(i).to(t);this.on("add",(n,i)=>{for(let n of e)i.delegate(n).to(t)}),this.on("remove",(n,i)=>{for(let n of e)i.stopDelegating(n,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}class iE extends M(){constructor(e){super(),Object.assign(this,iN(iT(e))),this._isRendered=!1,this._revertData=null}render(){let e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new w("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function* e(t){if(t.children)for(let n of t.children)iz(n)?yield n:iR(n)&&(yield*e(n))}(this)}static bind(e,t){return{to:(n,i)=>new iI({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:i}),if:(n,i,o)=>new iS({observable:e,emitter:t,attribute:n,valueIfTrue:i,callback:o})}}static extend(e,t){if(e._isRendered)throw new w("template-extend-render",[this,e]);(function e(t,n){if(n.attributes&&(t.attributes||(t.attributes={}),iL(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),iL(t.eventListeners,n.eventListeners)),n.text&&t.text.push(...n.text),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new w("ui-template-extend-children-mismatch",t);let i=0;for(let o of n.children)e(t.children[i++],o)}})(e,iN(iT(t)))}_renderNode(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new w("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){var t;let n=e.node;return n?e.revertData.text=n.textContent:n=e.node=document.createTextNode(""),iM(this.text)?this._bindToObservable({schema:this.text,updater:(t=n,{set(e){t.textContent=e},remove(){t.textContent=""}}),data:e}):n.textContent=this.text.join(""),n}_renderAttributes(e){if(!this.attributes)return;let t=e.node,n=e.revertData;for(let i in this.attributes){let o=t.getAttribute(i),r=this.attributes[i];n&&(n.attributes[i]=o);let s=ij(r)?r[0].ns:null;if(iM(r)){let a=ij(r)?r[0].value:r;n&&iV(i)&&a.unshift(o),this._bindToObservable({schema:a,updater:function(e,t,n){return{set(i){e.setAttributeNS(n,t,i)},remove(){e.removeAttributeNS(n,t)}}}(t,i,s),data:e})}else if("style"==i&&"string"!=typeof r[0])this._renderStyleAttribute(r[0],e);else{n&&o&&iV(i)&&r.unshift(o);let e=r.map(e=>e&&e.value||e).reduce((e,t)=>
2e.concat(t),[]).reduce(iP,"");iO(e)||t.setAttributeNS(s,i,e)}}}_renderStyleAttribute(e,t){let n=t.node;for(let i in e){let o=e[i];iM(o)?this._bindToObservable({schema:[o],updater:function(e,t){return{set(n){e.style[t]=n},remove(){e.style[t]=null}}}(n,i),data:t}):n.style[i]=o}}_renderElementChildren(e){let t=e.node,n=e.intoFragment?document.createDocumentFragment():t,i=e.isApplying,o=0;for(let r of this.children)if(iF(r)){if(!i)for(let e of(r.setParent(t),r))n.appendChild(e.element)}else if(iz(r))i||(r.isRendered||r.render(),n.appendChild(r.element));else if(nk(r))n.appendChild(r);else if(i){let t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),r._renderNode({intoFragment:!1,node:n.childNodes[o++],isApplying:!0,revertData:t})}else n.appendChild(r.render());e.intoFragment&&t.appendChild(n)}_setUpListeners(e){if(this.eventListeners)for(let t in this.eventListeners){let n=this.eventListeners[t].map(n=>{let[i,o]=t.split("@");return n.activateDomEventListener(i,o,e)});e.revertData&&e.revertData.bindings.push(n)}}_bindToObservable({schema:e,updater:t,data:n}){let i=n.revertData;iB(e,t,n);let o=e.filter(e=>!iO(e)).filter(e=>e.observable).map(i=>i.activateAttributeListener(e,t,n));i&&i.bindings.push(o)}_revertTemplateFromNode(e,t){for(let e of t.bindings)for(let t of e)t();if(t.text)return void(e.textContent=t.text);for(let n in t.attributes){let i=t.attributes[n];null===i?e.removeAttribute(n):e.setAttribute(n,i)}for(let n=0;n<t.children.length;++n)this._revertTemplateFromNode(e.childNodes[n],t.children[n])}}class iD{constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){let t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,n){let i=()=>iB(e,t,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class iI extends iD{constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,n){let i=(e,n)=>{t&&!n.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,i),()=>{this.emitter.stopListening(n.node,e,i)}}}class iS extends iD{constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!iO(super.getValue(e))&&(this.valueIfTrue||!0)}}function iM(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(iM):e instanceof iD)}function iB(e,t,{node:n}){let i;let o=e.map(e=>e instanceof iD?e.getValue(n):e);iO(i=1==e.length&&e[0]instanceof iS?o[0]:o.reduce(iP,""))?t.remove():t.set(i)}function iT(e){return nh(e,e=>{if(e&&(e instanceof iD||iR(e)||iz(e)||iF(e)))return e})}function iN(e){var t;if("string"==typeof e?e={text:[e]}:e.text&&((t=e).text=n2(t.text)),e.on&&(e.eventListeners=function(e){for(let t in e)e[t]=n2(e[t]);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(let t in e)e[t].value&&(e[t].value=n2(e[t].value)),e[t]=n2(e[t])}(e.attributes);let t=[];if(e.children){if(iF(e.children))t.push(e.children);else for(let n of e.children)iR(n)||iz(n)||nk(n)?t.push(n):t.push(new iE(n))}e.children=t}return e}function iP(e,t){return iO(t)?e:iO(e)?t:`${e} ${t}`}function iL(e,t){for(let n in t)e[n]?e[n].push(...t[n]):e[n]=t[n]}function iO(e){return!e&&0!==e}function iz(e){return e instanceof i0}function iR(e){return e instanceof iE}function iF(e){return e instanceof ix}function ij(e){return O(e[0])&&e[0].ns}function iV(e){return"class"==e||"style"==e}var iH=r(2591),iU=r.n(iH),iq=r(8639),iG=r.n(iq),iW=r(8128),iK=r.n(iW),i$=r(8021),iY=r.n(i$),iQ=r(3051),iZ=r.n(iQ),iJ=r(7676),iX={attributes:{"data-cke":!0}};iX.setAttributes=iY(),iX.insert=iK().bind(null,"head"),iX.domAPI=iG(),iX.insertStyleElement=iZ(),iU()(iJ.A,iX),iJ.A&&iJ.A.locals&&iJ.A.locals;class i0 extends nA(U()){constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new iu,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,n)=>{n.locale=e,n.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=iE.bind(this,this)}createCollection(e){let t=new ix(e);return this._viewCollections.add(t),t}registerChild(e){for(let t of(J(e)||(e=[e]),e))this._unboundChildren.add(t)}deregisterChild(e){for(let t of(J(e)||(e=[e]),e))this._unboundChildren.remove(t)}setTemplate(e){this.template=new iE(e)}extendTemplate(e){iE.extend(this.template,e)}
2render(){if(this.isRendered)throw new w("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(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}function i1({emitter:e,activator:t,callback:n,contextElements:i,listenerOptions:o}){e.listenTo(document,"mousedown",(e,o)=>{if(!t())return;let r="function"==typeof o.composedPath?o.composedPath():[];for(let e of"function"==typeof i?i():i)if(e.contains(o.target)||r.includes(e))return;n()},o)}function i2(e){return class extends e{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...e){super(...e),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function i5({view:e}){e.listenTo(e.element,"submit",(t,n)=>{n.preventDefault(),e.fire("submit")},{useCapture:!0})}class i4 extends U(){constructor(e){super(),this._disableStack=new Set,this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",i3,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",i3),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}function i3(e){e.return=!1,e.stop()}class i6 extends U(){constructor(e){super(),this.editor=e,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(e,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",t=>{if(!this.affectsData)return;let n=e.model.document.selection,i="$graveyard"!=n.getFirstPosition().root.rootName&&e.model.canEditAt(n);(e.isReadOnly||this._isEnabledBasedOnSelection&&!i)&&(t.return=!1,t.stop())},{priority:"highest"}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",i7,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",i7),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function i7(e){e.return=!1,e.stop()}class i9 extends i6{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...e){let t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){A(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){let e=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return e&&e.command}}class i8 extends M(){constructor(e,t=[],n=[]){for(let n of(super(),this._plugins=new Map,this._context=e,this._availablePlugins=new Map,t))n.pluginName&&this._availablePlugins.set(n.pluginName,n);for(let[e,t]of(this._contextPlugins=new Map,n))this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(let e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){let t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new w("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],n=[]){let i=this,o=this._context;(function e(t,n=new Set){t.forEach(t=>{a(t)&&(n.has(t)||(n.add(t),t.pluginName&&!i._availablePlugins.has(t.pluginName)&&i._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,n)))})})(e),u(e);let r=[...function e(t,n=new Set){return t.map(e=>a(e)?e:i._availablePlugins.get(e)).reduce((t,i)=>n.has(i)?t:(n.add(i),i.requires&&(u(i.requires,i),e(i.requires,n).forEac
2h(e=>t.add(e))),t.add(i)),new Set)}(e.filter(e=>!c(e,t)))];!function(e,t){for(let n of t){if("function"!=typeof n)throw new w("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});let t=n.pluginName;if(!t)throw new w("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new w("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});let o=i._availablePlugins.get(t);if(!o)throw new w("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});let r=e.indexOf(o);if(-1===r){if(i._contextPlugins.has(o))return;throw new w("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(o.requires&&o.requires.length)throw new w("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(r,1,n),i._availablePlugins.set(t,n)}}(r,n);let s=r.map(e=>{let t=i._contextPlugins.get(e);return t=t||new e(o),i._add(e,t),t});return h(s,"init").then(()=>h(s,"afterInit")).then(()=>s);function a(e){return"function"==typeof e}function l(e){return a(e)&&!!e.isContextPlugin}function c(e,t){return t.some(t=>t===e||d(e)===t||d(t)===e)}function d(e){return a(e)?e.pluginName||e.name:e}function u(e,n=null){e.map(e=>a(e)?e:i._availablePlugins.get(e)||e).forEach(e=>{(function(e,t){if(!a(e)){if(t)throw new w("plugincollection-soft-required",o,{missingPlugin:e,requiredBy:d(t)});throw new w("plugincollection-plugin-not-found",o,{plugin:e})}})(e,n),function(e,t){if(l(t)&&!l(e))throw new w("plugincollection-context-required",o,{plugin:d(e),requiredBy:d(t)})}(e,n),function(e,n){if(n&&c(e,t))throw new w("plugincollection-required",o,{plugin:d(e),requiredBy:d(n)})}(e,n)})}function h(e,t){return e.reduce((e,n)=>n[t]?i._contextPlugins.has(n)?e:e.then(n[t].bind(n)):e,Promise.resolve())}}destroy(){let e=[];for(let[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);let n=e.pluginName;if(n){if(this._plugins.has(n))throw new w("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}class oe{constructor(e){this._contextOwner=null;let{translations:t,...n}=e||{};this.config=new nm(n,this.constructor.defaultConfig);let i=this.constructor.builtinPlugins;this.config.define("plugins",i),this.plugins=new i8(this,i);let o=this.config.get("language")||{};this.locale=new id({uiLanguage:"string"==typeof o?o:o.ui,contentLanguage:this.config.get("language.content"),translations:t}),this.t=this.locale.t,this.editors=new iu}initPlugins(){let e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(let n of e.concat(t)){if("function"!=typeof n)throw new w("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new w("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new w("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){let e={};for(let t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{let n=new this(e);t(n.initPlugins().then(()=>n))})}}class ot extends U(){constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}var on=r(4098),oi={attributes:{"data-cke":!0}};oi.setAttributes=iY(),oi.insert=iK().bind(null,"head"),oi.domAPI=iG(),oi.insertStyleElement=iZ(),iU()(on.A,oi),on.A&&on.A.locals&&on.A.locals;let oo=new WeakMap,or=!1;function os({view:e,element:t,text:n,isDirectHost:i=!0,keepOnFocus:o=!1}){let r=e.document;function s(n){oo.get(r).set(t,{text:n,isDirectHost:i,keepOnFocus:o,hostElement:i?t:null}),e.change(e=>oa(r,e))}oo.has(r)||(oo.set(r,new Map),r.registerPostFixer(e=>oa(r,e)),r.on("change:isComposing",()=>{e.change(e=>oa(r,e))},{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",(e,t,n)=>{s(n)}),t.placeholder?s(t.placeholder):n&&s(n),n&&(or||_("enableplaceholder-deprecated-text-option"),or=!0)}function oa(e,t){let n=oo.get(e),i=[],o=!1;for(let[e,r]of n)r.isDirectHost&&(i.push(e),ol(t,e,r)&&(o=!0));for(let[e,r]of n){if(r.isDirectHost)continue;let n=function(e){if(e.childCount){let t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}(e);
2n&&(i.includes(n)||(r.hostElement=n,ol(t,e,r)&&(o=!0)))}return o}function ol(e,t,n){let{text:i,isDirectHost:o,hostElement:r}=n,s=!1;return r.getAttribute("data-placeholder")!==i&&(e.setAttribute("data-placeholder",i,r),s=!0),(o||1==t.childCount)&&function(e,t){if(!e.isAttached()||Array.from(e.getChildren()).some(e=>!e.is("uiElement")))return!1;let n=e.document,i=n.selection.anchor;return(!n.isComposing||!i||i.parent!==e)&&(!!t||!n.isFocused||!!i&&i.parent!==e)}(r,n.keepOnFocus)?r.hasClass("ck-placeholder")||(e.addClass("ck-placeholder",r),0)||(s=!0):!r.hasClass("ck-placeholder")||(e.removeClass("ck-placeholder",r),0)||(s=!0),s}class oc{is(){throw Error("is() method is abstract")}}let od=function(e){return nu(e,4)};class ou extends M(oc){constructor(e){super(),this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new w("view-node-not-found-in-parent",this);return e}get nextSibling(){let e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){let e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){let e=[],t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){let t=[],n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){let n=this.getAncestors(t),i=e.getAncestors(t),o=0;for(;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;let t=this.getPath(),n=e.getPath(),i=Z(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire(`change:${e}`,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){let e=od(this);return delete e.parent,e}}ou.prototype.is=function(e){return"node"===e||"view:node"===e};class oh extends ou{constructor(e,t){super(e),this._textData=t}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof oh&&(this===e||this.data===e.data)}_clone(){return new oh(this.document,this.data)}}oh.prototype.is=function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e};class og extends oc{constructor(e,t,n){if(super(),this.textNode=e,t<0||t>e.data.length)throw new w("view-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.data.length)throw new w("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}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(e={}){let t=[],n=e.includeSelf?this.textNode:this.parent;for(;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}og.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};class om{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(let t of e)for(let e of this._patterns){let n=op(t,e);if(n)return{element:t,pattern:e,match:n}}return null}matchAll(...e){let t=[];for(let n of e)for(let e of this._patterns){let i=op(n,e);i&&t.push({element:n,pattern:e,match:i})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;let e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function op(e,t){var n,i;if("function"==typeof t)return t(e);let o={};return t.name&&(o.name=(n=t.name,i=e.name,n instanceof RegExp?!!i.match(n):n===i),!o.name)||t.attributes&&(o.attributes=function(e,t){let n=new Set(t.getAttributeKeys());return e_(e)?(void 0!==e.style&&_("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&_("matcher-pattern-deprecated-attributes-class-key",e)):(n.delete("style"),n.delete("class")),ok(e,n,e=>t.getAttribute(e))}(t.attributes,e),!o.attributes)||t.classes&&(o.classes=ok(t.classes,e.getClassNames(),()=>{}),!o.classes)||t.styles&&(o.styles=ok(t.styles,e.getStyleNames(!0),t=>e.getStyle(t)),!o.styles)?null:o}function ok(e,t,n){let i=Array.isArray(e)?e.map(e=>
2e_(e)?(void 0!==e.key&&void 0!==e.value||_("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0]):e_(e)?Object.entries(e):[[e,!0]],o=Array.from(t),r=[];if(i.forEach(([e,t])=>{o.forEach(i=>{(!0===e||e===i||e instanceof RegExp&&i.match(e))&&function(e,t,n){if(!0===e)return!0;let i=n(t);return e===i||e instanceof RegExp&&!!String(i).match(e)}(t,i,n)&&r.push(i)})}),i.length&&!(r.length<i.length))return r}let of=function(e){return"symbol"==typeof e||eh(e)&&"[object Symbol]"==ed(e)};var ob=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oA=/^\w*$/;let ow=function(e,t){if(eu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!of(e))||oA.test(e)||!ob.test(e)||null!=t&&e in Object(t)};function o_(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=e.apply(this,i);return n.cache=r.set(o,s)||r,s};return n.cache=new(o_.Cache||eq),n}o_.Cache=eq;var oC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ov=/\\(\\)?/g,oy=function(e){var t=o_(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oC,function(e,n,i,o){t.push(i?o.replace(ov,"$1"):n||e)}),t});let ox=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o};var oE=en?en.prototype:void 0,oD=oE?oE.toString:void 0;let oI=function e(t){if("string"==typeof t)return t;if(eu(t))return ox(t,e)+"";if(of(t))return oD?oD.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},oS=function(e){return null==e?"":oI(e)},oM=function(e,t){return eu(e)?e:ow(e,t)?[e]:oy(oS(e))},oB=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},oT=function(e){if("string"==typeof e||of(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},oN=function(e,t){for(var n=0,i=(t=oM(t,e)).length;null!=e&&n<i;)e=e[oT(t[n++])];return n&&n==i?e:void 0},oP=function(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(o);++i<o;)r[i]=e[i+t];return r},oL=function(e,t){var n,i;return t=oM(t,e),null==(n=e,e=(i=t).length<2?n:oN(n,oP(i,0,-1)))||delete e[oT(oB(t))]},oO=function(e,t,n){var i=null==e?void 0:oN(e,t);return void 0===i?n:i},oz=function(e,t,n,i){if(!O(e))return e;for(var o=-1,r=(t=oM(t,e)).length,s=r-1,a=e;null!=a&&++o<r;){var l=oT(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(o!=s){var d=a[l];void 0===(c=i?i(d,l,a):void 0)&&(c=O(d)?d:e8(t[o+1])?[]:{})}eQ(a,l,c),a=a[l]}return e};class oR{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){for(let[t,n]of(this.clear(),function(e){let t=null,n=0,i=0,o=null,r=new Map;if(""===e)return r;";"!=e.charAt(e.length-1)&&(e+=";");for(let s=0;s<e.length;s++){let a=e.charAt(s);if(null===t)switch(a){case":":o||(o=e.substr(n,s-n),i=s+1);break;case'"':case"'":t=a;break;case";":{let t=e.substr(i,s-i);o&&r.set(o.trim(),t.trim()),o=null,n=s+1}}else a===t&&(t=null)}return r}(e)))this._styleProcessor.toNormalizedForm(t,n,this._styles)}has(e){return!this.isEmpty&&Array.isArray(this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e))}set(e,t){if(O(e))for(let[t,n]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,n,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){var t;let n=oj(e);null==(t=this._styles)||oL(t,n),delete this._styles[e],this._cleanEmptyObjectsOnPath(n)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this.getStylesEntries().map(e=>e.join(":")).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!O(this._styles[e]))return this._styles[e];let t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this.getStylesEntries().map(([e])=>e)}clear(){this._styles={}}getStylesEntries(){let e=[];for(let t of Object.keys(this._styles))e.push(...this._styleProcessor.getReducedForm(t,this._styles));return e}_cleanEmptyObjectsOnPath(e){let t=e.split(".");if(!(t.length>1))return;let n=t.splice(0,t.length-1).join("."),i=oO(this._styles,n);i&&(Object.keys(i).length||this.remove(n))}}class oF{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,n){if(O(t))oV(n,oj(e),t);else if(this._normalizers.has(e)){let{path:i,value:o}=this._normalizers.get(e)(t);oV(n,i,o)}else oV(n,e,t)}getNormalized(e,t){if(!e)return ia({},t);if(void 0!==t[e])return t[e];
2if(this._extractors.has(e)){let n=this._extractors.get(e);if("string"==typeof n)return oO(t,n);let i=n(e,t);if(i)return i}return oO(t,oj(e))}getReducedForm(e,t){let n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}getStyleNames(e){let t=new Set;for(let n of this._consumables.keys()){let i=this.getNormalized(n,e);i&&("object"!=typeof i||Object.keys(i).length)&&t.add(n)}for(let n of Object.keys(e))t.add(n);return Array.from(t)}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){for(let n of(this._mapStyleNames(e,t),t))this._mapStyleNames(n,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function oj(e){return e.replace("-",".")}function oV(e,t,n){var i;let o=n;O(n)&&(o=ia({},oO(e,t),n)),i=o,null==e||oz(e,t,i)}class oH extends ou{constructor(e,t,n,i){if(super(e),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=t,this._attrs=function(e){let t=ib(e);for(let[e,n]of t)null===n?t.delete(e):"string"!=typeof n&&t.set(e,String(n));return t}(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){let e=this._attrs.get("class");oU(this._classes,e),this._attrs.delete("class")}this._styles=new oR(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(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}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(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){let e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof oH))return!1;if(this===e)return!0;if(this.name!=e.name||this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(let[t,n]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==n)return!1;for(let t of this._classes)if(!e._classes.has(t))return!1;for(let t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(let t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e){return this._styles.getStyleNames(e)}hasStyle(...e){for(let t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){let t=new om(...e),n=this.parent;for(;n&&!n.is("documentFragment");){if(t.match(n))return n;n=n.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){let e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map(e=>`${e[0]}="${e[1]}"`).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){let t=[];if(e)for(let n of this.getChildren())t.push(n._clone(e));let n=new this.constructor(this.document,this.name,this._attrs,t);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(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){var n,i;this._fireChange("children",this);let o=0;for(let r of(n=this.document,"string"==typeof(i=t)?[new oh(n,i)]:(J(i)||(i=[i]),Array.from(i).map(e=>"string"==typeof e?new oh(n,e):e instanceof og?new oh(n,e.data):e))))null!==r.parent&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(e,0,r),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){let n=String(t);this._fireChange("attributes",this),"class"==e?oU(this._classes,n):"style"==e?this._styles.setTo(n):this._attrs.set(e,n)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){for(let t of(this._fireChange("attributes",this),n2(e)))this._classes.add(t)}_removeClass(e){for(let t of(this._fireChange("attributes",this),n2(e)))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),"string"!=typeof e?this._styles.set(e):this._styles.set(e,t)}_removeStyle(e){for(let t of(this._fireChange("attributes",this),n2(e)))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function oU(e,t){let n=t.split(/\s+/);
2e.clear(),n.forEach(t=>e.add(t))}oH.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e};class oq extends oH{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=oG}}function oG(){let e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(let t of e)if(!t.is("uiElement"))return null;return this.childCount}oq.prototype.is=function(e,t){return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class oW extends U(oq){constructor(e,t,n,i){super(e,t,n,i),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",t=>t&&e.selection.editableElement==this),this.listenTo(e.selection,"change",()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}destroy(){this.stopListening()}}oW.prototype.is=function(e,t){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};let oK=Symbol("rootName");class o$ extends oW{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(oK)}set rootName(e){this._setCustomProperty(oK,e)}set _name(e){this.name=e}}o$.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class oY{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new w("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new w("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=oQ._createAt(e.startPosition):this._position=oQ._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.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(e){let t,n;do n=this.position,t=this.next();while(!t.done&&e(t.value));t.done||(this._position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&t.offset===i.childCount||i===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};if(i instanceof oh){if(t.isAtEnd)return this._position=oQ._createAfter(i),this._next();e=i.data[t.offset]}else e=i.getChild(t.offset);if(e instanceof oH){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new oQ(e,0);return this._position=t,this._formatReturnValue("elementStart",e,n,t,1)}if(e instanceof oh){if(this.singleCharacters)return t=new oQ(e,0),this._position=t,this._next();let i,o=e.data.length;return e==this._boundaryEndParent?(i=new og(e,0,o=this.boundaries.end.offset),t=oQ._createAfter(i)):(i=new og(e,0,e.data.length),t.offset++),this._position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){let e;e=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-t.offset;let o=new og(i,t.offset,e);return t.offset+=e,this._position=t,this._formatReturnValue("text",o,n,t,e)}return t=oQ._createAfter(i),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,n,t)}_previous(){let e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&0===t.offset||i==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};if(i instanceof oh){if(t.isAtStart)return this._position=oQ._createBefore(i),this._previous();e=i.data[t.offset-1]}else e=i.getChild(t.offset-1);if(e instanceof oH)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new oQ(e,e.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof oh){if(this.singleCharacters)return t=new oQ(e,e.data.length),this._position=t,this._previous();let i,o=e.data.length;if(e==this._boundaryStartParent){let n=this.boundaries.start.offset;o=(i=new og(e,n,e.data.length-n)).data.length,t=oQ._createBefore(i)}else i=new og(e,0,e.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){let e;if(this.singleCharacters)e=1;else{let n=i===this._boundaryStartParent?this.boundaries.start.offset:0;e=t.offset-n}t.offset-=e;let o=new og(i,t.offset,e);return this._position=t,this._formatReturnValue("text",o,n,t,e)}return t=oQ._createBefore(i),this._position=t,this._formatReturnValue("elementStart",i,n,t,1)}_formatReturnValue(e,t,n,i,o){return t instanceof og&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=oQ._createAfter(t.textNode):(i=oQ._createAfter(t.textNode),this._position=i)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=oQ._createBefore(t.textNode):(i=oQ._createBefore(t.textNode),this._position=i))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:o}}}}class oQ extends oc{constructor(e,t){super(),this.parent=e,this.offset=t}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(){let e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof oW);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){let t=oQ._createAt(this),n=t.offset+e;return t.offset=n<0?0:n,t}getLastMatchingPosition(e,t={}){t.startPosition=this;let n=new oY(t);return n.skip(e),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){let t=this.getAncestors(),n=e.getAncestors(),i=0;for(;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";let t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);let i=Z(t,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return t[i]<n[i]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new oY(e)}clone(){return new oQ(this.parent,this.offset)}static _createAt(e,t){if(e instanceof oQ)return new this(e.parent,e.offset);if("end"==t)t=e.is("$text")?e.data.length:e.childCount;else{if("before"==t)return this._createBefore(e);if("after"==t)return this._createAfter(e);if(0!==t&&!t)throw new w("view-createpositionat-offset-required",e)}return new oQ(e,t)}static _createAfter(e){if(e.is("$textProxy"))return new oQ(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new w("view-position-after-root",e,{root:e});return new oQ(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new oQ(e.textNode,e.offsetInText);if(!e.parent)throw new w("view-position-before-root",e,{root:e});return new oQ(e.parent,e.index)}}oQ.prototype.is=function(e){return"position"===e||"view:position"===e};class oZ extends oc{constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new oY({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 e=this.start.getLastMatchingPosition(oJ,{direction:"backward"}),t=this.end.getLastMatchingPosition(oJ);return e.parent.is("$text")&&e.isAtStart&&(e=oQ._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=oQ._createAfter(t.parent)),new oZ(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(oJ);
2if(e.isAfter(this.end)||e.isEqual(this.end))return new oZ(e,e);let t=this.end.getLastMatchingPosition(oJ,{direction:"backward"}),n=e.nodeAfter,i=t.nodeBefore;return n&&n.is("$text")&&(e=new oQ(n,0)),i&&i.is("$text")&&(t=new oQ(i,i.data.length)),new oZ(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);let n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}getDifference(e){let t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new oZ(this.start,e.start)),this.containsPosition(e.end)&&t.push(new oZ(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new oZ(t,n)}return null}getWalker(e={}){return e.boundaries=this,new oY(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new oZ(this.start,this.end)}*getItems(e={}){for(let t of(e.boundaries=this,e.ignoreElementEnd=!0,new oY(e)))yield t.item}*getPositions(e={}){e.boundaries=this;let t=new oY(e);for(let e of(yield t.position,t))yield e.nextPosition}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,n,i){return new this(new oQ(e,t),new oQ(n,i))}static _createFromPositionAndShift(e,t){let n=e.getShiftedBy(t);return t>0?new this(e,n):new this(n,e)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){let t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(oQ._createBefore(e),t)}}function oJ(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}oZ.prototype.is=function(e){return"range"===e||"view:range"===e};class oX extends M(oc){constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;let e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;let e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.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(let e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(let t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(let t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){let e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){let e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake||this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel||this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(let t of this._ranges){let n=!1;for(let i of e._ranges)if(t.isEqual(i)){n=!0;break}if(!n)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;let t=Q(this.getRanges());if(t!=Q(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let n=!1;for(let i of e.getRanges())if(i=i.getTrimmed(),t.start.isEqual(i.start)&&t.end.isEqual(i.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,n,i]=e;if("object"==typeof n&&(i=n,n=void 0),null===t)this._setRanges([]),this._setFakeOptions(i);else if(t instanceof oX||t instanceof o0)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof oZ)this._setRanges([t],i&&i.backward),this._setFakeOptions(i);else if(t instanceof oQ)this._setRanges([new oZ(t)]),this._setFakeOptions(i);else if(t instanceof ou){let e;let o=!!i&&!!i.backward;if(void 0===n)throw new w("view-selection-setto-required-second-parameter",this);e="in"==n?oZ._createIn(t):"on"==n?oZ._createOn(t):new oZ(oQ._createAt(t,n)),this._setRanges([e],o),this._setFakeOptions(i)}else{if(!J(t))throw new w("view-selection-setto-not-selectable",this);this._setRanges(t,i&&i.backward),this._setFakeOptions(i)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new w("view-selection-setfocus-no-ranges",this);let n=oQ._createAt(e,t);if("same"==n.compareWith(this.focus))return;let i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new oZ(n,i),!0):this._addRange(new oZ(i,n)),this.fire("change")}_setRanges(e,t=!1){for(let t of(e=Array.from(e),this._ranges=[],e))this._addRange(t);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof oZ))throw new w("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(let t of this._ranges)if(e.isIntersecting(t))throw new w("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new oZ(e.start,e.end))}}oX.prototype.is=function(e){return"selection"===e||"view:selection"===e};class o0 extends M(oc){constructor(...e){super(),this._selection=new oX,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}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(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}o0.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class o1 extends p{constructor(e,t,n){super(e,t),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}let o2=Symbol("bubbling contexts");function o5(e){return class extends e{fire(e,...t){try{let n=e instanceof p?e:new p(this,e),i=o7(this);if(!i.size)return;if(o4(n,"capturing",this),o3(i,"$capture",n,...t))return n.return;let o=n.startRange||this.selection.getFirstRange(),r=o?o.getContainedElement():null,
2s=!!r&&!!o6(i,r),a=r||function(e){if(!e)return null;let t=e.start.parent,n=e.end.parent,i=t.getPath(),o=n.getPath();return i.length>o.length?t:n}(o);if(o4(n,"atTarget",a),!s){if(o3(i,"$text",n,...t))return n.return;o4(n,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(o3(i,"$root",n,...t))return n.return}else if(a.is("element")&&o3(i,a.name,n,...t))return n.return;if(o3(i,a,n,...t))return n.return;a=a.parent,o4(n,"bubbling",a)}return o4(n,"bubbling",this),o3(i,"$document",n,...t),n.return}catch(e){w.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,n){let i=n2(n.context||"$document"),o=o7(this);for(let r of i){let i=o.get(r);i||(i=new(M()),o.set(r,i)),this.listenTo(i,e,t,n)}}_removeEventListener(e,t){for(let n of o7(this).values())this.stopListening(n,e,t)}}}{let e=o5(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{o5[t]=e.prototype[t]})}function o4(e,t,n){e instanceof o1&&(e._eventPhase=t,e._currentTarget=n)}function o3(e,t,n,...i){let o="string"==typeof t?e.get(t):o6(e,t);return!!o&&(o.fire(n,...i),n.stop.called)}function o6(e,t){for(let[n,i]of e)if("function"==typeof n&&n(t))return i;return null}function o7(e){return e[o2]||(e[o2]=new Map),e[o2]}class o9 extends o5(U()){constructor(e){super(),this._postFixers=new Set,this.selection=new o0,this.roots=new iu({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.forEach(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do for(let n of this._postFixers)if(t=n(e))break;while(t)}}class o8 extends oH{constructor(e,t,n,i){super(e,t,n,i),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=re}static{this.DEFAULT_PRIORITY=10}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new w("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e=!1){let t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function re(){if(rt(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(rt(e)>1)return null;e=e.parent}return!e||rt(e)>1?null:this.childCount}function rt(e){return Array.from(e.getChildren()).filter(e=>!e.is("uiElement")).length}o8.prototype.is=function(e,t){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class rn extends oH{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=ri}_insertChild(e,t){if(t&&(t instanceof ou||Array.from(t).length>0))throw new w("view-emptyelement-cannot-add",[this,t]);return 0}}function ri(){return null}rn.prototype.is=function(e,t){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class ro extends oH{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=rr}_insertChild(e,t){if(t&&(t instanceof ou||Array.from(t).length>0))throw new w("view-uielement-cannot-add",[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){let t=e.createElement(this.name);for(let e of this.getAttributeKeys())t.setAttribute(e,this.getAttribute(e));return t}}function rr(){return null}ro.prototype.is=function(e,t){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class rs extends oH{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=ra}_insertChild(e,t){if(t&&(t instanceof ou||Array.from(t).length>0))throw new w("view-rawelement-cannot-add",[this,t]);return 0}render(e,t){}}function ra(){return null}rs.prototype.is=function(e,t){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class rl extends M(oc){constructor(e,t){super(),this._children=[],this._customProperties=new Map,this.document=e,t&&this._insertChild(0,t)}[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(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){var n,i;this._fireChange("children",this);let o=0;for(let r of(n=this.document,"string"==typeof(i=t)?[new oh(n,i)]:(J(i)||(i=[i]),Array.from(i).map(e=>"string"==typeof e?new oh(n,e):e instanceof og?new oh(n,e.data):e))))null!==r.parent&&r._remove(),r.parent=this,this._children.splice(e,0,r),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}rl.prototype.is=function(e){return"documentFragment"===e||"view:documentFragment"===e};class rc{constructor(e){this._cloneGroups=new Map,this._slotFactory=null,this.document=e}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new rl(this.document,e)}createText(e){return new oh(this.document,e)}createAttributeElement(e,t,n={}){let i=new o8(this.document,e,t);return"number"==typeof n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createContainerElement(e,t,n={},i={}){let o=null;e_(n)?i=n:o=n;let r=new oq(this.document,e,t,o);return i.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),r}createEditableElement(e,t,n={}){let i=new oW(this.document,e,t);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(e,t,n={}){let i=new rn(this.document,e,t);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(e,t,n){let i=new ro(this.document,e,t);return n&&(i.render=n),i}createRawElement(e,t,n,i={}){let o=new rs(this.document,e,t);return n&&(o.render=n),i.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),o}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){e_(e)&&void 0===n?t._setStyle(e):n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof oQ?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){let t=e.parent;if(!t.is("containerElement"))throw new w("view-writer-break-non-container-element",this.document);if(!t.parent)throw new w("view-writer-break-root",this.document);if(e.isAtStart)return oQ._createBefore(t);if(!e.isAtEnd){let n=t._clone(!1);this.insert(oQ._createAfter(t),n);let i=new oZ(e,oQ._createAt(t,"end")),o=new oQ(n,0);this.move(i,o)}return oQ._createAfter(t)}mergeAttributes(e){let t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){let e=n.parent,t=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new oQ(e,t))}let i=n.getChild(t-1),o=n.getChild(t);if(!i||!o)return e;if(i.is("$text")&&o.is("$text"))return rg(i,o);if(i.is("attributeElement")&&o.is("attributeElement")&&i.isSimilar(o)){let e=i.childCount;return i._appendChild(o.getChildren()),o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new oQ(i,e))}return e}mergeContainers(e){let t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new w("view-writer-merge-containers-invalid-position",this.document);let i=t.getChild(t.childCount-1),o=i instanceof oh?oQ._createAt(i,"end"):oQ._createAt(t,"end");return this.move(oZ._createIn(n),oQ._createAt(t,"end")),this.remove(oZ._createOn(n)),o}insert(e,t){(function e(t,n){for(let i of t){if(!rm.some(e=>i instanceof e))throw new w("view-writer-insert-invalid-node-type",n);i.is("$text")||e(i.getChildren(),n)}})(t=J(t)?[...t]:[t],this.document);let n=t.reduce((e,t)=>
2{let n=e[e.length-1],i=!t.is("uiElement");return n&&n.breakAttributes==i?n.nodes.push(t):e.push({breakAttributes:i,nodes:[t]}),e},[]),i=null,o=e;for(let{nodes:e,breakAttributes:t}of n){let n=this._insertNodes(o,e,t);i||(i=n.start),o=n.end}return i?new oZ(i,o):new oZ(e)}remove(e){let t=e instanceof oZ?e:oZ._createOn(e);if(rk(t,this.document),t.isCollapsed)return new rl(this.document);let{start:n,end:i}=this._breakAttributesRange(t,!0),o=n.parent,r=i.offset-n.offset,s=o._removeChildren(n.offset,r);for(let e of s)this._removeFromClonedElementsGroup(e);let a=this.mergeAttributes(n);return t.start=a,t.end=a.clone(),new rl(this.document,s)}clear(e,t){for(let n of(rk(e,this.document),e.getWalker({direction:"backward",ignoreElementEnd:!0}))){let i;let o=n.item;if(o.is("element")&&t.isSimilar(o))i=oZ._createOn(o);else if(!n.nextPosition.isAfter(e.start)&&o.is("$textProxy")){let e=o.getAncestors().find(e=>e.is("element")&&t.isSimilar(e));e&&(i=oZ._createIn(e))}i&&(i.end.isAfter(e.end)&&(i.end=e.end),i.start.isBefore(e.start)&&(i.start=e.start),this.remove(i))}}move(e,t){let n;if(t.isAfter(e.end)){let i=(t=this._breakAttributes(t,!0)).parent,o=i.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=i.childCount-o}else n=this.remove(e);return this.insert(t,n)}wrap(e,t){if(!(t instanceof o8))throw new w("view-writer-wrap-invalid-attribute",this.document);if(rk(e,this.document),e.isCollapsed){let n=e.start;n.parent.is("element")&&!Array.from(n.parent.getChildren()).some(e=>!e.is("uiElement"))&&(n=n.getLastMatchingPosition(e=>e.item.is("uiElement"))),n=this._wrapPosition(n,t);let i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new oZ(n)}return this._wrapRange(e,t)}unwrap(e,t){if(!(t instanceof o8))throw new w("view-writer-unwrap-invalid-attribute",this.document);if(rk(e,this.document),e.isCollapsed)return e;let{start:n,end:i}=this._breakAttributesRange(e,!0),o=n.parent,r=this._unwrapChildren(o,n.offset,i.offset,t),s=this.mergeAttributes(r.start);return s.isEqual(r.start)||r.end.offset--,new oZ(s,this.mergeAttributes(r.end))}rename(e,t){let n=new oq(this.document,e,t.getAttributes());return this.insert(oQ._createAfter(t),n),this.move(oZ._createIn(t),oQ._createAt(n,0)),this.remove(oZ._createOn(t)),n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return oQ._createAt(e,t)}createPositionAfter(e){return oQ._createAfter(e)}createPositionBefore(e){return oQ._createBefore(e)}createRange(e,t){return new oZ(e,t)}createRangeOn(e){return oZ._createOn(e)}createRangeIn(e){return oZ._createIn(e)}createSelection(...e){return new oX(...e)}createSlot(e="children"){if(!this._slotFactory)throw new w("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,n){let i,o;if(!(i=n?rd(e):e.parent.is("$text")?e.parent.parent:e.parent))throw new w("view-writer-invalid-position-container",this.document);o=n?this._breakAttributes(e,!0):e.parent.is("$text")?rh(e):e;let r=i._insertChild(o.offset,t);for(let e of t)this._addToClonedElementsGroup(e);let s=o.getShiftedBy(r),a=this.mergeAttributes(o);return a.isEqual(o)||s.offset--,new oZ(a,this.mergeAttributes(s))}_wrapChildren(e,t,n,i){let o=t,r=[];for(;o<n;){let t=e.getChild(o),n=t.is("$text"),s=t.is("attributeElement");if(s&&this._wrapAttributeElement(i,t))r.push(new oQ(e,o));else if(n||!s||i.priority<t.priority||!(i.priority>t.priority)&&i.getIdentity()<t.getIdentity()){let n=i._clone();t._remove(),n._appendChild(t),e._insertChild(o,n),this._addToClonedElementsGroup(n),r.push(new oQ(e,o))}else this._wrapChildren(t,0,t.childCount,i);o++}let s=0;for(let e of r)e.offset-=s,e.offset!=t&&(this.mergeAttributes(e).isEqual(e)||(s++,n--));return oZ._createFromParentsAndOffsets(e,t,e,n)}_unwrapChildren(e,t,n,i){let o=t,r=[];for(;o<n;){let t=e.getChild(o);if(t.is("attributeElement")){if(t.isSimilar(i)){let i=t.getChildren(),s=t.childCount;t._remove(),e._insertChild(o,i),this._removeFromClonedElementsGroup(t),r.push(new oQ(e,o),new oQ(e,o+s)),o+=s,n+=s-1}else this._unwrapAttributeElement(i,t)?r.push(new oQ(e,o),new oQ(e,o+1)):this._unwrapChildren(t,0,t.childCount,i),o++}else o++}let s=0;for(let e of r)e.offset-=s,e.offset!=t&&e.offset!=n&&(this.mergeAttributes(e).isEqual(e)||(s++,n--));return oZ._createFromParentsAndOffsets(e,t,e,n)}_wrapRange(e,t){let{start:n,end:i}=this._breakAttributesRange(e,!0),o=n.parent,r=this._wrapChildren(o,n.offset,i.offset,t),s=this.mergeAttributes(r.start);return s.isEqual(r.start)||r.end.offset--,new oZ(s,this.mergeAttributes(r.end
2))}_wrapPosition(e,t){if(t.isSimilar(e.parent))return ru(e.clone());e.parent.is("$text")&&(e=rh(e));let n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,e.parent._insertChild(e.offset,n);let i=new oZ(e,e.getShiftedBy(1));this.wrap(i,t);let o=new oQ(n.parent,n.index);n._remove();let r=o.nodeBefore,s=o.nodeAfter;return r instanceof oh&&s instanceof oh?rg(r,s):ru(o)}_wrapAttributeElement(e,t){if(!rf(e,t)||e.name!==t.name||e.priority!==t.priority)return!1;for(let n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&t.hasAttribute(n)&&t.getAttribute(n)!==e.getAttribute(n))return!1;for(let n of e.getStyleNames())if(t.hasStyle(n)&&t.getStyle(n)!==e.getStyle(n))return!1;for(let n of e.getAttributeKeys())"class"!==n&&"style"!==n&&(t.hasAttribute(n)||this.setAttribute(n,e.getAttribute(n),t));for(let n of e.getStyleNames())t.hasStyle(n)||this.setStyle(n,e.getStyle(n),t);for(let n of e.getClassNames())t.hasClass(n)||this.addClass(n,t);return!0}_unwrapAttributeElement(e,t){if(!rf(e,t)||e.name!==t.name||e.priority!==t.priority)return!1;for(let n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&(!t.hasAttribute(n)||t.getAttribute(n)!==e.getAttribute(n)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(let n of e.getStyleNames())if(!t.hasStyle(n)||t.getStyle(n)!==e.getStyle(n))return!1;for(let n of e.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){let n=e.start,i=e.end;if(rk(e,this.document),e.isCollapsed){let n=this._breakAttributes(e.start,t);return new oZ(n,n)}let o=this._breakAttributes(i,t),r=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-r,new oZ(s,o)}_breakAttributes(e,t=!1){let n=e.offset,i=e.parent;if(e.parent.is("emptyElement"))throw new w("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new w("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new w("view-writer-cannot-break-raw-element",this.document);if(!t&&i.is("$text")&&rp(i.parent)||rp(i))return e.clone();if(i.is("$text"))return this._breakAttributes(rh(e),t);if(n==i.childCount){let e=new oQ(i.parent,i.index+1);return this._breakAttributes(e,t)}if(0===n){let e=new oQ(i.parent,i.index);return this._breakAttributes(e,t)}{let e=i.index+1,o=i._clone();i.parent._insertChild(e,o),this._addToClonedElementsGroup(o);let r=i.childCount-n,s=i._removeChildren(n,r);o._appendChild(s);let a=new oQ(i.parent,e);return this._breakAttributes(a,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(let t of e.getChildren())this._addToClonedElementsGroup(t);let t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n||(n=new Set,this._cloneGroups.set(t,n)),n.add(e),e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is("element"))for(let t of e.getChildren())this._removeFromClonedElementsGroup(t);let t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n&&n.delete(e)}}function rd(e){let t=e.parent;for(;!rp(t);){if(!t)return;t=t.parent}return t}function ru(e){let t=e.nodeBefore;if(t&&t.is("$text"))return new oQ(t,t.data.length);let n=e.nodeAfter;return n&&n.is("$text")?new oQ(n,0):e}function rh(e){if(e.offset==e.parent.data.length)return new oQ(e.parent.parent,e.parent.index+1);if(0===e.offset)return new oQ(e.parent.parent,e.parent.index);let t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new oh(e.root.document,t)),new oQ(e.parent.parent,e.parent.index+1)}function rg(e,t){let n=e.data.length;return e._data+=t.data,t._remove(),new oQ(e,n)}let rm=[oh,o8,oq,rn,rs,ro];function rp(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function rk(e,t){let n=rd(e.start),i=rd(e.end);if(!n||!i||n!==i)throw new w("view-writer-invalid-range-container",t)}function rf(e,t){return null===e.id&&null===t.id}let rb=e=>e.createTextNode("\xa0"),rA=e=>{let t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText="\xa0",t},rw=e=>{let t=e.createElement("br");return t.dataset.ckeFiller="true",t},r_="â ".repeat(7);function rC(e){return"string"==typeof e?e.substr(0,7)===r_:ny(e)&&e.data.substr(0,7)===r_}function rv(e){return 7==e.data.length&&rC(e)}function ry(e){let t="string"==typeof e?e:e.data;return rC(e)?t.slice(7):t}function rx(e,t){if(t.keyCode==nQ.arrowleft){let e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){let t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;rC(t)&&n<=7&&e.collapse(t,0)}}}var rE=r(8264),rD={attributes:{"data-cke":!0}};rD.setAttributes=iY(),rD.insert=iK().bind(null,"head"),rD.domAPI=iG(),rD.insertStyleElement=iZ(),iU()(rE.A,rD),rE.A&&rE.A.locals&&rE.A.locals;class rI extends U(){constructor(e,t){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=e,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),l.isBlink&&!l.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()})}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new w("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}
2render(){if(this.isComposing&&!l.isAndroid)return;let e=null,t=!(l.isBlink&&!l.isAndroid)||!this.isSelecting;for(let e of this.markedChildren)this._updateChildrenMappings(e);for(let n of(t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller))&&e.parent.is("$text")&&(e=oQ._createBefore(e.parent)),this.markedAttributes))this._updateAttrs(n);for(let t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(let t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t){if(e){let t=this.domConverter.viewPositionToDom(e),n=t.parent.ownerDocument;rC(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=rS(n,t.parent,t.offset)}else this._inlineFiller=null}this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){let t=this.domConverter.mapViewToDom(e);if(!t)return;let n=Array.from(t.childNodes),i=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),o=this._diffNodeLists(n,i),r=this._findUpdateActions(o,n,i,rM);if(-1!==r.indexOf("update")){let t={equal:0,insert:0,delete:0};for(let o of r)if("update"===o){let o=t.equal+t.insert,r=t.equal+t.delete,s=e.getChild(o);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,n[r]),nH(i[o]),t.equal++}else t[o]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){let e=this.selection.getFirstPosition();return e.parent.is("$text")?oQ._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;let e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&ny(t.parent)&&rC(t.parent))}_removeInlineFiller(){let e=this._inlineFiller;if(!rC(e))throw new w("view-renderer-filler-was-lost",this);rv(e)?e.remove():e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;let e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root)||!t.is("element")||!function(e){if("false"==e.getAttribute("contenteditable"))return!1;let t=e.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;let i=e.nodeBefore,o=e.nodeAfter;return!(i instanceof oh||o instanceof oh)&&!!(n!==t.getFillerOffset()||i&&i.is("element","br"))&&(!l.isAndroid||!i&&!o)}_updateText(e,t){let n=this.domConverter.findCorrespondingDomText(e),i=this.domConverter.viewToDom(e).data,o=t.inlineFillerPosition;o&&o.parent==e.parent&&o.offset==e.index&&(i=r_+i),this._updateTextNode(n,i)}_updateAttrs(e){let t=this.domConverter.mapViewToDom(e);if(t){for(let n of t.attributes){let i=n.name;e.hasAttribute(i)||this.domConverter.removeDomElementAttribute(t,i)}for(let n of e.getAttributeKeys())this.domConverter.setDomElementAttribute(t,n,e.getAttribute(n),e)}}_updateChildren(e,t){let n=this.domConverter.mapViewToDom(e);if(!n)return;if(l.isAndroid){let e=null;for(let t of Array.from(n.childNodes)){if(e&&ny(e)&&ny(t)){n.normalize();break}e=t}}let i=t.inlineFillerPosition,o=n.childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));i&&i.parent===e&&rS(n.ownerDocument,r,i.offset);let s=this._diffNodeLists(o,r),a=this._findUpdateActions(s,o,r,rB),c=0,d=new Set;for(let e of a)"delete"===e?(d.add(o[c]),nH(o[c])):"equal"!==e&&"update"!==e||c++;for(let e of(c=0,a))"insert"===e?(nO(n,c,r[c]),c++):"update"===e?(this._updateTextNode(o[c],r[c].data),c++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(r[c])),c++);for(let e of d)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return g(e=function(e,t){let n=Array.from(e);return 0!=n.length&&t&&n[n.length-1]==t&&n.pop(),n}(e,this._fakeSelectionContainer),t,rT.bind(null,this.domConverter))}
2_findUpdateActions(e,t,n,i){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let o=[],r=[],s=[],a={equal:0,insert:0,delete:0};for(let l of e)"insert"===l?s.push(n[a.equal+a.insert]):"delete"===l?r.push(t[a.equal+a.delete]):((o=o.concat(g(r,s,i).map(e=>"equal"===e?"update":e))).push("equal"),r=[],s=[]),a[l]++;return o.concat(g(r,s,i).map(e=>"equal"===e?"update":e))}_updateTextNode(e,t){let n=e.data;n!=t&&(l.isAndroid&&this.isComposing&&n.replace(/\u00A0/g," ")==t.replace(/\u00A0/g," ")||this._updateTextNodeInternal(e,t))}_updateTextNodeInternal(e,t){for(let n of d(e.data,t))"insert"===n.type?e.insertData(n.index,n.values.join("")):e.deleteData(n.index,n.howMany)}_markDescendantTextToSync(e){if(e){if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(let t of e.getChildren())this._markDescendantTextToSync(t)}}_updateSelection(){if(l.isBlink&&!l.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();let e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&l.isAndroid||this._updateDomSelection(e))}_updateFakeSelection(e){let t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){let t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent="\xa0",t}(t));let n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";let i=t.getSelection(),o=t.createRange();i.removeAllRanges(),o.selectNodeContents(n),i.addRange(o)}_updateDomSelection(e){let t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;let n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(n.parent,n.offset,i.parent,i.offset),l.isGecko&&function(e,t){let n=e.parent,i=e.offset;if(ny(n)&&rv(n)&&(i=nL(n)+1,n=n.parentNode),n.nodeType!=Node.ELEMENT_NODE||i!=n.childNodes.length-1)return;let o=n.childNodes[i];o&&"BR"==o.tagName&&t.addRange(t.getRangeAt(0))}(i,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;let t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){let t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(let e of this.domDocuments){let t=e.getSelection();if(t.rangeCount){let n=e.activeElement,i=this.domConverter.mapDomToView(n);n&&i&&t.removeAllRanges()}}}_removeFakeSelection(){let e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){let e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function rS(e,t,n){let i=t instanceof Array?t:t.childNodes,o=i[n];if(ny(o))return o.data=r_+o.data,o;{let o=e.createTextNode(r_);return Array.isArray(t)?i.splice(n,0,o):nO(t,n,o),o}}function rM(e,t){return nk(e)&&nk(t)&&!ny(e)&&!ny(t)&&!nz(e)&&!nz(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function rB(e,t){return nk(e)&&nk(t)&&ny(e)&&ny(t)}function rT(e,t,n){return t===n||(ny(t)&&ny(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}let rN=rw(o.document),rP=rb(o.document),rL=rA(o.document),rO="data-ck-unsafe-attribute-",rz="data-ck-unsafe-element";class rR{constructor(e,{blockFillerMode:t,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new om,this._inlineObjectElementMatcher=new om,this._elementsWithTemporaryCustomProperties=new Set,this.document=e,this.renderingMode=n,this.blockFillerMode=t||("editing"===n?"br":"nbsp"),this.preElements=["pre","textarea"],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?o.document:o.document.implementation.createHTMLDocument("")}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new oX(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){let t=this._domToViewMapping.get(e);if(t)for(let n of(this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t),e.children))this.unbindDomElement(n)}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,n){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===e||"srcset"===e)||"source"===n&&"srcset"===e||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(e,t){let n;if("data"===this.renderingMode)return void(e.innerHTML=t);let i=(new DOMParser).parseFromString(t,"text/html"),o=i.createDocumentFragment(),r=i.body.childNodes;for(;r.length>0;)o.appendChild(r[0]);let s=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),a=[];for(;n=s.nextNode();)a.push(n);for(let e of a){for(let t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));let t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(rV(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(o)}viewToDom(e,t={}){if(e.is("$text")){let t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{let n;if(this.mapViewToDom(e)){if(!e.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(e);this._elementsWithTemporaryCustomProperties.add(e)}if(e.is("documentFragment"))n=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n="$comment"===e.name?this._domDocument.createComment(e.getCustomProperty("$rawContent")):e.render(this._domDocument,this),t.bind&&this.bindElements(n,e),n;for(let i of(this._shouldRenameElement(e.name)?(rV(e.name),n=this._createReplacementDomElement(e.name)):n=e.hasAttribute("xmlns")?this._domDocument.createElementNS(e.getAttribute("xmlns"),e.name):this._domDocument.createElement(e.name),e.is("rawElement")&&e.render(n,this),t.bind&&this.bindElements(n,e),e.getAttributeKeys()))this.setDomElementAttribute(n,i,e.getAttribute(i),e)}if(!1!==t.withChildren)for(let i of this.viewChildrenToDom(e,t))n instanceof HTMLTemplateElement?n.content.appendChild(i):n.appendChild(i);return n}}setDomElementAttribute(e,t,n,i){let r=this.shouldRenderAttribute(t,n,e.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(t);r||_("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:n}),function(e){try{o.document.createAttribute(e)}catch(e){return!1}return!0}(t)?(e.hasAttribute(t)&&!r?e.removeAttribute(t):e.hasAttribute(rO+t)&&r&&e.removeAttribute(rO+t),e.setAttribute(r?t:rO+t,n)):_("domconverter-invalid-attribute-detected",{domElement:e,key:t,value:n})}removeDomElementAttribute(e,t){t!=rz&&(e.removeAttribute(t),e.removeAttribute(rO+t))}*viewChildrenToDom(e,t={}){let n=e.getFillerOffset&&e.getFillerOffset(),i=0;for(let o of e.getChildren()){n===i&&(yield this._getBlockFiller());let e=o.is("element")&&!!o.getCustomProperty("dataPipeline:transparentRendering")&&!ih(o.getAttributes());if(e&&"data"==this.renderingMode){if(o.is("rawElement")){let e=this._domDocument.createElement(o.name);o.render(e,this),yield*[...e.childNodes]}else yield*this.viewChildrenToDom(o,t)}else e&&_("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:o}),yield this.viewToDom(o,t);i++}n===i&&(yield this._getBlockFiller())}viewRangeToDom(e){let t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),i=this._domDocument.createRange();return i.setStart(t.parent,t.offset),i.setEnd(n.parent,n.offset),i}viewPositionToDom(e){let t=e.parent;if(t.is("$text")){let n=this.findCorrespondingDomText(t);if(!n)return null;let i=e.offset;return rC(n)&&(i+=7),{parent:n,offset:i}}{let n,i,o;if(0===e.offset){if(!(n=this.mapViewToDom(t)))return null;o=n.childNodes[0]}else{let t=e.nodeBefore;if(!(i=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t)))return null;n=i.parentNode,o=i.nextSibling}return ny(o)&&rC(o)?{parent:o,offset:7}:{parent:n,offset:i?nL(i)+1:0}}}domToView(e,t={}){let n=[],i=this._domToView(e,t,n),o=i.next().value;return o?(i.next(),this._processDomInlineNodes(null,n,t),o.is("$text")&&0==o.data.length?null:o):null}*domChildrenToView(e,t={},n=[]){let i=[];i=e instanceof HTMLTemplateElement?[...e.content.childNodes]:[...e.childNodes];for(let o=0;o<i.length;o++){let r=i[o],s=this._domToView(r,t,n),a=s.next().value;null!==a&&(this._isBlockViewElement(a)&&this._processDomInlineNodes(e,n,t),yield a,s.next())}this._processDomInlineNodes(e,n,t)}domSelectionToView(e){if(function(e){if(!l.isGecko||!e.rangeCount)return!1;let t=e.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch(e){return!0}return!1}(e))return new oX([]);if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;ny(t)&&(t=t.parentNode);let n=this.fakeSelectionToView(t);if(n)return n}let t=this.isDomSelectionBackward(e),n=[];for(let t=0;t<e.rangeCount;t++){let i=e.getRangeAt(t),o=this.domRangeToView(i);o&&n.push(o)}return new oX(n,{backward:t})}domRangeToView(e){let t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new oZ(t,n):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,nL(e));let n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return oQ._createBefore(n);if(ny(e)){if(rv(e))return this.domPositionToView(e.parentNode,nL(e));let n=this.findCorrespondingViewText(e),i=t;return n?(rC(e)&&(i-=7,i=i<0?0:i),new oQ(n,i)):null}if(0===t){let t=this.mapDomToView(e);if(t)return new oQ(t,0)}else{let n=e.childNodes[t-1];if(ny(n)&&rv(n)||n&&this.isBlockFiller(n))return this.domPositionToView(n.parentNode,nL(n));let i=ny(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(i&&i.parent)return new oQ(i.parent,i.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(rv(e))return null;let t=this.getHostViewElement(e);
2if(t)return t;let n=e.previousSibling;if(n){if(!this.isElement(n))return null;let e=this.mapDomToView(n);if(e){let t=e.nextSibling;return t instanceof oh?t:null}}else{let t=this.mapDomToView(e.parentNode);if(t){let e=t.getChild(0);return e instanceof oh?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){let t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){let t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){let{scrollX:e,scrollY:n}=o.window,i=[];rF(t,e=>{let{scrollLeft:t,scrollTop:n}=e;i.push([t,n])}),t.focus(),rF(t,e=>{let[t,n]=i.shift();e.scrollLeft=t,e.scrollTop=n}),o.window.scrollTo(e,n)}}_clearDomSelection(){let e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;let t=e.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(t);n&&n.rangeCount>0&&t.removeAllRanges()}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){var t;return"br"==this.blockFillerMode?e.isEqualNode(rN):!("BR"!==e.tagName||!rj(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(rL)||(t=this.blockElements,e.isEqualNode(rP)&&rj(e,t)&&1===e.parentNode.childNodes.length)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;let t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch(e){return!1}let n=t.collapsed;return t.detach(),n}getHostViewElement(e){let t=function(e){let t=[],n=e;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)t.unshift(n),n=n.parentNode;return t}(e);for(t.pop();t.length;){let e=t.pop(),n=this._domToViewMapping.get(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}registerInlineObjectMatcher(e){this._inlineObjectElementMatcher.add(e)}_clearTemporaryCustomProperties(){for(let e of this._elementsWithTemporaryCustomProperties)e._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return rb(this._domDocument);case"markedNbsp":return rA(this._domDocument);case"br":return rw(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if(ny(e)&&rC(e)&&t<7||this.isElement(e)&&rC(e.childNodes[t]))return!1;let n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}*_domToView(e,t,n){if(this.isBlockFiller(e))return null;let i=this.getHostViewElement(e);if(i)return i;if(nz(e)&&t.skipComments)return null;if(ny(e)){if(rv(e))return null;{let t=e.data;if(""===t)return null;let i=new oh(this.document,t);return n.push(i),i}}{let i=this.mapDomToView(e);if(i)return this._isInlineObjectElement(i)&&n.push(i),i;if(this.isDocumentFragment(e))i=new rl(this.document),t.bind&&this.bindDocumentFragments(e,i);else{i=this._createViewElement(e,t),t.bind&&this.bindElements(e,i);let o=e.attributes;if(o)for(let e=o.length,t=0;t<e;t++)i._setAttribute(o[t].name,o[t].value);if(this._isViewElementWithRawContent(i,t))return i._setCustomProperty("$rawContent",e.innerHTML),this._isBlockViewElement(i)||n.push(i),i;if(nz(e))return i._setCustomProperty("$rawContent",e.data),i}yield i;let o=[];if(!1!==t.withChildren)for(let n of this.domChildrenToView(e,t,o))i._appendChild(n);if(this._isInlineObjectElement(i))n.push(i),this._processDomInlineNodes(null,o,t);else for(let e of o)n.push(e)}}_processDomInlineNodes(e,t,n){if(!t.length||e&&!this.isDocumentFragment(e)&&!this._isBlockDomElement(e))return;let i=!1;for(let e=0;e<t.length;e++){let o=t[e];if(!o.is("$text")){i=!1;continue}let r,s=!1;if(this._isPreFormatted(o))r=ry(o.data);else{r=o.data.replace(/[ \n\t\r]{1,}/g," "),s=/[^\S\u00A0]/.test(r.charAt(r.length-1));let a=e>0?t[e-1]:null,l=e+1<t.length?t[e+1]:null,c=!a||a.is("element")&&"br"==a.name||i,d=!l&&!rC(o.data);!1!==n.withChildren&&(c&&(r=r.replace(/^ /,"")),d&&(r=r.replace(/ $/,""))),r=(r=ry(r)).replace(/ \u00A0/g," ");let u=l&&l.is("element")&&"br"!=l.name,h=l&&l.is("$text")&&" "==l.data.charAt(0);(/[ \u00A0]\u00A0$/.test(r)||!l||u||h)&&(r=r.replace(/\u00A0$/," ")),(c||a&&a.is("element")&&"br"!=a.name)&&(r=r.replace(/^\u00A0/," "))}0==r.length&&o.parent?(o._remove(),t.splice(e,1),e--):(o._data=r,i=s)}t.length=0}_processDataFromViewText(e){let t=e.data;if(this._isPreFormatted(e))return t;if(" "==t.charAt(0)){let n=this._getTouchingInlineViewNode(e,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(t="\xa0"+t.substr(1))}if(" "==t.charAt(t.length-1)){let n=this._getTouchingInlineViewNode(e,!0),i=n&&n.is("$textProxy")&&" "==n.data.charAt(0);
2" "!=t.charAt(t.length-2)&&n&&!i||(t=t.substr(0,t.length-1)+"\xa0")}return t.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(e){if(this._isPreFormatted(e))return!1;let t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_isPreFormatted(e){var t;if(t=this.preElements,e.getAncestors().some(e=>e.is("element")&&t.includes(e.name)))return!0;for(let t of e.getAncestors({parentFirst:!0}))if(t.is("element")&&t.hasStyle("white-space")&&"inherit"!==t.getStyle("white-space"))return["pre","pre-wrap","break-spaces"].includes(t.getStyle("white-space"));return!1}_getTouchingInlineViewNode(e,t){for(let{item:n}of new oY({startPosition:t?oQ._createAfter(e):oQ._createBefore(e),direction:t?"forward":"backward"})){if(n.is("$textProxy"))return n;if(!n.is("element")||!n.getCustomProperty("dataPipeline:transparentRendering")){if(n.is("element","br"))return null;if(this._isInlineObjectElement(n))return n;if(n.is("containerElement"))break}}return null}_isBlockDomElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isBlockViewElement(e){return e.is("element")&&this.blockElements.includes(e.name)}_isInlineObjectElement(e){return!!e.is("element")&&("br"==e.name||this.inlineObjectElements.includes(e.name)||!!this._inlineObjectElementMatcher.match(e))}_createViewElement(e,t){if(nz(e))return new ro(this.document,"$comment");let n=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new oH(this.document,n)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&e.is("element")&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){let t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){let n=this._domDocument.createElement("span");if(n.setAttribute(rz,e),t){for(;t.firstChild;)n.appendChild(t.firstChild);for(let e of t.getAttributeNames())n.setAttribute(e,t.getAttribute(e))}return n}}function rF(e,t){let n=e;for(;n;)t(n),n=n.parentElement}function rj(e,t){let n=e.parentNode;return!!n&&!!n.tagName&&t.includes(n.tagName.toLowerCase())}function rV(e){"script"===e&&_("domconverter-unsafe-script-element-detected"),"style"===e&&_("domconverter-unsafe-style-element-detected")}class rH extends nA(){constructor(e){super(),this._isEnabled=!1,this.view=e,this.document=e.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}let rU=is(function(e,t){eZ(t,t_(t),e)});class rq{constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,rU(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class rG extends rH{constructor(){super(...arguments),this.useCapture=!1,this.usePassive=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(t=>{this.listenTo(e,t,(e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)},{useCapture:this.useCapture,usePassive:this.usePassive})})}stopObserving(e){this.stopListening(e)}fire(e,t,n){this.isEnabled&&this.document.fire(e,new rq(this.view,t,n))}}class rW extends rG{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(e){let t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return nJ(this)}};this.fire(e.type,e,t)}}let rK=function(){return et.Date.now()};var r$=/\s/;let rY=function(e){for(var t=e.length;t--&&r$.test(e.charAt(t)););return t};var rQ=/^\s+/,rZ=/^[-+]0x[0-9a-f]+$/i,rJ=/^0b[01]+$/i,rX=/^0o[0-7]+$/i,r0=parseInt;let r1=function(e){if("number"==typeof e)return e;if(of(e))return NaN;if(O(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=O(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,rY(t)+1).replace(rQ,""):t;var i=rJ.test(e);return i||rX.test(e)?r0(e.slice(2),i?2:8):rZ.test(e)?NaN:+e};var r2=Math.max,r5=Math.min;let r4=function(e,t,n){var i,o,r,s,a,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=i,r=o;return i=o=void 0,c=t,s=e.apply(r,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=r}function p(){var e,n=rK();if(m(n))return k(n);a=setTimeout(p,(e=t-(n-l),u?r5(e,r-(n-c)):e))}function k(e){return a=void 0,h&&i?g(e):(i=o=void 0,s)}function f(){var e,n=rK(),r=m(n);if(i=arguments,o=this,l=n,r){if(void 0===a)return c=e=l,a=setTimeout(p,t),d?g(e):s;if(u)return clearTimeout(a),a=setTimeout(p,t),g(l)}return void 0===a&&(a=setTimeout(p,t)),s}return t=r1(t)||0,O(n)&&(d=!!n.leading,r=(u="maxWait"in n)?r2(r1(n.maxWait)||0,t):r,h="trailing"in n?!!n.trailing:h),f.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=o=a=void 0},f.flush=function(){return void 0===a?s:k(rK())},f};class r3 extends rH{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=r4(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){let e=this.document;e.on("arrowKey",(t,n)=>{e.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:"$capture"}),e.on("arrowKey",(t,n)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){let t=this.document.selection,n=new oX(t.getRanges(),{backward:t.isBackward,fake:!1});e!=nQ.arrowleft&&e!=nQ.arrowup||n.setTo(n.getFirstPosition()),e!=nQ.arrowright&&e!=nQ.arrowdown||n.setTo(n.getLastPosition());let i={oldSelection:t,newSelection:n,domSelection:null};
2this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}function r6(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new eq;++t<n;)this.add(e[t])}r6.prototype.add=r6.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},r6.prototype.has=function(e){return this.__data__.has(e)};let r7=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},r9=function(e,t,n,i,o,r){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,g=2&n?new r6:void 0;for(r.set(e,t),r.set(t,e);++u<a;){var m=e[u],p=t[u];if(i)var k=s?i(p,m,u,t,e,r):i(m,p,u,e,t,r);if(void 0!==k){if(k)continue;h=!1;break}if(g){if(!r7(t,function(e,t){if(!g.has(t)&&(m===e||o(m,e,n,i,r)))return g.push(t)})){h=!1;break}}else if(m!==p&&!o(m,p,n,i,r)){h=!1;break}}return r.delete(e),r.delete(t),h},r8=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n},se=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var st=en?en.prototype:void 0,sn=st?st.valueOf:void 0;let si=function(e,t,n,i,o,r,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new t1(e),new t1(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eC(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=r8;case"[object Set]":var l=1&i;if(a||(a=se),e.size!=t.size&&!l)break;var c=s.get(e);if(c)return c==t;i|=2,s.set(e,t);var d=r9(a(e),a(t),i,o,r,s);return s.delete(e),d;case"[object Symbol]":if(sn)return sn.call(e)==sn.call(t)}return!1};var so=Object.prototype.hasOwnProperty;let sr=function(e,t,n,i,o,r){var s=1&n,a=tO(e),l=a.length;if(l!=tO(t).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in t:so.call(t,d)))return!1}var u=r.get(e),h=r.get(t);if(u&&h)return u==t&&h==e;var g=!0;r.set(e,t),r.set(t,e);for(var m=s;++c<l;){var p=e[d=a[c]],k=t[d];if(i)var f=s?i(k,p,d,t,e,r):i(p,k,d,e,t,r);if(!(void 0===f?p===k||o(p,k,n,i,r):f)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=e.constructor,A=t.constructor;b==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof A&&A instanceof A||(g=!1)}return r.delete(e),r.delete(t),g};var ss="[object Arguments]",sa="[object Array]",sl="[object Object]",sc=Object.prototype.hasOwnProperty;let sd=function(e,t,n,i,o,r){var s=eu(e),a=eu(t),l=s?sa:tJ(e),c=a?sa:tJ(t),d=(l=l==ss?sl:l)==sl,u=(c=c==ss?sl:c)==sl,h=l==c;if(h&&e7(e)){if(!e7(t))return!1;s=!0,d=!1}if(h&&!d)return r||(r=new eG),s||tl(e)?r9(e,t,n,i,o,r):si(e,t,l,n,i,o,r);if(!(1&n)){var g=d&&sc.call(e,"__wrapped__"),m=u&&sc.call(t,"__wrapped__");
2if(g||m){var p=g?e.value():e,k=m?t.value():t;return r||(r=new eG),o(p,k,n,i,r)}}return!!h&&(r||(r=new eG),sr(e,t,n,i,o,r))},su=function e(t,n,i,o,r){return t===n||(null!=t&&null!=n&&(eh(t)||eh(n))?sd(t,n,i,o,e,r):t!=t&&n!=n)},sh=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?su(e,t,void 0,n):!!i};class sg extends rH{constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.add(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}stopObserving(e){if(this._domElements.delete(e),this.isEnabled)for(let e of(this._mutationObserver.disconnect(),this._domElements))this._mutationObserver.observe(e,this._config)}enable(){for(let e of(super.enable(),this._domElements))this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;let t=this.domConverter,n=new Set,i=new Set;for(let n of e){let e=t.mapDomToView(n.target);e&&(e.is("uiElement")||e.is("rawElement")||"childList"!==n.type||this._isBogusBrMutation(n)||i.add(e))}for(let o of e){let e=t.mapDomToView(o.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===o.type){let e=t.findCorrespondingViewText(o.target);e&&!i.has(e.parent)?n.add(e):!e&&rC(o.target)&&i.add(t.mapDomToView(o.target.parentNode))}}let o=[];for(let e of n)o.push({type:"text",node:e});for(let e of i){let n=t.mapViewToDom(e);sh(Array.from(e.getChildren()),Array.from(t.domChildrenToView(n,{withChildren:!1})),sm)||o.push({type:"children",node:e})}o.length&&this.document.fire("mutations",{mutations:o})}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}function sm(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}class sp extends rG{constructor(e){super(e),this._renderTimeoutId=null,this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;let t=this.document;t.on("focus",()=>this._handleFocus()),t.on("blur",(e,t)=>this._handleBlur(t)),t.on("beforeinput",()=>{t.isFocused||this._handleFocus()},{priority:"highest"})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._clearTimeout(),super.destroy()}_handleFocus(){this._clearTimeout(),this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this._renderTimeoutId=null,this.flush(),this.view.change(()=>{})},50)}_handleBlur(e){let t=this.document.selection.editableElement;null!==t&&t!==e.target||(this.document.isFocused=!1,this._isFocusChanging=!1,this.view.change(()=>{}))}_clearTimeout(){this._renderTimeoutId&&(clearTimeout(this._renderTimeoutId),this._renderTimeoutId=null)}}class sk extends rH{constructor(e){super(e),this.mutationObserver=e.getObserver(sg),this.focusObserver=e.getObserver(sp),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=r4(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=r4(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(e){let t=e.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(e,"keydown",n,{priority:"highest",useCapture:!0}
2),this.listenTo(e,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",()=>{this.document.isComposing&&!l.isAndroid||(this._handleSelectionChange(t),this._documentIsSelectingInactivityTimeoutDebounced())}),this.listenTo(this.view.document,"compositionstart",()=>{this._handleSelectionChange(t)},{priority:"lowest"}),this._documents.add(t))}stopObserving(e){this.stopListening(e)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(e){if(!this.isEnabled)return;let t=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(t.anchorNode))return;this.mutationObserver.flush();let n=this.domConverter.domSelectionToView(t);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(n)||!this.domConverter.isDomSelectionCorrect(t)){if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(n))this.view.forceRender();else{let e={oldSelection:this.selection,newSelection:n,domSelection:t};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class sf extends rG{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];let t=this.document;t.on("compositionstart",()=>{t.isComposing=!0},{priority:"low"}),t.on("compositionend",()=>{t.isComposing=!1},{priority:"low"})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}}class sb{constructor(e,t={}){this._files=t.cacheFiles?sA(e):null,this._native=e}get files(){return this._files||(this._files=sA(this._native)),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}setDragImage(e,t,n){this._native.setDragImage(e,t,n)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function sA(e){let t=Array.from(e.files||[]),n=Array.from(e.items||[]);return t.length?t:n.filter(e=>"file"===e.kind).map(e=>e.getAsFile())}class sw extends rG{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(e){let t=e.getTargetRanges(),n=this.view,i=n.document,o=null,r=null,s=[];if(e.dataTransfer&&(o=new sb(e.dataTransfer)),null!==e.data?r=e.data:o&&(r=o.getData("text/plain")),i.selection.isFake)s=Array.from(i.selection.getRanges());else if(t.length)s=t.map(e=>{let t=n.domConverter.domPositionToView(e.startContainer,e.startOffset),i=n.domConverter.domPositionToView(e.endContainer,e.endOffset);return t?n.createRange(t,i):i?n.createRange(i):void 0}).filter(e=>!!e);else if(l.isAndroid){let t=e.target.ownerDocument.defaultView.getSelection();s=Array.from(n.domConverter.domSelectionToView(t).getRanges())}if(l.isAndroid&&"insertCompositionText"==e.inputType&&r&&r.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[n.createRange(s[0].end)]});else if("insertText"==e.inputType&&r&&r.includes("\n")){let t=r.split(/\n{1,2}/g),n=s;for(let r=0;r<t.length;r++){let s=t[r];""!=s&&(this.fire(e.type,e,{data:s,dataTransfer:o,targetRanges:n,inputType:e.inputType,isComposing:e.isComposing}),n=[i.selection.getFirstRange()]),r+1<t.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:n}),n=[i.selection.getFirstRange()])}}else this.fire(e.type,e,{data:r,dataTransfer:o,targetRanges:s,inputType:e.inputType,isComposing:e.isComposing})}}class s_ extends rH{constructor(e){super(e),this.document.on("keydown",(e,t)=>{var n;if(this.isEnabled&&((n=t.keyCode)==nQ.arrowright||n==nQ.arrowleft||n==nQ.arrowup||n==nQ.arrowdown)){let n=new o1(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,t),n.stop.called&&e.stop()}})}observe(){}stopObserving(){}}class sC extends rH{constructor(e){super(e);let t=this.document;
2t.on("keydown",(e,n)=>{if(!this.isEnabled||n.keyCode!=nQ.tab||n.ctrlKey)return;let i=new o1(t,"tab",t.selection.getFirstRange());t.fire(i,n),i.stop.called&&e.stop()})}observe(){}stopObserving(){}}let sv=function(e){return nu(e,5)};class sy extends U(){constructor(e){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 o9(e),this.domConverter=new rR(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new rI(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new rc(this.document),this.addObserver(sg),this.addObserver(sp),this.addObserver(sk),this.addObserver(rW),this.addObserver(r3),this.addObserver(sf),this.addObserver(s_),this.addObserver(sw),this.addObserver(sC),this.document.on("arrowKey",rx,{priority:"low"}),function(e){e.document.on("arrowKey",(t,n)=>(function(e,t,n){if(t.keyCode==nQ.arrowright){let e=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(i||t.shiftKey){let t=e.focusNode,o=e.focusOffset,r=n.domPositionToView(t,o);if(null===r)return;let s=!1,a=r.getLastMatchingPosition(e=>(e.item.is("uiElement")&&(s=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))));if(s){let t=n.viewPositionToDom(a);i?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}})(0,n,e.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),l.isiOS&&this.listenTo(this.document,"blur",(e,t)=>{this.domConverter.mapDomToView(t.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}),this.listenTo(this.document,"mutations",(e,{mutations:t})=>{t.forEach(e=>this._renderer.markToSync(e.type,e.node))},{priority:"low"}),this.listenTo(this.document,"mutations",()=>{this.forceRender()},{priority:"lowest"})}attachDomRoot(e,t="main"){let n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();let i={};for(let{name:t,value:o}of Array.from(e.attributes))i[t]=o,"class"===t?this._writer.addClass(o.split(" "),n):n.hasAttribute(t)||this._writer.setAttribute(t,o,n);this._initialDomRootAttributes.set(e,i);let 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)};for(let i of(o(),this.domRoots.set(t,e),this.domConverter.bindElements(e,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(e.ownerDocument),n.on("change:children",(e,t)=>this._renderer.markToSync("children",t)),n.on("change:attributes",(e,t)=>this._renderer.markToSync("attributes",t)),n.on("change:text",(e,t)=>this._renderer.markToSync("text",t)),n.on("change:isReadOnly",()=>this.change(o)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0}),this._observers.values()))i.observe(e,t)}detachDomRoot(e){let t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));let n=this._initialDomRootAttributes.get(t);for(let e in n)t.setAttribute(e,n[e]);for(let n of(this.domRoots.delete(e),this.domConverter.unbindDomElement(t),this._observers.values()))n.stopObserving(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;for(let[n,i]of(t=new e(this),this._observers.set(e,t),this.domRoots))t.observe(i,n);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(let e of this._observers.values())e.disable()}enableObservers(){for(let e of this._observers.values())e.enable()}
2scrollToTheSelection({alignToTop:e,forceScroll:t,viewportOffset:n=20,ancestorOffset:i=20}={}){let o=this.document.selection.getFirstRange();if(!o)return;let r=sv({alignToTop:e,forceScroll:t,viewportOffset:n,ancestorOffset:i});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});let s={target:this.domConverter.viewRangeToDom(o),viewportOffset:n,ancestorOffset:i,alignToTop:e,forceScroll:t};this.fire("scrollToTheSelection",s,r),function({target:e,viewportOffset:t=0,ancestorOffset:n=0,alignToTop:i,forceScroll:o}){var r;let s=nG(e),a=s,l=null;for(t="number"==typeof(r=t)?{top:r,bottom:r,left:r,right:r}:r;a;){(function({parent:e,getRect:t,alignToTop:n,forceScroll:i,ancestorOffset:o=0,limiterElement:r}){let s,a,l;let c=nG(e),d=n&&i,u=r||c.document.body;for(;e!=u;)a=t(),l=(s=new nI(e).excludeScrollbarsAndBorders()).contains(a),d?e.scrollTop-=s.top-a.top+o:l||(a.top<s.top?e.scrollTop-=s.top-a.top+o:nU(a,s)&&(e.scrollTop+=n?a.top-s.top-o:a.bottom-s.bottom+o)),l||(a.left<s.left?e.scrollLeft-=s.left-a.left+o:nq(a,s)&&(e.scrollLeft+=a.right-s.right+o)),e=e.parentNode})({parent:function(e){if(nx(e)){let t=e.commonAncestorContainer;return ny(t)&&(t=t.parentNode),t}return e.parentNode}(a==s?e:l),getRect:()=>nW(e,a),alignToTop:i,ancestorOffset:n,forceScroll:o});let r=nW(e,a);if(function({window:e,rect:t,alignToTop:n,forceScroll:i,viewportOffset:o}){let r=t.clone().moveBy(0,o.bottom),s=t.clone().moveBy(0,-o.top),a=new nI(e).excludeScrollbarsAndBorders(),l=[s,r].every(e=>a.contains(e)),{scrollX:c,scrollY:d}=e,u=c,h=d;n&&i?d-=a.top-t.top+o.top:l||(s.top<a.top?d-=a.top-t.top+o.top:nU(r,a)&&(d+=n?t.top-a.top-o.top:t.bottom-a.bottom+o.bottom)),l||(t.left<a.left?c-=a.left-t.left+o.left:nq(t,a)&&(c+=t.right-a.right+o.right)),c==u&&d===h||e.scrollTo(c,d)}({window:a,rect:r,viewportOffset:t,alignToTop:i,forceScroll:o}),a.parent!=a){if(l=a.frameElement,a=a.parent,!l)return}else a=null}}(s)}focus(){if(!this.document.isFocused){let e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new w("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;let t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){w.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(sp).flush(),this.change(()=>{})}destroy(){for(let e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return oQ._createAt(e,t)}createPositionAfter(e){return oQ._createAfter(e)}createPositionBefore(e){return oQ._createBefore(e)}createRange(e,t){return new oZ(e,t)}createRangeOn(e){return oZ._createOn(e)}createRangeIn(e){return oZ._createIn(e)}createSelection(...e){return new oX(...e)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class sx{is(){throw Error("is() method is abstract")}}class sE extends sx{constructor(e){super(),this.parent=null,this._index=null,this._startOffset=null,this._attrs=ib(e)}get document(){return null}get index(){return this._index}get startOffset(){return this._startOffset}get offsetSize(){return 1}get endOffset(){return null===this.startOffset?null:this.startOffset+this.offsetSize}get nextSibling(){let e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){let e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){let e=[],t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){let t=[],n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){let n=this.getAncestors(t),i=e.getAncestors(t),o=0;for(;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;let t=this.getPath(),n=e.getPath(),i=Z(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){let e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((e,t)=>
2(e[t[0]]=t[1],e),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=ib(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}sE.prototype.is=function(e){return"node"===e||"model:node"===e};class sD{constructor(e){this._nodes=[],this._offsetToNode=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._offsetToNode.length}getNode(e){return this._nodes[e]||null}getNodeAtOffset(e){return this._offsetToNode[e]||null}getNodeIndex(e){return e.index}getNodeStartOffset(e){return e.startOffset}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;let t=this._nodes[e];if(!t)throw new w("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){if(e==this._offsetToNode.length)return this._nodes.length;let t=this._offsetToNode[e];if(!t)throw new w("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.getNodeIndex(t)}
2_insertNodes(e,t){for(let e of t)if(!(e instanceof sE))throw new w("model-nodelist-insertnodes-not-node",this);let n=Array.from(t),i=function(e){let t=[];for(let n of e){let e=t.length;t.length+=n.offsetSize,t.fill(n,e)}return t}(n),o=this.indexToOffset(e);this._nodes=iA(this._nodes,n,e,0),this._offsetToNode=iA(this._offsetToNode,i,o,0);for(let t=e;t<this._nodes.length;t++)this._nodes[t]._index=t,this._nodes[t]._startOffset=o,o+=this._nodes[t].offsetSize}_removeNodes(e,t=1){if(0==t)return[];let n=this.indexToOffset(e),i=this._nodes.splice(e,t),o=i[i.length-1],r=o.startOffset+o.offsetSize-n;for(let e of(this._offsetToNode.splice(n,r),i))e._index=null,e._startOffset=null;for(let t=e;t<this._nodes.length;t++)this._nodes[t]._index=t,this._nodes[t]._startOffset=n,n+=this._nodes[t].offsetSize;return i}toJSON(){return this._nodes.map(e=>e.toJSON())}}class sI extends sE{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){let e=super.toJSON();return e.data=this.data,e}_clone(){return new sI(this.data,this.getAttributes())}static fromJSON(e){return new sI(e.data,e.attributes)}}sI.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};class sS extends sx{constructor(e,t,n){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new w("model-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.offsetSize)throw new w("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}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(){let e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){let t=[],n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}sS.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class sM extends sE{constructor(e,t,n){super(t),this._children=new sD,this.name=e,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(e){return this._children.getNode(e)}getChildAtOffset(e){return this._children.getNodeAtOffset(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(let n of e)t=t.getChildAtOffset(n);return t}findAncestor(e,t={}){let n=t.includeSelf?this:this.parent;for(;n;){if(n.name===e)return n;n=n.parent}return null}toJSON(){let e=super.toJSON();if(e.name=this.name,this._children.length>0)for(let t of(e.children=[],this._children))e.children.push(t.toJSON());return e}_clone(e=!1){let t=e?Array.from(this._children).map(e=>e._clone(!0)):void 0;return new sM(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){var n;let i="string"==typeof(n=t)?[new sI(n)]:(J(n)||(n=[n]),Array.from(n).map(e=>"string"==typeof e?new sI(e):e instanceof sS?new sI(e.data,e.getAttributes()):e));for(let e of i)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,i)}_removeChildren(e,t=1){let n=this._children._removeNodes(e,t);for(let e of n)e.parent=null;return n}static fromJSON(e){let t;if(e.children)for(let n of(t=[],e.children))n.name?t.push(sM.fromJSON(n)):t.push(sI.fromJSON(n));return new sM(e.name,e.attributes,t)}}sM.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e};class sB{constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new w("model-tree-walker-no-start-position",null);let t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new w("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this._position=e.startPosition.clone():this._position=sN._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.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(e){let t,n,i,o;do i=this.position,o=this._visitedParent,{done:t,value:n}=this.next();while(!t&&e(n));t||(this._position=i,this._visitedParent=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset||n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let i=sP(t,n),o=i||sL(t,n,i);if(o instanceof sM){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t.path.push(0),this._visitedParent=o;return this._position=t,sT("elementStart",o,e,t,1)}if(o instanceof sI){let i;if(this.singleCharacters)i=1;else{let e=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),i=e-t.offset}let r=t.offset-o.startOffset,s=new sS(o,r,i);return t.offset+=i,this._position=t,sT("text",s,e,t,i)}return t.path.pop(),t.offset++,this._position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():sT("elementEnd",n,e,t)}_previous(){let e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset||n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let i=t.parent,o=sP(t,i),r=o||sO(t,i,o);if(r instanceof sM)return t.offset--,this.shallow?(this._position=t,sT("elementStart",r,e,t,1)):(t.path.push(r.maxOffset),this._position=t,this._visitedParent=r,this.ignoreElementEnd?this._previous():sT("elementEnd",r,e,t));if(r instanceof sI){let i;if(this.singleCharacters)i=1;else{let e=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),i=t.offset-e}let o=t.offset-r.startOffset,s=new sS(r,o-i,i);return t.offset-=i,this._position=t,sT("text",s,e,t,i)}return t.path.pop(),this._position=t,this._visitedParent=n.parent,sT("elementStart",n,e,t,1)}}function sT(e,t,n,i,o){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:o}}}class sN extends sx{constructor(e,t,n="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new w("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new w("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(!(e=e.getChildAtOffset(this.path[t])))throw new w("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new w("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return sP(this,this.parent)}get nodeAfter(){let e=this.parent;return sL(this,e,sP(this,e))}get nodeBefore(){let e=this.parent;return sO(this,e,sP(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}isValid(){if(this.offset<0)return!1;let e=this.root;for(let t=0;t<this.path.length-1;t++)if(!(e=e.getChildAtOffset(this.path[t])))return!1;return this.offset<=e.maxOffset}compareWith(e){if(this.root!=e.root)return"different";let t=Z(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}
2getLastMatchingPosition(e,t={}){t.startPosition=this;let n=new sB(t);return n.skip(e),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){let e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){let t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];let t=Z(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}getCommonAncestor(e){let t=this.getAncestors(),n=e.getAncestors(),i=0;for(;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}getShiftedBy(e){let t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){if(this.root!==e.root)return!1;let t=Math.min(this.path.length,e.path.length);for(let n=0;n<t;n++){let t=this.path[n]-e.path[n];if(t<-1||t>1)return!1;if(1===t)return sz(e,this,n);if(-1===t)return sz(this,e,n)}return this.path.length===e.path.length||(this.path.length>e.path.length?sR(this.path,t):sR(e.path,t))}hasSameParentAs(e){return this.root===e.root&&"same"==Z(this.getParentPath(),e.getParentPath())}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=sN._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){let t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){let t;let n=e.movedRange;return n.containsPosition(this)||n.start.isEqual(this)?(t=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(t=t._getTransformedByDeletion(e.deletionPosition,1))):t=this.isEqual(e.deletionPosition)?sN._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),t}_getTransformedByDeletion(e,t){let n=sN._createAt(this);if(this.root!=e.root)return n;if("same"==Z(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;n.offset-=t}}else if("prefix"==Z(e.getParentPath(),this.getParentPath())){let i=e.path.length-1;if(e.offset<=this.path[i]){if(e.offset+t>this.path[i])return null;n.path[i]-=t}}return n}_getTransformedByInsertion(e,t){let n=sN._createAt(this);if(this.root!=e.root)return n;if("same"==Z(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=t);else if("prefix"==Z(e.getParentPath(),this.getParentPath())){let i=e.path.length-1;e.offset<=this.path[i]&&(n.path[i]+=t)}return n}_getTransformedByMove(e,t,n){if(t=t._getTransformedByDeletion(e,n),e.isEqual(t))return sN._createAt(this);let i=this._getTransformedByDeletion(e,n);return null===i||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):i._getTransformedByInsertion(t,n)}_getCombined(e,t){let n=e.path.length-1,i=sN._createAt(t);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[n]-e.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(e,t,n="toNone"){if(e instanceof sN)return new sN(e.root,e.path,e.stickiness);{if("end"==t)t=e.maxOffset;else{if("before"==t)return this._createBefore(e,n);if("after"==t)return this._createAfter(e,n);if(0!==t&&!t)throw new w("model-createpositionat-offset-required",[this,e])}if(!e.is("element")&&!e.is("documentFragment"))throw new w("model-position-parent-incorrect",[this,e]);let i=e.getPath();return i.push(t),new this(e.root,i,n)}}static _createAfter(e,t){if(!e.parent)throw new w("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new w("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){let n=new sN(t.graveyard,e.path);return n.stickiness=e.stickiness,n}if(!t.getRoot(e.root))throw new w("model-position-fromjson-no-root",t,{rootName:e.root});return new sN(t.getRoot(e.root),e.path,e.stickiness)}}function sP(e,t){let n=t.getChildAtOffset(e.offset);return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function sL(e,t,n){return null!==n?null:t.getChildAtOffset(e.offset)}function sO(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}function sz(e,t,n){return n+1!==e.path.length&&!!sR(t.path,n+1)&&!!function(e,t){let n=e.parent,i=e.path.length-1,o=0;for(;i>=t;){if(e.path[i]+o!==n.maxOffset)return!1;o=1,i--,n=n.parent}return!0}(e,n+1)}function sR(e,t){for(;t<e.length;){if(0!==e[t])return!1;t++}return!0}sN.prototype.is=function(e){return"position"===e||"model:position"===e};class sF extends sx{constructor(e,t){super(),this.start=sN._createAt(e),this.end=t?sN._createAt(t):sN._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new sB({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==Z(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);let n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}containsItem(e){let t=sN._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){let t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new sF(this.start,e.start)),this.containsPosition(e.end)&&t.pu
2sh(new sF(e.end,this.end))):t.push(new sF(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new sF(t,n)}return null}getJoined(e,t=!1){let n=this.isIntersecting(e);if(n||(n=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!n)return null;let i=this.start,o=this.end;return e.start.isBefore(i)&&(i=e.start),e.end.isAfter(o)&&(o=e.end),new sF(i,o)}getMinimalFlatRanges(){let e=[],t=this.start.getCommonPath(this.end).length,n=sN._createAt(this.start),i=n.parent;for(;n.path.length>t+1;){let t=i.maxOffset-n.offset;0!==t&&e.push(new sF(n,n.getShiftedBy(t))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){let t=this.end.path[n.path.length-1],i=t-n.offset;0!==i&&e.push(new sF(n,n.getShiftedBy(i))),n.offset=t,n.path.push(0)}return e}getWalker(e={}){return e.boun
2daries=this,new sB(e)}*getItems(e={}){for(let t of(e.boundaries=this,e.ignoreElementEnd=!0,new sB(e)))yield t.item}*getPositions(e={}){e.boundaries=this;let t=new sB(e);for(let e of(yield t.position,t))yield e.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new sF(this.start,this.end)]}getTransformedByOperations(e){let t=[new sF(this.start,this.end)];for(let n of e)for(let e=0;e<t.length;e++){let i=t[e].getTransformedByOperation(n);t.splice(e,1,...i),e+=i.length-1}for(let e=0;e<t.length;e++){let n=t[e];for(let i=e+1;i<t.length;i++){let e=t[i];(n.containsRange(e)||e.containsRange(n)||n.isEqual(e))&&t.splice(i,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){let n=e.sourcePosition,i=e.howMany,o=e.targetPosition;return this._getTransformedByMove(n,o,i,t)}_getTransformedBySplitOperation(e){let t=this.start._getTransformedBySplitOperation(e),n=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(n=this.end.getShiftedBy(1)),t.root!=n.root&&(n=this.end.getShiftedBy(-1)),new sF(t,n)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new sF(this.start);let t=this.start._getTransformedByMergeOperation(e),n=this.end._getTransformedByMergeOperation(e);return t.root!=n.root&&(n=this.end.getShiftedBy(-1)),t.isAfter(n)&&(e.sourcePosition.isBefore(e.targetPosition)?(t=sN._createAt(n)).offset=0:(e.deletionPosition.isEqual(t)||(n=e.deletionPosition),t=e.targetPosition)),new sF(t,n)}_getTransformedByInsertion(e,t,n=!1){if(n&&this.containsPosition(e))return[new sF(this.start,e),new sF(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{let n=new sF(this.start,this.end);return n.start=n.start._getTransformedByInsertion(e,t),n.end=n.end._getTransformedByInsertion(e,t),[n]}}_getTransformedByMove(e,t,n,i=!1){let o;if(this.isCollapsed)return[new sF(this.start._getTransformedByMove(e,t,n))];let r=sF._createFromPositionAndShift(e,n),s=t._getTransformedByDeletion(e,n);if(this.containsPosition(t)&&!i&&(r.containsPosition(this.start)||r.containsPosition(this.end)))return[new sF(this.start._getTransformedByMove(e,t,n),this.end._getTransformedByMove(e,t,n))];let a=this.getDifference(r),l=null,c=this.getIntersection(r);if(1==a.length?l=new sF(a[0].start._getTransformedByDeletion(e,n),a[0].end._getTransformedByDeletion(e,n)):2==a.length&&(l=new sF(this.start,this.end._getTransformedByDeletion(e,n))),o=l?l._getTransformedByInsertion(s,n,null!==c||i):[],c){let e=new sF(c.start._getCombined(r.start,s),c.end._getCombined(r.start,s));2==o.length?o.splice(1,0,e):o.push(e)}return o}_getTransformedByDeletion(e,t){let n=this.start._getTransformedByDeletion(e,t),i=this.end._getTransformedByDeletion(e,t);return null==n&&null==i?null:(null==n&&(n=e),null==i&&(i=e),new sF(n,i))}static _createFromPositionAndShift(e,t){let n=e.getShiftedBy(t);return t>0?new this(e,n):new this(n,e)}static _createIn(e){return new this(sN._createAt(e,0),sN._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(sN._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new w("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();let t=e[0];e.sort((e,t)=>e.start.isAfter(t.start)?1:-1);let n=e.indexOf(t),i=new this(t.start,t.end);for(let t=n-1;t>=0&&e[t].end.isEqual(i.start);t--)i.start=sN._createAt(e[t].start);for(let t=n+1;t<e.length&&e[t].start.isEqual(i.end);t++)i.end=sN._createAt(e[t].end);return i}static fromJSON(e,t){return new this(sN.fromJSON(e.start,t),sN.fromJSON(e.end,t))}}sF.prototype.is=function(e){return"range"===e||"model:range"===e};class sj extends M(){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",(e,t)=>{if(t.viewPosition)return;let n=this._modelToViewMapping.get(t.modelPosition.parent);if(!n)throw new w("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;let n=this.findMappedViewAncestor(t.viewPosition),i=this._viewToModelMapping.get(n),o=this._toModelOff
2set(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=sN._createAt(i,o)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){let n=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(let t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(n)==e&&this._modelToViewMapping.delete(n))}unbindModelElement(e){let t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){let n=this._markerNameToElements.get(t)||new Set;n.add(e);let i=this._elementToMarkerNames.get(e)||new Set;i.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,i)}unbindElementFromMarkerName(e,t){let n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));let i=this._elementToMarkerNames.get(e);i&&(i.delete(t),0==i.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){let e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(let[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);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(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new sF(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new oZ(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){let t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){let n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(e){let t=this._markerNameToElements.get(e);if(!t)return null;let n=new Set;for(let e of t)if(e.is("attributeElement"))for(let t of e.getElementsWithSameId())n.add(t);else n.add(e);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let i=0;for(let n=0;n<t;n++)i+=this.getModelLength(e.getChild(n));return i}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(let n of e.getChildren())t+=this.getModelLength(n);return t}}findPositionIn(e,t){let n,i=0,o=0,r=0;if(e.is("$text"))return new oQ(e,t);for(;o<t;)n=e.getChild(r),o+=i=this.getModelLength(n),r++;return o==t?this._moveViewPositionToTextNode(new oQ(e,r)):this.findPositionIn(n,t-(o-i))}_moveViewPositionToTextNode(e){let t=e.nodeBefore,n=e.nodeAfter;return t instanceof oh?new oQ(t,t.data.length):n instanceof oh?new oQ(n,0):e}}class sV{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=sH(t),e instanceof sS&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=sH(t),e instanceof sS&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=sH(t),e instanceof sS&&(e=this._getSymbolForTextProxy(e));let n=this._consumable.get(e);if(void 0===n)return null;let i=n.get(t);return void 0===i?null:i}revert(e,t){t=sH(t),e instanceof sS&&(e=this._getSymbolForTextProxy(e));let n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}verifyAllConsumed(e){let t=[];for(let[n,i]of this._consumable)for(let[o,r]of i){let i=o.split(":")[0];r&&e==i&&t.push({event:o,item:n.name||n.description})}if(t.length)throw new w("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){let i=n.get(e.endOffset);i&&(t=i.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){let t,n;let i=e.startOffset,o=e.endOffset,r=e.parent,s=Symbol("$textProxy:"+e.data);return(t=this._textProxyRegistry.get(i))||(t=new Map,this._textProxyRegistry.set(i,t)),(n=t.get(o))||(n=new Map,t.set(o,n)),n.set(r,s),s}}function sH(e){let t=e.split(":");return"insert"==t[0]?t[0]:"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}class sU extends M(){constructor(e){super(),this._conversionApi={dispatcher:this,...e},this._firedEventsMap=new WeakMap}
2convertChanges(e,t,n){let i=this._createConversionApi(n,e.getRefreshedItems());for(let t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,i);for(let t of this._reduceChanges(e.getChanges()))"insert"===t.type?this._convertInsert(sF._createFromPositionAndShift(t.position,t.length),i):"reinsert"===t.type?this._convertReinsert(sF._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);for(let e of(i.mapper.flushDeferredBindings(),i.mapper.flushUnboundMarkerNames())){let n=t.get(e).getRange();this._convertMarkerRemove(e,n,i),this._convertMarkerAdd(e,n,i)}for(let t of e.getMarkersToAdd())this._convertMarkerAdd(t.name,t.range,i);i.consumable.verifyAllConsumed("insert")}convert(e,t,n,i={}){let o=this._createConversionApi(n,void 0,i);for(let[n,i]of(this._convertInsert(e,o),t))this._convertMarkerAdd(n,i,o);o.consumable.verifyAllConsumed("insert")}convertSelection(e,t,n){let i=this._createConversionApi(n);this.fire("cleanSelection",{selection:e},i);let o=e.getFirstPosition().root;if(!i.mapper.toViewElement(o))return;let r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(i.consumable,e,r),this.fire("selection",{selection:e},i),e.isCollapsed){for(let t of r)if(i.consumable.test(e,"addMarker:"+t.name)){let n=t.getRange();if(!function(e,t,n){let i=t.getRange(),o=Array.from(e.getAncestors());return o.shift(),o.reverse(),!o.some(e=>{if(i.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")})}(e.getFirstPosition(),t,i.mapper))continue;let o={item:e,markerName:t.name,markerRange:n};this.fire(`addMarker:${t.name}`,o,i)}for(let t of e.getAttributeKeys())if(i.consumable.test(e,"attribute:"+t)){let n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.fire(`attribute:${t}:$text`,n,i)}}}_convertInsert(e,t,n={}){for(let i of(n.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e),Array.from(e.getWalker({shallow:!0})).map(sq)))this._testAndFire("insert",i,t)}_convertRemove(e,t,n,i){this.fire(`remove:${n}`,{position:e,length:t},i)}_convertAttribute(e,t,n,i,o){for(let r of(this._addConsumablesForRange(o.consumable,e,`attribute:${t}`),e)){let e={item:r.item,range:sF._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${t}`,e,o)}}_convertReinsert(e,t){let n=Array.from(e.getWalker({shallow:!0}));for(let e of(this._addConsumablesForInsert(t.consumable,n),n.map(sq)))this._testAndFire("insert",{...e,reconversion:!0},t)}
2_convertMarkerAdd(e,t,n){if("$graveyard"==t.root.rootName)return;let i=`addMarker:${e}`;if(n.consumable.add(t,i),this.fire(i,{markerName:e,markerRange:t},n),n.consumable.consume(t,i))for(let o of(this._addConsumablesForRange(n.consumable,t,i),t.getItems())){if(!n.consumable.test(o,i))continue;let r={item:o,range:sF._createOn(o),markerName:e,markerRange:t};this.fire(i,r,n)}}_convertMarkerRemove(e,t,n){"$graveyard"!=t.root.rootName&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},n)}_reduceChanges(e){let t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(let n of t){let t=n.item;if(null===e.test(t,"insert"))for(let n of(e.add(t,"insert"),t.getAttributeKeys()))e.add(t,"attribute:"+n)}return e}_addConsumablesForRange(e,t,n){for(let i of t.getItems())e.add(i,n);return e}_addConsumablesForSelection(e,t,n){for(let i of(e.add(t,"selection"),n))e.add(t,"addMarker:"+i.name);for(let n of t.getAttributeKeys())e.add(t,"attribute:"+n);return e}_testAndFire(e,t,n){let i=function(e,t){let n=t.item.is("element")?t.item.name:"$text";return`${e}:${n}`}(e,t),o=t.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(t.item):t.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,t,n)}_testAndFireAddAttributes(e,t){let n={item:e,range:sF._createOn(e)};for(let e of n.item.getAttributeKeys())n.attributeKey=e,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(e),this._testAndFire(`attribute:${e}`,n,t)}_createConversionApi(e,t=new Set,n={}){let i={...this._conversionApi,consumable:new sV,writer:e,options:n,convertItem:e=>this._convertInsert(sF._createOn(e),i),convertChildren:e=>this._convertInsert(sF._createIn(e),i,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,i),canReuseView:e=>!t.has(i.mapper.toModelElement(e))};return this._firedEventsMap.set(i,new Map),i}}function sq(e){return{item:e.item,range:sF._createFromPositionAndShift(e.previousPosition,e.length)}}class sG extends M(sx){constructor(...e){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){let e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){let e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.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(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(let t of this._ranges){let n=!1;for(let i of e._ranges)if(t.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(let e of this._ranges)yield new sF(e.start,e.end)}getFirstRange(){let e=null;for(let t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new sF(e.start,e.end):null}getLastRange(){let e=null;for(let t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new sF(e.start,e.end):null}getFirstPosition(){let e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){let e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,n,i]=e;if("object"==typeof n&&(i=n,n=void 0),null===t)this._setRanges([]);else if(t instanceof sG)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof sF)this._setRanges([t],!!i&&!!i.backward);else if(t instanceof sN)this._setRanges([new sF(t)]);else if(t instanceof sE){let e;let o=!!i&&!!i.backward;if("in"==n)e=sF._createIn(t);else if("on"==n)e=sF._createOn(t);else{if(void 0===n)throw new w("model-selection-setto-required-second-parameter",[this,t]);e=new sF(sN._createAt(t,n))}this._setRanges([e],o)}else{if(!J(t))throw new w("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,i&&!!i.backward)}}_setRanges(e,t=!1){let n=Array.from(e),i=n.some(t=>{if(!(t instanceof sF))throw new w("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every(e=>!e.isEqual(t))});(n.length!==this._ranges.length||i)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new w("model-selection-setfocus-no-ranges",[this,e]);let n=sN._createAt(e,t);if("same"==n.compareWith(this.focus))return;let i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new sF(n,i)),this._lastRangeBackward=!0):(this._pushRange(new sF(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){let e=new WeakSet;for(let t of this.getRanges()){let n=sK(t.start,e);for(let i of(n&&(!(!t.isCollapsed&&!n.isEmpty)||!t.start.isTouching(sN._createAt(n,n.maxOffset))&&s$(n,t))&&(yield n),t.getWalker())){let n=i.item;"elementEnd"==i.type&&sW(n,e)&&s$(n,t)&&(yield n)}let i=sK(t.end,e);i&&(!(!t.isCollapsed&&!i.isEmpty)||!t.end.isTouching(sN._createAt(i,0))&&s$(i,t))&&(yield i)}}containsEntireContent(e=this.anchor.root){let t=sN._createAt(e,0),n=sN._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new sF(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new w("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_replaceAllRanges(e){for(let t of(this._removeAllRanges(),e))this._pushRange(t)}
2_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function sW(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function sK(e,t){let n=e.parent.root.document.model.schema,i=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),o=!1,r=i.find(e=>!o&&!(o=n.isLimit(e))&&sW(e,t));return i.forEach(e=>t.add(e)),r}function s$(e,t){let n=function(e){let t=e.root.document.model.schema,n=e.parent;for(;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(sF._createOn(n),!0)}sG.prototype.is=function(e){return"selection"===e||"model:selection"===e};class sY extends M(sF){constructor(e,t){super(e,t),sQ.call(this)}detach(){this.stopListening()}toRange(){return new sF(this.start,this.end)}static fromRange(e){return new sY(e.start,e.end)}}function sQ(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{let n=t[0];n.isDocumentOperation&&sZ.call(this,n)},{priority:"low"})}function sZ(e){let t=this.getTransformedByOperation(e),n=sF._createFromRanges(t),i=!n.isEqual(this),o=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),r=null;if(i){"$graveyard"==n.root.rootName&&(r="remove"==e.type?e.sourcePosition:e.deletionPosition);let t=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",t,{deletionPosition:r})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:r})}sY.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};let sJ="selection:";class sX extends M(sx){constructor(e){super(),this._selection=new s0(e),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(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return sJ+e}static _isStoreAttributeKey(e){return e.startsWith(sJ)}}sX.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class s0 extends sG{constructor(e){super(),this.markers=new iu({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=e.model,this._document=e,this.listenTo(this._model,"applyOperation",(e,t)=>{let n=t[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",()=>
2{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,t,n,i)=>{this._updateMarker(t,i)}),this.listenTo(this._document,"change",(e,t)=>{!function(e,t){for(let n of e.document.differ.getChanges()){if("insert"!=n.type)continue;let i=n.position.parent;n.length===i.maxOffset&&e.enqueueChange(t,e=>{for(let t of Array.from(i.getAttributeKeys()).filter(e=>e.startsWith(sJ)))e.removeAttribute(t,i)})}}(this._model,t)})}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 e=0;e<this._ranges.length;e++)this._ranges[e].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(...e){super.setTo(...e),this._updateAttributes(!0),this.updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this.updateMarkers()}setAttribute(e,t){this._setAttribute(e,t)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}removeAttribute(e){this._removeAttribute(e)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}overrideGravity(){let e=f();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new w("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this.updateMarkers()}_replaceAllRanges(e){this._validateSelectionRanges(e),super._replaceAllRanges(e)}_popRange(){this._ranges.pop().detach()}_pushRange(e){let t=this._prepareRange(e);t&&this._ranges.push(t)}_validateSelectionRanges(e){for(let t of e)if(!this._document._validateSelectionRange(t))throw new w("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;let t=sY.fromRange(e);return t.on("change:range",(e,n,i)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=i.deletionPosition;let e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}}),t}updateMarkers(){if(!this._observedMarkers.size)return;let e=[],t=!1;for(let t of this._model.markers){let n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;let i=t.getRange();for(let n of this.getRanges())i.containsRange(n,!n.isCollapsed)&&e.push(t)}let n=Array.from(this.markers);for(let n of e)this.markers.has(n)||(this.markers.add(n),t=!0);for(let n of Array.from(this.markers))e.includes(n)||(this.markers.remove(n),t=!0);t&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(e,t){let n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let i=!1,o=Array.from(this.markers),r=this.markers.has(e);if(t){let n=!1;for(let e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){n=!0;break}n&&!r?(this.markers.add(e),i=!0):!n&&r&&(this.markers.remove(e),i=!0)}else r&&(this.markers.remove(e),i=!0);i&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateAttributes(e){let t=ib(this._getSurroundingAttributes()),n=ib(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(let[e,t]of this._attributePriority)"low"==t&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);let i=[];for(let[e,t]of this.getAttributes())n.has(e)&&n.get(e)===t||i.push(e);for(let[e]of n)this.hasAttribute(e)||i.push(e);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(e,t,n=!0){let i=n?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,i),!0)}_removeAttribute(e,t=!0){let n=t?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,n),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){let t=new Set;for(let[t,n]of this.getAttributes())e.get(t)!==n&&this._removeAttribute(t,!1);for(let[n,i]of e)this._setAttribute(n,i,!1)&&t.add(n);return t}*getStoredAttributes(){let e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty){for(let t of e.getAttributeKeys())if(t.startsWith(sJ)){let n=t.substr(10);yield[n,e.getAttribute(t)]}}}_getSurroundingAttributes(){let e=this.getFirstPosition(),t=this._model.schema;if("$graveyard"==e.root.rootName)return null;let n=null;if(this.isCollapsed){let i=e.textNode?e.textNode:e.nodeBefore,o=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=s1(i,t)),n||(n=s1(o,t)),!this.isGravityOverridden&&!n){let e=i;for(;e&&!n;)n=s1(e=e.previousSibling,t)}if(!n){let e=o;for(;e&&!n;)n=s1(e=e.nextSibling,t)}n||(n=this.getStoredAttributes())}else for(let e of this.getFirstRange()){if(e.item.is("element")&&t.isObject(e.item)){n=s1(e.item,t);break}if("text"==e.type){n=e.item.getAttributes();break}}return n}_fixGraveyardSelection(e){let t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}
2}function s1(e,t){if(!e)return null;if(e instanceof sS||e instanceof sI)return e.getAttributes();if(!t.isInline(e))return null;if(!t.isObject(e))return[];let n=[];for(let[i,o]of e.getAttributes())t.checkAttribute("$text",i)&&!1!==t.getAttributeProperties(i).copyFromObject&&n.push([i,o]);return n}class s2{constructor(e){this._dispatchers=e}add(e){for(let t of this._dispatchers)e(t);return this}}class s5 extends s2{elementToElement(e){return this.add(function(e){let t=s6(e.model),n=s7(e.view,"container");return t.attributes.length&&(t.children=!0),i=>{i.on(`insert:${t.name}`,function(e,t=function(e,t,{preflight:n}={}){return n?t.test(e,"insert"):t.consume(e,"insert")}){return(n,i,o)=>{if(!t(i.item,o.consumable,{preflight:!0}))return;let r=e(i.item,o,i);if(!r)return;t(i.item,o.consumable);let s=o.mapper.toViewPosition(i.range.start);o.mapper.bindElements(i.item,r),o.writer.insert(s,r),o.convertAttributes(i.item),ai(r,i.item.getChildren(),o,{reconversion:i.reconversion})}}(n,an(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&i.on("reduceChanges",at(t),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(e){let t=s6(e.model),n=s7(e.view,"container");return t.children=!0,i=>{var o;if(i._conversionApi.schema.checkChild(t.name,"$text"))throw new w("conversion-element-to-structure-disallowed-text",i,{elementName:t.name});i.on(`insert:${t.name}`,(o=an(t),(e,t,i)=>{var r;if(!o(t.item,i.consumable,{preflight:!0}))return;let s=new Map;i.writer._registerSlotFactory((r=t.item,(e,t)=>{let n=e.createContainerElement("$slot"),o=null;if("children"===t)o=Array.from(r.getChildren());else{if("function"!=typeof t)throw new w("conversion-slot-mode-unknown",i.dispatcher,{modeOrFilter:t});o=Array.from(r.getChildren()).filter(e=>t(e))}return s.set(n,o),n}));let a=n(t.item,i,t);if(i.writer._clearSlotFactory(),!a)return;(function(e,t,n){let i=Array.from(t.values()).flat(),o=new Set(i);if(o.size!=i.length)throw new w("conversion-slot-filter-overlap",n.dispatcher,{element:e});if(o.size!=e.childCount)throw new w("conversion-slot-filter-incomplete",n.dispatcher,{element:e})})(t.item,s,i),o(t.item,i.consumable);let l=i.mapper.toViewPosition(t.range.start);i.mapper.bindElements(t.item,a),i.writer.insert(l,a),i.convertAttributes(t.item),function(e,t,n,i){n.mapper.on("modelToViewPosition",s,{priority:"highest"});let o=null,r=null;for([o,r]of t)ai(e,r,n,i),n.writer.move(n.writer.createRangeIn(o),n.writer.createPositionBefore(o)),n.writer.remove(o);function s(e,t){let n=t.modelPosition.nodeAfter,i=r.indexOf(n);i<0||(t.viewPosition=t.mapper.findPositionIn(o,i))}n.mapper.off("modelToViewPosition",s)}(a,s,i,{reconversion:t.reconversion})}),{priority:e.converterPriority||"normal"}),i.on("reduceChanges",at(t),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(e){let t=(e=sv(e)).model;"string"==typeof t&&(t={key:t});let n=`attribute:${t.key}`;if(t.name&&(n+=":"+t.name),t.values)for(let n of t.values)e.view[n]=s7(e.view[n],"attribute");else e.view=s7(e.view,"attribute");let i=s9(e);return t=>{t.on(n,(e,t,n)=>{if(!n.consumable.test(t.item,e.name))return;let o=i(t.attributeOldValue,n,t),r=i(t.attributeNewValue,n,t);if(!o&&!r)return;n.consumable.consume(t.item,e.name);let s=n.writer,a=s.document.selection;if(t.item instanceof sG||t.item instanceof sX)s.wrap(a.getFirstRange(),r);else{let e=n.mapper.toViewRange(t.range);null!==t.attributeOldValue&&o&&(e=s.unwrap(e,o)),null!==t.attributeNewValue&&r&&s.wrap(e,r)}},{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=(e=sv(e)).model;"string"==typeof t&&(t={key:t});let n=`attribute:${t.key}`;if(t.name&&(n+=":"+t.name),t.values)for(let n of t.values)e.view[n]=s8(e.view[n]);else e.view=s8(e.view);let i=s9(e);return t=>{t.on(n,(e,t,n)=>{if(!n.consumable.test(t.item,e.name))return;let o=i(t.attributeOldValue,n,t),r=i(t.attributeNewValue,n,t);if(!o&&!r)return;n.consumable.consume(t.item,e.name);let s=n.mapper.toViewElement(t.item),a=n.writer;if(!s)throw new w("conversion-attribute-to-attribute-on-text",n.dispatcher,t);if(null!==t.attributeOldValue&&o){if("class"==o.key)for(let e of"string"==typeof o.value?o.value.split(/\s+/):o.value)a.removeClass(e,s);else if("style"==o.key){if("string"==typeof o.value){let e=new oR(a.document.stylesProcessor);for(let[t]of(e.setTo(o.value),e.getStylesEntries()))a.removeStyle(t,s)}else for(let e of Object.keys(o.value))a.removeStyle(e,s)}else a.removeAttribute(o.key,s)}if(null!==t.attributeNewValue&&r){if("class"==r.key)for(let e of"string"==typeof r.value?r.value.split(/\s+/):r.value)a.addClass(e,s);else if("style"==r.key){if("string"==typeof r.value){let e=new oR(a.document.stylesProcessor);for(let[t,n]of(e.setTo(r.value),e.getStylesEntries()))a.setStyle(t,n,s)}else for(let e of Object.keys(r.value))a.setStyle(e,r.value[e],s)}else a.setAttribute(r.key,r.value,s)}},{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){let t=s7(e.view,"ui");return n=>{n.on(`addMarker:${e.model}`,(e,n,i)=>{n.isOpening=!0;let o=t(n,i);n.isOpening=!1;let r=t(n,i);if(!o||!r)return;let s=n.markerRange;if(s.isCollapsed&&!i.consumable.consume(s,e.name))return;for(let t of s)if(!i.consumable.consume(t.item,e.name))return;let a=i.mapper,l=i.writer;l.insert(a.toViewPosition(s.start),o),i.mapper.bindElementToMarker(o,n.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),r),i.mapper.bindElementToMarker(r,n.markerName)),e.stop()},{priority:e.converterPriority||"normal"}),n.on(`removeMarker:${e.model}`,(e,t,n)=>{let i=n.mapper.markerNameToElements(t.markerName);if(i){for(let e of i)n.mapper.unbindElementFromMarkerName(e,t.markerName),n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}},{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(t=>{var n,i,o;t.on(`addMarker:${e.model}`,(n=e.view,(e,t,i)=>{if(!t.item||!(t.item instanceof sG||t.item instanceof sX||t.item.is("$textProxy")))return;
2let o=ae(n,t,i);if(!o||!i.consumable.consume(t.item,e.name))return;let r=i.writer,s=s4(r,o),a=r.document.selection;if(t.item instanceof sG||t.item instanceof sX)r.wrap(a.getFirstRange(),s);else{let e=i.mapper.toViewRange(t.range);for(let n of r.wrap(e,s).getItems())if(n.is("attributeElement")&&n.isSimilar(s)){i.mapper.bindElementToMarker(n,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on(`addMarker:${e.model}`,(i=e.view,(e,t,n)=>{if(!t.item||!(t.item instanceof sM))return;let o=ae(i,t,n);if(!o||!n.consumable.test(t.item,e.name))return;let r=n.mapper.toViewElement(t.item);if(r&&r.getCustomProperty("addHighlight")){for(let i of(n.consumable.consume(t.item,e.name),sF._createIn(t.item)))n.consumable.consume(i.item,e.name);r.getCustomProperty("addHighlight")(r,o,n.writer),n.mapper.bindElementToMarker(r,t.markerName)}}),{priority:e.converterPriority||"normal"}),t.on(`removeMarker:${e.model}`,(o=e.view,(e,t,n)=>{if(t.markerRange.isCollapsed)return;let i=ae(o,t,n);if(!i)return;let r=s4(n.writer,i),s=n.mapper.markerNameToElements(t.markerName);if(s){for(let e of s)(n.mapper.unbindElementFromMarkerName(e,t.markerName),e.is("attributeElement"))?n.writer.unwrap(n.writer.createRangeOn(e),r):e.getCustomProperty("removeHighlight")(e,i.id,n.writer);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})})}markerToData(e){return this.add(function(e){let t=(e=sv(e)).model,n=e.view;return n||(n=n=>({group:t,name:n.substr(e.model.length+1)})),i=>{var o,r;i.on(`addMarker:${t}`,(o=n,(e,t,n)=>{let i=o(t.markerName,n);if(!i)return;let r=t.markerRange;n.consumable.consume(r,e.name)&&(s3(r,!1,n,t,i),s3(r,!0,n,t,i),e.stop())}),{priority:e.converterPriority||"normal"}),i.on(`removeMarker:${t}`,(r=n,(e,t,n)=>{let i=r(t.markerName,n);if(!i)return;let o=n.mapper.markerNameToElements(t.markerName);if(o){for(let e of o)n.mapper.unbindElementFromMarkerName(e,t.markerName),e.is("containerElement")?(s(`data-${i.group}-start-before`,e),s(`data-${i.group}-start-after`,e),s(`data-${i.group}-end-before`,e),s(`data-${i.group}-end-after`,e)):n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}function s(e,t){if(t.hasAttribute(e)){let o=new Set(t.getAttribute(e).split(","));o.delete(i.name),0==o.size?n.writer.removeAttribute(e,t):n.writer.setAttribute(e,Array.from(o).join(","),t)}}}),{priority:e.converterPriority||"normal"})}}(e))}}function s4(e,t){let n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),"number"==typeof t.priority&&(n._priority=t.priority),n._id=t.id,n}function s3(e,t,n,i,o){let r=t?e.start:e.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 e,r;t&&s||!t&&!a?(e=s,r=!0):(e=a,r=!1);let l=n.mapper.toViewElement(e);if(l)return void function(e,t,n,i,o,r){let s=`data-${r.group}-${t?"start":"end"}-${n?"before":"after"}`,a=e.hasAttribute(s)?e.getAttribute(s).split(","):[];a.unshift(r.name),i.writer.setAttribute(s,a.join(","),e),i.mapper.bindElementToMarker(e,o.markerName)}(l,t,r,n,i,o)}!function(e,t,n,i,o){let r=`${o.group}-${t?"start":"end"}`,s=o.name?{name:o.name}:null,a=n.writer.createUIElement(r,s);n.writer.insert(e,a),n.mapper.bindElementToMarker(a,i.markerName)}(n.mapper.toViewPosition(r),t,n,i,o)}function s6(e){return"string"==typeof e&&(e={name:e}),{name:e.name,attributes:e.attributes?n2(e.attributes):[],children:!!e.children}}function s7(e,t){return"function"==typeof e?e:(n,i)=>(function(e,t,n){let i;"string"==typeof e&&(e={name:e});let o=t.writer,r=Object.assign({},e.attributes);if("container"==n)i=o.createContainerElement(e.name,r);else if("attribute"==n){let t={priority:e.priority||o8.DEFAULT_PRIORITY};i=o.createAttributeElement(e.name,r,t)}else i=o.createUIElement(e.name,r);if(e.styles)for(let t of Object.keys(e.styles))o.setStyle(t,e.styles[t],i);if(e.classes){let t=e.classes;if("string"==typeof t)o.addClass(t,i);else for(let e of t)o.addClass(e,i)}return i})(e,i,t)}function s9(e){return e.model.values?(t,n,i)=>{let o=e.view[t];return o?o(t,n,i):null}:e.view}function s8(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function ae(e,t,n){let i="function"==typeof e?e(t,n):e;return i?(i.priority||(i.priority=10),i.id||(i.id=t.markerName),i):null}function at(e){let t=(t,n)=>{if(!t.is("element",e.name))return!1;if("attribute"==n.type){if(e.attributes.includes(n.attributeKey))return!0}else if(e.children)return!0;return!1};return(e,n)=>{let i=[];for(let e of(n.reconvertedElements||(n.reconvertedElements=new Set),n.changes)){let o="attribute"==e.type?e.range.start.nodeAfter:e.position.parent;if(o&&t(o,e)){if(!n.reconvertedElements.has(o)){n.reconvertedElements.add(o);let e=sN._createBefore(o),t=i.length;for(let n=i.length-1;n>=0;n--){let o=i[n],r=("attribute"==o.type?o.range.start:o.position).c
2ompareWith(e);if("before"==r||"remove"==o.type&&"same"==r)break;t=n}i.splice(t,0,{type:"remove",name:o.name,position:e,length:1},{type:"reinsert",name:o.name,position:e,length:1})}}else i.push(e)}n.changes=i}}function an(e){return(t,n,i={})=>{let o=["insert"];for(let n of e.attributes)t.hasAttribute(n)&&o.push(`attribute:${n}`);return!!o.every(e=>n.test(t,e))&&(i.preflight||o.forEach(e=>n.consume(t,e)),!0)}}function ai(e,t,n,i){for(let o of t)(function(e,t,n,i){let{writer:o,mapper:r}=n;if(!i.reconversion)return!1;let s=r.toViewElement(t);return!(!s||s.root==e)&&!!n.canReuseView(s)&&(o.move(o.createRangeOn(s),r.toViewPosition(sN._createBefore(t))),!0)})(e.root,o,n,i)||n.convertItem(o)}function ao(e){let{schema:t,document:n}=e.model;for(let i of n.getRoots())if(i.isEmpty&&!t.checkChild(i,"$text")&&t.checkChild(i,"paragraph"))return e.insertElement("paragraph",i),!0;return!1}function ar(e,t,n){let i=n.createContext(e);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),t)}function as(e,t){let n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}class aa extends s2{elementToElement(e){return this.add(al(e))}elementToAttribute(e){return this.add(function(e){au(e=sv(e));let t=ah(e,!1),n=ac(e.view),i=n?`element:${n}`:"element";return n=>{n.on(i,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=sv(e);let t=null;("string"==typeof e.view||e.view.key)&&(t=function(e){let t;"string"==typeof e.view&&(e.view={key:e.view});let n=e.view.key,i=void 0===e.view.value?/[\s\S]*/:e.view.value;return t="class"==n||"style"==n?{["class"==n?"classes":"styles"]:i}:{attributes:{[n]:i}},e.view.name&&(t.name=e.view.name),e.view=t,n}(e)),au(e,t);let n=ah(e,!0);return t=>{t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){var t;let n=(t=e.model,(e,n)=>{let i="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":i})});return al({...e,model:n})}(e))}dataToMarker(e){return this.add(function(e){(e=sv(e)).model||(e.model=t=>t?e.view+":"+t:e.view);let t={view:e.view,model:e.model},n=ad(ag(t,"start")),i=ad(ag(t,"end"));return o=>{o.on(`element:${e.view}-start`,n,{priority:e.converterPriority||"normal"}),o.on(`element:${e.view}-end`,i,{priority:e.converterPriority||"normal"});let r=b.low,s=b.highest,a=b.get(e.converterPriority)/s;o.on("element",(e,n,i)=>{let o=`data-${t.view}`;function r(e,o){for(let r of o){let 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(",")))},{priority:r+a})}}(e))}}function al(e){let t=ad(e=sv(e)),n=ac(e.view),i=n?`element:${n}`:"element";return n=>{n.on(i,t,{priority:e.converterPriority||"normal"})}}function ac(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function ad(e){let t=new om(e.view);return(n,i,o)=>{var r,s;let a=t.match(i.viewItem);if(!a)return;let l=a.match;if(l.name=!0,!o.consumable.test(i.viewItem,l))return;let c=(r=e.model,s=i.viewItem,r instanceof Function?r(s,o):o.writer.createElement(r));c&&o.safeInsert(c,i.modelCursor)&&(o.consumable.consume(i.viewItem,l),o.convertChildren(i.viewItem,c),o.updateConversionResult(c,i))}}function au(e,t=null){let n=null===t||(e=>e.getAttribute(t)),i="object"!=typeof e.model?e.model:e.model.key,o="object"!=typeof e.model||void 0===e.model.value?n:e.model.value;e.model={key:i,value:o}}function ah(e,t){let n=new om(e.view);return(i,o,r)=>{if(!o.modelRange&&t)return;let s=n.match(o.viewItem);if(!s||(function(e,t){let n="function"==typeof e?e(t):e;return!!("object"!=typeof n||ac(n))&&!n.classes&&!n.attributes&&!n.styles}(e.view,o.viewItem)?s.match.name=!0:delete s.match.name,!r.consumable.test(o.viewItem,s.match)))return;let a=e.model.key,l="function"==typeof e.model.value?e.model.value(o.viewItem,r):e.model.value;null!==l&&(o.modelRange||Object.assign(o,r.convertChildren(o.viewItem,o.modelCursor)),function(e,t,n,i){let o=!1;for(let r of Array.from(e.getItems({shallow:n}
2)))i.schema.checkAttribute(r,t.key)&&(o=!0,r.hasAttribute(t.key)||i.writer.setAttribute(t.key,t.value,r));return o}(o.modelRange,{key:a,value:l},t,r)&&(r.consumable.test(o.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(o.viewItem,s.match)))}}function ag(e,t){return{view:`${e.view}-${t}`,model:(t,n)=>{let i=t.getAttribute("name"),o=e.model(i,n);return n.writer.createElement("$marker",{"data-name":o})}}}function am(e,t){return e.isCollapsed?function(e,t){let n=e.start,i=t.getNearestSelectionRange(n);if(!i){let e=n.getAncestors().reverse().find(e=>t.isObject(e));return e?sF._createOn(e):null}if(!i.isCollapsed)return i;let o=i.start;return n.isEqual(o)?null:new sF(o)}(e,t):function(e,t){let{start:n,end:i}=e,o=t.checkChild(n,"$text"),r=t.checkChild(i,"$text"),s=t.getLimitElement(n),a=t.getLimitElement(i);if(s===a){if(o&&r)return null;if(function(e,t,n){let i=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),o=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return i||o}(n,i,t)){let e=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),o=i.nodeBefore&&t.isSelectable(i.nodeBefore)?null:t.getNearestSelectionRange(i,"backward");return new sF(e?e.start:n,o?o.end:i)}}
2let l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){let e=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,o=l&&(!e||!ak(n.nodeAfter,t)),r=c&&(!e||!ak(i.nodeBefore,t)),d=n,u=i;return o&&(d=sN._createBefore(ap(s,t))),r&&(u=sN._createAfter(ap(a,t))),new sF(d,u)}return null}(e,t)}function ap(e,t){let n=e,i=n;for(;t.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function ak(e,t){return e&&t.isSelectable(e)}class af extends U(){constructor(e,t){var n,i,o;super(),this.model=e,this.view=new sy(t),this.mapper=new sj,this.downcastDispatcher=new sU({mapper:this.mapper,schema:e.schema});let r=this.model.document,s=r.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(r,"change",()=>{this.view.change(e=>{this.downcastDispatcher.convertChanges(r.differ,a,e),this.downcastDispatcher.convertSelection(s,a,e)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(n,i)=>{let o=i.newSelection,r=[];for(let e of o.getRanges())r.push(t.toModelRange(e));let s=e.createSelection(r,{backward:o.isBackward});s.isEqual(e.document.selection)||e.change(e=>{e.setSelection(s)})}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(n=this.mapper,i=this.model.schema,o=this.view,(e,t)=>{if(!o.document.isComposing||l.isAndroid)for(let e=0;e<t.targetRanges.length;e++){let o=t.targetRanges[e],r=n.toModelRange(o),s=am(r,i);s&&!s.isEqual(r)&&(t.targetRanges[e]=n.toViewRange(s))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;let i=n.writer,o=n.mapper.toViewPosition(t.range.start),r=i.createText(t.item.data);i.insert(o,r)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,n)=>{n.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||n.convertChildren(t.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(e,t,n)=>{let i=n.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),r=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(i,r),a=n.writer.remove(s.getTrimmed());for(let e of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(e,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(e,t,n)=>{let i=n.writer;for(let e of i.document.selection.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&n.writer.mergeAttributes(e.start);i.setSelection(null)}),this.downcastDispatcher.on("selection",(e,t,n)=>{let i=t.selection;if(i.isCollapsed||!n.consumable.consume(i,"selection"))return;let o=[];for(let e of i.getRanges())o.push(n.mapper.toViewRange(e));n.writer.setSelection(o,{backward:i.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,n)=>{let i=t.selection;if(!i.isCollapsed||!n.consumable.consume(i,"selection"))return;let 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(e=>{if("$graveyard"==e.rootName)return null;let t=new o$(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){let t="string"==typeof e?e:e.name,n=this.model.markers.get(t);if(!n)throw new w("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(e){this.model.change(()=>{this.model.document.differ._refreshItem(e)})}}class ab{constructor(){this._consumables=new Map}add(e,t){let n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new aw(e),this._consumables.set(e,n)),n.add(t))}test(e,t){let n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).
2consume(t),!0)}revert(e,t){let n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}static consumablesFromElement(e){let t={element:e,name:!0,attributes:[],classes:[],styles:[]};for(let n of e.getAttributeKeys())"style"!=n&&"class"!=n&&t.attributes.push(n);for(let n of e.getClassNames())t.classes.push(n);for(let n of e.getStyleNames())t.styles.push(n);return t}static createFrom(e,t){if(t||(t=new ab),e.is("$text"))return t.add(e),t;for(let n of(e.is("element")&&t.add(e,ab.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e),e.getChildren()))t=ab.createFrom(n,t);return t}}let aA=["attributes","classes","styles"];class aw{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){for(let t of(e.name&&(this._canConsumeName=!0),aA))t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(let t of aA)if(t in e){let n=this._test(t,e[t]);if(!0!==n)return n}return!0}consume(e){for(let t of(e.name&&(this._canConsumeName=!1),aA))t in e&&this._consume(t,e[t])}revert(e){for(let t of(e.name&&(this._canConsumeName=!0),aA))t in e&&this._revert(t,e[t])}_add(e,t){let n=n2(t),i=this._consumables[e];for(let t of n){if("attributes"===e&&("class"===t||"style"===t))throw new w("viewconsumable-invalid-attribute",this);if(i.set(t,!0),"styles"===e)for(let e of this.element.document.stylesProcessor.getRelatedStyles(t))i.set(e,!0)}}_test(e,t){let n=n2(t),i=this._consumables[e];for(let t of n)if("attributes"!==e||"class"!==t&&"style"!==t){let e=i.get(t);if(void 0===e)return null;if(!e)return!1}else{let e="class"==t?"classes":"styles",n=this._test(e,[...this._consumables[e].keys()]);if(!0!==n)return n}return!0}_consume(e,t){let n=n2(t),i=this._consumables[e];for(let t of n)if("attributes"!==e||"class"!==t&&"style"!==t){if(i.set(t,!1),"styles"==e)for(let e of this.element.document.stylesProcessor.getRelatedStyles(t))i.set(e,!1)}else{let e="class"==t?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){let n=n2(t),i=this._consumables[e];for(let t of n)if("attributes"!==e||"class"!==t&&"style"!==t)!1===i.get(t)&&i.set(t,!0);else{let e="class"==t?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class a_ extends U(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties=Object.create(null),this._customChildChecks=new Map,this._customAttributeChecks=new Map,this._genericCheckSymbol=Symbol("$generic"),this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(e,t)=>{t[0]=new aC(t[0])},{priority:"highest"}),this.on("checkChild",(e,t)=>{t[0]=new aC(t[0]),t[1]=this.getDefinition(t[1])},{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new w("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new w("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:"is"in e&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){let t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){let t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){let t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){let t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){let t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){let t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(e,t)}checkAttribute(e,t){let n=this.getDefinition(e.last);if(!n)return!1;let i=this._evaluateAttributeChecks(e,t);return void 0!==i?i:n.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof sN){let t=e.nodeBefore,n=e.nodeAfter;if(!(t instanceof sM))throw new w("schema-check-merge-no-element-before",this);if(!(n instanceof sM))throw new w("schema-check-merge-no-element-after",this);return this.checkMerge(t,n)}if(this.isLimit(e)||this.isLimit(t))return!1;for(let n of t.getChildren())if(!this.checkChild(e,n))return!1;return!0}addChildCheck(e,t){let n=void 0!==t?t:this._genericCheckSymbol,i=this._customChildChecks.get(n)||[];
2i.push(e),this._customChildChecks.set(n,i)}addAttributeCheck(e,t){let n=void 0!==t?t:this._genericCheckSymbol,i=this._customAttributeChecks.get(n)||[];i.push(e),this._customAttributeChecks.set(n,i)}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||Object.create(null)}getLimitElement(e){let t;for(t=e instanceof sN?e.parent:(e instanceof sF?[e]:Array.from(e.getRanges())).reduce((e,t)=>{let n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n},null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){let n=[...e.getFirstPosition().getAncestors(),new sI("",e.getAttributes())];return this.checkAttribute(n,t)}for(let n of e.getRanges())for(let e of n)if(this.checkAttribute(e.item,t))return!0;return!1}*getValidRanges(e,t){for(let n of e=function*(e){for(let t of e)yield*t.getMinimalFlatRanges()}(e))yield*this._getValidRangesForRange(n,t)}getNearestSelectionRange(e,t="both"){let n,i;if("$graveyard"==e.root.rootName)return null;if(this.checkChild(e,"$text"))return new sF(e);let o=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;for(let r of("both"!=t&&"backward"!=t||(n=new sB({boundaries:sF._createIn(o),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(i=new sB({boundaries:sF._createIn(o),startPosition:e})),function*(e,t){let n=!1;for(;!n;){if(n=!0,e){let t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}if(t){let e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}}}(n,i))){let e=r.walker==n?"elementEnd":"elementStart",t=r.value;if(t.type==e&&this.isObject(t.item))return sF._createOn(t.item);if(this.checkChild(t.nextPosition,"$text"))return new sF(t.nextPosition)}return null}findAllowedParent(e,t){let n=e.parent;for(;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))break;n=n.parent}return null}setAllowedAttributes(e,t,n){let i=n.model;for(let[o,r]of Object.entries(t))i.schema.checkAttribute(e,o)&&n.setAttribute(o,r,e)}removeDisallowedAttributes(e,t){for(let n of e)if(n.is("$text"))ax(this,n,t);else for(let e of sF._createIn(n).getPositions())ax(this,e.nodeBefore||e.parent,t)}getAttributesWithProperty(e,t,n){let i={};for(let[o,r]of e.getAttributes()){let e=this.getAttributeProperties(o);void 0!==e[t]&&(void 0!==n&&n!==e[t]||(i[o]=r))}return i}createContext(e){return new aC(e)}_clearCache(){this._compiledDefinitions=null}_compile(){let e={},t=this._sourceDefinitions;for(let n of Object.keys(t))e[n]=function(e,t){let n={name:t,allowIn:new Set,allowChildren:new Set,disallowIn:new Set,disallowChildren:new Set,allowContentOf:new Set,allowWhere:new Set,allowAttributes:new Set,disallowAttributes:new Set,allowAttributesOf:new Set,inheritTypesFrom:new Set};return function(e,t){for(let n of e)for(let e of Object.keys(n).filter(e=>e.startsWith("is")))t[e]=!!n[e]}(e,n),av(e,n,"allowIn"),av(e,n,"allowChildren"),av(e,n,"disallowIn"),av(e,n,"disallowChildren"),av(e,n,"allowContentOf"),av(e,n,"allowWhere"),av(e,n,"allowAttributes"),av(e,n,"disallowAttributes"),av(e,n,"allowAttributesOf"),av(e,n,"inheritTypesFrom"),function(e,t){for(let n of e){let e=n.inheritAllFrom;e&&(t.allowContentOf.add(e),t.allowWhere.add(e),t.allowAttributesOf.add(e),t.inheritTypesFrom.add(e))}}(e,n),n}(t[n],n);let n=Object.values(e);for(let t of n)(function(e,t){for(let n of t.allowIn){let i=e[n];i?i.allowChildren.add(t.name):t.allowIn.delete(n)}})(e,t),function(e,t){for(let n of t.allowChildren){let i=e[n];i?i.allowIn.add(t.name):t.allowChildren.delete(n)}}(e,t),function(e,t){for(let n of t.disallowIn){let i=e[n];i?i.disallowChildren.add(t.name):t.disallowIn.delete(n)}}(e,t),function(e,t){for(let n of t.disallowChildren){let i=e[n];i?i.disallowIn.add(t.name):t.disallowChildren.delete(n)}}(e,t);for(let e of n)(function(e,t){for(let e of t.disallowChildren)t.allowChildren.delete(e);for(let e of t.disallowIn)t.allowIn.delete(e);for(let e of t.disallowAttributes)t.allowAttributes.delete(e)})(0,e);for(let t of n)(function(e,t){for(let n of t.allowContentOf){let i=e[n];
2i&&(i.disallowChildren.forEach(n=>{t.allowChildren.has(n)||(t.disallowChildren.add(n),e[n].disallowIn.add(t.name))}),i.allowChildren.forEach(n=>{t.disallowChildren.has(n)||(t.allowChildren.add(n),e[n].allowIn.add(t.name))}))}})(e,t);for(let t of n)(function(e,t){for(let n of t.allowWhere){let i=e[n];i&&(i.disallowIn.forEach(n=>{t.allowIn.has(n)||(t.disallowIn.add(n),e[n].disallowChildren.add(t.name))}),i.allowIn.forEach(n=>{t.disallowIn.has(n)||(t.allowIn.add(n),e[n].allowChildren.add(t.name))}))}})(e,t);for(let t of n)(function(e,t){for(let n of t.allowAttributesOf){let i=e[n];if(!i)return;i.allowAttributes.forEach(e=>{t.disallowAttributes.has(e)||t.allowAttributes.add(e)})}})(e,t);for(let t of n)(function(e,t){for(let n of t.inheritTypesFrom){let i=e[n];if(i)for(let e of Object.keys(i).filter(e=>e.startsWith("is")))e in t||(t[e]=i[e])}})(e,t);this._compiledDefinitions=function(e){let t={};for(let n of Object.values(e))t[n.name]={name:n.name,isBlock:!!n.isBlock,isContent:!!n.isContent,isInline:!!n.isInline,isLimit:!!n.isLimit,isObject:!!n.isObject,isSelectable:!!n.isSelectable,allowIn:Array.from(n.allowIn).filter(t=>!!e[t]),allowChildren:Array.from(n.allowChildren).filter(t=>!!e[t]),allowAttributes:Array.from(n.allowAttributes)};return t}(e)}_checkContextMatch(e,t){let n=e.last,i=this._evaluateChildChecks(e,t);if(!(i=void 0!==i?i:t.allowIn.includes(n.name)))return!1;let o=this.getDefinition(n),r=e.trimLast();return!!o&&(0==r.length||this._checkContextMatch(r,o))}_evaluateChildChecks(e,t){for(let n of[...this._customChildChecks.get(this._genericCheckSymbol)||[],...this._customChildChecks.get(t.name)||[]]){let i=n(e,t);if(void 0!==i)return i}}_evaluateAttributeChecks(e,t){for(let n of[...this._customAttributeChecks.get(this._genericCheckSymbol)||[],...this._customAttributeChecks.get(t)||[]]){let i=n(e,t);if(void 0!==i)return i}}*_getValidRangesForRange(e,t){let n=e.start,i=e.start;for(let o of e.getItems({shallow:!0}))o.is("element")&&(yield*this._getValidRangesForRange(sF._createIn(o),t)),this.checkAttribute(o,t)||(n.isEqual(i)||(yield new sF(n,i)),n=sN._createAfter(o)),i=sN._createAfter(o);n.isEqual(i)||(yield new sF(n,i))}findOptimalInsertionRange(e,t){let n=e.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return"before"==t||"after"==t?new sF(sN._createAt(n,t)):sF._createOn(n);let i=ih(e.getSelectedBlocks());if(!i)return new sF(e.focus);if(i.isEmpty)return new sF(sN._createAt(i,0));let o=sN._createAfter(i);return new sF(e.focus.isTouching(o)?o:sN._createBefore(i))}}class aC{constructor(e){let t;if(e instanceof aC)return e;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(ay)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){let t=new aC([e]);return t._items=[...this._items,...t._items],t}trimLast(){let e=new aC([]);return e._items=this._items.slice(0,-1),e}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function av(e,t,n){for(let i of e){let e=i[n];"string"==typeof e&&(e=[e]),Array.isArray(e)&&e.forEach(e=>t[n].add(e))}}function ay(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}function ax(e,t,n){for(let i of t.getAttributeKeys())e.checkAttribute(t,i)||n.removeAttribute(i,t)}class aE extends M(){constructor(e){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...e,consumable:null,writer:null,store:null,convertItem:(e,t)=>this._convertItem(e,t),convertChildren:(e,t)=>this._convertChildren(e,t),safeInsert:(e,t)=>this._safeInsert(e,t),updateConversionResult:(e,t)=>this._updateConversionResult(e,t),splitToAllowedParent:(e,t)=>
2this._splitToAllowedParent(e,t),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)}}convert(e,t,n=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let n;for(let i of new aC(e)){let e={};for(let t of i.getAttributeKeys())e[t]=i.getAttribute(t);let o=t.createElement(i.name,e);n&&t.insert(o,n),n=sN._createAt(o,0)}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=ab.createFrom(e),this.conversionApi.store={};let{modelRange:i}=this._convertItem(e,this._modelCursor),o=t.createDocumentFragment();if(i){for(let e of(this._removeEmptyElements(),Array.from(this._modelCursor.parent.getChildren())))t.append(e,o);o.markers=function(e,t){let n=new Set,i=new Map;for(let t of sF._createIn(e).getItems())t.is("element","$marker")&&n.add(t);for(let e of n){let n=e.getAttribute("data-name"),o=t.createPositionBefore(e);i.has(n)?i.get(n).end=o.clone():i.set(n,new sF(o.clone())),t.remove(e)}return i}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}_convertItem(e,t){let n={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof sF))throw new w("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){let n=t.is("position")?t:sN._createAt(t,0),i=new sF(n);for(let t of Array.from(e.getChildren())){let e=this._convertItem(t,n);e.modelRange instanceof sF&&(i.end=e.modelRange.end,n=e.modelCursor)}return{modelRange:i,modelCursor:n}}_safeInsert(e,t){let n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}_updateConversionResult(e,t){let n=this._getSplitParts(e),i=this.conversionApi.writer;t.modelRange||(t.modelRange=i.createRange(i.createPositionBefore(e),i.createPositionAfter(n[n.length-1])));let o=this._cursorParents.get(e);t.modelCursor=o?i.createPositionAt(o,0):t.modelRange.end}_splitToAllowedParent(e,t){let{schema:n,writer:i}=this.conversionApi,o=n.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return ar(t,e,n)?{position:as(t,i)}:null;let r=this.conversionApi.writer.split(t,o),s=[];for(let e of r.range.getWalker())if("elementEnd"==e.type)s.push(e.item);else{let t=s.pop(),n=e.item;this._registerSplitPair(t,n)}let a=r.range.end.parent;return this._cursorParents.set(e,a),{position:r.position,cursorParent:a}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);let n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}_getSplitParts(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=!1;for(let t of this._splitParts.keys())t.isEmpty&&!this._emptyElementsToKeep.has(t)&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}class aD{getHtml(e){let t=o.document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class aI{constructor(e){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new rR(e,{renderingMode:"data"}),this.htmlWriter=new aD}toData(e){let t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){let t=this._toDom(e);return this.domConverter.domToView(t,{skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){/<(?:html|body|head|meta)(?:\s[^>]*)?>/i.test(e.trim().slice(0,1e4))||(e=`<body>${e}</body>`);let t=this.domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),i=t.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class aS extends M(){constructor(e,t){super(),this.model=e,this.mapper=new sj,this.downcastDispatcher=new sU({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;let i=n.writer,o=n.mapper.toViewPosition(t.range.start),r=i.createText(t.item.data);i.insert(o,r)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,n)=>{n.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||n.convertChildren(t.item)},{priority:"lowest"}),this.upcastDispatcher=new aE({schema:e.schema}),this.viewDocument=new o9(t),this.stylesProcessor=t,this.htmlProcessor=new aI(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new rc(this.viewDocument),this.upcastDispatcher.on("text",(e,t,{schema:n,consumable:i,writer:o})=>{let r=t.modelCursor;if(!i.test(t.viewItem))return;if(!n.checkChild(r,"$text")){if(!ar(r,"$text",n)||0==t.viewItem.data.trim().length)return;r=as(r,o)}i.consume(t.viewItem);let s=o.createText(t.viewItem.data);o.insert(s,r),t.modelRange=o.createRange(r,r.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){let{modelRange:e,modelCursor:i}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=i}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){let{modelRange:e,modelCursor:i}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=i}},{priority:"lowest"}),U().prototype.decorate.call(this,"init"),U().prototype.decorate.call(this,"set"),U().prototype.decorate.call(this,"get"),U().prototype.decorate.call(this,"toView"),U().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},ao)},{priority:"lowest"})}get(e={}){let{rootName:t="main",trim:n="empty"}=e;if(!this._checkIfRootsExists([t]))throw new w("datacontroller-get-non-existent-root",this);let i=this.model.document.getRoot(t);return i.isAttached()||_("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(i,{ignoreWhitespace
2s:!0})?this.stringify(i,e):""}stringify(e,t={}){let n=this.toView(e,t);return this.processor.toData(n)}toView(e,t={}){let n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();let o=sF._createIn(e),r=new rl(n);this.mapper.bindElements(e,r);let s=e.is("documentFragment")?e.markers:function(e){let t=[],n=e.root.document;if(!n)return new Map;let i=sF._createIn(e);for(let e of n.model.markers){let n=e.getRange(),o=n.isCollapsed,r=n.start.isEqual(i.start)||n.end.isEqual(i.end);if(o&&r)t.push([e.name,n]);else{let o=i.getIntersection(n);o&&t.push([e.name,o])}}return t.sort(([e,t],[n,i])=>{if("after"!==t.end.compareWith(i.start))return 1;if("before"!==t.start.compareWith(i.end))return -1;switch(t.start.compareWith(i.start)){case"before":return 1;case"after":return -1;default:switch(t.end.compareWith(i.end)){case"before":return 1;case"after":return -1;default:return n.localeCompare(e)}}}),new Map(t)}(e);return this.downcastDispatcher.convert(o,s,i,t),r}init(e){if(this.model.document.version)throw new w("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new w("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},e=>{for(let n of Object.keys(t)){let i=this.model.document.getRoot(n);e.insert(this.parse(t[n],i),i,0)}}),Promise.resolve()}set(e,t={}){let n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new w("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},e=>{for(let t of(e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys()),Object.keys(n))){let i=this.model.document.getRoot(t);e.remove(e.createRangeIn(i)),e.insert(this.parse(n[t],i),i,0)}})}parse(e,t="$root"){let n=this.processor.toView(e);return this.toModel(n,t)}toModel(e,t="$root"){return this.model.change(n=>this.upcastDispatcher.convert(e,n,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(let t of e)if(!this.model.document.getRoot(t))return!1;return!0}}class aM{constructor(e,t){this._helpers=new Map,this._downcast=n2(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=n2(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){let n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new w("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e))throw new w("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){for(let{model:t,view:n}of(this.for("downcast").elementToElement(e),aB(e)))this.for("upcast").elementToElement({model:t,view:n,converterPriority:e.converterPriority})}attributeToElement(e){for(let{model:t,view:n}of(this.for("downcast").attributeToElement(e),aB(e)))this.for("upcast").elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){for(let{model:t,view:n}of(this.for("downcast").attributeToAttribute(e),aB(e)))this.for("upcast").attributeToAttribute({view:n,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:n}){if(this._helpers.has(e))throw new w("conversion-group-exists",this);let i=n?new s5(t):new aa(t);this._helpers.set(e,i)}}function*aB(e){if(e.model.values)for(let t of e.model.values){let n={key:e.model.key,value:t},i=e.view[t],o=e.upcastAlso?e.upcastAlso[t]:void 0;yield*aT(n,i,o)}else yield*aT(e.model,e.view,e.upcastAlso)}function*aT(e,t,n){if(yield{model:e,view:t},n)for(let t of n2(n))yield{model:e,view:t}}class aN{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){let e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e,t){return new this(e.baseVersion)}}function aP(e,t){let n=az(t),i=n.reduce((e,t)=>
2e+t.offsetSize,0),o=e.parent;aF(e);let r=e.index;return o._insertChild(r,n),aR(o,r+n.length),aR(o,r),new sF(e,e.getShiftedBy(i))}function aL(e){if(!e.isFlat)throw new w("operation-utils-remove-range-not-flat",this);let t=e.start.parent;aF(e.start),aF(e.end);let n=t._removeChildren(e.start.index,e.end.index-e.start.index);return aR(t,e.start.index),n}function aO(e,t){if(!e.isFlat)throw new w("operation-utils-move-range-not-flat",this);let n=aL(e);return aP(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function az(e){let t=[];!function e(n){if("string"==typeof n)t.push(new sI(n));else if(n instanceof sS)t.push(new sI(n.data,n.getAttributes()));else if(n instanceof sE)t.push(n);else if(J(n))for(let t of n)e(t)}(e);for(let e=1;e<t.length;e++){let n=t[e],i=t[e-1];n instanceof sI&&i instanceof sI&&aj(n,i)&&(t.splice(e-1,2,new sI(i.data+n.data,i.getAttributes())),e--)}return t}function aR(e,t){let n=e.getChild(t-1),i=e.getChild(t);if(n&&i&&n.is("$text")&&i.is("$text")&&aj(n,i)){let o=new sI(n.data+i.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,o)}}function aF(e){let t=e.textNode,n=e.parent;if(t){let i=e.offset-t.startOffset,o=t.index;n._removeChildren(o,1);let r=new sI(t.data.substr(0,i),t.getAttributes()),s=new sI(t.data.substr(i),t.getAttributes());n._insertChild(o,[r,s])}}function aj(e,t){let n=e.getAttributes(),i=t.getAttributes();for(let e of n){if(e[1]!==t.getAttribute(e[0]))return!1;i.next()}return i.next().done}class aV extends aN{constructor(e,t,n,i){super(i),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,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[sF._createFromPositionAndShift(this.sourcePosition,this.howMany),sF._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new aV(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){let e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new aV(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){let e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new w("move-operation-nodes-do-not-exist",this);if(e===t&&n<i&&i<n+this.howMany)throw new w("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==Z(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){let e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=n&&this.targetPosition.path[e]<n+this.howMany)throw new w("move-operation-node-into-itself",this)}}_execute(){aO(sF._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){let e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){let n=sN.fromJSON(e.sourcePosition,t),i=sN.fromJSON(e.targetPosition,t);return new this(n,e.howMany,i,e.baseVersion)}}class aH extends aN{constructor(e,t,n){super(n),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new sD(az(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){let e=new sD([...this.nodes].map(e=>e._clone(!0))),t=new aH(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){let e=new sN(this.position.root.document.graveyard,[0]);return new aV(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){let e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new w("insert-operation-position-invalid",this)}_execute(){let e=this.nodes;this.nodes=new sD([...e].map(e=>e._clone(!0))),aP(this.position,e)}toJSON(){let e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){let n=[];for(let t of e.nodes)t.name?n.push(sM.fromJSON(t)):n.push(sI.fromJSON(t));let i=new aH(sN.fromJSON(e.position,t),n,e.baseVersion);return i.shouldReceiveAttributes=e.shouldReceiveAttributes,i}}class aU extends aN{constructor(e,t,n,i,o){super(o),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=n,this.graveyardPosition=i?i.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){let e=this.insertionPosition.path.slice();return e.push(0),new sN(this.insertionPosition.root,e)}get movedRange(){let e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new sF(this.splitPosition,e)}get affectedSelectable(){let e=[sF._createFromPositionAndShift(this.splitPosition,0),sF._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(sF._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new aU(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){let e=new sN(this.splitPosition.root.document.graveyard,[0]);return new aq(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){let e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new w("split-operation-position-invalid",this);if(!e.parent)throw new w("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new w("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new w("split-operation-graveyard-position-invalid",this)}_execute(){let e=this.splitPosition.parent;if(this.graveyardPosition)aO(sF._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{let t=e._clone();aP(this.insertionPosition,t)}aO(new sF(sN._createAt(e,this.splitPosition.offset),sN._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){let e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){let t=e.path.slice(0,-1);return t[t.length-1]++,new sN(e.root,t,"toPrevious")}static fromJSON(e,t){let n=sN.fromJSON(e.splitPosition,t),i=sN.fromJSON(e.insertionPosition,t),o=e.graveyardPosition?sN.fromJSON(e.graveyardPosition,t):null;return new this(n,e.howMany,i,o,e.baseVersion)}}class aq extends aN{constructor(e,t,n,i,o){super(o),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=i.clone()}get type(){return"merge"}get deletionPosition(){return new sN(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){let e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new sF(this.sourcePosition,e)}get affectedSelectable(){let e=this.sourcePosition.parent;return[sF._createOn(e),sF._createFromPositionAndShift(this.targetPosition,0),sF._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new aq(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){let e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new sN(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new aU(e,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){let e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new w("merge-operation-source-position-invalid",this);if(!t.parent)throw new w("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new w("merge-operation-how-many-invalid",this)}_execute(){let e=this.sourcePosition.parent;aO(sF._createIn(e),this.targetPosition),aO(sF._createOn(e),this.graveyardPosition)}toJSON(){let e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){let n=sN.fromJSON(e.sourcePosition,t),i=sN.fromJSON(e.targetPosition,t),o=sN.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,i,o,e.baseVersion)}}class aG extends aN{constructor(e,t,n,i,o,r){super(r),this.name=e,this.oldRange=t?t.clone():null,this.newRange=n?n.clone():null,this.affectsData=o,this._markers=i}get type(){return"marker"}get affectedSelectable(){let e=[];return this.oldRange&&e.push(this.oldRange.clone()),this.newRange&&(this.oldRange?e.push(...this.newRange.getDifference(this.oldRange)):e.push(this.newRange.clone())),e}clone(){return new aG(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new aG(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(){let e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new aG(e.name,e.oldRange?sF.fromJSON(e.oldRange,t):null,e.newRange?sF.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}let aW=function(e,t){return su(e,t)};class aK extends aN{constructor(e,t,n,i,o){super(o),this.range=e.clone(),this.key=t,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 aK(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new aK(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){let e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new w("attribute-operation-range-not-flat",this);for(let e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!aW(e.getAttribute(this.key),this.oldValue))throw new w("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new w("attribute-operation-attribute-exists",this,{node:e,ke
2y:this.key})}}_execute(){aW(this.oldValue,this.newValue)||function(e,t,n){for(let i of(aF(e.start),aF(e.end),e.getItems({shallow:!0}))){let e=i.is("$textProxy")?i.textNode:i;null!==n?e._setAttribute(t,n):e._removeAttribute(t),aR(e.parent,e.index)}aR(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new aK(sF.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class a$ extends aN{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new a$(this.baseVersion)}getReversed(){return new a$(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class aY extends aN{constructor(e,t,n,i){super(i),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=n}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new aY(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new aY(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){let e=this.position.nodeAfter;if(!(e instanceof sM))throw new w("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new w("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){let e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new aY(sN.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class aQ extends aN{constructor(e,t,n,i,o){super(o),this.root=e,this.key=t,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 aQ(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new aQ(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new w("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 w("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 w("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(){let e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new w("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new aQ(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class aZ extends aN{constructor(e,t,n,i,o){super(o),this.rootName=e,this.elementName=t,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 aZ(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new aZ(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){let e=super.toJSON();return delete e._document,e}static get className(){return"RootOperation"}static fromJSON(e,t){return new aZ(e.rootName,e.elementName,e.isAdd,t,e.baseVersion)}}let aJ={};aJ[aK.className]=aK,aJ[aH.className]=aH,aJ[aG.className]=aG,aJ[aV.className]=aV,aJ[a$.className]=a$,aJ[aN.className]=aN,aJ[aY.className]=aY,aJ[aQ.className]=aQ,aJ[aZ.className]=aZ,aJ[aU.className]=aU,aJ[aq.className]=aq;class aX{static fromJSON(e,t){return aJ[e.__className].fromJSON(e,t)}}let a0=new Map;function a1(e,t,n){let i=a0.get(e);i||(i=new Map,a0.set(e,i)),i.set(t,n)}function a2(e){return[e]}function a5(e,t,n={}){let i=function(e,t){let n=a0.get(e);return n&&n.has(t)?n.get(t):a2}(e.constructor,t.constructor);try{return i(e=e.clone(),t,n)}catch(e){throw e}}class a4{constructor(e,t,n=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(e,t=null){let n=t?this.originalOperations.get(t):null;for(let t of e)this.originalOperations.set(t,n||t)}updateRelation(e,t){if(e instanceof aV)t instanceof aq?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof aV&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof aU){if(t instanceof aq)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof aV){if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{let n=sF._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){let i=n.end.offset-e.splitPosition.offset,o=e.splitPosition.offset-n.start.offset;this._setRelation(e,t,{howMany:i,offset:o})}}}}else if(e instanceof aq)t instanceof aq?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement")):t instanceof aU?e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource"):t instanceof aV&&t.howMany>0&&(e.sourcePosition.isEqual(t.sourcePosition.getShiftedBy(t.howMany))&&this._setRelation(e,t,"mergeSourceAffected"),e.targetPosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeTargetWasBefore"));else if(e instanceof aG){let n=e.newRange;if(!n)return;if(t instanceof aq){let i=n.start.isEqual(t.targetPosition),o=n.start.isEqual(t.deletionPosition),r=n.end.isEqual(t.deletionPosition),s=n.end.isEqual(t.sourcePosition);(i||o||r||s)&&this._setRelation(e,t,{wasInLeftElement:i,wasStartBeforeMergedElement:o,wasEndBeforeMergedElement:r,wasInRightElement:s})}}}getContext(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){let t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){let n=this.originalOperations.get(t),i=this._history.getUndoneOperation(n);if(!i)return null;let o=this.originalOperations.get(e),r=this._relations.get(o);return r&&r.get(i)||null}_setRelation(e,t,n){let i=this.originalOperations.get(e),o=this.originalOperations.get(t),r=this._relations.get(i);r||(r=new Map,this._relations.set(i,r)),r.set(o,n)}}function a3(e,t){for(let n of e)n.baseVersion=t++}function a6(e,t){for(let n=0;n<t;n++)e.push(new a$(0))}function a7(e){let t=new Map;for(let n=0;n<e.length;n++){let i=e[n];i instanceof aG&&(-1!==i.baseVersion?t.set(i.name,{op:i,ranges:i.newRange?[i.newRange]:[]}):(i.newRange&&t.get(i.name).ranges.push(i.newRange),e.splice(n,1),n--))}for(let{op:e,ranges:n}of t.values())n.length?e.newRange=sF._createFromRanges(n):e.newRange=null}function a9(e,t,n){let i=e.nodes.getNode(0).getAttribute(t);return i==n?null:new aK(new sF(e.position,e.position.getShiftedBy(e.howMany)),t,i,n,0)}function a8(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function le(e,t){let n=[];for(let i=0;i<e.length;i++){let o=e[i],r=new aV(o.start,o.end.offset-o.start.offset,t,0);n.push(r);for(let t=i+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return n}a1(aK,aK,(e,t,n)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){let i=e.range.getDifference(t.range).map(t=>new aK(t,e.key,e.oldValue,e.newValue,0)),o=e.range.getIntersection(t.range);return o&&n.aIsStrong&&i.push(new aK(o,t.key,t.newValue,e.newValue,0)),0==i.length?[new a$(0)]:i}return[e]}),a1(aK,aH,(e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){let n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(t=>new aK(t,e.key,e.oldValue,e.newValue,e.baseVersion));if(t.shouldReceiveAttributes){let i=a9(t,e.key,e.oldValue);i&&n.unshift(i)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]}),a1(aK,aq,(e,t)=>{let n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(sF._createFromPositionAndShift(t.graveyardPosition,1));let i=e.range._getTransformedByMergeOperation(t);return i.isCollapsed||n.push(i),n.map(t=>new aK(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),a1(aK,aV,(e,t)=>(function(e,t){let n=sF._createFromPositionAndShift(t.sourcePosition,t.howMany),i=null,o=[];n.containsRange(e,!0)?i=e:e.start.hasSameParentAs(n.start)?(o=e.getDifference(n),i=e.getIntersection(n)):o=[e];let r=[];for(let e of o){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);let n=t.getMovedRangeStart(),i=e.start.hasSameParentAs(n),o=e._getTransformedByInsertion(n,t.howMany,i);r.push(...o)}return i&&r.push(i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),r})(e.range,t).map(t=>new aK(t,e.key,e.oldValue,e.newValue,e.baseVersion))),a1(aK,aU,(e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){let n=e.clone();return n.range=new sF(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]}),a1(aH,aK,(e,t)=>{let n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){let i=a9(e,t.key,t.newValue);i&&n.push(i)}return n}),a1(aH,aH,(e,t,n)=>(e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e])),a1(aH,aV,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),a1(aH,aU,(e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e])),a1(aH,aq,(e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e])),a1(aG,aH,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e])),a1(aG,aG,(e,t,n)=>{if(e.name==t.name){if(!n.aIsStrong)return[new a$(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]}),a1(aG,aq,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e])),a1(aG,aV,(e,t)=>{let n=[e];if(e.oldRange&&(e.oldRange=sF._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){let i=e.newRange._getTransformedByMoveOperation(t);e.newRange=i[0];for(let t=1;t<i.length;t++){let o=e.clone();o.oldRange=null,o.newRange=i[t],o.baseVersion=-1,n.push(o)}}return n}),a1(aG,aU,(e,t,n)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){let i=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=sN._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement?e.newRange.start=sN._createAt(t.moveTargetPosition):e.newRange.start=i.start,e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=sN._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=sN._createAt(t.insertionPosition):e.newRange.end=i.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]}),a1(aq,aH,(e,t)=>
2(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e])),a1(aq,aq,(e,t,n)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){let n=t.graveyardPosition.path.slice();return n.push(0),e.sourcePosition=new sN(t.graveyardPosition.root,n),e.howMany=0,[e]}return[new a$(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){let i="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){let n=t.targetPosition._getTransformedByMergeOperation(t),i=e.targetPosition._getTransformedByMergeOperation(t);return[new aV(n,e.howMany,i,0)]}return[new a$(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),a1(aq,aV,(e,t,n)=>{let i=sF._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.sourcePosition)?[new a$(0)]:(t.sourcePosition.getShiftedBy(t.howMany).isEqual(e.sourcePosition)?e.sourcePosition.stickiness="toNone":t.targetPosition.isEqual(e.sourcePosition)&&"mergeSourceAffected"==n.abRelation?e.sourcePosition.stickiness="toNext":t.sourcePosition.isEqual(e.targetPosition)?(e.targetPosition.stickiness="toNone",e.howMany-=t.howMany):t.targetPosition.isEqual(e.targetPosition)&&"mergeTargetWasBefore"==n.abRelation?(e.targetPosition.stickiness="toPrevious",e.howMany+=t.howMany):(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany)),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.sourcePosition.stickiness="toPrevious",e.targetPosition.stickiness="toNext",e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])}),a1(aq,aU,(e,t,n)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)&&(t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition)||"mergeTargetNotMoved"==n.abRelation))return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e];if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}),a1(aV,aH,(e,t)=>{let n=sF._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]}),a1(aV,aV,(e,t,n)=>{let i=sF._createFromPositionAndShift(e.sourcePosition,e.howMany),o=sF._createFromPositionAndShift(t.sourcePosition,t.howMany),r,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),r=e.targetPosition.isEqual(t.targetPosition)&&a?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),a8(e,t)&&a8(t,e))return[t.getReversed()];if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),le([i],r);if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),i.end=i.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),le([i],r);let l=Z(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),le([i],r);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;let c=[];for(let e of i.getDifference(o)){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);let n="same"==Z(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),i=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,n);c.push(...i)}let d=i.getIntersection(o);return null!==d&&s&&(d.start=d.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),d.end=d.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===c.length?c.push(d):1==c.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?c.unshift(d):c.push(d):c.splice(1,0,d)),0===c.length?[new a$(e.baseVersion)]:le(c,r)}),a1(aV,aU,(e,t,n)=>{let i=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=e.targetPosition._getTransformedBySplitOperation(t));let o=sF._createFromPositionAndShift(e.sourcePosition,e.howMany);if(o.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=i,[e];if(o.start.hasSameParentAs(t.splitPosition)&&o.containsPosition(t.splitPosition)){let e=new sF(t.splitPosition,o.end);return e=e._getTransformedBySplitOperation(t),le([new sF(o.start,t.splitPosition),e],i)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(i=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(i=e.targetPosition);let r=[o._getTransformedBySplitOperation(t)];if(t.graveyardPosition){let i=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);e.howMany>1&&i&&!n.aWasUndone&&r.push(sF._createFromPositionAndShift(t.insertionPosition,1))}return le(r,i)}),a1(aV,aq,(e,t,n)=>{let i=sF._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition)){if
2("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new a$(0)]}else if(!n.aWasUndone){let n=[],i=t.graveyardPosition.clone(),o=t.targetPosition._getTransformedByMergeOperation(t),r=e.targetPosition.getTransformedByOperation(t);e.howMany>1&&(n.push(new aV(e.sourcePosition,e.howMany-1,r,0)),i=i._getTransformedByMove(e.sourcePosition,r,e.howMany-1),o=o._getTransformedByMove(e.sourcePosition,r,e.howMany-1));let s=t.deletionPosition._getCombined(e.sourcePosition,r),a=new aV(i,1,s,0),l=a.getMovedRangeStart().path.slice();l.push(0);let c=new sN(a.targetPosition.root,l),d=new aV(o=o._getTransformedByMove(i,s,1),t.howMany,c,0);return n.push(a),n.push(d),n}}let o=sF._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]}),a1(aY,aH,(e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e])),a1(aY,aq,(e,t)=>(e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext"):e.position=e.position._getTransformedByMergeOperation(t),[e])),a1(aY,aV,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),a1(aY,aY,(e,t,n)=>{if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new a$(0)];e.oldName=t.newName}return[e]}),a1(aY,aU,(e,t)=>{if("same"==Z(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){let t=new aY(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]}),a1(aQ,aQ,(e,t,n)=>{if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new a$(0)];e.oldValue=t.newValue}return[e]}),a1(aZ,aZ,(e,t)=>e.rootName===t.rootName&&e.isAdd===t.isAdd?[new a$(0)]:[e]),a1(aU,aH,(e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e])),a1(aU,aq,(e,t,n)=>{if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){let n=t.graveyardPosition.path.slice();n.push(0);let i=new sN(t.graveyardPosition.root,n),o=aU.getInsertionPosition(new sN(t.graveyardPosition.root,n)),r=new aU(i,0,o,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=aU.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=aU.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),a1(aU,aV,(e,t,n)=>{let i=sF._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){let o=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&o){let n=e.splitPosition._getTransformedByMoveOperation(t),i=e.graveyardPosition._getTransformedByMoveOperation(t),o=i.path.slice();o.push(0);let r=new sN(i.root,o);return[new aV(n,e.howMany,r,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}let o=e.splitPosition.isEqual(t.targetPosition);if(o&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=aU.getInsertionPosition(e.splitPosition),[e];if(o&&n.abRelation&&n.abRelation.howMany){let{howMany:t,offset:i}=n.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(i),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.splitPosition)){let n=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=n,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.
2insertionPosition=aU.getInsertionPosition(e.splitPosition),[e]}return t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=aU.getInsertionPosition(e.splitPosition),[e]}),a1(aU,aU,(e,t,n)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition||e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new a$(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){let i="$graveyard"==e.splitPosition.root.rootName,o="$graveyard"==t.splitPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){let n=[];return t.howMany&&n.push(new aV(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&n.push(new aV(e.splitPosition,e.howMany,e.moveTargetPosition,0)),n}return[new a$(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){let n=t.insertionPosition.path.slice();n.push(0);let i=new sN(t.insertionPosition.root,n);return[e,new aV(e.insertionPosition,1,i,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=aU.getInsertionPosition(e.splitPosition),[e]});class lt extends M(sN){constructor(e,t,n="toNone"){if(super(e,t,n),!this.root.is("rootElement"))throw new w("model-liveposition-root-not-rootelement",e);ln.call(this)}detach(){this.stopListening()}toPosition(){return new sN(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function ln(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{let n=t[0];n.isDocumentOperation&&li.call(this,n)},{priority:"low"})}function li(e){let t=this.getTransformedByOperation(e);if(!this.isEqual(t)){let e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}lt.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};class lo{constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},_("batch-constructor-deprecated-string-type"));let{isUndoable:t=!0,isLocal:n=!0,isUndo:i=!1,isTyping:o=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=n,this.isUndo=i,this.isTyping=o}get type(){return _("batch-type-deprecated"),"default"}get baseVersion(){for(let e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}class lr{constructor(e){this._changesInElement=new Map,this._elementsSnapshots=new Map,this._elementChildrenSnapshots=new Map,this._elementState=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=e}static{this._statesPriority=[void 0,"refresh","rename","move"]}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(e){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(let 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;let t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);for(let i of(t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany),sF._createFromPositionAndShift(e.sourcePosition,e.howMany).getItems({shallow:!0})))this._setElementState(i,"move");break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);let t=sF._createFromPositionAndShift(e.position,1);for(let e of this._markerCollection.getMarkersIntersectingRange(t)){let t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._setElementState(e.position.nodeAfter,"rename");break}case"split":{let t=e.splitPosition.parent;if(!this._isInInsertedElement(t))for(let n of(this._markRemove(t,e.splitPosition.offset,e.howMany),sF._createFromPositionAndShift(e.splitPosition,e.howMany).getItems({shallow:!0})))this._setElementState(n,"move");this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&(this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1),this._setElementState(e.graveyardPosition.nodeAfter,"move"));break}case"merge":{let t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);let n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1),this._setElementState(t,"move");let i=e.targetPosition.parent;if(!this._isInInsertedElement(i))for(let n of(this._markInsert(i,e.targetPosition.offset,t.maxOffset),sF._createFromPositionAndShift(e.sourcePosition,e.howMany).getItems({shallow:!0})))this._setElementState(n,"move");break}case"detachRoot":case"addRoot":{let t=e.affectedSelectable;if(!t._isLoaded||t.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;let t=e.root.rootName;this._bufferRootAttributeChange(t,e.key,e.oldValue,e.newValue)}}this._cachedChanges=null}bufferMarkerChange(e,t,n){t.range&&t.range.root.is("rootElement")&&!t.range.root._isLoaded&&(t.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let i=this._changedMarkers.get(e);i?i.newMarkerData=n:(i={newMarkerData:n,oldMarkerData:t},this._changedMarkers.set(e,i)),null==i.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(e)}getMarkersToRemove(){let e=[];for(let[t,n]of this._changedMarkers)null!=n.oldMarkerData.range&&e.push({name:t,range:n.oldMarkerData.range});return e}getMarkersToAdd(){let e=[];for(let[t,n]of this._changedMarkers)null!=n.newMarkerData.range&&e.push({name:t,range:n.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}}))}
2hasDataChanges(){if(this.getChanges().length||this._changedRoots.size>0)return!0;for(let{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){let n=e.range&&!t.range,i=!e.range&&t.range,o=e.range&&t.range&&!e.range.isEqual(t.range);if(n||i||o)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(let e of this._changesInElement.keys()){let n=this._changesInElement.get(e).sort((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1),i=this._elementChildrenSnapshots.get(e),o=la(e.getChildren()),r=function(e,t){let n=[],i=0,o=0;for(let e of t){if(e.offset>i){for(let t=0;t<e.offset-i;t++)n.push("e");o+=e.offset-i}if("insert"==e.type){for(let t=0;t<e.howMany;t++)n.push("i");i=e.offset+e.howMany}else if("remove"==e.type){for(let t=0;t<e.howMany;t++)n.push("r");i=e.offset,o+=e.howMany}else{if(e.howMany>1500)for(let t=0;t<e.howMany;t++)n.push("a");else n.push(..."a".repeat(e.howMany).split(""));i=e.offset+e.howMany,o+=e.howMany}}if(o<e)for(let t=0;t<e-o-i;t++)n.push("e");return n}(i.length,n),s=0,a=0;for(let n of r)if("i"===n){let n=this._getDiffActionForNode(o[s].node,"insert"),i=this._elementsSnapshots.get(o[s].node),r=this._getInsertDiff(e,s,n,o[s],i);t.push(r),s++}else if("r"===n){let n=this._getDiffActionForNode(i[a].node,"remove"),o=this._getRemoveDiff(e,s,n,i[a]);t.push(o),a++}else if("a"===n){let n;let r=i[a].attributes,l=o[s].attributes;if("$text"==o[s].name)n=new sF(sN._createAt(e,s),sN._createAt(e,s+1));else{let t=e.offsetToIndex(s);n=new sF(sN._createAt(e,s),sN._createAt(e.getChild(t),0))}let c=this._getAttributesDiff(n,r,l);t.push(...c),s++,a++}else s++,a++}t.sort((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1);for(let e=1,n=0;e<t.length;e++){let i=t[n],o=t[e],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)),t[e]=null):n=e}for(let e of t=t.filter(e=>e))delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(ll),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}
2getChangedRoots(){return Array.from(this._changedRoots.values()).map(e=>{let t={...e};return void 0!==t.state&&delete t.attributes,t})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementChildrenSnapshots.clear(),this._elementsSnapshots.clear(),this._elementState.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems.clear(),this._cachedChanges=null}_refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize),this._refreshedItems.add(e),this._setElementState(e,"refresh");let t=sF._createOn(e);for(let e of this._markerCollection.getMarkersIntersectingRange(t)){let t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._cachedChanges=null}_bufferRootLoad(e){if(e.isAttached()){for(let t of(this._bufferRootStateChange(e.rootName,!0),this._markInsert(e,0,e.maxOffset),e.getAttributeKeys()))this._bufferRootAttributeChange(e.rootName,t,null,e.getAttribute(t));for(let t of this._markerCollection)if(t.getRange().root==e){let e=t.getData();this.bufferMarkerChange(t.name,{...e,range:null},e)}}}_bufferRootStateChange(e,t){if(!this._changedRoots.has(e))return void this._changedRoots.set(e,{name:e,state:t?"attached":"detached"});let n=this._changedRoots.get(e);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(e)):n.state=t?"attached":"detached"}_bufferRootAttributeChange(e,t,n,i){let o=this._changedRoots.get(e)||{name:e},r=o.attributes||{};if(r[t]){let e=r[t];i===e.oldValue?delete r[t]:e.newValue=i}else r[t]={oldValue:n,newValue:i};0===Object.entries(r).length?(delete o.attributes,void 0===o.state&&this._changedRoots.delete(e)):(o.attributes=r,this._changedRoots.set(e,o))}_markInsert(e,t,n){if(e.root.is("rootElement")&&!e.root._isLoaded)return;let i={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i)}_markRemove(e,t,n){if(e.root.is("rootElement")&&!e.root._isLoaded)return;let i={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i),this._removeAllNestedChanges(e,t,n)}_markAttribute(e){if(e.root.is("rootElement")&&!e.root._isLoaded)return;let t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshots(e);let n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(let e=0;e<n.length;e++)n[e].howMany<1&&(n.splice(e,1),e--)}_setElementState(e,t){if(!e.is("element"))return;let n=lr._statesPriority.indexOf(this._elementState.get(e));lr._statesPriority.indexOf(t)>n&&this._elementState.set(e,t)}_getDiffActionForNode(e,t){if(!e.is("element")||!this._elementsSnapshots.has(e))return t;let n=this._elementState.get(e);return n&&"move"!=n?n:t}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshots(e){if(this._elementChildrenSnapshots.has(e))return;let t=la(e.getChildren());for(let n of(this._elementChildrenSnapshots.set(e,t),t))this._elementsSnapshots.set(n.node,n)}_handleChange(e,t){for(let n of(e.nodesToHandle=e.howMany,t)){let i=e.offset+e.howMany,o=n.offset+n.howMany;if("insert"==e.type&&("insert"==n.type&&(e.offset<=n.offset?n.offset+=e.howMany:e.offset<o&&(n.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==n.type&&e.offset<n.offset&&(n.offset+=e.howMany),"attribute"==n.type)){if(e.offset<=n.offset)n.offset+=e.howMany;else if(e.offset<o){let o=n.howMany;n.howMany=e.offset-n.offset,t.unshift({type:"attribute",offset:i,howMany:o-n.howMany,count:this._changeCount++})}}if("remove"==e.type){if("insert"==n.type){if(i<=n.offset)n.offset-=e.howMany;else if(i<=o){if(e.offset<n.offset){let t=i-n.offset;n.offset=e.offset,n.howMany-=t,e.nodesToHandle-=t}else n.howMany-=e.nodesToHandle,e.nodesToHandle=0}else if(e.offset<=n.offset)e.nodesToHandle-=n.howMany,n.howMany=0;else if(e.offset<o){let t=o-e.offset;n.howMany-=t,e.nodesToHandle-=t}}if("remove"==n.type&&(i<=n.offset?n.offset-=e.howMany:e.offset<n.offset&&(e.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type){if(i<=n.offset)n.offset-=e.howMany;else if(e.offset<n.offset){let t=i-n.offset;n.offset=e.offset,n.howMany-=t}else if(e.offset<o){if(i<=o){let i=n.howMany;n.howMany=e.offset-n.offset;
2let o=i-n.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:o,count:this._changeCount++})}else n.howMany-=o-e.offset}}}if("attribute"==e.type){if("insert"==n.type){if(e.offset<n.offset&&i>n.offset){if(i>o){let e={type:"attribute",offset:o,howMany:i-o,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=n.offset&&e.offset<o&&(i>o?(e.nodesToHandle=i-o,e.offset=o):e.nodesToHandle=0)}if("remove"==n.type&&e.offset<n.offset&&i>n.offset){let o={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(o,t),t.push(o),e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==n.type&&(e.offset>=n.offset&&i<=o?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=n.offset&&i>=o&&(n.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,n,i,o){let r={type:"insert",position:sN._createAt(e,t),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++,action:n};return"insert"!=n&&o&&(r.before={name:o.name,attributes:new Map(o.attributes)}),r}_getRemoveDiff(e,t,n,i){return{type:"remove",action:n,position:sN._createAt(e,t),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,n){let i=[];for(let[o,r]of(n=new Map(n),t)){let t=n.has(o)?n.get(o):null;t!==r&&i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:o,attributeOldValue:r,attributeNewValue:t,changeCount:this._changeCount++}),n.delete(o)}for(let[t,o]of n)i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:o,changeCount:this._changeCount++});return i}_isInInsertedElement(e){let t=e.parent;if(!t)return!1;let n=this._changesInElement.get(t),i=e.startOffset;if(n){for(let e of n)if("insert"==e.type&&i>=e.offset&&i<e.offset+e.howMany)return!0}return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,n){for(let i of new sF(sN._createAt(e,t),sN._createAt(e,t+n)).getItems({shallow:!0}))i.is("element")&&(this._changesInElement.delete(i),this._removeAllNestedChanges(i,0,i.maxOffset))}}function ls(e){return{node:e,name:e.is("$text")?"$text":e.name,attributes:new Map(e.getAttributes())}}function la(e){let t=[];for(let n of e)if(n.is("$text"))for(let e=0;e<n.data.length;++e)t.push(ls(n));else t.push(ls(n));return t}function ll(e){let t="position"in e&&"$graveyard"==e.position.root.rootName,n="range"in e&&"$graveyard"==e.range.root.rootName;return!t&&!n}class lc{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(e){this._operations.length&&e>this._version+1&&this._gaps.set(this._version,e),this._version=e}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(e){if(e.baseVersion!==this.version)throw new w("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];let n=this._operations[0];void 0===e&&(e=n.baseVersion);let i=t-1;for(let[t,n]of this._gaps)e>t&&e<n&&(e=n),i>t&&i<n&&(i=t-1);if(i<n.baseVersion||e>this.lastOperation.baseVersion)return[];let o=this._baseVersionToOperationIndex.get(e);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(e){let t=this._baseVersionToOperationIndex.get(e);if(void 0!==t)return this._operations[t]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._und
2oneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class ld extends sM{constructor(e,t,n="main"){super(t),this._isAttached=!0,this._isLoaded=!0,this._document=e,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}ld.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e};let lu="$graveyard";class lh extends M(){constructor(e){super(),this.model=e,this.history=new lc,this.selection=new sX(this),this.roots=new iu({idProperty:"rootName"}),this.differ=new lr(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",lu),this.listenTo(e,"applyOperation",(e,t)=>{let n=t[0];n.isDocumentOperation&&this.differ.bufferOperation(n)},{priority:"high"}),this.listenTo(e,"applyOperation",(e,t)=>{let n=t[0];n.isDocumentOperation&&this.history.addOperation(n)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,"update",(e,t,n,i,o)=>{let r={...t.getData(),range:i};this.differ.bufferMarkerChange(t.name,o,r),null===n&&t.on("change",(e,n)=>{let i=t.getData();this.differ.bufferMarkerChange(t.name,{...i,range:n},i)})}),this.registerPostFixer(e=>{let t=!1;for(let n of this.roots)n.isAttached()||n.isEmpty||(e.remove(e.createRangeIn(n)),t=!0);for(let n of this.model.markers)n.getRange().root.isAttached()||(e.removeMarker(n),t=!0);return t})}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(lu)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new w("model-document-createroot-name-exists",this,{name:t});let n=new ld(this,e,t);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(e=!1){return this.getRoots(e).map(e=>e.rootName)}getRoots(e=!1){return this.roots.filter(t=>t!=this.graveyard&&(e||t.isAttached())&&t._isLoaded)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){let e=od(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){let e=this.getRoots();return e.length?e[0]:this.graveyard}_getDefaultRange(){let e=this._getDefaultRoot(),t=this.model,n=t.schema,i=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(i)||t.createRange(i)}_validateSelectionRange(e){return e.start.isValid()&&e.end.isValid()&&lg(e.start)&&lg(e.end)}_callPostFixers(e){let t=!1;do for(let n of this._postFixers)if(this.selection.refresh(),t=n(e))break;while(t)}}function lg(e){let t=e.textNode;if(t){let n=t.data,i=e.offset-t.startOffset;return!i_(n,i)&&!iC(n,i)}return!0}class lm extends M(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){let t=e instanceof lp?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,n=!1,i=!1){let o=e instanceof lp?e.name:e;if(o.includes(","))throw new w("markercollection-incorrect-marker-name",this);let r=this._markers.get(o);if(r){let e=r.getData(),s=r.getRange(),a=!1;return s.isEqual(t)||(r._attachLiveRange(sY.fromRange(t)),a=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,a=!0),"boolean"==typeof i&&i!=r.affectsData&&(r._affectsData=i,a=!0),a&&this.fire(`update:${o}`,r,s,t,e),r}let s=new lp(o,sY.fromRange(t),n,i);return this._markers.set(o,s),this.fire(`update:${o}`,s,null,t,{...s.getData(),range:null}),s}_remove(e){let t=e instanceof lp?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire(`update:${t}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(e){let t=e instanceof lp?e.name:e,n=this._markers.get(t);if(!n)throw new w("markercollection-refresh-marker-not-exists",this);let i=n.getRange();this.fire(`update:${t}`,n,i,i,n.getData())}*getMarkersAtPosition(e){for(let t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(let t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(let e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(let t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class lp extends M(sx){constructor(e,t,n,i){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=n,this._affectsData=i}get managedUsingOperations(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}
2getStart(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}lp.prototype.is=function(e){return"marker"===e||"model:marker"===e};class lk extends aN{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){let e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new w("detach-operation-on-document-node",this)}_execute(){aL(sF._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class lf extends sx{constructor(e){super(),this.markers=new Map,this._children=new sD,e&&this._insertChild(0,e)}[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(e){return this._children.getNode(e)}getChildAtOffset(e){return this._children.getNodeAtOffset(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(let n of e)t=t.getChildAtOffset(n);return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){let e=[];for(let t of this._children)e.push(t.toJSON());return e}static fromJSON(e){let t=[];for(let n of e)n.name?t.push(sM.fromJSON(n)):t.push(sI.fromJSON(n));return new lf(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){var n;let i="string"==typeof(n=t)?[new sI(n)]:(J(n)||(n=[n]),Array.from(n).map(e=>"string"==typeof e?new sI(e):e instanceof sS?new sI(e.data,e.getAttributes()):e));for(let e of i)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,i)}_removeChildren(e,t=1){let n=this._children._removeNodes(e,t);for(let e of n)e.parent=null;return n}}lf.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class lb{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new sI(e,t)}createElement(e,t){return new sM(e,t)}createDocumentFragment(){return new lf}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,n=0){if(this._assertWriterUsedCorrectly(),e instanceof sI&&""==e.data)return;let i=sN._createAt(t,n);if(e.parent){if(lC(e.root,i.root))return void this.move(sF._createOn(e),i);if(e.root.document)throw new w("model-writer-insert-forbidden-move",this);this.remove(e)}let o=i.root.document?i.root.document.version:null,r=new aH(i,e,o);if(e instanceof sI&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof lf)for(let[t,n]of e.markers){let e=sN._createAt(n.root,0),o={range:new sF(n.start._getCombined(e,i),n.end._getCombined(e,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,o):this.addMarker(t,o)}}insertText(e,t,n,i){t instanceof lf||t instanceof sM||t instanceof sN?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,i)}insertElement(e,t,n,i){t instanceof lf||t instanceof sM||t instanceof sN?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,i)}append(e,t){this.insert(e,t,"end")}appendText(e,t,n){t instanceof lf||t instanceof sM?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}appendElement(e,t,n){t instanceof lf||t instanceof sM?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}setAttribute(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof sF)for(let i of n.getMinimalFlatRanges())lA(this,e,t,i);else lw(this,e,t,n)}setAttributes(e,t){for(let[n,i]of ib(e))this.setAttribute(n,i,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof sF)for(let n of t.getMinimalFlatRanges())lA(this,e,null,n);else lw(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();let t=e=>{for(let t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof sF)for(let n of e.getItems())t(n);else t(e)}move(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof sF))throw new w("writer-move-invalid-range",this);if(!e.isFlat)throw new w("writer-move-range-not-flat",this);let i=sN._createAt(t,n);if(i.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!lC(e.root,i.root))throw new w("writer-move-different-document",this);let o=e.root.document?e.root.document.version:null,r=new aV(e.start,e.end.offset-e.start.offset,i,o);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){for(let t of(this._assertWriterUsedCorrectly(),(e instanceof sF?e:sF._createOn(e)).getMinimalFlatRanges().reverse()))this._addOperationForAffectedMarkers("move",t),function(e,t,n,i){let o;if(e.root.document){let n=i.document;o=new aV(e,t,new sN(n.graveyard,[0]),n.version)}else o=new lk(e,t);n.addOperation(o),i.applyOperation(o)}(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();let t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof sM))throw new w("writer-merge-no-element-before",this);if(!(n instanceof sM))throw new w("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){let t=e.nodeBefore,n=e.nodeAfter;this.move(sF._createIn(n),sN._createAt(t,"end")),this.remove(n)}_merge(e){let t=sN._createAt(e.nodeBefore,"end"),n=sN._createAt(e.nodeAfter,0),i=new sN(e.root.document.graveyard,[0]),o=e.root.document.version,r=new aq(n,e.nodeAfter.maxOffset,t,i,o);this.batch.addOperation(r),this.model.applyOperation(r)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof sM))throw new w("writer-rename-not-element-instance",this);let n=e.root.document?e.root.document.version:null,i=new aY(sN._createBefore(e),e.name,t,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(e,t){this._assertWriterUsedCorrectly();let n,i,o=e.parent;if(!o.parent)throw new w("writer-split-element-no-parent",this);if(t||(t=o.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new w("writer-split-invalid-limit-element",this);
2do{let t=o.root.document?o.root.document.version:null,r=o.maxOffset-e.offset,s=aU.getInsertionPosition(e),a=new aU(e,r,s,null,t);this.batch.addOperation(a),this.model.applyOperation(a),n||i||(n=o,i=e.parent.nextSibling),o=(e=this.createPositionAfter(e.parent)).parent}while(o!==t);return{position:e,range:new sF(sN._createAt(n,"end"),sN._createAt(i,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new w("writer-wrap-range-not-flat",this);let n=t instanceof sM?t:new sM(t);if(n.childCount>0)throw new w("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new w("writer-wrap-element-attached",this);this.insert(n,e.start);let i=new sF(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(i,sN._createAt(n,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new w("writer-unwrap-element-no-parent",this);this.move(sF._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new w("writer-addmarker-no-usingoperation",this);let n=t.usingOperation,i=t.range,o=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new w("writer-addmarker-marker-exists",this);if(!i)throw new w("writer-addmarker-no-range",this);return n?(l_(this,e,null,i,o),this.model.markers.get(e)):this.model.markers._set(e,i,n,o)}updateMarker(e,t){this._assertWriterUsedCorrectly();let n="string"==typeof e?e:e.name,i=this.model.markers.get(n);if(!i)throw new w("writer-updatemarker-marker-not-exists",this);if(!t)return _("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(i);let o="boolean"==typeof t.usingOperation,r="boolean"==typeof t.affectsData,s=r?t.affectsData:i.affectsData;if(!o&&!t.range&&!r)throw new w("writer-updatemarker-wrong-options",this);let a=i.getRange(),l=t.range?t.range:a;o&&t.usingOperation!==i.managedUsingOperations?t.usingOperation?l_(this,n,null,l,s):(l_(this,n,a,null,s),this.model.markers._set(n,l,void 0,s)):i.managedUsingOperations?l_(this,n,a,l,s):this.model.markers._set(n,l,void 0,s)}removeMarker(e){this._assertWriterUsedCorrectly();let t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new w("writer-removemarker-no-marker",this);let n=this.model.markers.get(t);if(!n.managedUsingOperations)return void this.model.markers._remove(t);l_(this,t,n.getRange(),null,n.affectsData)}addRoot(e,t="$root"){this._assertWriterUsedCorrectly();let n=this.model.document.getRoot(e);if(n&&n.isAttached())throw new w("writer-addroot-root-exists",this);let i=this.model.document,o=new aZ(e,t,!0,i,i.version);return this.batch.addOperation(o),this.model.applyOperation(o),this.model.document.getRoot(e)}detachRoot(e){this._assertWriterUsedCorrectly();let t="string"==typeof e?this.model.document.getRoot(e):e;if(!t||!t.isAttached())throw new w("writer-detachroot-no-root",this);for(let e of this.model.markers)e.getRange().root===t&&this.removeMarker(e);for(let e of t.getAttributeKeys())this.removeAttribute(e,t);this.remove(this.createRangeIn(t));let n=this.model.document,i=new aZ(t.rootName,t.name,!1,n,n.version);this.batch.addOperation(i),this.model.applyOperation(i)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(let[t,n]of ib(e))this._setSelectionAttribute(t,n)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(let t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){let n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){let i=sX._getStoreAttributeKey(e);this.setAttribute(i,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){let t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){let n=sX._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new w("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(let n of this.model.markers){if(!n.managedUsingOperations)continue;let i=n.getRange(),o=!1;if("move"===e)o=t.containsPosition(i.start)||t.start.isEqual(i.start)||t.containsPosition(i.end)||t.end.isEqual(i.end);else{let e=t.nodeBefore,n=t.nodeAfter,r=i.start.parent==e&&i.start.isAtEnd,s=i.end.parent==n&&0==i.end.offset,a=i.end.nodeAfter==n,l=i.start.nodeAfter==n;o=r||s||a||l}o&&this.updateMarker(n.name,{range:i})}}}function lA(e,t,n,i){let o=e.model,r=o.document,s,a,l,c=i.start;for(let e of i.getWalker({shallow:!0}))l=e.item.getAttribute(t),s&&a!=l&&(a!=n&&d(),c=s),s=e.nextPosition,a=l;function d(){let i=new sF(c,s),l=i.root.document?r.version:null,d=new aK(i,t,a,n,l);e.batch.addOperation(d),o.applyOperation(d)}s instanceof sN&&s!=c&&a!=n&&d()}function lw(e,t,n,i){let o,r;let s=e.model,a=s.document,l=i.getAttribute(t);if(l!=n){if(i.root===i){let e=i.document?a.version:null;r=new aQ(i,t,l,n,e)}else{let s=(o=new sF(sN._createBefore(i),e.createPositionAfter(i))).root.document?a.version:null;r=new aK(o,t,l,n,s)}e.batch.addOperation(r),s.applyOperation(r)}}function l_(e,t,n,i,o){let r=e.model,s=r.document,a=new aG(t,n,i,r.markers,!!o,s.version);e.batch.addOperation(a),r.applyOperation(a)}function lC(e,t){return e===t||e instanceof ld&&t instanceof ld}function lv(e,t,n){let i=t.parent,o=n.parent;return i!=o&&!e.isLimit(i)&&!e.isLimit(o)&&function(e,t,n){for(let i of new sF(e,t).getWalker())if(n.isLimit(i.item))return!1;return!0}(t,n,e)}function ly(e,t,n,i={}){let o=e.createElement("paragraph");e.model.schema.setAllowedAttributes(o,i,e),e.insert(o,t),lx(e,n,e.createPositionAt(o,0))}function lx(e,t,n){t instanceof sX?e.setSelection(n):t.setTo(n)}function lE(e,t){let n=[];Array.from(e.getItems({direction:"backward"})).map(e=>t.createRangeOn(e)).filter(t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))).forEac
2h(e=>{n.push(e.start.parent),t.remove(e)}),n.forEach(e=>{let n=e;for(;n.parent&&n.isEmpty;){let e=t.createRangeOn(n);n=n.parent,t.remove(e)}})}class lD{constructor(e,t,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=e,this.writer=t,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(let t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){let t=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(e);if(n.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new w("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?sF._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new sF(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){this._checkAndSplitToAllowedPosition(e)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this.schema.isObject(e)||this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;let e=lt.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=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleDisallowedNode(e){e.is("element")&&this.handleNodes(e.getChildren())}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new w("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=lt.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=lt.fromPosition(e,"toNext"))}_mergeOnLeft(){let e=this._firstNode;if(!(e instanceof sM)||!this._canMergeLeft(e))return;let t=lt._createBefore(e);t.stickiness="toNext";let n=lt.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=lt._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=lt._createAt(t.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){let e=this._lastNode;if(!(e instanceof sM)||!this._canMergeRight(e))return;let t=lt._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new w("insertcontent-invalid-insertion-position",this);this.position=sN._createAt(t.nodeBefore,"end");let n=lt.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=lt._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=lt._createAt(t.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){let t=e.previousSibling;return t instanceof sM&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){let t=e.nextSibling;return t instanceof sM&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_insertAutoParagraph(){this._insertPartialFragment();let e=this.writer.createElement("paragraph");this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0)}_checkAndSplitToAllowedPosition(e){let t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){let e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}
2else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{let e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return this.schema.checkChild(this.position.parent,e)||this._insertAutoParagraph(),!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)||this.schema.checkChild(e,"paragraph")&&this.schema.checkChild("paragraph",t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}class lI extends U(){constructor(){super(),this.markers=new lm,this.document=new lh(this),this.schema=new a_,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(e=>this.decorate(e)),this.on("applyOperation",(e,t)=>{t[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(()=>!0,"$marker"),function(e){e.document.registerPostFixer(t=>(function(e,t){let n=t.document.selection,i=t.schema,o=[],r=!1;for(let e of n.getRanges()){let t=am(e,i);t&&!t.isEqual(e)?(o.push(t),r=!0):o.push(e)}return r&&e.setSelection(function(e){let t=[...e],n=new Set,i=1;for(;i<t.length;){let e=t[i];for(let[o,r]of t.slice(0,i).entries())if(!n.has(o)){if(e.isEqual(r))n.add(o);else if(e.isIntersecting(r)){n.add(o),n.add(i);let s=e.getJoined(r);t.push(s)}}i++}return t.filter((e,t)=>!n.has(t))}(o),{backward:n.isBackward}),!1})(t,e))}(this),this.document.registerPostFixer(ao),this.on("insertContent",(e,[t,n])=>{e.return=function(e,t,n){return e.change(i=>{let o;let r=n||e.document.selection;r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});let s=new lD(e,i,r.anchor),a=[];if(t.is("documentFragment")){if(t.markers.size){let e=[];for(let[n,i]of t.markers){let{start:t,end:o}=i,r=t.isEqual(o);e.push({position:t,name:n,isCollapsed:r},{position:o,name:n,isCollapsed:r})}for(let{position:n,name:o,isCollapsed:r}of(e.sort(({position:e},{position:t})=>e.isBefore(t)?1:-1),e)){let e=null,s=null,l=n.parent===t&&n.isAtStart,c=n.parent===t&&n.isAtEnd;l||c?r&&(s=l?"start":"end"):(e=i.createElement("$marker"),i.insert(e,n)),a.push({name:o,element:e,collapsed:s})}}o=t.getChildren()}else o=[t];s.handleNodes(o);let l=s.getSelectionRange();if(t.is("documentFragment")&&a.length){let e=l?sY.fromRange(l):null,t={};for(let e=a.length-1;e>=0;e--){let{name:n,element:o,collapsed:r}=a[e],l=!t[n];if(l&&(t[n]=[]),o){let e=i.createPositionAt(o,"before");t[n].push(e),i.remove(o)}else{let e=s.getAffectedRange();if(!e){r&&t[n].push(s.position);continue}r?t[n].push(e[r]):t[n].push(l?e.start:e.end)}}for(let[e,[n,o]]of Object.entries(t))n&&o&&n.root===o.root&&n.root.document&&!i.model.markers.has(e)&&i.addMarker(e,{usingOperation:!0,affectsData:!0,range:new sF(n,o)});e&&(l=e.toRange(),e.detach())}l&&(r instanceof sX?i.setSelection(l):r.setTo(l));let c=s.getAffectedRange()||e.createRange(r.anchor);return s.destroy(),c})}(this,t,n)}),this.on("insertObject",(e,[t,n,i])=>{e.return=function(e,t,n,i={}){if(!e.schema.isObject(t))throw new w("insertobject-element-not-an-object",e,{object:t});let o=n||e.document.selection,r=o;i.findOptimalPosition&&e.schema.isBlock(t)&&(r=e.createSelection(e.schema.findOptimalInsertionRange(o,i.findOptimalPosition)));let s=ih(o.getSelectedBlocks()),a={};return s&&Object.assign(a,e.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),e.change(n=>{r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});let o=t,s=r.anchor.parent;!e.schema.checkChild(s,t)&&e.schema.checkChild(s,"paragraph")&&e.schema.checkChild("paragraph",t)&&(o=n.
2createElement("paragraph"),n.insert(t,o)),e.schema.setAllowedAttributes(o,a,n);let l=e.insertContent(o,r);return l.isCollapsed||i.setSelection&&function(e,t,n,i){let o=e.model;if("on"==n)return void e.setSelection(t,"on");if("after"!=n)throw new w("insertobject-invalid-place-parameter-value",o);let r=t.nextSibling;if(o.schema.isInline(t))return void e.setSelection(t,"after");!(r&&o.schema.checkChild(r,"$text"))&&o.schema.checkChild(t.parent,"paragraph")&&(r=e.createElement("paragraph"),o.schema.setAllowedAttributes(r,i,e),o.insertContent(r,e.createPositionAfter(t))),r&&e.setSelection(r,0)}(n,t,i.setSelection,a),l})}(this,t,n,i)}),this.on("canEditAt",e=>{let t=!this.document.isReadOnly;e.return=t,t||e.stop()})}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new lo,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){w.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new lo):e instanceof lo||(e=new lo(e)):e=new lo,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){w.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,n,...i){let o=lS(t,n);return this.fire("insertContent",[e,o,n,...i])}insertObject(e,t,n,i,...o){let r=lS(t,n);return this.fire("insertObject",[e,r,i,i,...o])}deleteContent(e,t){(function(e,t,n={}){if(t.isCollapsed)return;let i=t.getFirstRange();if("$graveyard"==i.root.rootName)return;let o=e.schema;e.change(e=>{if(!n.doNotResetEntireContent&&function(e,t){let n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;let i=t.getFirstRange();return i.start.parent!=i.end.parent&&e.checkChild(n,"paragraph")}(o,t))return void function(e,t){let n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),ly(e,e.createPositionAt(n,0),t)}(e,t);let r={};if(!n.doNotAutoparagraph){let e=t.getSelectedElement();e&&Object.assign(r,o.getAttributesWithProperty(e,"copyOnReplace",!0))}let[s,a]=function(e){let t=e.root.document.model,n=e.start,i=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){let n=function(e){let t=e.parent,n=t.root.document.model.schema;for(let e of t.getAncestors({parentFirst:!0,includeSelf:!0})){if(n.isLimit(e))return null;if(n.isBlock(e))return e}}(i);if(n&&i.isTouching(t.createPositionAt(n,0))){let n=t.createSelection(e);t.modifySelection(n,{direction:"backward"});let o=n.getLastPosition(),r=t.createRange(o,i);t.hasContent(r,{ignoreMarkers:!0})||(i=o)}}return[lt.fromPosition(n,"toPrevious"),lt.fromPosition(i,"toNext")]}(i);s.isTouching(a)||e.remove(e.createRange(s,a)),n.leaveUnmerged||(function(e,t,n){let i=e.model;if(!lv(e.model.schema,t,n))return;let[o,r]=function(e,t){let n=e.getAncestors(),i=t.getAncestors(),o=0;for(;n[o]&&n[o]==i[o];)o++;return[n[o],i[o]]}(t,n);o&&r&&(!i.hasContent(o,{ignoreMarkers:!0})&&i.hasContent(r,{ignoreMarkers:!0})?function e(t,n,i,o){let r=n.parent,s=i.parent;if(r!=o&&s!=o){for(n=t.createPositionAfter(r),(i=t.createPositionBefore(s)).isEqual(n)||t.insert(r,i);n.parent.isEmpty;){let e=n.parent;n=t.createPositionBefore(e),t.remove(e)}i=t.createPositionBefore(s),function(e,t){let n=t.nodeBefore,i=t.nodeAfter;n.name!=i.name&&e.rename(n,i.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(i.getAttributes()),n),e.merge(t)}(t,i),lv(t.model.schema,n,i)&&e(t,n,i,o)}}(e,t,n,o.parent):function e(t,n,i,o){let r=n.parent,s=i.parent;if(r!=o&&s!=o){for(n=t.createPositionAfter(r),(i=t.createPositionBefore(s)).isEqual(n)||t.insert(s,n),t.merge(n);i.parent.isEmpty;){let e=i.parent;i=t.createPositionBefore(e),t.remove(e)}lv(t.model.schema,n,i)&&e(t,n,i,o)}}(e,t,n,o.parent))}(e,s,a),o.removeDisallowedAttributes(s.parent.getChildren(),e)),lx(e,t,s),!n.doNotAutoparagraph&&function(e,t){let n=e.checkChild(t,"$text"),i=e.checkChild(t,"paragraph");return!n&&i}(o,s)&&ly(e,s,t,r),s.detach(),a.detach()})})(this,e,t)}modifySelection(e,t){!function(e,t,n={}){let i;let o=e.schema,r="backward"!=n.direction,s=n.unit?n.unit:"character",a=!!n.treatEmojiAsSingleUnit,l=new sB({boundaries:function(e,t){let n=e.root,i=sN._createAt(n,t?"end":0);return t?new sF(e,i):new sF(i,e)}(t.focus,r),singleCharacters:!0,direction:r?"forward":"backward"}),c={walker:l,schema:o,isForward:r,unit:s,treatEmojiAsSingleUnit:a};for(;i=l.next();){if(i.done)return;let n=function(e,t){let{isForward:n,walker:i,unit:o,schema:r,treatEmojiAsSingleUnit:s}=e,{type:a,item:l,nextPosition:c}=t;if("text"==a)return"word"===e.unit?function(e,t){let n=e.position.textNode;for(n||(n=t?e.position.nodeAfter:e.position.nodeBefore);n&&n.is("$text");){var i,o;let r=e.position.offset-n.startOffset;if(i=n,r===(t?i.offsetSize:0))n=t?e.position.nodeAfter:e.position.nodeBefore;else{if(o=n.data,' ,.?!:;"-()'.includes(o.charAt(r+(t?0:-1))))break;e.next()}}return e.position}(i,n):function(e,t,n){let i=e.position.textNode;if(i){let o=i.data,r=e.position.offset-i.startOffset;for(;i_(o,r)||"character"==t&&iC(o,r)||n&&iy(o,r);)e.next(),r=e.position.offset-i.startOffset}return e.position}(i,o,s);if(a==(n?"elementStart":"elementEnd")){if(r.isSelectable(l))return sN._createAt(l,n?"after":"before");if(r.checkChild(c,"$text"))return c}else{if(r.isLimit(l))return void i.skip(()=>!0);if(r.checkChild(c,"$text"))return c}}(c,i.value);if(n)return void(t instanceof sX?e.change(e=>{e.setSelectionFocus(n)}):t.setFocus(n))}}(this,e,t)}getSelectedContent(e){return this.change(t=>{let n;let i=t.createDocumentFragment(),o=e.getFirstRange();if(!o||o.isCollapsed)return i;let r=o.start.root,s=o.start.getCommonPath(o.end),a=r.getNodeByPath(s),l=(n=o.start.parent==o.end.parent?o:t.createRange(t.createPositionAt(a,o.start.path[s.length]),t.createPositionAt(a,o.end.path[s.length]+1))).end.offset-n.start.offset;for(let e of n.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),i):t.append(t.cloneElement(e,!0),i);if(n!=o){let e=o._getTransformedByMove(n.start,t.createPositionAt(i,0),l)[0],r=t.createRange(t.createPositionAt(i,0),e.start);lE(t.createRange(e.end,t.createPositionAt(i,"end")),t),lE(r,t)}return i})}
2hasContent(e,t={}){let n=e instanceof sF?e:sF._createIn(e);if(n.isCollapsed)return!1;let{ignoreWhitespaces:i=!1,ignoreMarkers:o=!1}=t;if(!o){for(let e of this.markers.getMarkersIntersectingRange(n))if(e.affectsData)return!0}for(let e of n.getItems())if(this.schema.isContent(e)&&(!e.is("$textProxy")||!i||-1!==e.data.search(/\S/)))return!0;return!1}canEditAt(e){let t=lS(e);return this.fire("canEditAt",[t])}createPositionFromPath(e,t,n){return new sN(e,t,n)}createPositionAt(e,t){return sN._createAt(e,t)}createPositionAfter(e){return sN._createAfter(e)}createPositionBefore(e){return sN._createBefore(e)}createRange(e,t){return new sF(e,t)}createRangeIn(e){return sF._createIn(e)}createRangeOn(e){return sF._createOn(e)}createSelection(...e){return new sG(...e)}createBatch(e){return new lo(e)}createOperationFromJSON(e){return aX.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){let e=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){let t=this._pendingChanges[0].batch;this._currentWriter=new lb(this,t);let n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}
2return e}}function lS(e,t){if(e)return e instanceof sG||e instanceof sX?e:e instanceof sE?t||0===t?new sG(e,t):e.is("rootElement")?new sG(e,"in"):new sG(e,"on"):new sG(e)}class lM extends rG{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class lB extends rG{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class lT{constructor(e){this.document=e}createDocumentFragment(e){return new rl(this.document,e)}createElement(e,t,n){return new oH(this.document,e,t,n)}createText(e){return new oh(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,n){return n._insertChild(e,t)}removeChildren(e,t,n){return n._removeChildren(e,t)}remove(e){let t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){let n=e.parent;if(n){let i=n.getChildIndex(e);return this.removeChildren(i,1,n),this.insertChild(i,t,n),!0}return!1}unwrapElement(e){let t=e.parent;if(t){let n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}rename(e,t){let n=new oH(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){e_(e)&&void 0===n?t._setStyle(e):n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return oQ._createAt(e,t)}createPositionAfter(e){return oQ._createAfter(e)}createPositionBefore(e){return oQ._createBefore(e)}createRange(e,t){return new oZ(e,t)}createRangeOn(e){return oZ._createOn(e)}createRangeIn(e){return oZ._createIn(e)}createSelection(...e){return new oX(...e)}}class lN{constructor(e){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{let t="error"in e?e.error:e.reason;t instanceof Error&&this._handleError(t,e)},this._listeners={},!this._restart)throw 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(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter(e=>e!==t)}_fire(e,...t){for(let n of this._listeners[e]||[])n.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t instanceof ErrorEvent?t.filename:void 0,lineno:t instanceof ErrorEvent?t.lineno:void 0,colno:t instanceof ErrorEvent?t.colno:void 0,date:this._now()});let n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&void 0!==e.context&&null!==e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function lP(e,t=new Set){let n=[e],i=new Set,o=0;for(;n.length>o;){let e=n[o++];if(!i.has(e)&&function(e){let t=Object.prototype.toString.call(e),n=typeof e;return!("number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}
2(e)&&!t.has(e)){if(i.add(e),Symbol.iterator in e)try{for(let t of e)n.push(t)}catch(e){}else for(let t in e)"defaultValue"!==t&&n.push(e[t])}}return i}function lL(e,t,n=new Set){if(e===t&&"object"==typeof e&&null!==e)return!0;let i=lP(e,n),o=lP(t,n);for(let e of i)if(o.has(e))return!0;return!1}let lO=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return O(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),r4(e,t,{leading:i,maxWait:t,trailing:o})};class lz extends lN{constructor(e,t={}){super(t),this._editor=null,this._lifecyclePromise=null,this._initUsingData=!0,this._editables={},this._throttledSave=lO(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),e&&(this._creator=(t,n)=>e.create(t,n)),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(e=>{console.error("An error happened during the editor destroying.",e)}).then(()=>{let e={},t=[],n=this._config.rootsAttributes||{},i={};for(let[o,r]of Object.entries(this._data.roots))r.isLoaded?(e[o]="",i[o]=n[o]||{}):t.push(o);let o={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:t,rootsAttributes:i,_watchdogInitialData:this._data};return delete o.initialData,o.extraPlugins.push(lR),this._initUsingData?this.create(e,o,o.context):ng(this._elementOrData)?this.create(this._elementOrData,o,o.context):this.create(this._editables,o,o.context)}).then(()=>{this._fire("restart")})}create(e=this._elementOrData,t=this._config,n){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(super._startErrorHandling(),this._elementOrData=e,this._initUsingData="string"==typeof e||Object.keys(e).length>0&&"string"==typeof Object.values(e)[0],this._config=this._cloneEditorConfiguration(t)||{},this._config.context=n,this._creator(e,this._config))).then(e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();let e=this._editor;return this._editor=null,e.model.document.off("change:data",this._throttledSave),this._destructor(e)})}_save(){let e=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=e}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){let e=this._editor,t=e.model.document.roots.filter(e=>e.isAttached()&&"$graveyard"!=e.rootName),{plugins:n}=e,i=n.has("CommentsRepository")&&n.get("CommentsRepository"),o=n.has("TrackChanges")&&n.get("TrackChanges"),r={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};for(let n of(t.forEach(e=>{r.roots[e.rootName]={content:JSON.stringify(Array.from(e.getChildren())),attributes:JSON.stringify(Array.from(e.getAttributes())),isLoaded:e._isLoaded}}),e.model.markers))n._affectsData&&(r.markers[n.name]={rangeJSON:n.getRange().toJSON(),usingOperation:n._managedUsingOperations,affectsData:n._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(){let e={};for(let t of this.editor.model.document.getRootNames()){let n=this.editor.ui.getEditableElement(t);n&&(e[t]=n)}return e}_isErrorComingFromThisItem(e){return lL(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return nh(e,(e,t)=>ng(e)||"context"===t?e:void 0)}}class lR{constructor(e){this.editor=e,this._data=e.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",e=>{e.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire("ready")},{priority:999})}_createNode(e,t){if("name"in t){let n=e.createElement(t.name,t.attributes);if(t.children)for(let i of t.children)n._appendChild(this._createNode(e,i));return n}return e.createText(t.data,t.attributes)}_restoreEditorData(e){let t=this.editor;
2Object.entries(this._data.roots).forEach(([n,{content:i,attributes:o}])=>{let r=JSON.parse(i),s=JSON.parse(o),a=t.model.document.getRoot(n);for(let[t,n]of s)e.setAttribute(t,n,a);for(let t of r){let n=this._createNode(e,t);e.insert(n,a,"end")}}),Object.entries(this._data.markers).forEach(([n,i])=>{let{document:o}=t.model,{rangeJSON:{start:r,end:s},...a}=i,l=o.getRoot(r.root),c=e.createPositionFromPath(l,r.path,r.stickiness),d=e.createPositionFromPath(l,s.path,s.stickiness),u=e.createRange(c,d);e.addMarker(n,{range:u,...a})})}_restoreCollaborationData(){let e=JSON.parse(this._data.commentThreads),t=JSON.parse(this._data.suggestions);e.forEach(e=>{let t=this.editor.config.get("collaboration.channelId"),n=this.editor.plugins.get("CommentsRepository");n.hasCommentThread(e.threadId)&&n.getCommentThread(e.threadId).remove(),n.addCommentThread({channelId:t,...e})}),t.forEach(e=>{let t=this.editor.plugins.get("TrackChangesEditing");t.hasSuggestion(e.id)?t.getSuggestion(e.id).attributes=e.attributes:t.addSuggestionData(e)})}}let lF=Symbol("MainQueueId");class lj extends lN{constructor(e,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new lV,this._watchdogConfig=t,this._creator=t=>e.create(t),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}get context(){return this._context}create(e={}){return this._actionQueues.enqueue(lF,()=>(this._contextConfig=e,this._create()))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){return Promise.all(lH(e).map(e=>this._actionQueues.enqueue(e.id,()=>{let t;if("destroyed"===this.state)throw Error("Cannot add items to destroyed watchdog.");if(!this._context)throw Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");if(this._watchdogs.has(e.id))throw Error(`Item with the given id is already added: '${e.id}'.`);if("editor"===e.type)return(t=new lz(null,this._watchdogConfig)).setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on("error",(n,{error:i,causesRestart:o})=>{this._fire("itemError",{itemId:e.id,error:i}),o&&this._actionQueues.enqueue(e.id,()=>new Promise(n=>{let i=()=>{t.off("restart",i),this._fire("itemRestart",{itemId:e.id}),n()};t.on("restart",i)}))}),t.create(e.sourceElementOrData,e.config,this._context);throw Error(`Not supported item type: '${e.type}'.`)})))}remove(e){return Promise.all(lH(e).map(e=>this._actionQueues.enqueue(e,()=>{let t=this._getWatchdog(e);return this._watchdogs.delete(e),t.destroy()})))}destroy(){return this._actionQueues.enqueue(lF,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(lF,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(e=>{console.error("An error happened during destroying the context or items.",e)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(e=>(this._context=e,this._contextProps=lP(this._context),Promise.all(Array.from(this._watchdogs.values()).map(e=>(e._setExcludedProperties(this._contextProps),e.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();let e=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(e=>e.destroy())).then(()=>this._destructor(e))})}_getWatchdog(e){let t=this._watchdogs.get(e);if(!t)throw Error(`Item with the given id was not registered: ${e}.`);return t}_isErrorComingFromThisItem(e){for(let t of this._watchdogs.values())if(t._isErrorComingFromThisItem(e))return!1;return lL(this._context,e.context)}}class lV{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){let n=e===lF;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());let i=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(lF),this._queues.get(e)])).then(t),o=i.catch(()=>{});return this._queues.set(e,o),i.finally(()=>{this._activeActions--,this._queues.get(e)===o&&0===this._activeActions&&this._onEmptyCallbacks.forEach(e
2=>e())})}}function lH(e){return Array.isArray(e)?e:[e]}class lU{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){let n=this.get(e);if(!n)throw new w("commandcollection-command-not-found",this,{commandName:e});return n.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(let e of this.commands())e.destroy()}}class lq extends ik{constructor(e){super(),this.editor=e}set(e,t,n={}){if("string"==typeof t){let e=t;t=(t,n)=>{this.editor.execute(e),n()}}super.set(e,t,n)}}let lG="contentEditing",lW="common";class lK{constructor(e){this.keystrokeInfos=new Map,this._editor=e;let t=e.config.get("menuBar.isVisible"),n=e.locale.t;this.addKeystrokeInfoCategory({id:lG,label:n("Content editing keystrokes"),description:n("These keyboard shortcuts allow for quick access to content editing features.")});let i=[{label:n("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:n("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:n("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:n("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:n("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:n("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];t&&i.push({label:n("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:n("User interface and content navigation keystrokes"),description:n("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:i}]})}addKeystrokeInfoCategory({id:e,label:t,description:n,groups:i}){this.keystrokeInfos.set(e,{id:e,label:t,description:n,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:lW}),i&&i.forEach(t=>{this.addKeystrokeInfoGroup({categoryId:e,...t})})}addKeystrokeInfoGroup({categoryId:e=lG,id:t,label:n,keystrokes:i}){let o=this.keystrokeInfos.get(e);if(!o)throw new w("accessibility-unknown-keystroke-info-category",this._editor,{groupId:t,categoryId:e});o.groups.set(t,{id:t,label:n,keystrokes:i||[]})}addKeystrokeInfos({categoryId:e=lG,groupId:t=lW,keystrokes:n}){if(!this.keystrokeInfos.has(e))throw new w("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:e,keystrokes:n});let i=this.keystrokeInfos.get(e);if(!i.groups.has(t))throw new w("accessibility-unknown-keystroke-info-group",this._editor,{groupId:t,categoryId:e,keystrokes:n});i.groups.get(t).keystrokes.push(...n)}}class l$ extends U(){constructor(e={}){if(super(),"sanitizeHtml"in e)throw new w("editor-config-sanitizehtml-not-supported");let t=this.constructor,{translations:n,...i}=t.defaultConfig||{},{translations:o=n,...r}=e,s=e.language||i.language;this._context=e.context||new oe({language:s,translations:o}),this._context._addEditor(this,!e.context);let a=Array.from(t.builtinPlugins||[]);this.config=new nm(r,i),this.config.define("plugins",a),this.config.define(this._context._getEditorConfig()),this.plugins=new i8(this,a,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new lU,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new lI,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});let l=new oF;this.data=new aS(this.model,l),this.editing=new af(this.model,l),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new aM([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 lq(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new lK(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new w("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new w("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new w("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}setData(e){this.data.set(e)}getData(e){return this.data.get(e)}initPlugins(){let e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],i=e.get("extraPlugins")||[],o=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(i),n,o)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise(e=>this.once("ready",e))),e.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(e,...t){try{return this.commands.execute(e,...t)}catch(e){w.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}static create(...e){throw Error("This is an abstract method.")}static{this.Context=oe}static{this.EditorWatchdog=lz}static{this.ContextWatchdog=lj}}function lY(e){return class extends e{updateSourceElement(e){if(!this.sourceElement)throw new w("editor-missing-sourceelement",this);let t=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!n)return void nP(this.sourceElement,"");let i="string"==typeof e?e:this.data.get();nP(this.sourceElement,i)}}}lY.updateSourceElement=lY(Object).prototype.updateSourceElement;class lQ extends ot{static get pluginName(){return"PendingActions"}static get isOfficialPlugin(){return!0}init(){this.set("hasAny",!1),this._actions=new iu({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new w("pendingactions-add-invalid-message",this);let t=new(U());return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}let lZ={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.
26 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/>
2</svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',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>',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>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.7
25.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};var lJ=r(7621),lX={attributes:{"data-cke":!0}};lX.setAttributes=iY(),lX.insert=iK().bind(null,"head"),lX.domAPI=iG(),lX.insertStyleElement=iZ(),iU()(lJ.A,lX),lJ.A&&lJ.A.locals&&lJ.A.locals;class l0 extends i0{static{this.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"]}constructor(){super();let e=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",e.if("isVisible","ck-hidden",e=>!e),"ck-reset_all-excluded",e.if("isColorInherited","ck-icon_inherit-color")],viewBox:e.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){let e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(let{name:n,value:i}
2of(t&&(this.viewBox=t),Array.from(e.attributes)))l0.presentationalAttributeNames.includes(n)&&this.element.setAttribute(n,i);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(e=>{e.style.fill=this.fillColor})}}class l1 extends i0{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});let e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("style"),id:e.to("id")},children:[{text:e.to("text")}]})}}var l2=r(9715),l5={attributes:{"data-cke":!0}};l5.setAttributes=iY(),l5.insert=iK().bind(null,"head"),l5.domAPI=iG(),l5.insertStyleElement=iZ(),iU()(l2.A,l5),l2.A&&l2.A.locals&&l2.A.locals;class l4 extends i0{constructor(e,t=new l1){super(e),this._focusDelayed=null;let n=this.bindTemplate,i=f();this.set("_ariaPressed",!1),this.set("_ariaChecked",!1),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(t),this.iconView=new l0,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));let o={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",e=>!e),n.if("isVisible","ck-hidden",e=>!e),n.to("isOn",e=>e?"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",e=>e||"button"),tabindex:n.to("tabindex"),"aria-checked":n.to("_ariaChecked"),"aria-pressed":n.to("_ariaPressed"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,e=>!e),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(e=>{this.isEnabled?this.fire("execute"):e.preventDefault()})}};this.bind("_ariaPressed").to(this,"isOn",this,"isToggleable",this,"role",(e,t,n)=>!(!t||l3(n))&&String(!!e)),this.bind("_ariaChecked").to(this,"isOn",this,"isToggleable",this,"role",(e,t,n)=>!(!t||!l3(n))&&String(!!e)),l.isSafari&&(this._focusDelayed||(this._focusDelayed=iw(()=>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(e){return e.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),e}_createKeystrokeView(){let e=new i0;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>n0(e))}]}),e}_getTooltipString(e,t,n){return e?"string"==typeof e?e:(n&&(n=n0(n)),e instanceof Function?e(t,n):`${t}${n?` (${n})`:""}`):""}}function l3(e){switch(e){case"radio":case"checkbox":case"option":case"switch":case"menuitemcheckbox":case"menuitemradio":return!0;default:return!1}}var l6=r(7913),l7={attributes:{"data-cke":!0}};l7.setAttributes=iY(),l7.insert=iK().bind(null,"head"),l7.domAPI=iG(),l7.insertStyleElement=iZ(),iU()(l6.A,l7),l6.A&&l6.A.locals&&l6.A.locals;class l9 extends i0{constructor(e,t={}){super(e);let n=this.bindTemplate;this.set("label",t.label||""),this.set("class",t.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children}),t.icon&&(this.iconView=new l0,this.iconView.content=t.icon,this.children.add(this.iconView));let i=new i0(e);i.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:n.to("label")}]}),this.children.add(i)}}class l8 extends M(){constructor(e){if(super(),this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(let t in e.actions){let n=e.actions[t];for(let i of("string"==typeof n&&(n=[n]),n))e.keystrokeHandler.set(i,(e,n)=>{this[t](),n()},e.keystrokeHandlerOptions)}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(ce)||null}get last(){return this.focusables.filter(ce).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((t,n)=>{let i=t.element===this.focusTracker.focusedElement;return i&&(e=n),i}),e)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){let e=this.next;e&&this.focusables.getIndex(e)===this.current||e===this.first?this.fire("forwardCycle"):this._focus(e,1)}focusPrevious(){let e=this.previous;e&&this.focusables.getIndex(e)===this.current||e===this.last?this.fire("backwardCycle"):this._focus(e,-1)}chain(e){let t=()=>null===this.current?null:this.focusables.get(this.current);this.listenTo(e,"forwardCycle",e=>{let n=t();this.focusNext(),n!==t()&&e.stop()},{priority:"low"}),this.listenTo(e,"backwardCycle",e=>{let n=t();this.focusPrevious(),n!==t()&&e.stop()},{priority:"low"})}unchain(e){this.stopListening(e)}
2_focus(e,t){e&&this.focusTracker.focusedElement!==e.element&&e.focus(t)}_getDomFocusableItem(e){let t=this.focusables.length;if(!t)return null;let n=this.current;if(null===n)return this[1===e?"first":"last"];let i=this.focusables.get(n),o=(n+t+e)%t;do{let n=this.focusables.get(o);if(ce(n)){i=n;break}o=(o+t+e)%t}while(o!==n);return i}}function ce(e){return ct(e)&&nR(e.element)}function ct(e){return!(!("focus"in e)||"function"!=typeof e.focus)}function cn(e){return class extends e{constructor(...e){super(...e),this._onDragBound=this._onDrag.bind(this),this._onDragEndBound=this._onDragEnd.bind(this),this._lastDraggingCoordinates={x:0,y:0},this.on("render",()=>{this._attachListeners()}),this.set("isDragging",!1)}_attachListeners(){this.listenTo(this.element,"mousedown",this._onDragStart.bind(this)),this.listenTo(this.element,"touchstart",this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(o.document,"mouseup",this._onDragEndBound),this.listenTo(o.document,"touchend",this._onDragEndBound),this.listenTo(o.document,"mousemove",this._onDragBound),this.listenTo(o.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(o.document,"mouseup",this._onDragEndBound),this.stopListening(o.document,"touchend",this._onDragEndBound),this.stopListening(o.document,"mousemove",this._onDragBound),this.stopListening(o.document,"touchmove",this._onDragBound)}_onDragStart(e,t){if(!this._isHandleElementPressed(t))return;this._attachDragListeners();let n=0,i=0;t instanceof MouseEvent?(n=t.clientX,i=t.clientY):(n=t.touches[0].clientX,i=t.touches[0].clientY),this._lastDraggingCoordinates={x:n,y:i},this.isDragging=!0}_onDrag(e,t){if(!this.isDragging)return void this._detachDragListeners();let n=0,i=0;t instanceof MouseEvent?(n=t.clientX,i=t.clientY):(n=t.touches[0].clientX,i=t.touches[0].clientY),t.preventDefault(),this.fire("drag",{deltaX:Math.round(n-this._lastDraggingCoordinates.x),deltaY:Math.round(i-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:n,y:i}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(e){return!!this.dragHandleElement&&(this.dragHandleElement===e.target||e.target instanceof HTMLElement&&this.dragHandleElement.contains(e.target))}}}var ci=r(9822),co={attributes:{"data-cke":!0}};co.setAttributes=iY(),co.insert=iK().bind(null,"head"),co.domAPI=iG(),co.insertStyleElement=iZ(),iU()(ci.A,co),ci.A&&ci.A.locals&&ci.A.locals;class cr extends i0{constructor(e){super(e),this.children=this.createCollection(),this.keystrokes=new ik,this._focusTracker=new ig,this._focusables=new ix,this.focusCycler=new l8({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(e){for(let t of e){let e;let n=new l4(this.locale);for(e in n.on("execute",()=>t.onExecute()),t.onCreate&&t.onCreate(n),t)"onExecute"!=e&&"onCreate"!=e&&n.set(e,t[e]);this.children.add(n)}this._updateFocusCyclableItems()}focus(e){-1===e?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach(e=>{this._focusables.add(e),this._focusTracker.add(e.element)})}}class cs extends i0{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var ca=r(9819),cl={attributes:{"data-cke":!0}};cl.setAttributes=iY(),cl.insert=iK().bind(null,"head"),cl.domAPI=iG(),cl.insertStyleElement=iZ(),iU()(ca.A,cl),ca.A&&ca.A.locals&&ca.A.locals;let cc="screen-center",cd="editor-center",cu=e=>e+"px";class ch extends cn(i0){constructor(e,{getCurrentDomRoot:t,getViewportOffset:n}){super(e),this.wasMoved=!1;let i=this.bindTemplate,o=e.t;this.set("className",""),this.set("ariaLabel",o("Editor dialog")),this.set("isModal",!1),this.set("position",cc),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=t,this._getViewportOffset=n,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new ik,this.focusTracker=new ig,this._focusables=new ix,this._focusCycler=new l8({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",i.if("isModal","ck-dialog-overlay__transparent",e=>!e),i.if("_isVisible","ck-hidden",e=>!e)],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",i.if("isModal","ck-dialog_modal"),i.to("className")],role:"dialog","aria-label":i.to("ariaLabel"),style:{to
2p:i.to("_top",e=>cu(e)),left:i.to("_left",e=>cu(e)),visibility:i.if("_isTransparent","hidden")}},children:this.parts}]})}static{this.defaultOffset=15}render(){super.render(),this.keystrokes.set("Esc",(e,t)=>{this.fire("close",{source:"escKeyPress"}),t()}),this.on("drag",(e,{deltaX:t,deltaY:n})=>{this.wasMoved=!0,this.moveBy(t,n)}),this.listenTo(o.window,"resize",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.listenTo(o.document,"scroll",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.on("change:_isVisible",(e,t,n)=>{n&&(this._isTransparent=!0,setTimeout(()=>{this.updatePosition(),this._isTransparent=!1,this.focus()},10))}),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView&&!this.isModal?this.headerView.element:null}setupParts({icon:e,title:t,hasCloseButton:n=!0,content:i,actionButtons:o}){t&&(this.headerView=new l9(this.locale,{icon:e}),n&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=t,this.ariaLabel=t,this.parts.add(this.headerView,0)),i&&(i instanceof i0&&(i=[i]),this.contentView=new cs(this.locale),this.contentView.children.addMany(i),this.parts.add(this.contentView)),o&&(this.actionsView=new cr(this.locale),this.actionsView.setButtons(o),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(e,t){let n=this._getViewportRect(),i=this._getDialogRect();e+i.width>n.right&&(e=n.right-i.width),e<n.left&&(e=n.left),t<n.top&&(t=n.top),this._moveTo(e,t)}_moveTo(e,t){this._left=e,this._top=t}moveBy(e,t){this.moveTo(this._left+e,this._top+t)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;let e=this._getViewportRect(),t,n=this.position;this._getCurrentDomRoot()?t=this._getVisibleDomRootRect(e):n=cc;let i=ch.defaultOffset,o=this._getDialogRect();switch(n){case"editor-top-side":if(t){let e="ltr"===this.locale.contentLanguageDirection?t.right-o.width-i:t.left+i;this.moveTo(e,t.top+i)}else this._moveOffScreen();break;case cd:t?this.moveTo(Math.round(t.left+t.width/2-o.width/2),Math.round(t.top+t.height/2-o.height/2)):this._moveOffScreen();break;case cc:this.moveTo(Math.round((e.width-o.width)/2),Math.round((e.height-o.height)/2));break;case"editor-top-center":t?this.moveTo(Math.round(t.left+t.width/2-o.width/2),t.top+i):this._moveOffScreen();break;case"editor-bottom-center":t?this.moveTo(Math.round(t.left+t.width/2-o.width/2),t.bottom-o.height-i):this._moveOffScreen();break;case"editor-above-center":t?this.moveTo(Math.round(t.left+t.width/2-o.width/2),t.top-o.height-i):this._moveOffScreen();break;case"editor-below-center":t?this.moveTo(Math.round(t.left+t.width/2-o.width/2),t.bottom+i):this._moveOffScreen()}}_getVisibleDomRootRect(e){let t=new nI(this._getCurrentDomRoot()).getVisible();return t&&(t=e.getIntersection(t))||null}_getDialogRect(){return new nI(this.element.firstElementChild)}_getViewportRect(){let e=new nI(o.window);if(this.isModal)return e;let t={top:0,bottom:0,left:0,right:0,...this._getViewportOffset()};return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e.left+=t.left,e.right-=t.right,e.width-=t.left+t.right,e}_updateFocusCyclableItems(){let e=[];
2if(this.contentView)for(let t of this.contentView.children)ct(t)&&e.push(t);this.actionsView&&e.push(this.actionsView),this.closeButtonView&&e.push(this.closeButtonView),e.forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element),ct(e)&&"focusCycler"in e&&e.focusCycler instanceof l8&&this._focusCycler.chain(e.focusCycler)})}_createCloseButton(){let e=new l4(this.locale),t=this.locale.t;return e.set({label:t("Close"),tooltip:!0,icon:lZ.cancel}),e.on("execute",()=>this.fire("close",{source:"closeButton"})),e}}class cg extends i4{static get pluginName(){return"Dialog"}static get isOfficialPlugin(){return!0}constructor(e){super(e);let t=e.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set({id:null,isOpen:!1}),e.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:t("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}destroy(){super.destroy(),this._unlockBodyScroll()}_initShowHideListeners(){this.on("show",(e,t)=>{this._show(t)}),this.on("show",(e,t)=>{t.onShow&&t.onShow(this)},{priority:"low"}),this.on("hide",()=>{cg._visibleDialogPlugin&&cg._visibleDialogPlugin._hide()}),this.on("hide",()=>{this._onHide&&(this._onHide(this),this._onHide=void 0)},{priority:"low"})}_initFocusToggler(){let e=this.editor;e.keystrokes.set("Ctrl+F6",(t,n)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?e.editing.view.focus():this.view.focus(),n())})}_initMultiRootIntegration(){let e=this.editor.model;e.document.on("change:data",()=>{if(this.view)for(let t of e.document.differ.getChangedRoots())t.state&&this.view.updatePosition()})}show(e){this.hide(),this.fire(`show:${e.id}`,e)}_show({id:e,icon:t,title:n,hasCloseButton:i=!0,content:o,actionButtons:r,className:s,isModal:a,position:l,onHide:c}){let d=this.editor;this.view=new ch(d.locale,{getCurrentDomRoot:()=>d.editing.view.getDomRoot(d.model.document.selection.anchor.root.rootName),getViewportOffset:()=>d.ui.viewportOffset});let u=this.view;u.on("close",()=>{this.hide()}),d.ui.view.body.add(u),d.keystrokes.listenTo(u.element),l||(l=a?cc:cd),a&&this._lockBodyScroll(),u.set({position:l,_isVisible:!0,className:s,isModal:a}),u.setupParts({icon:t,title:n,hasCloseButton:i,content:o,actionButtons:r}),this.id=e,c&&(this._onHide=c),this.isOpen=!0,cg._visibleDialogPlugin=this}hide(){cg._visibleDialogPlugin&&cg._visibleDialogPlugin.fire(`hide:${cg._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;let e=this.editor,t=this.view;t.isModal&&this._unlockBodyScroll(),t.contentView&&t.contentView.reset(),e.ui.view.body.remove(t),e.ui.focusTracker.remove(t.element),e.keystrokes.stopListening(t.element),t.destroy(),e.editing.view.focus(),this.id=null,this.isOpen=!1,cg._visibleDialogPlugin=null}_lockBodyScroll(){document.documentElement.classList.add("ck-dialog-scroll-locked")}_unlockBodyScroll(){document.documentElement.classList.remove("ck-dialog-scroll-locked")}}var cm=r(278),cp={attributes:{"data-cke":!0}};cp.setAttributes=iY(),cp.insert=iK().bind(null,"head"),cp.domAPI=iG(),cp.insertStyleElement=iZ(),iU()(cm.A,cp),cm.A&&cm.A.locals&&cm.A.locals;class ck extends l4{constructor(e,t=new l1){super(e,t),this._checkIconHolderView=new cf,this.set({hasCheckSpace:!1,_hasCheck:this.isToggleable});let n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-list-item-button",n.if("isToggleable","ck-list-item-button_toggleable")]}}),this.bind("_hasCheck").to(this,"hasCheckSpace",this,"isToggleable",(e,t)=>e||t)}render(){super.render(),this._hasCheck&&this.children.add(this._checkIconHolderView,0),this._watchCheckIconHolderMount()}_watchCheckIconHolderMount(){this._checkIconHolderView.bind("isOn").to(this,"isOn",e=>this.isToggleable&&e),this.on("change:_hasCheck",(e,t,n)=>{let{children:i,_checkIconHolderView:o}=this;n?i.add(o,0):i.remove(o)})}}class cf extends i0{constructor(){super(),this._checkIconView=this._createCheckIconView();let e=this.bindTemplate;this.children=this.createCollection(),this.set("isOn",!1),this.setTemplate({tag:"span",children:this.children,attributes:{class:["ck","ck-list-item-button__check-holder",e.to("isOn",e=>e?"ck-on":"ck-off")]}})}render(){super.render(),this.isOn&&this.children.add(this._checkIconView,0),this._watchCheckIconMount()}_watchCheckIconMount(){this.on("change:isOn",(e,t,n)=>{let{children:i,_checkIconView:o}=this;n&&!i.has(o)?i.add(o):!n&&i.has(o)&&i.remove(o)})}_createCheckIconView(){let e=new l0;return e.content=lZ.check,e.extendTemplate({attributes:{class:"ck-list-item-button__check-icon"}}),e}}var cb=r(977),cA={attributes:{"data-cke":!0}};cA.setAttributes=iY(),cA.insert=iK().bind(null,"head"),cA.domAPI=iG(),cA.insertStyleElement=iZ(),iU()(cb.A,cA),cb.A&&cb.A.locals&&cb.A.locals;class cw extends ck{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var c_=r(7801),cC={attributes:{"data-cke":!0}};cC.setAttributes=iY(),cC.insert=iK().bind(null,"head"),cC.domAPI=iG(),cC.insertStyleElement=iZ(),iU()(c_.A,cC),c_.A&&c_.A.locals&&c_.A.locals;class cv extends i0{constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${f()}`;let t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class cy extends i0{constructor(e,t){super(e);let n=e.t,i=new cv;i.text=n("Help Contents. To close this dialog press ESC."),this.setTemplate({tag:"div",attributes:{class:["ck","ck-accessibility-help-dialog__content"],"aria-labelledby":i.id,role:"document",tabindex:-1},children:[em(document,"p",{},n("Below, you can find a list of keyboard shortcuts that can be used in the editor.")),...this._createCategories(Array.from(t.values())
2),i]})}focus(){this.element.focus()}_createCategories(e){return e.map(e=>{let t=[em(document,"h3",{},e.label),...Array.from(e.groups.values()).map(e=>this._createGroup(e)).flat()];return e.description&&t.splice(1,0,em(document,"p",{},e.description)),em(document,"section",{},t)})}_createGroup(e){let t=[em(document,"dl",{},e.keystrokes.sort((e,t)=>e.label.localeCompare(t.label)).map(e=>this._createGroupRow(e)).flat())];return e.label&&t.unshift(em(document,"h4",{},e.label)),t}_createGroupRow(e){var t;let n=this.locale.t,i=em(document,"dt"),o=em(document,"dd"),r="string"==typeof(t=e.keystroke)?[[t]]:"string"==typeof t[0]?[t]:t,s=[];for(let e of r)s.push(e.map(cx).join(""));return i.innerHTML=e.label,o.innerHTML=s.join(", ")+(e.mayRequireFn&&l.isMac?` ${n("(may require <kbd>Fn</kbd>)")}`:""),[i,o]}}function cx(e){return n0(e).split("+").map(e=>`<kbd>${e}</kbd>`).join("+")}let cE='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 6.628a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M8.5 9.125a.3.3 0 0 0-.253-.296L5.11 8.327a.75.75 0 1 1 .388-1.449l4.04.716c.267.072.624.08.893.009l4.066-.724a.75.75 0 1 1 .388 1.45l-3.132.5a.3.3 0 0 0-.253.296v1.357a.3.3 0 0 0 .018.102l1.615 4.438a.75.75 0 0 1-1.41.513l-1.35-3.71a.3.3 0 0 0-.281-.197h-.209a.3.3 0 0 0-.282.198l-1.35 3.711a.75.75 0 0 1-1.41-.513l1.64-4.509a.3.3 0 0 0 .019-.103V9.125Z"/><path clip-rule="evenodd" d="M10 18.5a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17Zm0 1.5c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10Z"/></svg>';var cD=r(8527),cI={attributes:{"data-cke":!0}};cI.setAttributes=iY(),cI.insert=iK().bind(null,"head"),cI.domAPI=iG(),cI.insertStyleElement=iZ(),iU()(cD.A,cI),cD.A&&cD.A.locals&&cD.A.locals;class cS extends i4{constructor(){super(...arguments),this.contentView=null}static get requires(){return[cg]}static get pluginName(){return"AccessibilityHelp"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t;e.ui.componentFactory.add("accessibilityHelp",()=>{let e=this._createButton(l4);return e.set({tooltip:!0,withText:!1,label:t("Accessibility help")}),e}),e.ui.componentFactory.add("menuBar:accessibilityHelp",()=>{let e=this._createButton(cw);return e.label=t("Accessibility"),e}),e.keystrokes.set("Alt+0",(e,t)=>{this._toggleDialog(),t()}),this._setupRootLabels()}_createButton(e){let t=this.editor,n=t.plugins.get("Dialog"),i=new e(t.locale);return i.set({keystroke:"Alt+0",icon:cE,isToggleable:!0}),i.on("execute",()=>this._toggleDialog()),i.bind("isOn").to(n,"id",e=>"accessibilityHelp"===e),i}_setupRootLabels(){let e=this.editor,t=e.editing.view,n=e.t;function i(e,t){let i=[t.getAttribute("aria-label"),n("Press %0 for help.",[n0("Alt+0")])].filter(e=>e).join(". ");e.setAttribute("aria-label",i,t)}e.ui.on("ready",()=>{t.change(e=>{for(let n of t.document.roots)i(e,n)}),e.on("addRoot",(n,o)=>{let r=e.editing.view.document.getRoot(o.rootName);t.change(e=>i(e,r))},{priority:"low"})})}_toggleDialog(){let e=this.editor,t=e.plugins.get("Dialog"),n=e.locale.t;this.contentView||(this.contentView=new cy(e.locale,e.accessibility.keystrokeInfos)),"accessibilityHelp"===t.id?t.hide():t.show({id:"accessibilityHelp",className:"ck-accessibility-help-dialog",title:n("Accessibility help"),icon:cE,hasCloseButton:!0,content:this.contentView})}}class cM extends ix{constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new iE({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection,role:"application"},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=em(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();let e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}var cB=r(4391),cT={attributes:{"data-cke":!0}};cT.setAttributes=iY(),cT.insert=iK().bind(null,"head"),cT.domAPI=iG(),cT.insertStyleElement=iZ(),iU()(cB.A,cT),cB.A&&cB.A.locals&&cB.A.locals;class cN extends l4{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){let e=new i0;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}class cP extends cO(l4){}class cL extends cO(ck){}function cO(e){return class extends e{constructor(...e){super(...e),this.buttonView=this,this._fileInputView=new cz(this.locale),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}}class cz extends i0{constructor(e){super(e),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);let t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}let cR='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';var cF=r(25),cj={attributes:{"data-cke":!0}};cj.setAttributes=iY(),cj.insert=iK().bind(null,"head"),cj.domAPI=iG(),cj.insertStyleElement=iZ(),iU()(cF.A,cj),cF.A&&cF.A.locals&&cF.A.locals;class cV extends i0{constructor(e,t){super(e);let n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),t&&this.children.addMany(t),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.i
2d}focus(){this.buttonView.focus()}_createButtonView(){let e=new l4(this.locale),t=e.bindTemplate;return e.set({withText:!0,icon:cR}),e.extendTemplate({attributes:{"aria-expanded":t.to("isOn",e=>String(e))}}),e.bind("label").to(this),e.bind("isOn").to(this,"isCollapsed",e=>!e),e.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),e}}var cH=r(7317),cU={attributes:{"data-cke":!0}};cU.setAttributes=iY(),cU.insert=iK().bind(null,"head"),cU.domAPI=iG(),cU.insertStyleElement=iZ(),iU()(cH.A,cU),cH.A&&cH.A.locals&&cH.A.locals,r(6931),r(9047);var cq=r(4962),cG={attributes:{"data-cke":!0}};cG.setAttributes=iY(),cG.insert=iK().bind(null,"head"),cG.domAPI=iG(),cG.insertStyleElement=iZ(),iU()(cq.A,cG),cq.A&&cq.A.locals&&cq.A.locals;class cW extends i0{constructor(e,t){super(e);let n=`ck-labeled-field-view-${f()}`,i=`ck-labeled-field-view-status-${f()}`;this.fieldView=t(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",(e,t)=>e||t);let o=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",o.to("class"),o.if("isEnabled","ck-disabled",e=>!e),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(e){let t=new cv(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){let t=new i0(this.locale),n=this.bindTemplate;return t.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",e=>!e)],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}focus(e){this.fieldView.focus(e)}}class cK extends i0{constructor(e){super(e),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("tabIndex",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.set("ariaLabel",void 0),this.focusTracker=new ig,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);let t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),tabindex:t.to("tabIndex"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById"),"aria-label":t.to("ariaLabel")},on:{input:t.to((...e)=>{this.fire("input",...e),this._updateIsEmpty()}),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(e,t,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(e){this.element.value=e||0===e?e:""}}var c$=r(253),cY={attributes:{"data-cke":!0}};cY.setAttributes=iY(),cY.insert=iK().bind(null,"head"),cY.domAPI=iG(),cY.insertStyleElement=iZ(),iU()(c$.A,cY),c$.A&&c$.A.locals&&c$.A.locals;class cQ extends cK{constructor(e){super(e),this.set("inputMode","text");let t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to("inputMode")}})}}class cZ extends cQ{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var cJ=r(1671),cX={attributes:{"data-cke":!0}};cX.setAttributes=iY(),cX.insert=iK().bind(null,"head"),cX.domAPI=iG(),cX.insertStyleElement=iZ(),iU()(cJ.A,cX),cJ.A&&cJ.A.locals&&cJ.A.locals;class c0 extends i0{constructor(e){super(e);let t=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",t.to("position",e=>`ck-dropdown__panel_${e}`),t.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:t.to(e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()})}})}focus(){if(this.children.length){let e=this.children.first;"function"==typeof e.focus?e.focus():_("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){let e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}var c1=r(8149),c2={attributes:{"data-cke":!0}};c2.setAttributes=iY(),c2.insert=iK().bind(null,"head"),c2.domAPI=iG(),c2.insertStyleElement=iZ(),iU()(c1.A,c2),c1.A&&c1.A.locals&&c1.A.locals;class c5 extends i0{constructor(e,t,n){super(e);let i=this.bindTemplate;this.buttonView=t,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 ik,this.focusTracker=new ig,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",i.to("class"),i.if("isEnabled","ck-disabled",e=>!e)],id:i.to("id"),"aria-describedby":i.to("ariaDescribedById")},children:[t,n]}),t.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",(e,t,n)=>{if(n){if("auto"===this.panelPosition){let e=c5._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=e?e.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}}),this.keystrokes.listenTo(this.element);let e=(e,t)=>
2{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set("arrowdown",(e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())}),this.keystrokes.set("arrowright",(e,t)=>{this.isOpen&&t()}),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){let{south:e,north:t,southEast:n,southWest:i,northEast:o,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:l,northMiddleWest:c}=c5.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,i,s,a,e,o,r,l,c,t]:[i,n,a,s,e,r,o,c,l,t]}static{this.defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}),southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"})}}static{this._getOptimalPosition=nF}}class c4 extends l4{constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){let e=new l0;return e.content=cR,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}var c3=r(4767),c6={attributes:{"data-cke":!0}};c6.setAttributes=iY(),c6.insert=iK().bind(null,"head"),c6.domAPI=iG(),c6.insertStyleElement=iZ(),iU()(c3.A,c6),c3.A&&c3.A.locals&&c3.A.locals;var c7=r(9554),c9={attributes:{"data-cke":!0}};c9.setAttributes=iY(),c9.insert=iK().bind(null,"head"),c9.domAPI=iG(),c9.insertStyleElement=iZ(),iU()(c7.A,c9),c7.A&&c7.A.locals&&c7.A.locals;class c8 extends ck{constructor(e){super(e);let t=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list__nested-menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e)),"data-cke-tooltip-disabled":t.to("isOn")},on:{mouseenter:t.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){let e=new l0;return e.content=cR,e.extendTemplate({attributes:{class:"ck-dropdown-menu-list__nested-menu__button__arrow"}}),e}}class de extends i0{constructor(e){super(e);let t=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",t.if("isVisible","ck-hidden",e=>!e)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class dt extends i0{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class dn extends i0{constructor(e,t=new cv){super(e);let n=this.bindTemplate,i=new ds(e);this.set({label:"",isVisible:!0}),this.labelView=t,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,i]),i.set({role:"group",ariaLabelledBy:t.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",e=>!e)]},children:this.children})}focus(){if(this.items){let e=this.items.find(e=>!(e instanceof dt));e&&e.focus()}}}var di=r(5199),dr={attributes:{"data-cke":!0}};dr.setAttributes=iY(),dr.insert=iK().bind(null,"head"),dr.domAPI=iG(),dr.insertStyleElement=iZ(),iU()(di.A,dr),di.A&&di.A.locals&&di.A.locals;class ds extends i0{constructor(e){super(e),this._listItemGroupToChangeListeners=new WeakMap;let t=this.bindTemplate;this.focusables=new ix,this.items=this.createCollection(),this.focusTracker=new ig,this.keystrokes=new ik,this._focusCycler=new l8({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:t.to("role"),"aria-label":t.to("ariaLabel"),"aria-labelledby":t.to("ariaLabelledBy")},children:this.items})}render(){for(let e of(super.render(),this.items))e instanceof dn?this._registerFocusableItemsGroup(e):e instanceof de&&this._registerFocusableListItem(e);this.items.on("change",(e,t)=>{for(let e of t.removed)e instanceof dn?this._deregisterFocusableItemsGroup(e):e instanceof de&&this._deregisterFocusableListItem(e);for(let e of Array.from(t.added).reverse())e instanceof dn?this._registerFocusableItemsGroup(e,t.index):this._registerFocusableListItem(e,t.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(e,t){this.focusTracker.add(e.element),this.focusables.add(e,t)}_deregisterFocusableListItem(e){this.focusTracker.remove(e.element),this.focusables.remove(e)}_getOnGroupItemsChangeCallback(e){return(t,n)=>{for(let e of n.removed)this._deregisterFocusableListItem(e);for(let t of Array.from(n.added).reverse())this._registerFocusableListItem(t,this.items.getIndex(e)+n.index)}}
2_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach((e,n)=>{this._registerFocusableListItem(e,void 0!==t?t+n:void 0)});let n=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,n),e.items.on("change",n)}_deregisterFocusableItemsGroup(e){for(let t of e.items)this._deregisterFocusableListItem(t);e.items.off("change",this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}}class da extends ds{constructor(e){super(e);let t=this.bindTemplate;this.role="menu",this.set("isVisible",!0),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list",t.if("isVisible","ck-hidden",e=>!e)]}})}}let dl={eastSouth:e=>({top:e.top,left:e.right-5,name:"es"}),eastNorth:(e,t)=>({top:e.top-t.height+e.height,left:e.right-5,name:"en"}),westSouth:(e,t)=>({top:e.top,left:e.left-t.width+5,name:"ws"}),westNorth:(e,t)=>({top:e.top-t.height+e.height,left:e.left-t.width+5,name:"wn"})};var dc=r(2171),dd={attributes:{"data-cke":!0}};dd.setAttributes=iY(),dd.insert=iK().bind(null,"head"),dd.domAPI=iG(),dd.insertStyleElement=iZ(),iU()(dc.A,dd),dc.A&&dc.A.locals&&dc.A.locals;let du={openOnArrowRightKey(e){let t="rtl"===e.locale.uiLanguageDirection?"arrowleft":"arrowright";e.keystrokes.set(t,(t,n)=>{e.focusTracker.focusedElement===e.buttonView.element&&e.isEnabled&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),n())})},openOnButtonClick(e){e.buttonView.on("execute",()=>{e.isEnabled&&(e.isOpen=!0)})},openAndFocusOnEnterKeyPress(e){e.keystrokes.set("enter",(t,n)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen=!0,e.panelView.focus(),n())})},closeOnArrowLeftKey(e){let t="rtl"===e.locale.uiLanguageDirection?"arrowright":"arrowleft";e.keystrokes.set(t,(t,n)=>{e.isOpen&&(e.focus(),e.isOpen=!1,n())})},closeOnEscKey(e){e.keystrokes.set("esc",(t,n)=>{e.isOpen&&(e.focus(),e.isOpen=!1,n())})},closeOnParentClose(e,t){t.on("change:isOpen",(n,i,o)=>{o||n.source!==t||(e.isOpen=!1)})}};var dh=r(3710),dg={attributes:{"data-cke":!0}};dg.setAttributes=iY(),dg.insert=iK().bind(null,"head"),dg.domAPI=iG(),dg.insertStyleElement=iZ(),iU()(dh.A,dg),dh.A&&dh.A.locals&&dh.A.locals;let dm=e=>e+"px",dp={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class dk extends i0{constructor(e){super(e);let t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this._resizeObserver=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",e=>`ck-balloon-panel_${e}`),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",dm),left:t.to("left",dm)}},children:this.content})}destroy(){this.hide(),super.destroy()}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){let t=df(e.target);if(t&&!nR(t))return!1;this.show();let n=dk.defaultPositions,i=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:o.document.body,fitInViewport:!0},e),r=dk._getOptimalPosition(i)||dp,s=parseInt(r.left),a=parseInt(r.top),l=r.name,{withArrow:c=!0}=r.config||{};return this.top=a,this.left=s,this.position=l,this.withArrow=c,!0}pin(e){this.unpin(),this._startPinning(e)&&(this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback))}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){if(!this.attachTo(e))return!1;let t=df(e.target),n=e.limiter?df(e.limiter):o.document.body;return this.listenTo(o.document,"scroll",(i,o)=>{let r=o.target,s=t&&r.contains(t),a=n&&r.contains(n);!s&&!a&&t&&n||this.attachTo(e)},{useCapture:!0}),this.listenTo(o.window,"resize",()=>{this.attachTo(e)}),!this._resizeObserver&&(t&&ny(t)&&(t=t.parentElement),t)&&(this._resizeObserver=new nN(t,()=>{nR(t)||this.unpin()})),!0}_stopPinning(){this.stopListening(o.document,"scroll"),this.stopListening(o.window,"resize"),this._resizeObserver&&(this._resizeObserver.destroy(),this._resizeObserver=null)}static generatePositions(e={}){let{sideOffset:t=dk.arrowSideOffset,heightOffset:n=dk.arrowHeightOffset,stickyVerticalOffset:i=dk.stickyVerticalOffset,config:o}=e;return{northWestArrowSouthWest:(e,n)=>
2({top:r(e,n),left:e.left-t,name:"arrow_sw",...o&&{config:o}}),northWestArrowSouthMiddleWest:(e,n)=>({top:r(e,n),left:e.left-.25*n.width-t,name:"arrow_smw",...o&&{config:o}}),northWestArrowSouth:(e,t)=>({top:r(e,t),left:e.left-t.width/2,name:"arrow_s",...o&&{config:o}}),northWestArrowSouthMiddleEast:(e,n)=>({top:r(e,n),left:e.left-.75*n.width+t,name:"arrow_sme",...o&&{config:o}}),northWestArrowSouthEast:(e,n)=>({top:r(e,n),left:e.left-n.width+t,name:"arrow_se",...o&&{config:o}}),northArrowSouthWest:(e,n)=>({top:r(e,n),left:e.left+e.width/2-t,name:"arrow_sw",...o&&{config:o}}),northArrowSouthMiddleWest:(e,n)=>({top:r(e,n),left:e.left+e.width/2-.25*n.width-t,name:"arrow_smw",...o&&{config:o}}),northArrowSouth:(e,t)=>({top:r(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s",...o&&{config:o}}),northArrowSouthMiddleEast:(e,n)=>({top:r(e,n),left:e.left+e.width/2-.75*n.width+t,name:"arrow_sme",...o&&{config:o}}),northArrowSouthEast:(e,n)=>({top:r(e,n),left:e.left+e.width/2-n.width+t,name:"arrow_se",...o&&{config:o}}),northEastArrowSouthWest:(e,n)=>({top:r(e,n),left:e.right-t,name:"arrow_sw",...o&&{config:o}}),northEastArrowSouthMiddleWest:(e,n)=>({top:r(e,n),left:e.right-.25*n.width-t,name:"arrow_smw",...o&&{config:o}}),northEastArrowSouth:(e,t)=>({top:r(e,t),left:e.right-t.width/2,name:"arrow_s",...o&&{config:o}}),northEastArrowSouthMiddleEast:(e,n)=>({top:r(e,n),left:e.right-.75*n.width+t,name:"arrow_sme",...o&&{config:o}}),northEastArrowSouthEast:(e,n)=>({top:r(e,n),left:e.right-n.width+t,name:"arrow_se",...o&&{config:o}}),southWestArrowNorthWest:e=>({top:s(e),left:e.left-t,name:"arrow_nw",...o&&{config:o}}),southWestArrowNorthMiddleWest:(e,n)=>({top:s(e),left:e.left-.25*n.width-t,name:"arrow_nmw",...o&&{config:o}}),southWestArrowNorth:(e,t)=>({top:s(e),left:e.left-t.width/2,name:"arrow_n",...o&&{config:o}}),southWestArrowNorthMiddleEast:(e,n)=>({top:s(e),left:e.left-.75*n.width+t,name:"arrow_nme",...o&&{config:o}}),southWestArrowNorthEast:(e,n)=>({top:s(e),left:e.left-n.width+t,name:"arrow_ne",...o&&{config:o}}),southArrowNorthWest:e=>({top:s(e),left:e.left+e.width/2-t,name:"arrow_nw",...o&&{config:o}}),southArrowNorthMiddleWest:(e,n)=>({top:s(e),left:e.left+e.width/2-.25*n.width-t,name:"arrow_nmw",...o&&{config:o}}),southArrowNorth:(e,t)=>({top:s(e),left:e.left+e.width/2-t.width/2,name:"arrow_n",...o&&{config:o}}),southArrowNorthMiddleEast:(e,n)=>({top:s(e),left:e.left+e.width/2-.75*n.width+t,name:"arrow_nme",...o&&{config:o}}),southArrowNorthEast:(e,n)=>({top:s(e),left:e.left+e.width/2-n.width+t,name:"arrow_ne",...o&&{config:o}}),southEastArrowNorthWest:e=>({top:s(e),left:e.right-t,name:"arrow_nw",...o&&{config:o}}),southEastArrowNorthMiddleWest:(e,n)=>({top:s(e),left:e.right-.25*n.width-t,name:"arrow_nmw",...o&&{config:o}}),southEastArrowNorth:(e,t)=>({top:s(e),left:e.right-t.width/2,name:"arrow_n",...o&&{config:o}}),southEastArrowNorthMiddleEast:(e,n)=>({top:s(e),left:e.right-.75*n.width+t,name:"arrow_nme",...o&&{config:o}}),southEastArrowNorthEast:(e,n)=>({top:s(e),left:e.right-n.width+t,name:"arrow_ne",...o&&{config:o}}),westArrowEast:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.left-t.width-n,name:"arrow_e",...o&&{config:o}}),eastArrowWest:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.right+n,name:"arrow_w",...o&&{config:o}}),viewportStickyNorth:(e,t,n,r)=>{let s=r||n;return e.getIntersection(s)?s.height-e.height>i?null:{top:s.top+i,left:e.left+e.width/2-t.width/2,name:"arrowless",config:{withArrow:!1,...o}}:null}};function r(e,t){return e.top-t.height-n}function s(e){return e.bottom+n}}static{this.arrowSideOffset=25}static{this.arrowHeightOffset=10}static{this.stickyVerticalOffset=20}static{this._getOptimalPosition=nF}static{this.defaultPositions=dk.generatePositions()}}function df(e){return ng(e)?e:nx(e)?e.commonAncestorContainer:"function"==typeof e?df(e()):null}var db=r(3610),dA={attributes:{"data-cke":!0}};dA.setAttributes=iY(),dA.insert=iK().bind(null,"head"),dA.domAPI=iG(),dA.insertStyleElement=iZ(),iU()(db.A,dA),db.A&&db.A.locals&&db.A.locals;class dw extends dk{constructor(e){super(e);let t=this.bindTemplate;this.set({isVisible:!1,position:"se",class:null,top:0,left:0}),this.extendTemplate({tag:"div",attributes:{class:["ck-reset","ck-dropdown-menu__nested-menu__panel"],tabindex:"-1"},on:{selectstart:t.to(e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()})}})}focus(e=1){let{content:t}=this;t.length&&(1===e?t.first.focus():t.last.focus())}}var d_=r(7218),dC={attributes:{"data-cke":!0}};dC.setAttributes=iY(),dC.insert=iK().bind(null,"head"),dC.domAPI=iG(),dC.insertStyleElement=iZ(),iU()(d_.A,dC),d_.A&&d_.A.locals&&d_.A.locals;class dv extends i0{static{this.DELEGATED_EVENTS=["mouseenter","execute","change:isOpen"]}constructor(e,t,n,i,o){super(e),this._bodyCollection=t,this.id=n,this.set({isOpen:!1,isEnabled:!0,panelPosition:"w",class:void 0,parentMenuView:null}),this.keystrokes=new ik,this.focusTracker=new ig,this.buttonView=new c8(e),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.buttonView.label=i,this.panelView=new dw(e),this.panelView.isVisible=!0,this.listView=new da(e),this.listView.bind("ariaLabel").to(this.buttonView,"label"),this.panelView.content.add(this.listView);let r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown-menu-list__nested-menu",r.to("class"),r.if("isEnabled","ck-disabled",e=>!e)],role:"presentation"},children:[this.buttonView]}),this.parentMenuView=o,this.parentMenuView&&this._handleParentMenuView(),this._attachBehaviors()}get _panelPositions(){let{westSouth:e,eastSouth:t,westNorth:n,eastNorth:i}=dl;return"ltr"===this.locale.uiLanguageDirection?[t,i,e,n]:[e,n,t,i]}render(){super.render(),this.panelView.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.focusTracker.add(this.listView),this.keystrokes.listenTo(this.element),this._mountPanelOnOpen()}destroy(){this._removePanelFromBody(),this.panelView.destroy(),super.destroy()}focus(){this.buttonView.focus()}_handleParentMenuView(){this.delegate(...dv.DELEGATED_EVENTS).to(this.parentMenuView),du.closeOnParentClose(this,this.parentMenuView)}_attachBehaviors(){du.openOnButtonClick(this),du.openAndFocusOnEnterKeyPress(this),du.openOnArrowRightKey(this),du.closeOnEscKey(this),du.closeOnArrowLeftKey(this)}_mountPanelOnOpen(){let{panelView:e}=this;this.on("change:isOpen",(t,n,i)=>{t.source===this&&(i||!this._bodyCollection.has(e)?i&&!this._bodyCollection.has(e)&&this._addPanelToBody():this._removePanelFromBody())})}_removePanelFromBody(){let{panelView:e,keystrokes:t}=this;this._bodyCollection.has(e)&&(this._bodyCollection.remove(e),t.stopListening(e.element))}_addPanelToBody(){let{panelView:e,buttonView:t,keystrokes:n}=this;this._bodyCollection.has(e)||(this._bodyCollection.add(e),n.listenTo(e.element),e.pin({positions:this._panelPositions,limiter:o.document.body,element:e.element,target:t.element,fitInViewport:!0}))}}class dy extends i0{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class dx extends i0{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function dE(e){if(Array.isArray(e))return{items:e,removeItems:[]};let t={items:[],removeItems:[]};return e?{...t,...e}:t}var dD=r(9677),dI={attributes:{"data-cke":!0}};dI.setAttributes=iY(),dI.insert=iK().bind(null,"head"),dI.domAPI=iG(),dI.insertStyleElement=iZ(),iU()(dD.A,dI),dD.A&&dD.A.locals&&dD.A.locals;let dS={alignLeft:lZ.alignLeft,bold:lZ.bold,importExport:lZ.importExport,paragraph:lZ.paragraph,plus:lZ.plus,text:lZ.text,threeVerticalDots:lZ.threeVerticalDots,pilcrow:lZ.pilcrow,dragIndicator:lZ.dragIndicator};class dM extends i0{constructor(e,t){var n;super(e);let i=this.bindTemplate,o=this.t;this.options=t||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new ig,this.keystrokes=new ik,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new dB(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();let r="rtl"===e.uiLanguageDirection;this._focusCycler=new l8({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});let s=["ck","ck-toolbar",i.to("class"),i.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&s.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":i.to("ariaLabel"),style:{maxWidth:i.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(n=this,n.bindTemplate.to(e=>{e.target===n.element&&e.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new dN(this):new dT(this)}render(){for(let e of(super.render(),this.focusTracker.add(this.element),this.items))this.focusTracker.add(e);this.items.on("add",(e,t)=>{this.focusTracker.add(t)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t)}),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(e,t,n){this.items.addMany(this._buildItemsFromConfig(e,t,n))}_buildItemsFromConfig(e,t,n){let i=dE(e),o=n||i.removeItems;return this._cleanItemsConfiguration(i.items,t,o).map(e=>O(e)?this._createNestedToolbarDropdown(e,t,o):"|"===e?new dy:"-"===e?new dx:t.create(e)).filter(e=>!!e)}_cleanItemsConfiguration(e,t,n){let i=e.filter((e,i,o)=>"|"===e||-1===n.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(_("toolbarview-line-break-ignored-when-grouping-items",o),!1):!(!O(e)&&!t.has(e))||(_("toolbarview-item-unavailable",{item:e}),!1)));return this._cleanSeparatorsAndLineBreaks(i)}_cleanSeparatorsAndLineBreaks(e){let t=e=>"-"!==e&&"|"!==e,n=e.length,i=e.findIndex(t);if(-1===i)return[];let o=n-e.slice().reverse().findIndex(t);return e.slice(i,o).filter((e,n,i)=>!!t(e)||!(n>0&&i[n-1]===e))}_createNestedToolbarDropdown(e,t,n){let{label:i,icon:o,items:r,tooltip:s=!0,withText:a=!1}=e;if(!(r=this._cleanItemsConfiguration(r,t,n)).length)return null;let l=dV(this.locale);return i||_("toolbarview-nested-toolbar-dropdown-missing-label",e),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:i,tooltip:s,withText:!!a}),!1!==o?l.buttonView.icon=dS[o]||o||lZ.threeVerticalDots:l.buttonView.withText=!0,dH(l,()=>l.toolbarView._buildItemsFromConfig(r,t,n)),l}}class dB extends i0{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class dT{constructor(e){let t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>ct(e)?e:null),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class dN{constructor(e){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("change",this._updateFocusCyclableItems.bind(this)),e.children.on("change",this._updateFocusCyclableItems.bind(this)),e.items.on("change",(e,t)=>{let n=t.index,i=Array.from(t.added);for(let e of t.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=n;e<n+i.length;e++){let t=i[e-n];e>this.ungroupedItems.length?this.groupedItems.add(t,e-this.ungroupedItems.length):this.ungroupedItems.add(t,e)}this._updateGrouping()}),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){let e;if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!nR(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);let t=this.groupedItems.length;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;let e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new nI(e.last
2Child),i=new nI(e);if(!this.cachedPadding){let n=o.window.getComputedStyle(e);this.cachedPadding=Number.parseInt(n["ltr"===t?"paddingRight":"paddingLeft"])}return"ltr"===t?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new nN(this.viewElement,t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new dy),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(){let e=this.viewLocale,t=e.t,n=dV(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",dH(n,this.groupedItems),n.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:lZ.threeVerticalDots}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{ct(e)&&this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var dP=r(1792),dL={attributes:{"data-cke":!0}};dL.setAttributes=iY(),dL.insert=iK().bind(null,"head"),dL.domAPI=iG(),dL.insertStyleElement=iZ(),iU()(dP.A,dL),dP.A&&dP.A.locals&&dP.A.locals;class dO extends i0{constructor(e,t){super(e);let 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(t),this.arrowView=this._createArrowView(),this.keystrokes=new ik,this.focusTracker=new ig,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",e=>!e),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",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(e){let t=e||new l4;return e||t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}_createArrowView(){let e=new l4,t=e.bindTemplate;return e.icon=cR,e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":t.to("isOn"),"aria-haspopup":!0,"aria-expanded":t.to("isOn",e=>String(e))}}),e.bind("isEnabled").to(this),e.bind("label").to(this),e.bind("tooltip").to(this),e.delegate("execute").to(this,"open"),e}}var dz=r(1666),dR={attributes:{"data-cke":!0}};dR.setAttributes=iY(),dR.insert=iK().bind(null,"head"),dR.domAPI=iG(),dR.insertStyleElement=iZ(),iU()(dz.A,dR),dz.A&&dz.A.locals&&dz.A.locals;var dF=r(3629),dj={attributes:{"data-cke":!0}};function dV(e,t=c4){let n="function"==typeof t?new t(e):t,i=new c0(e),r=new c5(e,n,i);return n.bind("isEnabled").to(r),n instanceof dO?n.arrowView.bind("isOn").to(r,"isOpen"):n.bind("isOn").to(r,"isOpen"),i1({emitter:r,activator:()=>r.isRendered&&r.isOpen,callback:()=>{r.isOpen=!1},contextElements:()=>[r.element,...(function e(t){return[...t.elements,...t.externalViews.flatMap(t=>e(t.focusTracker))]})(r.focusTracker).filter(e=>!r.element.contains(e))]}),function(e){e.on("execute",t=>{t.source instanceof cN||(e.isOpen=!1)})}(r),function(e){e.focusTracker.on("change:isFocused",(t,n,i)=>{!i&&e.isOpen&&(e.isOpen=!1)})}(r),r.keystrokes.set("arrowdown",(e,t)=>{r.isOpen&&(r.panelView.focus(),t())}
2),r.keystrokes.set("arrowup",(e,t)=>{r.isOpen&&(r.panelView.focusLast(),t())}),function(e){e.on("change:isOpen",(t,n,i)=>{!i&&e.focusTracker.elements.some(e=>e.contains(o.document.activeElement))&&e.buttonView.focus()})}(r),function(e){e.on("change:isOpen",(t,n,i)=>{i&&e.panelView.focus()},{priority:"low"})}(r),r}function dH(e,t,n={}){e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.isOpen?dU(e,t,n):e.once("change:isOpen",()=>dU(e,t,n),{priority:"highest"}),n.enableActiveItemFocusOnDropdownOpen&&dW(e,()=>e.toolbarView.items.find(e=>e.isOn))}function dU(e,t,n){let i=e.locale,o=i.t,r=e.toolbarView=new dM(i),s="function"==typeof t?t():t;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),s instanceof ix?r.items.bindTo(s).using(e=>e):r.items.addMany(s),e.panelView.children.add(r),e.focusTracker.add(r),r.items.delegate("execute").to(e)}function dq(e,t,n={}){e.isOpen?dG(e,t,n):e.once("change:isOpen",()=>dG(e,t,n),{priority:"highest"}),dW(e,()=>e.listView.items.find(e=>e instanceof de&&e.children.first.isOn))}function dG(e,t,n){let i=e.locale,o=e.listView=new ds(i),r="function"==typeof t?t():t;o.ariaLabel=n.ariaLabel,o.role=n.role,function e(t,n,i,o){n.on("change",()=>{let e=[...n].reduce((e,t)=>(t instanceof de&&t.children.first instanceof ck&&e.push(t.children.first),e),[]),t=e.some(e=>e.isToggleable);e.forEach(e=>{e.hasCheckSpace=t})}),n.bindTo(i).using(n=>{if("separator"===n.type)return new dt(o);if("group"===n.type){let i=new dn(o);return i.set({label:n.label}),e(t,i.items,n.items,o),i.items.delegate("execute").to(t),i}if("button"===n.type||"switchbutton"===n.type){let e;let t="menuitemcheckbox"===n.model.role||"menuitemradio"===n.model.role,i=new de(o);return"button"===n.type?(e=new ck(o)).set({isToggleable:t}):e=new cN(o),e.bind(...Object.keys(n.model)).to(n.model),e.delegate("execute").to(i),i.children.add(e),i}return null})}(e,o.items,r,i),e.panelView.children.add(o),o.items.delegate("execute").to(e)}function dW(e,t){e.on("change:isOpen",()=>{if(!e.isOpen)return;let n=t();n&&("function"==typeof n.focus?n.focus():_("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))},{priority:b.low-10})}dj.setAttributes=iY(),dj.insert=iK().bind(null,"head"),dj.domAPI=iG(),dj.insertStyleElement=iZ(),iU()(dF.A,dj),dF.A&&dF.A.locals&&dF.A.locals;let dK=(e,t,n)=>{let i=new cZ(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isReadOnly").to(e,"isEnabled",e=>!e),i.bind("hasError").to(e,"errorText",e=>!!e),i.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(i),i};Symbol("same"),Symbol("color"),Symbol("hsva"),Symbol("update"),Symbol("parts"),Symbol("css"),Symbol("sliders"),HTMLElement;var d$=r(1905),dY={attributes:{"data-cke":!0}};dY.setAttributes=iY(),dY.insert=iK().bind(null,"head"),dY.domAPI=iG(),dY.insertStyleElement=iZ(),iU()(d$.A,dY),d$.A&&d$.A.locals&&d$.A.locals;var dQ=r(6309),dZ={attributes:{"data-cke":!0}};dZ.setAttributes=iY(),dZ.insert=iK().bind(null,"head"),dZ.domAPI=iG(),dZ.insertStyleElement=iZ(),iU()(dQ.A,dZ),dQ.A&&dQ.A.locals&&dQ.A.locals;class dJ{constructor(e){this._components=new Map,this.editor=e}*names(){for(let e of this._components.values())yield e.originalName}add(e,t){this._components.set(dX(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new w("componentfactory-item-missing",this,{name:e});return this._components.get(dX(e)).callback(this.editor.locale)}has(e){return this._components.has(dX(e))}}function dX(e){return String(e).toLowerCase()}var d0=r(9205),d1={attributes:{"data-cke":!0}};d1.setAttributes=iY(),d1.insert=iK().bind(null,"head"),d1.domAPI=iG(),d1.insertStyleElement=iZ(),iU()(d0.A,d1),d0.A&&d0.A.locals&&d0.A.locals;let d2="ck-tooltip";class d5 extends nA(){constructor(e){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._mutationObserver=null,d5._editors.add(e),d5._instance)return d5._instance;d5._instance=this,this.tooltipTextView=new i0(e.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 dk(e.locale),this.balloonPanelView.class=d2,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=function(e){let t=new MutationObserver(()=>{e()});return{attach(e){t.observe(e,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){t.disconnect()}}}(()=>{this._updateTooltipPosition()}),this._pinTooltipDebounced=r4(this._pinTooltip,600),this._unpinTooltipDebounced=r4(this._unpinTooltip,400),this.listenTo(o.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(o.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(o.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(o.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(o.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(o.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}static{this.defaultBalloonPositions=dk.generatePositions({heightOffset:5,sideOffset:13})}static{this._editors=new Set}static{this._instance=null}destroy(e){let t=e.ui.view&&e.ui.view.body;d5._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),d5._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),d5._instance=null)}static getPositioningFunctions(e){let t=d5.defaultBalloonPositions;return({s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]})[e]}_onKeyDown(e,t){"Escape"===t.key&&this._currentElementWithTooltip&&(this._unpinTooltip(),t.stopPropagation())}_onEnterOrFocus(e,{target:t}){let n=d4(t);n?n!==this._currentElementWithTooltip&&(this._unpinTooltip(),"focus"!==e.name||n.matches(":hover")?this._pinTooltipDebounced(n,d3(n)):this._pinTooltip(n,d3(n))):"focus"===e.name&&this._unpinTooltip()}_onLeaveOrBlur(e,{target:t,relatedTarget:n}){if("mouseleave"===e.name){if(!ng(t))return;let e=this.balloonPanelView.element,i=e&&(e===n||e.contains(n)),o=!i&&t===e;if(i)return void this._unpinTooltipDebounced.cancel();if(!o&&this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;let r=d4(t),s=d4(n);(o||r&&r!==s)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:n,cssClass:i}){this._unpinTooltip();let o=ih(d5._editors.values()).ui.view.body;for(let r of(o.has(this.balloonPanelView)||o.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.class=[d2,i].filter(e=>e).join(" "),this.balloonPanelView.pin({target:e,positions:d5.getPositioningFunctions(n)}),this._mutationObserver.attach(e),d5._editors))this.listenTo(r.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=n}_unpinTooltip(){for(let e of(this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin(),d5._editors))this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;let e=d3(this._currentElementWithTooltip);nR(this._currentElementWithTooltip)&&e.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:d5.getPositioningFunctions(e.position)}):this._unpinTooltip()}}function d4(e){return ng(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function d3(e){return{text:e.dataset.ckeTooltipText,position:e.dataset.ckeTooltipPosition||"s",cssClass:e.dataset.ckeTooltipClass||""}}class d6 extends nA(){constructor(e){super(),this.editor=e,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=lO(this._showBalloon.bind(this),50,{leading:!0}),e.on("ready",this._handleEditorReady.bind(this))}destroy(){let e=this._balloonView;e&&(e.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){let e=this.editor;(e.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(e){function t(e){return e.length>=40&&e.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let n="";try{n=atob(e)}catch(e){return"INVALID"}let i=n.split("-"),o=i[0],r=i[1];if(!r)return t(e);try{atob(r)}catch(n){try{if(atob(o),!atob(o).length)return t(e)}catch(n){return t(e)}}if(o.length<40||o.length>255)return"INVALID";let s="";try{atob(o),s=atob(r)}catch(e){return"INVALID"}if(8!==s.length)return"INVALID";let a=new Date(Number(s.substring(0,4)),Number(s.substring(4,6))-1,Number(s.substring(6,8)));return a<x||isNaN(Number(a))?"INVALID":"VALID"}(e.config.get("licenseKey")))&&e.ui.view&&(e.ui.focusTracker.on("change:isFocused",(e,t,n)=>{this._updateLastFocusedEditableElement(),n?this._showBalloon():this._hideBalloon()}),e.ui.focusTracker.on("change:focusedElement",(e,t,n)=>{this._updateLastFocusedEditableElement(),n&&this._showBalloon()}),e.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){let e=this.editor,t=this._balloonView=new dk,n=d8(e),i=new d7(e.locale,n.label);t.content.add(i),t.set({class:"ck-powered-by-balloon"}),e.ui.view.body.add(t),this._balloonView=t}_showBalloon(){if(!this._lastFocusedEditableElement)return;let e=function(e,t){let n=d8(e),i="right"===n.side?d9(t,n,(e,t)=>e.left+e.width-t.width-n.horizontalOffset):d9(t,n,e=>e.left+n.horizontalOffset);return{target:t,positions:[i]}}(this.editor,this._lastFocusedEditableElement);e&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(e))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){let e=this.editor,t=e.ui.focusTracker.isFocused,n=e.ui.focusTracker.focusedElement;if(!t||!n)return void(this._lastFocusedEditableElement=null);let i=Array.from(e.ui.getEditableElementsNames()).map(t=>e.ui.getEditableElement(t));i.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=i[0]}}class d7 extends i0{constructor(e,t){super(e);let n=new l0
vendor: 6,237 bytes, line 2
2,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/
2powered-by-ckeditor/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...t?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[t]}]:[],n],on:{dragstart:i.to(e=>e.preventDefault())}}]})}}function d9(e,t,n){return(i,o)=>{let r;let s=new nI(e);if(s.width<350||s.height<50)return null;r=("inside"===t.position?s.bottom-o.height:s.bottom-o.height/2)-t.verticalOffset;let a=n(s,o),l=i.clone().moveTo(a,r).getIntersection(o.clone().moveTo(a,r)).getVisible();return!l||l.getArea()<o.getArea()?null:{top:r,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function d8(e){let t=e.config.get("ui.poweredBy"),n=t&&t.position||"border";return{position:n,label:"Powered by",verticalOffset:"inside"===n?5:0,horizontalOffset:5,side:"ltr"===e.locale.contentLanguageDirection?"right":"left",...t}}var ue=r(1801),ut={attributes:{"data-cke":!0}};ut.setAttributes=iY(),ut.insert=iK().bind(null,"head"),ut.domAPI=iG(),ut.insertStyleElement=iZ(),iU()(ue.A,ut),ue.A&&ue.A.locals&&ue.A.locals;let un={POLITE:"polite",ASSERTIVE:"assertive"};class ui{constructor(e){this.editor=e,e.once("ready",()=>{for(let e of Object.values(un))this.announce("",e)})}announce(e,t=un.POLITE){let n=this.editor;if(!n.ui.view)return;this.view||(this.view=new uo(n.locale),n.ui.view.body.add(this.view));let{politeness:i,isUnsafeHTML:o}="string"==typeof t?{politeness:t}:t,r=this.view.regionViews.find(e=>e.politeness===i);r||(r=new ur(n,i),this.view.regionViews.add(r)),r.announce({announcement:e,isUnsafeHTML:o})}}class uo extends i0{constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class ur extends i0{constructor(e,t){super(e.locale),this.setTemplate({tag:"div",attributes:{"aria-live":t,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),e.on("destroy",()=>{null!==this._pruneAnnouncementsInterval&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)}),this.politeness=t,this._domConverter=e.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval(()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()},5e3)}announce({announcement:e,isUnsafeHTML:t}){if(!e.trim().length)return;let n=document.createElement("li");t?this._domConverter.setContentOf(n,e):n.innerText=e,this._listElement.appendChild(n)}get _listElement(){return this.element.querySelector("ul")}}var us=r(9481),ua={attributes:{"data-cke":!0}};ua.setAttributes=iY(),ua.insert=iK().bind(null,"head"),ua.domAPI=iG(),ua.insertStyleElement=iZ(),iU()(us.A,ua),us.A&&us.A.locals&&us.A.locals;class ul extends de{constructor(e,t){super(e);let n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:n.to("mouseenter")}}),this.delegate("mouseenter").to(t)}}let uc={toggleMenusAndFocusItemsOnHover(e){e.on("menu:mouseenter",t=>{if(e.isFocusBorderEnabled||e.isOpen){if(e.isOpen)for(let n of e.menus){let e=t.path[0],i=e instanceof ul&&e.children.first===n;n.isOpen=(t.path.includes(n)||i)&&n.isEnabled}
2t.source.focus()}})},focusCycleMenusOnArrows(e){let t="rtl"===e.locale.uiLanguageDirection;function n(t,n){let i=e.children.getIndex(t),o=t.isOpen,r=e.children.length,s=e.children.get((i+r+n)%r);t.isOpen=!1,o&&(s.isOpen=!0),s.buttonView.focus()}e.on("menu:arrowright",e=>{n(e.source,t?-1:1)}),e.on("menu:arrowleft",e=>{n(e.source,t?1:-1)})},closeMenusWhenTheBarCloses(e){e.on("change:isOpen",()=>{e.isOpen||e.menus.forEach(e=>{e.isOpen=!1})})},closeMenuWhenAnotherOnTheSameLevelOpens(e){e.on("menu:change:isOpen",(t,n,i)=>{i&&e.menus.filter(e=>t.source.parentMenuView===e.parentMenuView&&t.source!==e&&e.isOpen).forEach(e=>{e.isOpen=!1})})},closeOnClickOutside(e){i1({emitter:e,activator:()=>e.isOpen,callback:()=>e.close(),contextElements:()=>e.children.map(e=>e.element)})},enableFocusHighlightOnInteraction(e){let t=!1;e.on("change:isOpen",(n,i,o)=>{o||(t||(e.isFocusBorderEnabled=!1),t=!1)}),e.listenTo(e.element,"keydown",()=>{t=!0},{useCapture:!0}),e.listenTo(e.element,"keyup",()=>{t=!1},{useCapture:!0}),e.listenTo(e.element,"focus",()=>{t&&(e.isFocusBorderEnabled=!0)},{useCapture:!0})}},ud={openAndFocusPanelOnArrowDownKey(e){e.keystrokes.set("arrowdown",(t,n)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),n())})},openOnArrowRightKey(e){let t="rtl"===e.locale.uiLanguageDirection?"arrowleft":"arrowright";e.keystrokes.set(t,(t,n)=>{e.focusTracker.focusedElement===e.buttonView.element&&e.isEnabled&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),n())})},openOnButtonClick(e){e.buttonView.on("execute",()=>{e.isOpen=!0})},toggleOnButtonClick(e){e.buttonView.on("execute",()=>{e.isOpen=!e.isOpen})},openAndFocusOnEnterKeyPress(e){e.keystrokes.set("enter",(t,n)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen=!0,e.panelView.focus(),n())})},closeOnArrowLeftKey(e){let t="rtl"===e.locale.uiLanguageDirection?"arrowright":"arrowleft";e.keystrokes.set(t,(t,n)=>{e.isOpen&&(e.isOpen=!1,e.focus(),n())})},closeOnEscKey(e){e.keystrokes.set("esc",(t,n)=>{e.isOpen&&(e.isOpen=!1,e.focus(),n())})},closeOnParentClose(e){e.parentMenuView.on("change:isOpen",(t,n,i)=>{i||t.source!==e.parentMenuView||(e.isOpen=!1)})}},uu={southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),eastSouth:e=>({top:e.top,left:e.right-5,name:"es"}),eastNorth:(e,t)=>({top:e.top-t.height,left:e.right-5,name:"en"}),westSouth:(e,t)=>({top:e.top,left:e.left-t.width+5,name:"ws"}),westNorth:(e,t)=>({top:e.top-t.height,left:e.left-t.width+5,name:"wn"})},uh=[{menuId:"file",label:"File",groups:[{groupId:"export",items:["menuBar:exportPdf","menuBar:exportWord"]},{groupId:"import",items:["menuBar:importWord"]},{groupId:"revisionHistory",items:["menuBar:revisionHistory"]}]},{menuId:"edit",label:"Edit",groups:[{groupId:"undo",items:["menuBar:undo","menuBar:redo"]},{groupId:"selectAll",items:["menuBar:selectAll"]},{groupId:"findAndReplace",items:["menuBar:findAndReplace"]}]},{menuId:"view",label:"View",groups:[{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"previewMergeFields",items:["menuBar:previewMergeFields"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:insertImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment","menuBar:insertMergeField"]},{groupId:"insertMinorWidgets",items:["menuBar:mediaEmbed","menuBar:insertTemplate","menuBar:specialCharacters","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]}
2,{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroundColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","menuBar:multiLevelList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:indent","menuBar:outdent"]},{groupId:"caseChange",items:["menuBar:caseChange"]},{groupId:"removeFormat",items:["menuBar:removeFormat"]}]},{menuId:"tools",label:"Tools",groups:[{groupId:"aiTools",items:["menuBar:aiAssistant","menuBar:aiCommands"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function ug(e,t,n){let i=[];if(0!=n.length){for(let e of n){var o;let n=(o=e.position).startsWith("start")?"start":o.startsWith("end")?"end":o.startsWith("after")?"after":"before",r=function(e){let t=e.match(/^[^:]+:(.+)/);return t?t[1]:null}(e.position);if("object"==typeof e&&"menu"in e){if(r){let o=t.items.findIndex(e=>e.menuId===r);-1!=o?"before"===n?(t.items.splice(o,0,e.menu),i.push(e)):"after"===n&&(t.items.splice(o+1,0,e.menu),i.push(e)):um(t,e.menu,r,n)&&i.push(e)}else"start"===n?(t.items.unshift(e.menu),i.push(e)):"end"===n&&(t.items.push(e.menu),i.push(e))}else"object"==typeof e&&"group"in e?uk(t.items,t=>{if(t.menuId===r)"start"===n?(t.groups.unshift(e.group),i.push(e)):"end"===n&&(t.groups.push(e.group),i.push(e));else{let o=t.groups.findIndex(e=>e.groupId===r);-1!==o&&("before"===n?(t.groups.splice(o,0,e.group),i.push(e)):"after"===n&&(t.groups.splice(o+1,0,e.group),i.push(e)))}}):um(t,e.item,r,n)&&i.push(e)}for(let t of n)i.includes(t)||_("menu-bar-item-could-not-be-added",{menuBarConfig:e,addedItemConfig:t})}}function um(e,t,n,i){let o=!1;return uk(e.items,e=>{for(let{groupId:r,items:s}of e.groups){if(o)return;if(r===n)"start"===i?(s.unshift(t),o=!0):"end"===i&&(s.push(t),o=!0);else{let e=s.findIndex(e=>uf(e)===n);-1!==e&&("before"===i?(s.splice(e,0,t),o=!0):"after"===i&&(s.splice(e+1,0,t),o=!0))}}}),o}function up(e,t,n){n||_("menu-bar-menu-empty",{menuBarConfig:e,emptyMenuConfig:t})}function uk(e,t){if(Array.isArray(e))for(let n of e)(function e(n){for(let i of(t(n),n.groups))for(let t of i.items)ub(t)&&e(t)})(n)}function uf(e){return"string"==typeof e?e:e.menuId}function ub(e){return"object"==typeof e&&"menuId"in e}class uA extends U(){constructor(e){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this._extraMenuBarElements=[],this._lastFocusedForeignElement=null;let t=e.editing.view;this.editor=e,this.componentFactory=new dJ(e),this.focusTracker=new ig,this.tooltipManager=new d5(e),this.poweredBy=new d6(e),this.ariaLiveAnnouncer=new ui(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this._bindBodyCollectionWithFocusTracker(),this.isReady=!0}),this.listenTo(t.document,"layoutChanged",this.update.bind(this)),this.listenTo(t,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){for(let e of(this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy(),this._editableElementsMap.values()))e.ckeditorInstance=null,this.editor.keystrokes.stopListening(e);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);let n=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?n():this.once("ready",n)}removeEditableElement(e){let t=this._editableElementsMap.get(e);t&&(this._editableElementsMap.delete(e),this.editor.keystrokes.stopListening(t),this.focusTracker.remove(t),t.ckeditorInstance=null)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e),this.editor.keystrokes.listenTo(e.element)):e.once("render",()=>{this.focusTracker.add(e),this.editor.keystrokes.listenTo(e.element)}),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}extendMenuBar(e){this._extraMenuBarElements.push(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}_initMenuBar(e){var t;let n=e.element;this.focusTracker.add(n),this.editor.keystrokes.listenTo(n);let i="items"in(t=this.editor.config.get("menuBar")||{})&&t.items?{items:t.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...t}:{items:sv(uh),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...t};e.fillFromConfig(i,this.componentFactory,this._extraMenuBarElements),this.editor.keystrokes.set("Esc",(e,t)=>{n.contains(this.editor.ui.focusTracker.focusedElement)&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):this.editor.editing.view.focus(),t())}),this.editor.keystrokes.set("Alt+F9",(t,i)=>{n.contains(this.editor.ui.focusTracker.focusedElement)||(this._saveLastFocusedForeignElement(),e.isFocusBorderEnabled=!0,e.focus(),i())})}_readViewportOffsetFromConfig(){let e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;let n=e.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(){let e;let t=this.editor;t.keystrokes.set("Alt+F10",(t,n)=>{this._saveLastFocusedForeignElement();let i=this._getCurrentFocusedToolbarDefinition();i&&e||(e=this._getFocusableCandidateToolbarDefinitions());for(let t=0;t<e.length;t++){let t=e.shift();if(e.push(t),t!==i&&this._focusFocusableCandidateToolbar(t)){i&&i.options.afterBlur&&i.options.afterBlur();break}}n()}),t.keystrokes.set("Esc",(e,n)=>{let i=this._getCurrentFocusedToolbarDefinition();i&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):t.editing.view.focus(),i.options.afterBlur&&i.options.afterBlur(),n())})}_saveLastFocusedForeignElement(){let e=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(e)&&!Array.from(this.editor.editing.view.domRoots.values()).includes(e)&&(this._lastFocusedForeignElement=e)}_getFocusableCandidateToolbarDefinitions(){let e=[];for(let t of this._focusableToolbarDefinitions){let{toolbarView:n,options:i}=t;(nR(n.element)||i.beforeFocus)&&e.push(t)}return e.sort((e,t)=>
2uw(e)-uw(t)),e}_getCurrentFocusedToolbarDefinition(){for(let e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){let{toolbarView:t,options:{beforeFocus:n}}=e;return n&&n(),!!nR(t.element)&&(t.focus(),!0)}_handleScrollToTheSelection(e,t){let n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};t.viewportOffset.top+=n.top,t.viewportOffset.bottom+=n.bottom,t.viewportOffset.left+=n.left,t.viewportOffset.right+=n.right}_bindBodyCollectionWithFocusTracker(){let e=this.view.body;for(let t of e)this.focusTracker.add(t.element);e.on("add",(e,t)=>{this.focusTracker.add(t.element)}),e.on("remove",(e,t)=>{this.focusTracker.remove(t.element)})}}function uw(e){let{toolbarView:t,options:n}=e,i=10;return nR(t.element)&&i--,n.isContextual&&i--,i}var u_=r(1185),uC={attributes:{"data-cke":!0}};uC.setAttributes=iY(),uC.insert=iK().bind(null,"head"),uC.domAPI=iG(),uC.insertStyleElement=iZ(),iU()(u_.A,uC),u_.A&&u_.A.locals&&u_.A.locals;class uv extends i0{constructor(e){super(e),this.body=new cM(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class uy extends uv{constructor(e){super(e),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:e.uiLanguageDirection,lang:e.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(){let e=this.t,t=new cv;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class ux extends i0{constructor(e,t,n){super(e),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=t}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(){let e=this._editingView;function t(t){e.change(n=>{let i=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",i)})}e.isRenderingInProgress?function n(i){e.once("change:isRenderingInProgress",(e,o,r)=>{r?n(i):t(i)})}(this):t(this)}}class uE extends ux{constructor(e,t,n,i={}){super(e,t,n),this._options=i,this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();let e=this._editingView;e.change(t=>{let n=e.document.getRoot(this.name);t.setAttribute("aria-label",this.getEditableAriaLabel(),n)})}getEditableAriaLabel(){let e=this.locale.t,t=this._options.label,n=this._editableElement,i=this.name;if("string"==typeof t)return t;if("object"==typeof t)return t[i];if("function"==typeof t)return t(this);if(n){let e=n.getAttribute("aria-label");if(e)return e}return e("Rich Text Editor. Editing area: %0",i)}}class uD extends ot{static get pluginName(){return"Notification"}static get isOfficialPlugin(){return!0}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){let t=e.namespace?`show:${e.type}:${e.namespace}`:`show:${e.type}`;this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}class uI extends U(){constructor(e,t){super(),t&&rU(this,t),e&&this.set(e)}}var uS=r(991),uM={attributes:{"data-cke":!0}};uM.setAttributes=iY(),uM.insert=iK().bind(null,"head"),uM.domAPI=iG(),uM.insertStyleElement=iZ(),iU()(uS.A,uM),uS.A&&uS.A.locals&&uS.A.locals;var uB=r(5380),uT={attributes:{"data-cke":!0}};uT.setAttributes=iY(),uT.insert=iK().bind(null,"head"),uT.domAPI=iG(),uT.insertStyleElement=iZ(),iU()(uB.A,uT),uB.A&&uB.A.locals&&uB.A.locals;let uN=e=>e+"px";class uP extends i4{constructor(e){super(e),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{let e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.decorate("getPositionOptions"),this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}static get isOfficialPlugin(){return!0}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(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this._view||this._createPanelView(),this.hasView(e.view))throw new w("contextualballoon-add-view-exist",[this,e]);let t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));let n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new w("contextualballoon-remove-view-not-exist",[this,e]);let t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition()}getPositionOptions(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}showStack(e){this.visibleStack=e;let t=this._idToStack.get(e);if(!t)throw new w("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new dk(this.editor.locale),this.editor.ui.view.body.add(this._view),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find(t=>t[1]===e)[0]}_showNextStack(){let e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){let e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){let e=new uL(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>1),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(e,n)=>n<2?"":t("%0 of %1",[Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1,n])),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){let e=new uO(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>=2?Math.min(e-1,2):0),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=t,this.view.withArrow=n,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}}class uL extends i0{constructor(e){super(e);let t=e.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ig,this.buttonPrevView=this._createButtonView(t("Previous"),lZ.previousArrow),this.buttonNextView=this._createButtonView(t("Next"),lZ.nextArrow),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",e=>e?"":"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(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){let n=new l4(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}class uO extends i0{constructor(e,t){super(e);let 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=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",e=>
2e?"":"ck-hidden")],style:{top:n.to("top",uN),left:n.to("left",uN),width:n.to("width",uN),height:n.to("height",uN)}},children:this.content}),this.on("change:numberOfPanels",(e,t,n,i)=>{n>i?this._addPanels(n-i):this._removePanels(i-n),this.updatePosition()})}_addPanels(e){for(;e--;){let e=new i0;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){let e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){let{top:e,left:t}=this._balloonPanelView,{width:n,height:i}=new nI(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:i})}}}var uz=r(8298),uR={attributes:{"data-cke":!0}};uR.setAttributes=iY(),uR.insert=iK().bind(null,"head"),uR.domAPI=iG(),uR.insertStyleElement=iZ(),iU()(uz.A,uR),uz.A&&uz.A.locals&&uz.A.locals;let uF=e=>e+"px";class uj extends i0{constructor(e){super(e);let t=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 iE({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",e=>e?"block":"none"),height:t.to("isSticky",e=>e?uF(this._contentPanelRect.height):null)}}}).render(),this.contentPanelElement=new iE({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",e=>e?uF(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:t.to("_stickyTopOffset",e=>e?uF(e):e),bottom:t.to("_stickyBottomOffset",e=>e?uF(e):e),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this.contentPanelElement]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(o.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();let e=new nI(this.limiterElement),t=e.getVisible();if(t){let e=new nI(o.window);e.top+=this.viewportTopOffset,e.height-=this.viewportTopOffset,t=t.getIntersection(e)}if(t&&e.top<t.top){let n=t.top;if(n+this._contentPanelRect.height+this.limiterBottomOffset>t.bottom){let n=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;e.bottom-n>e.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(n):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<e.height?this._stickToTopOfAncestors(n):this._unstick()}else this._unstick()}_stickToTopOfAncestors(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=e,this._stickyBottomOffset=null,this._marginLeft=uF(-o.window.scrollX)}_stickToBottomOfLimiter(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=e,this._marginLeft=uF(-o.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new nI(this.contentPanelElement)}}class uV extends cW{constructor(e,t){let n=e.t,i=Object.assign({},{showResetButton:!0,showIcon:!0,creator:dK},t);super(e,i.creator),this.label=t.label,this._viewConfig=i,this._viewConfig.showIcon&&(this.iconView=new l0,this.iconView.content=lZ.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new l4(e),this.resetButtonView.set({label:n("Clear"),icon:lZ.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",e=>!e),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 uH extends i0{constructor(){super();let e=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",e.if("isVisible","ck-hidden",e=>!e)],tabindex:-1},children:[{tag:"span",children:[{text:[e.to("primaryText")]}]},{tag:"span",children:[{text:[e.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class uU extends i0{constructor(e){super(e),this.children=this.createCollection(),this.focusTracker=new ig,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new l8({focusables:this.children,focusTracker:this.focusTracker})}render(){for(let e of(super.render(),this.children))this.focusTracker.add(e.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var uq=/[\\^$.*+?()[\]{}
2|]/g,uG=RegExp(uq.source);let uW=function(e){return(e=oS(e))&&uG.test(e)?e.replace(uq,"\\$&"):e};var uK=r(8107),u$={attributes:{"data-cke":!0}};u$.setAttributes=iY(),u$.insert=iK().bind(null,"head"),u$.domAPI=iG(),u$.insertStyleElement=iZ(),iU()(uK.A,u$),uK.A&&uK.A.locals&&uK.A.locals;class uY extends i0{constructor(e,t){super(e),this._config=t,this.filteredView=t.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new ig,this.keystrokes=new ik,this.resultsView=new uU(e),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),t.infoView&&t.infoView.instance?this.infoView=t.infoView.instance:(this.infoView=new uH,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new l8({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(e,{resultsCount:t,totalItemsCount:n})=>{this.resultsCount=t,this.totalItemsCount=n}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",t.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);let e=e=>e.stopPropagation();for(let e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search(""),this.filteredView.element.scrollTo(0,0)}search(e){let t=e?RegExp(uW(e),"ig"):null,n=this.filteredView.filter(t);this.fire("search",{query:e,...n})}_createSearchTextQueryView(){let e=new uV(this.locale,this._config.queryView);return this.listenTo(e.fieldView,"input",()=>{this.search(e.fieldView.element.value)}),e.on("reset",()=>this.reset()),e.bind("isEnabled").to(this),e}_enableDefaultInfoViewBehavior(){let e=this.locale.t,t=this.infoView;function n(e,{query:t,resultsCount:n,totalItemsCount:i}){return"function"==typeof e?e(t,n,i):e}this.on("search",(i,o)=>{if(o.resultsCount)t.set({isVisible:!1});else{let i,r;let s=this._config.infoView&&this._config.infoView.text;o.totalItemsCount?s&&s.notFound?(i=s.notFound.primary,r=s.notFound.secondary):(i=e("No results found"),r=""):s&&s.noSearchableItems?(i=s.noSearchableItems.primary,r=s.noSearchableItems.secondary):(i=e("No searchable items"),r=""),t.set({primaryText:n(i,o),secondaryText:n(r,o),isVisible:!0})}})}}var uQ=r(5727),uZ={attributes:{"data-cke":!0}};uZ.setAttributes=iY(),uZ.insert=iK().bind(null,"head"),uZ.domAPI=iG(),uZ.insertStyleElement=iZ(),iU()(uQ.A,uZ),uQ.A&&uQ.A.locals&&uQ.A.locals;class uJ extends uY{constructor(e,t){super(e,t),this._config=t,this.extendTemplate({attributes:{class:["ck-autocomplete"]}});let n=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[n.if("isVisible","ck-hidden",e=>!e),n.to("_position",e=>`ck-search__results_${e}`)],style:{width:n.to("_width",e=>e+"px")}}}),this.focusTracker.on("change:isFocused",(e,n,i)=>{this._updateResultsVisibility(),i?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(e,t)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,t())}),this.listenTo(o.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(e,{value:t})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=t,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new nI(this.queryView.fieldView.element).width;let e=uJ._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:uJ.defaultResultsPositions});this.resultsView._position=e?e.name:"s"}_updateResultsVisibility(){let e=void 0===this._config.queryMinChars?0:this._config.queryMinChars,t=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&t>=e}static{this.defaultResultsPositions=[e=>({top:e.bottom,left:e.left,name:"s"}),(e,t)=>({top:e.top-t.height,left:e.left,name:"n"})]}static{this._getOptimalPosition=nF}}RegExp(/[&<>"']/g.source);var uX=r(9529),u0={attributes:{"data-cke":!0}};u0.setAttributes=iY(),u0.insert=iK().bind(null,"head"),u0.domAPI=iG(),u0.insertStyleElement=iZ(),iU()(uX.A,u0),uX.A&&uX.A.locals&&uX.A.locals;var u1=r(109),u2={attributes:{"data-cke":!0}};u2.setAttributes=iY(),u2.insert=iK().bind(null,"head"),u2.domAPI=iG(),u2.insertStyleElement=iZ(),iU()(u1.A,u2),u1.A&&u1.A.locals&&u1.A.locals;var u5=r(2710),u4={attributes:{"data-cke":!0}};u4.setAttributes=iY(),u4.insert=iK().bind(null,"head"),u4.domAPI=iG(),u4.insertStyleElement=iZ(),iU()(u5.A,u4),u5.A&&u5.A.locals&&u5.A.locals;var u3=r(3344),u6={attributes:{"data-cke":!0}};u6.setAttributes=iY(),u6.insert=iK().bind(null,"head"),u6.domAPI=iG(),u6.insertStyleElement=iZ(),iU()(u3.A,u6),u3.A&&u3.A.locals&&u3.A.locals;class u7 extends ck{constructor(e){super(e);let t=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e)),"data-cke-tooltip-disabled":t.to("isOn")},on:{mouseenter:t.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){let e=new l0;return e.content=cR,e.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),e}}var u9=r(9108),u8={attributes:{"data-cke":!0}};u8.setAttributes=iY(),u8.insert=iK().bind(null,"head"),u8.domAPI=iG(),u8.insertStyleElement=iZ(),iU()(u9.A,u8),u9.A&&u9.A.locals&&u9.A.locals;class he extends i0{constructor(e){super(e);let t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-menu-bar__menu__panel",t.to("position",e=>`ck-menu-bar__menu__panel_position_${e}`),t.if("isVisible","ck-hidden",e=>!e)],tabindex:"-1"},children:this.children,on:{selectstart:t.to(e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()})}})}focus(e=1){this.children.length&&(1===e?this.children.first.focus():this.children.last.focus())}}var ht=r(4),hn={attributes:{"data-cke":!0}};hn.setAttributes=iY(),hn.insert=iK().bind(null,"head"),hn.domAPI=iG(),hn.insertStyleElement=iZ(),iU()(ht.A,hn),ht.A&&ht.A.locals&&ht.A.locals;class hi extends i0{constructor(e){super(e);let t=this.bindTemplate;this.buttonView=new u7(e),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new he(e),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new ik,this.focusTracker=new ig,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("panelPosition","w"),this.set("class",void 0),this.set("parentMenuView",null),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar__menu",t.to("class"),t.if("isEnabled","ck-disabled",e=>!e),t.if("parentMenuView","ck-menu-bar__menu_top-level",e=>!e)]},children:[this.buttonView,this.panelView]})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.keystrokes.listenTo(this.element),ud.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(ud.openOnButtonClick(this),ud.openOnArrowRightKey(this),ud.closeOnArrowLeftKey(this),ud.openAndFocusOnEnterKeyPress(this),ud.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),ud.openAndFocusPanelOnArrowDownKey(this),ud.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",(e,t)=>{this.fire("arrowright"),t()}),this.keystrokes.set("arrowleft",(e,t)=>{this.fire("arrowleft"),t()})}_repositionPanelOnOpen(){this.on("change:isOpen",(e,t,n)=>{if(!n)return;let i=hi._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=i?i.name:this._panelPositions[0].name})}focus(){this.buttonView.focus()}get _panelPositions(){let{southEast:e,southWest:t,northEast:n,northWest:i,westSouth:o,eastSouth:r,westNorth:s,eastNorth:a}=uu;return"ltr"===this.locale.uiLanguageDirection?this.parentMenuView?[r,a,o,s]:[e,t,n,i]:this.parentMenuView?[o,s,r,a]:[t,e,i,n]}static{this._getOptimalPosition=nF}}class ho extends ds{constructor(e){super(e),this.role="menu",this.items.on("change",this._setItemsCheckSpace.bind(this))}_setItemsCheckSpace(){let e=Array.from(this.items).some(e=>{let t=hr(e);return t&&t.isToggleable});
2this.items.forEach(t=>{let n=hr(t);n&&(n.hasCheckSpace=e)})}}function hr(e){return e instanceof de?e.children.map(e=>"object"==typeof e&&"buttonView"in e&&e.buttonView instanceof l4?e.buttonView:e).find(e=>e instanceof ck):null}class hs extends cL{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var ha=r(497),hl={attributes:{"data-cke":!0}};hl.setAttributes=iY(),hl.insert=iK().bind(null,"head"),hl.domAPI=iG(),hl.insertStyleElement=iZ(),iU()(ha.A,hl),ha.A&&ha.A.locals&&ha.A.locals;let hc=["mouseenter","arrowleft","arrowright","change:isOpen"];class hd extends i0{constructor(e){super(e),this.menus=[];let t=e.t,n=this.bindTemplate;this.set({isOpen:!1,isFocusBorderEnabled:!1}),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar",n.if("isFocusBorderEnabled","ck-menu-bar_focus-border-enabled")],"aria-label":t("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(e,t,n=[]){let i=(function({normalizedConfig:e,locale:t,componentFactory:n,extraItems:i}){let o=sv(e);return ug(e,o,i),function(e,t){let n=t.removeItems,i=[];for(let o of(t.items=t.items.filter(({menuId:e})=>!n.includes(e)||(i.push(e),!1)),uk(t.items,e=>{for(let t of(e.groups=e.groups.filter(({groupId:e})=>!n.includes(e)||(i.push(e),!1)),e.groups))t.items=t.items.filter(e=>{let t=uf(e);return!n.includes(t)||(i.push(t),!1)})}),n))i.includes(o)||_("menu-bar-item-could-not-be-removed",{menuBarConfig:e,itemName:o})}(e,o),ug(e,o,o.addItems),uk(o.items,t=>{for(let i of t.groups)i.items=i.items.filter(i=>{let r="string"==typeof i&&!n.has(i);return r&&!o.isUsingDefaultConfig&&_("menu-bar-item-unavailable",{menuBarConfig:e,parentMenuConfig:sv(t),componentName:i}),!r})}),function e(t,n){let i=n.isUsingDefaultConfig,o=!1;n.items=n.items.filter(e=>!!e.groups.length||(up(t,e,i),!1)),n.items.length?(uk(n.items,e=>{for(let n of(e.groups=e.groups.filter(e=>!!e.items.length||(o=!0,!1)),e.groups))n.items=n.items.filter(e=>!(ub(e)&&!e.groups.length)||(up(t,e,i),o=!0,!1))}),o&&e(t,n)):up(t,t,i)}(e,o),function(e,t){let n=t.t,i={File:n({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:n({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:n({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:n({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:n({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:n({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:n({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:n({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:n({string:"Font",id:"MENU_BAR_MENU_FONT"})};uk(e.items,e=>{e.label in i&&(e.label=i[e.label])})}(o,t),o})({normalizedConfig:e,locale:this.locale,componentFactory:t,extraItems:n}).items.map(e=>this._createMenu({componentFactory:t,menuDefinition:e}));this.children.addMany(i)}render(){super.render(),uc.toggleMenusAndFocusItemsOnHover(this),uc.closeMenusWhenTheBarCloses(this),uc.closeMenuWhenAnotherOnTheSameLevelOpens(this),uc.focusCycleMenusOnArrows(this),uc.closeOnClickOutside(this),uc.enableFocusHighlightOnInteraction(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(let e of this.children)e.isOpen=!1}registerMenu(e,t=null){t?(e.delegate(...hc).to(t),e.parentMenuView=t):e.delegate(...hc).to(this,e=>"menu:"+e),e._attachBehaviors(),this.menus.push(e)}_createMenu({componentFactory:e,menuDefinition:t,parentMenuView:n}){let i=this.locale,o=new hi(i);return this.registerMenu(o,n),o.buttonView.set({label:t.label}),o.once("change:isOpen",()=>{let n=new ho(i);n.ariaLabel=t.label,o.panelView.children.add(n),n.items.addMany(this._createMenuItems({menuDefinition:t,parentMenuView:o,componentFactory:e}))}),o}_createMenuItems({menuDefinition:e,parentMenuView:t,componentFactory:n}){let i=this.locale,o=[];for(let r of e.groups){for(let e of r.items){let r=new ul(i,t);if(O(e))r.children.add(this._createMenu({componentFactory:n,menuDefinition:e,parentMenuView:t}));else{let i=this._createMenuItemContentFromFactory({componentName:e,componentFactory:n,parentMenuView:t});if(!i)continue;r.children.add(i)}o.push(r)}r!==e.groups[e.groups.length-1]&&o.push(new dt(i))}return o}_createMenuItemContentFromFactory({componentName:e,parentMenuView:t,componentFactory:n}){let i=n.create(e);return i instanceof hi||i instanceof cw||i instanceof hs?(this._registerMenuTree(i,t),i.on("execute",()=>{this.close()}),i):(_("menu-bar-component-unsupported",{componentName:e,componentView:i}),null)}_registerMenuTree(e,t){if(!(e instanceof hi))return void e.delegate("mouseenter").to(t);this.registerMenu(e,t);let n=e.panelView.children.filter(e=>e instanceof ho)[0];if(!n)return void e.delegate("mouseenter").to(t);for(let t of n.items.filter(e=>e instanceof de))this._registerMenuTree(t.children.get(0),e)}_setupIsOpenUpdater(){let e;this.on("menu:change:isOpen",(t,n,i)=>{clearTimeout(e),i?this.isOpen=!0:e=setTimeout(()=>{this.isOpen=Array.from(this.children).some(e=>e.isOpen)},0)})}}class hu extends uA{constructor(e,t){super(e),this.view=t,this._toolbarConfig=dE(e.config.get("toolbar")),this._elementReplacer=new Y,this.listenTo(e.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}
2get element(){return this.view.element}init(e){let t=this.editor,n=this.view,i=t.editing.view,o=n.editable,r=i.document.getRoot();o.name=r.rootName,n.render();let s=o.element;this.setEditableElement(o.name,s),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(s),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),n.menuBarView&&this._initMenuBar(n.menuBarView),this._initDialogPluginIntegration(),this._initContextualBalloonIntegration(),this.fire("ready")}destroy(){super.destroy();let e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.getDomRoot(e.editable.name)&&t.detachDomRoot(e.editable.name),e.destroy()}_initToolbar(){let e=this.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){let e;let t=this.editor,n=t.editing.view,i=n.document.getRoot(),o=t.sourceElement,r=t.config.get("placeholder");r&&(e="string"==typeof r?r:r[this.view.editable.name]),!e&&o&&"textarea"===o.tagName.toLowerCase()&&(e=o.getAttribute("placeholder")),e&&(i.placeholder=e),os({view:n,element:i,isDirectHost:!1,keepOnFocus:!0})}_initContextualBalloonIntegration(){if(!this.editor.plugins.has("ContextualBalloon"))return;let{stickyPanel:e}=this.view,t=this.editor.plugins.get("ContextualBalloon");t.on("getPositionOptions",t=>{let n=t.return;if(!n||!e.isSticky||!e.element)return;let i=new nI(e.element).height,o="function"==typeof n.target?n.target():n.target,r="function"==typeof n.limiter?n.limiter():n.limiter;if(o&&r&&new nI(o).height>=new nI(r).height-i)return;let s={...n.viewportOffsetConfig},a=(s.top||0)+i;t.return={...n,viewportOffsetConfig:{...s,top:a}}},{priority:"low"});let n=()=>{t.visibleView&&t.updatePosition()};this.listenTo(e,"change:isSticky",n),this.listenTo(this.editor.ui,"change:viewportOffset",n)}_handleScrollToTheSelectionWithStickyPanel(e,t,n){let i=this.view.stickyPanel;if(i.isSticky){let e=new nI(i.element).height;t.viewportOffset.top+=e}else{let e=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(i,"change:isSticky",e),setTimeout(()=>{this.stopListening(i,"change:isSticky",e)},20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has("Dialog"))return;let e=this.view.stickyPanel,t=this.editor.plugins.get("Dialog");t.on("show",()=>{let n=t.view;n.on("moveTo",(t,i)=>{if(!e.isSticky||n.wasMoved)return;let o=new nI(e.contentPanelElement);i[1]<o.bottom+ch.defaultOffset&&(i[1]=o.bottom+ch.defaultOffset)},{priority:"high"})},{priority:"low"})}}var hh=r(7388),hg={attributes:{"data-cke":!0}};hg.setAttributes=iY(),hg.insert=iK().bind(null,"head"),hg.domAPI=iG(),hg.insertStyleElement=iZ(),iU()(hh.A,hg),hh.A&&hh.A.locals&&hh.A.locals;class hm extends uy{constructor(e,t,n={}){super(e),this.stickyPanel=new uj(e),this.toolbar=new dM(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),n.useMenuBar&&(this.menuBarView=new hd(e)),this.editable=new uE(e,t,void 0,{label:n.label})}render(){super.render(),this.menuBarView?this.stickyPanel.content.addMany([this.menuBarView,this.toolbar]):this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class hp extends lY(l$){constructor(e,t={}){if(!ng(e)&&void 0!==t.initialData)throw new w("editor-create-initial-data",null);super(t),this.config.define("menuBar.isVisible",!1),void 0===this.config.get("initialData")&&this.config.set("initialData",function(e){return ng(e)?e instanceof HTMLTextAreaElement?e.value:e.innerHTML:e}(e)),ng(e)&&(this.sourceElement=e),this.model.document.createRoot();let n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=this.config.get("menuBar"),o=new hm(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n,useMenuBar:i.isVisible,label:this.config.get("label")});this.ui=new hu(this,o),function(e){if(!eE(e.updateSourceElement))throw new w("attachtoform-missing-elementapi-interface",e);let t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){let n;let i=t.form,o=()=>e.updateSourceElement();eE(i.submit)&&(n=i.submit,i.submit=()=>{o(),n.apply(i)}),i.addEventListener("submit",o),e.on("destroy",()=>{i.removeEventListener("submit",o),n&&(i.submit=n)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise(n=>{let i=new this(e,t);n(i.initPlugins().then(()=>i.ui.init(ng(e)?e:null)).then(()=>i.data.init(i.config.get("initialData"))).then(()=>i.fire("ready")).then(()=>i))})}}class hk extends rG{constructor(e){super(e),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];let t=this.document;function n(e){return(n,i)=>{i.preventDefault();let o=i.dropRange?[i.dropRange]:null,r=new p(t,e);t.fire(r,{dataTransfer:i.dataTransfer,method:n.name,targetRanges:o,target:i.target,domEvent:i.domEvent}),r.stop.called&&i.stopPropagation()}}this.listenTo(t,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",n("dragging"),{priority:"low"})}onDomEvent(e){let t={dataTransfer:new sb("clipboardData"in e?e.clipboardData:e.dataTransfer,{cacheFiles:"drop"==e.type||"paste"==e.type})};if("drop"==e.type||"dragover"==e.type){let n=nv(e);t.dropRange=n&&this.view.domConverter.domRangeToView(n)}this.fire(e.type,e,t)}}let hf=["figcaption","li"],hb=["ol","ul"],hA=function(e,t,n,i){var o=n.length,r=o,s=!i;
2if(null==e)return!r;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<r;){var l=(a=n[o])[0],c=e[l],d=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var u=new eG;if(i)var h=i(c,d,l,e,t,u);if(!(void 0===h?su(d,c,3,i,u):h))return!1}}return!0},hw=function(e){return e==e&&!O(e)},h_=function(e){for(var t=tf(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,hw(o)]}return t},hC=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},hv=function(e){var t=h_(e);return 1==t.length&&t[0][2]?hC(t[0][0],t[0][1]):function(n){return n===e||hA(n,e,t)}},hy=function(e,t){return null!=e&&t in Object(e)},hx=function(e,t,n){for(var i=-1,o=(t=oM(t,e)).length,r=!1;++i<o;){var s=oT(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}return r||++i!=o?r:!!(o=null==e?0:e.length)&&te(o)&&e8(s,o)&&(eu(e)||e5(e))},hE=function(e){var t;return ow(e)?(t=oT(e),function(e){return null==e?void 0:e[t]}):function(t){return oN(t,e)}},hD=function(e){var t,n;return"function"==typeof e?e:null==e?n9:"object"==typeof e?eu(e)?(t=e[0],n=e[1],ow(t)&&hw(n)?hC(oT(t),n):function(e){var i=oO(e,t);return void 0===i&&i===n?null!=e&&hx(e,t,hy):su(n,i,3)}):hv(e):hE(e)},hI=function(e,t){var n,i={};return t=hD(t,3),n=function(e,n,o){e$(i,n,t(e,n,o))},e&&n4(e,n,tf),i};class hS extends i4{constructor(){super(...arguments),this._markersToCopy=new Map}static get pluginName(){return"ClipboardMarkersUtils"}static get isOfficialPlugin(){return!0}_registerMarkerToCopy(e,t){this._markersToCopy.set(e,t)}_copySelectedFragmentWithMarkers(e,t,n=e=>e.model.getSelectedContent(e.model.document.selection)){return this.editor.model.change(i=>{let o=i.model.document.selection;i.setSelection(t);let r=this._insertFakeMarkersIntoSelection(i,i.model.document.selection,e),s=n(i),a=this._removeFakeMarkersInsideElement(i,s);for(let[e,t]of Object.entries(r))for(let n of(a[e]||=i.createRangeIn(s),t))i.remove(n);for(let[e,t]of(s.markers.clear(),Object.entries(a)))s.markers.set(e,t);return i.setSelection(o),s})}_pasteMarkersIntoTransformedElement(e,t){let n=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change(e=>{let i=this._insertFakeMarkersElements(e,n),o=t(e),r=this._removeFakeMarkersInsideElement(e,o);for(let t of Object.values(i).flat())e.remove(t);for(let[t,n]of Object.entries(r))e.model.markers.has(t)||e.addMarker(t,{usingOperation:!0,affectsData:!0,range:n});return o})}_pasteFragmentWithMarkers(e){let t=this._getPasteMarkersFromRangeMap(e.markers);for(let n of(e.markers.clear(),t))e.markers.set(n.name,n.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,t,n={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){let i=this._markersToCopy.get(e);this._markersToCopy.set(e,n),t(),i?this._markersToCopy.set(e,i):this._markersToCopy.delete(e)}_isMarkerCopyable(e,t){let n=this._getMarkerClipboardConfig(e);if(!n)return!1;if(!t)return!0;let{allowedActions:i}=n;return"all"===i||i.includes(t)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){let[t]=e.split(":");return this._markersToCopy.get(t)||null}_insertFakeMarkersIntoSelection(e,t,n){let i=this._getCopyableMarkersFromSelection(e,t,n);return this._insertFakeMarkersElements(e,i)}_getCopyableMarkersFromSelection(e,t,n){let i=Array.from(t.getRanges());return Array.from(new Set(i.flatMap(t=>Array.from(e.model.markers.getMarkersIntersectingRange(t))))).filter(e=>{if(!this._isMarkerCopyable(e.name,n))return!1;let{copyPartiallySelected:t}=this._getMarkerClipboardConfig(e.name);if(!t){let t=e.getRange();return i.some(e=>e.containsRange(t,!0))}return!0}).map(e=>({name:"dragstart"===n?this._getUniqueMarkerName(e.name):e.name,range:e.getRange()}))}_getPasteMarkersFromRangeMap(e,t=null){let{model:n}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap(([e,i])=>{if(!this._hasMarkerConfiguration(e))return[{name:e,range:i}];if(this._isMarkerCopyable(e,t)){let t=this._getMarkerClipboardConfig(e),o=n.markers.has(e)&&"$graveyard"===n.markers.get(e).getRange().root.rootName;return(t.duplicateOnPaste||o)&&(e=this._getUniqueMarkerName(e)),[{name:e,range:i}]}return[]})}_insertFakeMarkersElements(e,t){let n={};for(let{position:i,marker:o,type:r}of t.flatMap(e=>{let{start:t,end:n}=e.range;return[{position:t,marker:e,type:"start"},{position:n,marker:e,type:"end"}]}).sort(({position:e},{position:t})=>e.isBefore(t)?1:-1)){let t=e.createElement("$marker",{"data-name":o.name,"data-type":r});n[o.name]||(n[o.name]=[]),n[o.name].push(t),e.insert(t,i)}return n}_removeFakeMarkersInsideElement(e,t){return hI(this._getAllFakeMarkersFromElement(e,t).reduce((t,n)=>{let i=n.markerElement&&e.createPositionBefore(n.markerElement),o=t[n.name],r=!1;return o&&o.start&&o.end&&(this._getMarkerClipboardConfig(n.name).duplicateOnPaste?t[this._getUniqueMarkerName(n.name)]=t[n.name]:r=!0,o=null),r||(t[n.name]={...o,[n.type]:i}),n.markerElement&&e.remove(n.markerElement),t},{}),n=>new sF(n.start||e.createPositionFromPath(t,[0]),n.end||e.createPositionAt(t,"end")))}_getAllFakeMarkersFromElement(e,t){let n=Array.from(e.createRangeIn(t)).flatMap(({item:e})=>
2{if(!e.is("element","$marker"))return[];let t=e.getAttribute("data-name"),n=e.getAttribute("data-type");return[{markerElement:e,name:t,type:n}]}),i=[],o=[];for(let e of n)"end"===e.type&&(n.some(t=>t.name===e.name&&"start"===t.type)||i.push({markerElement:null,name:e.name,type:"start"})),"start"===e.type&&(n.some(t=>t.name===e.name&&"end"===t.type)||o.unshift({markerElement:null,name:e.name,type:"end"}));return[...i,...n,...o]}_getUniqueMarkerName(e){let t=e.split(":"),n=f().substring(1,6);return 3===t.length?`${t.slice(0,2).join(":")}:${n}`:`${t.join(":")}:${n}`}}class hM extends i4{static get pluginName(){return"ClipboardPipeline"}static get isOfficialPlugin(){return!0}static get requires(){return[hS]}init(){this.editor.editing.view.addObserver(hk),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,n){let i=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:"cut"===n},()=>{let o=i._copySelectedFragmentWithMarkers(n,t);this.fire("outputTransformation",{dataTransfer:e,content:o,method:n})})}_setupPasteDrop(){let e=this.editor,t=e.model,n=e.editing.view,i=n.document,o=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(i,"clipboardInput",(t,n)=>{"paste"!=n.method||e.model.canEditAt(e.model.document.selection)||t.stop()},{priority:"highest"}),this.listenTo(i,"clipboardInput",(e,t)=>{var i;let o;let r=t.dataTransfer;if(t.content)o=t.content;else{let e="";r.getData("text/html")?e=r.getData("text/html").replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>1==t.length?" ":t).replace(/<!--[\s\S]*?-->/g,""):r.getData("text/plain")&&(((i=(i=r.getData("text/plain")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("</p><p>")||i.includes("<br>"))&&(i=`<p>${i}</p>`),e=i),o=this.editor.data.htmlProcessor.toView(e)}let s=new p(this,"inputTransformation");this.fire(s,{content:o,dataTransfer:r,targetRanges:t.targetRanges,method:t.method}),s.stop.called&&e.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(e,n)=>{if(n.content.isEmpty)return;let i=this.editor.data.toModel(n.content,"$clipboardHolder");0!=i.childCount&&(e.stop(),t.change(()=>{this.fire("contentInsertion",{content:i,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(e,t)=>{t.resultRange=o._pasteFragmentWithMarkers(t.content)},{priority:"low"})}_setupCopyCut(){let e=this.editor,t=e.model.document,n=e.editing.view.document,i=(e,n)=>{let i=n.dataTransfer;n.preventDefault(),this._fireOutputTransformationEvent(i,t.selection,e.name)};this.listenTo(n,"copy",i,{priority:"low"}),this.listenTo(n,"cut",(t,n)=>{e.model.canEditAt(e.model.document.selection)?i(t,n):n.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(t,i)=>{let o=e.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",function e(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 n="",i=null;for(let r of t.getChildren()){var o;n+=((o=i)?r.is("element","li")&&!r.isEmpty&&r.getChild(0).is("containerElement")||hb.includes(r.name)&&hb.includes(o.name)?"\n\n":r.is("containerElement")||o.is("containerElement")?hf.includes(r.name)||hf.includes(o.name)?"\n":r.is("element")&&r.getCustomProperty("dataPipeline:transparentRendering")||o.is("element")&&o.getCustomProperty("dataPipeline:transparentRendering")?"":"\n\n":"":"")+e(r),i=r}return n}(i.content))),"cut"==i.method&&e.model.deleteContent(t.selection)},{priority:"low"})}}
2class hB{constructor(e,t=20){this._batch=null,this.model=e,this._size=0,this.limit=t,this._isLocked=!1,this._changeCallback=(e,t)=>{t.isLocal&&t.isUndoable&&t!==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(e){this._size+=e,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(e=!1){this.isLocked&&!e||(this._batch=null,this._size=0)}}class hT extends i6{constructor(e,t){super(e),this._buffer=new hB(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){let t=this.editor.model,n=t.document,i=e.text||"",o=i.length,r=n.selection;if(e.selection?r=e.selection:e.range&&(r=t.createSelection(e.range)),!t.canEditAt(r))return;let s=e.resultRange;t.enqueueChange(this._buffer.batch,e=>{this._buffer.lock();let a=Array.from(n.selection.getAttributes());t.deleteContent(r),i&&t.insertContent(e.createText(i,a),r),s?e.setSelection(s):r.is("documentSelection")||e.setSelection(r),this._buffer.unlock(),this._buffer.input(o)})}}let hN=["insertText","insertReplacementText"],hP=[...hN,"insertCompositionText"];class hL extends rH{constructor(e){super(e),this.focusObserver=e.getObserver(sp);let t=l.isAndroid?hP:hN,n=e.document;n.on("beforeinput",(i,o)=>{if(!this.isEnabled)return;let{data:r,targetRanges:s,inputType:a,domEvent:l}=o;if(!t.includes(a))return;this.focusObserver.flush();let c=new p(n,"insertText");n.fire(c,new rq(e,l,{text:r,selection:e.createSelection(s)})),c.stop.called&&i.stop()}),l.isAndroid||n.on("compositionend",(t,{data:i,domEvent:o})=>{this.isEnabled&&i&&n.fire("insertText",new rq(e,o,{text:i}))},{priority:"lowest"})}observe(){}stopObserving(){}}class hO extends i4{static get pluginName(){return"Input"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.model,n=e.editing.view,i=e.editing.mapper,o=t.document.selection;this._compositionQueue=new hz(e),n.addObserver(hL);let r=new hT(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",r),e.commands.add("input",r),this.listenTo(n.document,"insertText",(r,s)=>{let a;n.document.isComposing||s.preventDefault(),l.isAndroid&&n.document.isComposing&&this._compositionQueue.flush("next beforeinput");let{text:c,selection:d}=s;a=d?Array.from(d.getRanges()).map(e=>i.toModelRange(e)):Array.from(o.getRanges());let u=c;if(l.isAndroid){let e=Array.from(a[0].getItems()).reduce((e,t)=>e+(t.is("$textProxy")?t.data:""),"");if(e&&(e.length<=u.length?u.startsWith(e)&&(u=u.substring(e.length),a[0].start=a[0].start.getShiftedBy(e.length)):e.startsWith(u)&&(a[0].start=a[0].start.getShiftedBy(u.length),u="")),0==u.length&&a[0].isCollapsed)return}let h={text:u,selection:t.createSelection(a)};l.isAndroid&&n.document.isComposing?this._compositionQueue.push(h):(e.execute("insertText",h),n.scrollToTheSelection())}),l.isAndroid?this.listenTo(n.document,"keydown",(e,i)=>{!o.isCollapsed&&229==i.keyCode&&n.document.isComposing&&hR(t,r)}):this.listenTo(n.document,"compositionstart",()=>{o.isCollapsed||hR(t,r)}),l.isAndroid?(this.listenTo(n.document,"mutations",(e,{mutations:t})=>{if(n.document.isComposing)for(let{node:e}of t){let t=function(e,t){let n=e.is("$text")?e.parent:e;for(;!t.toModelElement(n);)n=n.parent;return n}(e,i),n=i.toModelElement(t);if(this._compositionQueue.isComposedElement(n))return void this._compositionQueue.flush("mutations")}}),this.listenTo(n.document,"compositionend",()=>{this._compositionQueue.flush("composition end")}),this.listenTo(n.document,"compositionend",()=>{let e=[];for(let t of this._compositionQueue.flushComposedElements()){let n=i.toViewElement(t);n&&e.push({type:"children",node:n})}e.length&&n.document.fire("mutations",{mutations:e})},{priority:"lowest"})):this.listenTo(n.document,"compositionend",()=>{n.document.fire("mutations",{mutations:[]})},{priority:"lowest"})}destroy(){super.destroy(),this._compositionQueue.destroy()}}class hz{constructor(e){this.flushDebounced=r4(()=>this.flush("timeout"),50),this._queue=[],this._compositionElements=new Set,this.editor=e}destroy(){for(this.flushDebounced.cancel(),this._compositionElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(e){let t={text:e.text};
2if(e.selection)for(let n of(t.selectionRanges=[],e.selection.getRanges()))t.selectionRanges.push(sY.fromRange(n)),this._compositionElements.add(n.start.parent);this._queue.push(t),this.flushDebounced()}shift(){let e=this._queue.shift(),t={text:e.text};if(e.selectionRanges){let n=e.selectionRanges.map(e=>(function(e){let t=e.toRange();return(e.detach(),"$graveyard"==t.root.rootName)?null:t})(e)).filter(e=>!!e);n.length&&(t.selection=this.editor.model.createSelection(n))}return t}flush(e){let t=this.editor,n=t.model,i=t.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;let o=t.commands.get("insertText").buffer;n.enqueueChange(o.batch,()=>{for(o.lock();this._queue.length;){let e=this.shift();t.execute("insertText",e)}o.unlock()}),i.scrollToTheSelection()}isComposedElement(e){return this._compositionElements.has(e)}flushComposedElements(){let e=Array.from(this._compositionElements);return this._compositionElements.clear(),e}}function hR(e,t){if(!t.isEnabled)return;let n=t.buffer;n.lock(),e.enqueueChange(n.batch,()=>{e.deleteContent(e.document.selection)}),n.unlock()}class hF extends i6{constructor(e,t){super(e),this.direction=t,this._buffer=new hB(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){let t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,i=>{this._buffer.lock();let o=i.createSelection(e.selection||n.selection);if(!t.canEditAt(o))return;let r=e.sequence||1,s=o.isCollapsed;if(o.isCollapsed&&t.modifySelection(o,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(i);if(this._shouldReplaceFirstBlockWithParagraph(o,r))return void this.editor.execute("paragraph",{selection:o});if(o.isCollapsed)return;let a=0;
2o.getFirstRange().getMinimalFlatRanges().forEach(e=>{a+=Q(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(o,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),i.setSelection(o),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;let t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(i))||!t.schema.checkChild(i,"paragraph"))return!1;let o=i.getChild(0);return!o||!o.is("element","paragraph")}_replaceEntireContentWithParagraph(e){let t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n),o=e.createElement("paragraph");e.remove(e.createRangeIn(i)),e.insert(o,i),e.setSelection(o,0)}_shouldReplaceFirstBlockWithParagraph(e,t){let n=this.editor.model;if(t>1||"backward"!=this.direction||!e.isCollapsed)return!1;let i=e.getFirstPosition(),o=n.schema.getLimitElement(i),r=o.getChild(0);return i.parent==r&&!!e.containsEntireContent(r)&&!!n.schema.checkChild(o,"paragraph")&&"paragraph"!=r.name}}let hj="word",hV="selection",hH="backward",hU="forward",hq={deleteContent:{unit:hV,direction:hH},deleteContentBackward:{unit:"codePoint",direction:hH},deleteWordBackward:{unit:hj,direction:hH},deleteHardLineBackward:{unit:hV,direction:hH},deleteSoftLineBackward:{unit:hV,direction:hH},deleteContentForward:{unit:"character",direction:hU},deleteWordForward:{unit:hj,direction:hU},deleteHardLineForward:{unit:hV,direction:hU},deleteSoftLineForward:{unit:hV,direction:hU}};class hG extends rH{constructor(e){super(e);let t=e.document,n=0;t.on("keydown",()=>{n++}),t.on("keyup",()=>{n=0}),t.on("beforeinput",(i,o)=>{if(!this.isEnabled)return;let{targetRanges:r,domEvent:s,inputType:a}=o,c=hq[a];if(!c)return;let d={direction:c.direction,unit:c.unit,sequence:n};d.unit==hV&&(d.selectionToRemove=e.createSelection(r[0])),"deleteContentBackward"===a&&(l.isAndroid&&(d.sequence=1),function(e){if(1!=e.length||e[0].isCollapsed)return!1;let t=e[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0}),n=0;for(let{nextPosition:e,item:i}of t){if(e.parent.is("$text")){let t=e.parent.data,i=e.offset;if(i_(t,i)||iC(t,i)||iy(t,i))continue;n++}else(i.is("containerElement")||i.is("emptyElement"))&&n++;if(n>1)return!0}return!1}(r)&&(d.unit=hV,d.selectionToRemove=e.createSelection(r)));let u=new o1(t,"delete",r[0]);t.fire(u,new rq(e,s,d)),u.stop.called&&i.stop()}),l.isBlink&&function(e){let t=e.view,n=t.document,i=null,o=!1;function r(e){return e==nQ.backspace||e==nQ.delete}function s(e){return e==nQ.backspace?hH:hU}n.on("keydown",(e,{keyCode:t})=>{i=t,o=!1}),n.on("keyup",(a,{keyCode:l,domEvent:c})=>{let d=n.selection,u=e.isEnabled&&l==i&&r(l)&&!d.isCollapsed&&!o;if(i=null,u){let e=new o1(n,"delete",d.getFirstRange()),i={unit:hV,direction:s(l),selectionToRemove:d};n.fire(e,new rq(t,c,i))}}),n.on("beforeinput",(e,{inputType:t})=>{let n=hq[t];r(i)&&n&&n.direction==s(i)&&(o=!0)},{priority:"high"}),n.on("beforeinput",(e,{inputType:t,data:n})=>{i==nQ.delete&&"insertText"==t&&"\x7f"==n&&e.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class hW extends i4{static get pluginName(){return"Delete"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.editing.view,n=t.document,i=e.model.document;t.addObserver(hG),this._undoOnBackspace=!1;let o=new hF(e,"forward");e.commands.add("deleteForward",o),e.commands.add("forwardDelete",o),e.commands.add("delete",new hF(e,"backward")),this.listenTo(n,"delete",(i,o)=>{n.isComposing||o.preventDefault();let{direction:r,sequence:s,selectionToRemove:a,unit:l}=o,c={sequence:s};if("selection"==l){let t=Array.from(a.getRanges()).map(t=>e.editing.mapper.toModelRange(t));c.selection=e.model.createSelection(t)}else c.unit=l;e.execute("forward"===r?"deleteForward":"delete",c),t.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(t,n)=>{this._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(this._undoOnBackspace=!1,e.execute("undo"),n.preventDefault(),t.stop())},{context:"$capture"}),this.listenTo(i,"change",()=>
2{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class hK extends i4{static get requires(){return[hO,hW]}static get pluginName(){return"Typing"}static get isOfficialPlugin(){return!0}}function h$(e,t){let n=e.start;return{text:Array.from(e.getWalker({ignoreElementEnd:!1})).reduce((e,{item:i})=>i.is("$text")||i.is("$textProxy")?e+i.data:(n=t.createPositionAfter(i),""),""),range:t.createRange(n,e.end)}}class hY extends U(){constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){let e=this.model.document;this.listenTo(e.selection,"change:range",(t,{directChange:n})=>{n&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(e,"change:data",(e,t)=>{!t.isUndo&&t.isLocal&&this._evaluateTextBeforeSelection("data",{batch:t})})}_evaluateTextBeforeSelection(e,t={}){let n=this.model,i=n.document.selection,{text:o,range:r}=h$(n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),n),s=this.testCallback(o);if(!s&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!s,s){let n=Object.assign(t,{text:o,range:r});"object"==typeof s&&Object.assign(n,s),this.fire(`matched:${e}`,n)}}}class hQ extends i4{constructor(e){super(e),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.model,n=e.editing.view,i=e.locale,o=t.document.selection;this.listenTo(n.document,"arrowKey",(e,t)=>{if(!o.isCollapsed||t.shiftKey||t.altKey||t.ctrlKey)return;let n=t.keyCode==nQ.arrowright,r=t.keyCode==nQ.arrowleft;if(!n&&!r)return;let s=i.contentLanguageDirection;!0===("ltr"===s&&n||"rtl"===s&&r?this._handleForwardMovement(t):this._handleBackwardMovement(t))&&e.stop()},{context:"$text",priority:"highest"}),this.listenTo(o,"change:range",(e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&h2(o.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){let t=this.attributes,n=this.editor.model,i=n.document.selection,o=i.getFirstPosition();return!this._isGravityOverridden&&(!o.isAtStart||!hZ(i,t))&&!!h2(o,t)&&(h0(e),hZ(i,t)&&h2(o,t,!0)?hX(n,t):this._overrideGravity(),!0)}_handleBackwardMovement(e){let t=this.attributes,n=this.editor.model,i=n.document.selection,o=i.getFirstPosition();return this._isGravityOverridden?(h0(e),this._restoreGravity(),h2(o,t,!0)?hX(n,t):hJ(n,t,o),!0):o.isAtStart?!!hZ(i,t)&&(h0(e),hJ(n,t,o),!0):!hZ(i,t)&&h2(o,t,!0)?(h0(e),hJ(n,t,o),!0):!!h1(o,t)&&(o.isAtEnd&&!hZ(i,t)&&h2(o,t)?(h0(e),hJ(n,t,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){let e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view.document;e.editing.view.addObserver(lB);let o=!1;this.listenTo(i,"mousedown",()=>{o=!0}),this.listenTo(i,"selectionChange",()=>{let e=this.attributes;if(!o||(o=!1,!n.isCollapsed)||!hZ(n,e))return;let i=n.getFirstPosition();h2(i,e)&&(i.isAtStart||h2(i,e,!0)?hX(t,e):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){let e=this.editor.model,t=e.document.selection,n=this.attributes;this.listenTo(e,"insertContent",()=>{let i=t.getFirstPosition();hZ(t,n)&&h2(i,n)&&hX(e,n)},{priority:"low"})}_handleDeleteContentAfterNode(){let e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view,o=!1,r=!1;this.listenTo(i.document,"delete",(e,t)=>{o="backward"===t.direction},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{if(!o)return;let e=n.getFirstPosition();r=hZ(n,this.attributes)&&!h1(e,this.attributes)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{o&&(o=!1,r||e.model.enqueueChange(()=>{let e=n.getFirstPosition();hZ(n,this.attributes)&&h2(e,this.attributes)&&(e.isAtStart||h2(e,this.attributes,!0)?hX(t,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function hZ(e,t){for(let n of t)if(e.hasAttribute(n))return!0;return!1}function hJ(e,t,n){let i=n.nodeBefore;e.change(n=>{if(i){let t=[],o=e.schema.isObject(i)&&e.schema.isInline(i);for(let[n,r]of i.getAttributes())!e.schema.checkAttribute("$text",n)||o&&!1===e.schema.getAttributeProperties(n).copyFromObject||t.push([n,r]);n.setSelectionAttribute(t)}else n.removeSelectionAttribute(t)})}function hX(e,t){e.change(e=>{e.removeSelectionAttribute(t)})}function h0(e){e.preventDefault()}function h1(e,t){return h2(e.getShiftedBy(-1),t)}function h2(e,t,n=!1){let{nodeBefore:i,nodeAfter:o}=e;for(let e of t){let t=i?i.getAttribute(e):void 0,r=o?o.getAttribute(e):void 0;if((!n||void 0!==t&&void 0!==r)&&r!==t)return!0}return!1}let h5={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"â¢"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",
2null]},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,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",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:h7('"'),to:[null,"â",null,"â"]},quotesSecondary:{from:h7("'"),to:[null,"â",null,"â"]},quotesPrimaryEnGb:{from:h7("'"),to:[null,"â",null,"â"]},quotesSecondaryEnGb:{from:h7('"'),to:[null,"â",null,"â"]},quotesPrimaryPl:{from:h7('"'),to:[null,"â",null,"â"]},quotesSecondaryPl:{from:h7("'"),to:[null,"â",null,"â"]}},h4={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},h3=["symbols","mathematical","typography","quotes"];class h6 extends i4{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("typing",{transformations:{include:h3}})}init(){let e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){let e=this.editor,t=e.model,n=e.plugins.get("Delete"),i=function(e){let t=e.extra||[],n=e.remove||[],i=e=>!n.includes(e);return(function(e){let t=new Set;for(let n of e)if("string"==typeof n&&h4[n])for(let e of h4[n])t.add(e);else t.add(n);return Array.from(t)})(e.include.concat(t).filter(i)).filter(i).map(e=>"string"==typeof e&&h5[e]?h5[e]:e).filter(e=>"object"==typeof e).map(e=>{var t,n;return{from:"string"==typeof(t=e.from)?RegExp(`(${uW(t)})$`):t,to:"string"==typeof(n=e.to)?()=>[n]:n instanceof Array?()=>n:n}})}(e.config.get("typing.transformations")),o=new hY(e.model,e=>{for(let t of i)if(t.from.test(e))return{normalizedTransformation:t}});o.on("matched:data",(e,i)=>{if(!i.batch.isTyping)return;let{from:o,to:r}=i.normalizedTransformation,s=o.exec(i.text),a=r(s.slice(1)),l=i.range,c=s.index;t.enqueueChange(e=>{for(let n=1;n<s.length;n++){let i=s[n],o=a[n-1];if(null==o){c+=i.length;continue}let r=l.start.getShiftedBy(c),d=t.createRange(r,r.getShiftedBy(i.length)),u=(r.textNode?r.textNode:r.nodeAfter).getAttributes();t.insertContent(e.createText(o,u),d),c+=o.length}t.enqueueChange(()=>{n.requestUndoOnBackspace()})})}),o.bind("isEnabled").to(this)}}function h7(e){return RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function h9(e,t,n,i){return i.createRange(h8(e,t,n,!0,i),h8(e,t,n,!1,i))}function h8(e,t,n,i,o){let r=e.textNode||(i?e.nodeBefore:e.nodeAfter),s=null;for(;r&&r.getAttribute(t)==n;)s=r,r=i?r.previousSibling:r.nextSibling;return s?o.createPositionAt(s,i?"before":"after"):e}function*ge(e,t){for(let n of t)n&&e.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class gt extends i6{execute(){this.editor.model.change(e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})})}enterBlock(e){let t=this.editor.model,n=t.document.selection,i=t.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||t.deleteContent(n),!1;if(o){let t=ge(e.model.schema,n.getAttributes());return gn(e,r.start),e.setSelectionAttribute(t),!0}{let i=!(r.start.isAtStart&&r.end.isAtEnd),o=s==a;if(t.deleteContent(n,{leaveUnmerged:i}),i){if(o)return gn(e,n.focus),!0;e.setSelection(a,0)}}return!1}}function gn(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}let gi={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class go extends rH{constructor(e){super(e);let t=this.document,n=!1;
2t.on("keydown",(e,t)=>{n=t.shiftKey}),t.on("beforeinput",(i,o)=>{if(!this.isEnabled)return;let r=o.inputType;l.isSafari&&n&&"insertParagraph"==r&&(r="insertLineBreak");let s=o.domEvent,a=gi[r];if(!a)return;let c=new o1(t,"enter",o.targetRanges[0]);t.fire(c,new rq(e,s,{isSoft:a.isSoft})),c.stop.called&&i.stop()})}observe(){}stopObserving(){}}class gr extends i4{static get pluginName(){return"Enter"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.editing.view,n=t.document,i=this.editor.t;t.addObserver(go),e.commands.add("enter",new gt(e)),this.listenTo(n,"enter",(i,o)=>{n.isComposing||o.preventDefault(),o.isSoft||(e.execute("enter"),t.scrollToTheSelection())},{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:i("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class gs extends i6{execute(){let e=this.editor.model,t=e.document;e.change(n=>{(function(e,t,n){let i=n.isCollapsed,o=n.getFirstRange(),r=o.start.parent,s=o.end.parent,a=r==s;if(i){let i=ge(e.schema,n.getAttributes());ga(e,t,o.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(i)}else{let i=!(o.start.isAtStart&&o.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:i}),a?ga(e,t,n.focus):i&&t.setSelection(s,0)}})(e,n,t.selection),this.fire("afterExecute",{writer:n})})}refresh(){let e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;let n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;let i=t.getFirstRange(),o=i.start.parent,r=i.end.parent;return!(gl(o,e)||gl(r,e))||o===r}(e.schema,t.selection)}}function ga(e,t,n){let i=t.createElement("softBreak");e.insertContent(i,n),t.setSelection(i,"after")}function gl(e,t){return!e.is("rootElement")&&(t.isLimit(e)||gl(e.parent,t))}class gc extends i4{static get pluginName(){return"ShiftEnter"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.model.schema,n=e.conversion,i=e.editing.view,o=i.document,r=this.editor.t;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),i.addObserver(go),e.commands.add("shiftEnter",new gs(e)),this.listenTo(o,"enter",(t,n)=>{o.isComposing||n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),i.scrollToTheSelection())},{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:r("Insert a soft break (a <code><br></code> element)"),keystroke:"Shift+Enter"}]})}}class gd extends M(){constructor(){super(...arguments),this._stack=[]}add(e,t){let n=this._stack,i=n[0];this._insertDescriptor(e);let o=n[0];i===o||gu(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:t})}remove(e,t){let n=this._stack,i=n[0];this._removeDescriptor(e);let o=n[0];i===o||gu(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:t})}_insertDescriptor(e){var t;let n=this._stack,i=n.findIndex(t=>t.id===e.id);if(gu(e,n[i]))return;i>-1&&n.splice(i,1);let o=0;for(;n[o]&&((t=n[o]).priority>e.priority||!(t.priority<e.priority)&&gh(t.classes)>gh(e.classes));)o++;n.splice(o,0,e)}_removeDescriptor(e){let t=this._stack,n=t.findIndex(t=>t.id===e);n>-1&&t.splice(n,1)}}function gu(e,t){return e&&t&&e.priority==t.priority&&gh(e.classes)==gh(t.classes)}function gh(e){return Array.isArray(e)?e.sort().join(","):e}let gg="ck-widget_selected";function gm(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function gp(e,t,n={}){if(!e.is("containerElement"))throw new w("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=g_,t.setCustomProperty("widgetLabel",[],e),n.label&&function(e,t){e.getCustomProperty("widgetLabel").push(t)}(e,n.label),n.hasSelectionHandle&&function(e,t){let n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(e){let t=this.toDomElement(e),n=new l0;return n.set("content",'<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>'),n.render(),t.appendChild(n.element),t});t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),gb(e,t),e}
2function gk(e,t,n){if(t.classes&&n.addClass(n2(t.classes),e),t.attributes)for(let i in t.attributes)n.setAttribute(i,t.attributes[i],e)}function gf(e,t,n){if(t.classes&&n.removeClass(n2(t.classes),e),t.attributes)for(let i in t.attributes)n.removeAttribute(i,e)}function gb(e,t,n=gk,i=gf){let o=new gd;o.on("change:top",(t,o)=>{o.oldDescriptor&&i(e,o.oldDescriptor,o.writer),o.newDescriptor&&n(e,o.newDescriptor,o.writer)}),t.setCustomProperty("addHighlight",(e,t,n)=>o.add(t,n),e),t.setCustomProperty("removeHighlight",(e,t,n)=>o.remove(t,n),e)}function gA(e,t,n={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),t.setAttribute("tabindex","-1",e),n.label&&t.setAttribute("aria-label",n.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(n,i,o)=>{t.setAttribute("contenteditable",o?"false":"true",e)}),e.on("change:isFocused",(n,i,o)=>{o?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)}),gb(e,t),e}function gw(e,t){let n=e.getSelectedElement();if(n){let i=gy(e);if(i)return t.createRange(t.createPositionAt(n,i))}return t.schema.findOptimalInsertionRange(e)}function g_(){return null}let gC="widget-type-around";function gv(e,t,n){return!!e&&gm(e)&&!n.isInline(t)}function gy(e){return e.getAttribute(gC)}var gx=r(8508),gE={attributes:{"data-cke":!0}};gE.setAttributes=iY(),gE.insert=iK().bind(null,"head"),gE.domAPI=iG(),gE.insertStyleElement=iZ(),iU()(gx.A,gE),gx.A&&gx.A.locals&&gx.A.locals;let gD=["before","after"],gI=(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,gS="ck-widget__type-around_disabled";class gM extends i4{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[gr,hW]}init(){let e=this.editor,t=e.editing.view;this.on("change:isEnabled",(n,i,o)=>{t.change(e=>{for(let n of t.document.roots)o?e.removeClass(gS,n):e.addClass(gS,n)}),o||e.model.change(e=>{e.removeSelectionAttribute(gC)})}),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(e,t){let n=this.editor,i=n.editing.view,o=n.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(e,t),attributes:o}),i.focus(),i.scrollToTheSelection()}_listenToIfEnabled(e,t,n,i){this.listenTo(e,t,(...e)=>{this.isEnabled&&n(...e)},i)}_insertParagraphAccordingToFakeCaretPosition(){let e=this.editor.model.document.selection,t=gy(e);if(!t)return!1;let n=e.getSelectedElement();return this._insertParagraph(n,t),!0}_enableTypeAroundUIInjection(){let e=this.editor,t=e.model.schema,n=e.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(e,o,r)=>{let s=r.mapper.toViewElement(o.item);s&&gv(s,o.item,t)&&(function(e,t,n){let i=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(e){let n=this.toDomElement(e);return function(e,t){for(let n of gD){let i=new iE({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${n}`],title:t[n],"aria-hidden":"true"},children:[e.ownerDocument.importNode(gI,!0)]});e.appendChild(i.render())}}(n,t),function(e){let t=new iE({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n});e.insert(e.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(){let e=this.editor,t=e.model,n=t.document.selection,i=t.schema,o=e.editing.view;function r(e){return`ck-widget_type-around_show-fake-caret_${e}`}this._listenToIfEnabled(o.document,"arrowKey",(e,t)=>{this._handleArrowKeyPress(e,t)},{context:[gm,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(t,n)=>{n.directChange&&e.model.change(e=>{e.removeSelectionAttribute(gC)})}),this._listenToIfEnabled(t.document,"change:data",()=>{let t=n.getSelectedElement();t&&gv(e.editing.mapper.toViewElement(t),t,i)||e.model.change(e=>{e.removeSelectionAttribute(gC)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(e,t,n)=>{let o=n.writer;if(this._currentFakeCaretModelElement){let e=n.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(o.removeClass(gD.map(r),e),this._currentFakeCaretModelElement=null)}let s=t.selection.getSelectedElement();if(!s)return;let a=n.mapper.toViewElement(s);if(!gv(a,s,i))return;let l=gy(t.selection);l&&(o.addClass(r(l),a),this._currentFakeCaretModelElement=s)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(t,n,i)=>{i||e.model.change(e=>{e.removeSelectionAttribute(gC)})})}_handleArrowKeyPress(e,t){let n;let i=this.editor,o=i.model,r=o.document.selection,s=o.schema,a=i.editing.view,l=function(e,t){let n=n1(e,t);return"down"===n||"right"===n}(t.keyCode,i.locale.contentLanguageDirection),c=a.document.selection.getSelectedElement();gv(c,i.editing.mapper.toModelElement(c),s)?n=this._handleArrowKeyPressOnSelectedWidget(l):r.isCollapsed?n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):t.shiftKey||(n=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),n&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){let t=this.editor.model,n=gy(t.document.selection);return t.change(t=>n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(gC),!0):(t.setSelectionAttribute(gC,e?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){let t=this.editor,n=t.model,i=n.schema,o=t.plugins.get("Widget"),r=o._getObjectElementNextToSelection(e);return!!gv(t.editing.mapper.toViewElement(r),r,i)&&(n.change(t=>{o._setSelectionOverElement(r),t.setSelectionAttribute(gC,e?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){let t=this.editor,n=t.model,i=n.schema,o=t.editing.mapper,r=n.document.selection,s=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!gv(o.toViewElement(s),s,i)&&(n.change(t=>{t.setSelection(s,"on"),t.setSelectionAttribute(gC,e?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){let e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(n,i)=>{let o=i.domTarget.closest(".ck-widget__type-around__button");if(!o)return;let r=o.classList.contains("ck-widget__type-around__button_before")?"before":"after",s=function(e,t){let n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,t.domConverter),a=e.editing.mapper.toModelElement(s);this._insertParagraph(a,r),i.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){let e=this.editor,t=e.model.document.selection,n=e.editing.view;this._listenToIfEnabled(n.document,"enter",(n,i)=>{let o;if("atTarget"!=n.eventPhase)return;let r=t.getSelectedElement(),s=e.editing.mapper.toViewElement(r),a=e.model.schema;this._insertParagraphAccordingToFakeCaretPosition()?o=!0:gv(s,r,a)&&(this._insertParagraph(r,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),n.stop())},{context:gm})}_enableInsertingParagraphsOnTypingKeystroke(){let e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",(t,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=e.selection)},{priority:"high"}),l.isAndroid?this._listenToIfEnabled(e,"keydown",(e,t)=>{229==t.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){let e=this.editor,t=e.editing.view,n=e.model,i=n.schema;this._listenToIfEnabled(t.document,"delete",(t,o)=>{if("atTarget"!=t.eventPhase)return;let r=gy(n.document.selection);if(!r)return;let s=o.direction,a=n.document.selection.getSelectedElement(),l="forward"==s;
2if("before"===r===l)e.execute("delete",{selection:n.createSelection(a,"on")});else{let t=i.getNearestSelectionRange(n.createPositionAt(a,r),s);if(t){if(t.isCollapsed){let o=n.createSelection(t.start);if(n.modifySelection(o,{direction:s}),o.focus.isEqual(t.start)){let e=function(e,t){let n=t;for(let i of t.getAncestors({parentFirst:!0})){if(i.childCount>1||e.isLimit(i))break;n=i}return n}(i,t.start.parent);n.deleteContent(n.createSelection(e,"on"),{doNotAutoparagraph:!0})}else n.change(n=>{n.setSelection(t),e.execute(l?"deleteForward":"delete")})}else n.change(n=>{n.setSelection(t),e.execute(l?"deleteForward":"delete")})}}o.preventDefault(),t.stop()},{context:gm})}_enableInsertContentIntegration(){let e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(e,[i,o])=>{if(o&&!o.is("documentSelection"))return;let r=gy(n);return r?(e.stop(),t.change(e=>{let o=n.getSelectedElement(),s=t.createPositionAt(o,r),a=e.createSelection(s),l=t.insertContent(i,a);return e.setSelection(a),l})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){let e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(e,n)=>{let[,i,o={}]=n;if(i&&!i.is("documentSelection"))return;let r=gy(t);r&&(o.findOptimalPosition=r,n[3]=o)},{priority:"high"})}_enableDeleteContentIntegration(){let e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(e,[n])=>{(!n||n.is("documentSelection"))&&gy(t)&&e.stop()},{priority:"high"})}}function gB(e,t,n){let i=e.schema,o=e.createRangeIn(t.root),r="forward"==n?"elementStart":"elementEnd";for(let{previousPosition:e,item:s,type:a}of o.getWalker({startPosition:t,direction:n})){if(i.isLimit(s)&&!i.isInline(s))return e;if(a==r&&i.isBlock(s))break}return null}function gT(e,t,n){let i="backward"==n?t.end:t.start;if(e.checkChild(i,"$text"))return i;for(let{nextPosition:i}of t.getWalker({direction:n}))if(e.checkChild(i,"$text"))return i;return null}var gN=r(695),gP={attributes:{"data-cke":!0}};gP.setAttributes=iY(),gP.insert=iK().bind(null,"head"),gP.domAPI=iG(),gP.insertStyleElement=iZ(),iU()(gN.A,gP),gN.A&&gN.A.locals&&gN.A.locals;class gL extends i4{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[gM,hW]}init(){let e=this.editor,t=e.editing.view,n=t.document,i=e.t;this.editor.editing.downcastDispatcher.on("selection",(t,n,i)=>{let o=i.writer,r=n.selection;if(r.isCollapsed)return;let s=r.getSelectedElement();if(!s)return;let a=e.editing.mapper.toViewElement(s);gm(a)&&i.consumable.consume(r,"selection")&&o.setSelection(o.createRangeOn(a),{fake:!0,label:a.getCustomProperty("widgetLabel").reduce((e,t)=>"function"==typeof t?e?e+". "+t():t():e?e+". "+t:t,"")})}),this.editor.editing.downcastDispatcher.on("selection",(e,t,n)=>{this._clearPreviouslySelectedWidgets(n.writer);let i=n.writer,o=i.document.selection,r=null;for(let e of o.getRanges())for(let t of e){var s;let e=t.item;!gm(e)||(s=r)&&Array.from(e.getAncestors()).includes(s)||(i.addClass(gg,e),this._previouslySelected.add(e),r=e)}},{priority:"low"}),t.addObserver(lB),this.listenTo(n,"mousedown",(...e)=>this._onMousedown(...e)),this.listenTo(n,"arrowKey",(...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)},{context:[gm,"$text"]}),this.listenTo(n,"arrowKey",(...e)=>{this._preventDefaultOnArrowKeyPress(...e)},{context:"$root"}),this.listenTo(n,"arrowKey",function(e){let t=e.model;return(n,i)=>{let o=i.keyCode==nQ.arrowup,r=i.keyCode==nQ.arrowdown,s=i.shiftKey,a=t.document.selection;if(!o&&!r||s&&!a.isCollapsed&&a.isBackward==r)return;let l=function(e,t,n){let i=e.model;if(n){let e=t.isCollapsed?t.focus:t.getLastPosition(),n=gB(i,e,"forward");if(!n)return null;let o=i.createRange(e,n),r=gT(i.schema,o,"backward");return r?i.createRange(e,r):null}{let e=t.isCollapsed?t.focus:t.getFirstPosition(),n=gB(i,e,"backward");if(!n)return null;let o=i.createRange(n,e),r=gT(i.schema,o,"forward");return r?i.createRange(r,e):null}}(e,a,r);if(l){if(l.isCollapsed&&(a.isCollapsed||s))return;(l.isCollapsed||function(e,t,n){let i;let o=e.model,r=e.view.domConverter;if(n){let e=o.createSelection(t.start);
2o.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=o.createRange(e.focus,t.end))}let s=e.mapper.toViewRange(t),a=r.viewRangeToDom(s);for(let e of nI.getDomRangeRects(a))if(void 0!==i){if(Math.round(e.top)>=i)return!1;i=Math.max(i,Math.round(e.bottom))}else i=Math.round(e.bottom);return!0}(e,l,r))&&(t.change(e=>{let n=r?l.end:l.start;if(s){let i=t.createSelection(a.anchor);i.setFocus(n),e.setSelection(i)}else e.setSelection(n)}),n.stop(),i.preventDefault(),i.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())},{context:"$root"}),this.listenTo(n,"tab",(e,t)=>{"atTarget"==e.eventPhase&&(t.shiftKey||this._selectFirstNestedEditable()&&(t.preventDefault(),e.stop()))},{context:gm,priority:"low"}),this.listenTo(n,"tab",(e,t)=>{t.shiftKey&&this._selectAncestorWidget()&&(t.preventDefault(),e.stop())},{priority:"low"}),this.listenTo(n,"keydown",(e,t)=>{t.keystroke==nQ.esc&&this._selectAncestorWidget()&&(t.preventDefault(),e.stop())},{priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:i("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:i("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:i("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:i("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:i("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:i("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){let n=this.editor,i=n.editing.view,o=i.document,r=t.target;if(!r)return;if(t.domEvent.detail>=3)return void(this._selectBlockContent(r)&&t.preventDefault());if(!gm(r)){let e=function(e){let t=e;for(;t;){if(t.is("editableElement")||gm(t))return t;t=t.parent}return null}(r);if(!e)return;if(gm(e))r=e;else{let e=function(e,t){let n=nv(t.domEvent),i=null;if(!(i=n?e.domConverter.domRangeToView(n):e.createRange(e.createPositionAt(t.target,0))))return null;let o=i.start;if(!o.parent)return null;let r=o.parent;return(o.parent.is("editableElement")&&(o.isAtEnd&&o.nodeBefore?r=o.nodeBefore:o.isAtStart&&o.nodeAfter&&(r=o.nodeAfter)),r.is("$text"))?r.parent:r}(i,t);if(!e||!gm(e))return;r=e}}l.isAndroid&&t.preventDefault(),o.isFocused||i.focus();let s=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(s)}_selectBlockContent(e){let t=this.editor,n=t.model,i=t.editing.mapper,o=n.schema,r=i.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),s=function(e,t){for(let n of e.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(n,"$text"))return n;if(t.isLimit(n)&&!t.isObject(n))break}return null}(i.toModelElement(r),n.schema);return!!s&&(n.change(e=>{let t=o.isLimit(s)?null:function(e,t){for(let{item:n}of new sB({startPosition:e})){if(t.isLimit(n)||!n.is("element"))break;if(t.checkChild(n,"$text"))return n}return null}(e.createPositionAfter(s),o),n=e.createPositionAt(s,0),i=t?e.createPositionAt(t,0):e.createPositionAt(s,"end");e.setSelection(e.createRange(n,i))}),!0)}_handleSelectionChangeOnArrowKeyPress(e,t){let n=t.keyCode,i=this.editor.model,o=i.schema,r=i.document.selection,s=r.getSelectedElement(),a=n1(n,this.editor.locale.contentLanguageDirection),l="down"==a||"right"==a;if(s&&o.isObject(s)){let n=l?r.getLastPosition():r.getFirstPosition(),s=o.getNearestSelectionRange(n,l?"forward":"backward");return void(s&&(i.change(e=>{e.setSelection(s)}),t.preventDefault(),e.stop()))}if(!r.isCollapsed&&!t.shiftKey){let n=r.getFirstPosition(),s=r.getLastPosition(),a=n.nodeAfter,c=s.nodeBefore;return void((a&&o.isObject(a)||c&&o.isObject(c))&&(i.change(e=>{e.setSelection(l?s:n)}),t.preventDefault(),e.stop()))}if(!r.isCollapsed)return;let c=this._getObjectElementNextToSelection(l);if(c&&o.isObject(c)){if(o.isInline(c)&&("up"==a||"down"==a))return;this._setSelectionOverElement(c),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){let n=this.editor.model,i=n.schema,o=n.document.selection.getSelectedElement();o&&i.isObject(o)&&(t.preventDefault(),e.stop())}_handleDelete(e){let t=this.editor.model.document.selection;if(!this.editor.model.canEditAt(t)||!t.isCollapsed)return;let n=this._getObjectElementNextToSelection(e);return n?(this.editor.model.change(e=>{let i=t.anchor.parent;for(;i.isEmpty;){let t=i;i=t.parent,e.remove(t)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){let t=this.editor.model,n=t.schema,i=t.document.selection,o=t.createSelection(i);if(t.modifySelection(o,{direction:e?"forward":"backward"}),o.isEqual(i))return null;let r=e?o.focus.nodeBefore:o.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(let t of this._previouslySelected)e.removeClass(gg,t);this._previouslySelected.clear()}_selectFirstNestedEditable(){let e=this.editor;for(let t of this.editor.editing.view.document.selection.getFirstRange().getItems())if(t.is("editableElement")){let n=e.editing.mapper.toModelElement(t);if(!n)continue;let i=e.model.createPositionAt(n,0),o=e.model.schema.getNearestSelectionRange(i,"forward");return e.model.change(e=>{e.setSelection(o)}),!0}return!1}_selectAncestorWidget(){let e=this.editor,t=e.editing.mapper,n=e.editing.view.document.selection.getFirstPosition().parent,i=(n.is("$text")?n.parent:n).findAnce
2stor(gm);if(!i)return!1;let o=t.toModelElement(i);return!!o&&(e.model.change(e=>{e.setSelection(o,"on")}),!0)}}class gO extends i4{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[uP]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;if(e.plugins.has("BalloonToolbar")){let t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",t=>{(function(e){let t=e.getSelectedElement();return!(!t||!gm(t))})(e.editing.view.document.selection)&&t.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){for(let e of(super.destroy(),this._toolbarDefinitions.values()))e.view.destroy()}register(e,{ariaLabel:t,items:n,getRelatedElement:i,balloonClassName:o="ck-toolbar-container"}){if(!n.length)return void _("widget-toolbar-no-items",{toolbarId:e});let r=this.editor,s=r.t,a=new dM(r.locale);if(a.ariaLabel=t||s("Widget toolbar"),this._toolbarDefinitions.has(e))throw new w("widget-toolbar-duplicated",this,{toolbarId:e});let l={view:a,getRelatedElement:i,balloonClassName:o,itemsConfig:n,initialized:!1};r.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{let e=i(r.editing.view.document.selection);e&&this._showToolbar(l,e)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(e,l)}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(let i of this._toolbarDefinitions.values()){let o=i.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&o){if(this.editor.ui.focusTracker.isFocused){let r=o.getAncestors().length;r>e&&(e=r,t=o,n=i)}else this._isToolbarVisible(i)&&this._hideToolbar(i)}else this._isToolbarInBalloon(i)&&this._hideToolbar(i)}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?gz(this.editor,t):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:gR(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(let e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){let t=e.getRelatedElement(this.editor.editing.view.document.selection);gz(this.editor,t)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function gz(e,t){let n=e.plugins.get("ContextualBalloon"),i=gR(e,t);n.updatePosition(i)}function gR(e,t){let n=e.editing.view,i=dk.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}var gF=r(4095),gj={attributes:{"data-cke":!0}};gj.setAttributes=iY(),gj.insert=iK().bind(null,"head"),gj.domAPI=iG(),gj.insertStyleElement=iZ(),iU()(gF.A,gj),gF.A&&gF.A.locals&&gF.A.locals;let gV=e=>e+"px";class gH extends i0{constructor(){super();let e=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",e.if("isVisible","ck-hidden",e=>!e)],style:{left:e.to("left",e=>gV(e)),top:e.to("top",e=>gV(e)),width:e.to("width",e=>gV(e))}}})}}class gU extends i4{constructor(){super(...arguments),this.removeDropMarkerDelayed=iw(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=lO(e=>this._updateDropMarker(e),40),this._reconvertMarkerThrottled=lO(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new gH,this._domEmitter=new(nA()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}static get isOfficialPlugin(){return!0}init(){this._setupDropMarker()}destroy(){for(let{resizeObserver:e}
2of(this._domEmitter.stopListening(),this._scrollables.values()))e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,n,i,o,r){this.removeDropMarkerDelayed.cancel();let s=gq(this.editor,e,t,n,i,o,r);if(s)return r&&r.containsRange(s)?this.removeDropMarker():void this._updateDropMarkerThrottled(s)}getFinalDropRange(e,t,n,i,o,r){let s=gq(this.editor,e,t,n,i,o,r);return this.removeDropMarker(),s}removeDropMarker(){let e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){let e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:n})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){let t=this.editor,n=t.model.markers;t.model.change(t=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){let t=this.toDomElement(e);return t.append("â ",e.createElement("span"),"â "),t})}_updateDropTargetLine(e){let t=this.editor.editing,n=e.start.nodeBefore,i=e.start.nodeAfter,r=e.start.parent,s=n?t.mapper.toViewElement(n):null,a=s?t.view.domConverter.mapViewToDom(s):null,l=i?t.mapper.toViewElement(i):null,c=l?t.view.domConverter.mapViewToDom(l):null,d=t.mapper.toViewElement(r);if(!d)return;let u=t.view.domConverter.mapViewToDom(d),h=this._getScrollableRect(d),{scrollX:g,scrollY:m}=o.window,p=a?new nI(a):null,k=c?new nI(c):null,f=new nI(u).excludeScrollbarsAndBorders(),b=p?p.bottom:f.top,A=k?k.top:f.bottom,w=o.window.getComputedStyle(u),_=b<=A?(b+A)/2:A;if(h.top<_&&_<h.bottom){let e=f.left+parseFloat(w.paddingLeft),t=f.right-parseFloat(w.paddingRight),n=Math.max(e+g,h.left),i=Math.min(t+g,h.right);this._dropTargetLineView.set({isVisible:!0,left:n,top:_+m,width:i-n})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){let t;let n=e.root.rootName;if(this._scrollables.has(n))t=this._scrollables.get(n).domElement;else{t=function(e){let t=e;do{t=t.parentElement;let e=o.window.getComputedStyle(t).overflowY;if("auto"==e||"scroll"==e)break}while("BODY"!=t.tagName);return t}(this.editor.editing.view.domConverter.mapViewToDom(e)),this._domEmitter.listenTo(t,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});let i=new nN(t,this._reconvertMarkerThrottled);this._scrollables.set(n,{domElement:t,resizeObserver:i})}return new nI(t).excludeScrollbarsAndBorders()}}function gq(e,t,n,i,r,s,a){let l=e.model,c=e.editing.mapper,d=gK(e,t);for(;d;){if(!s){if(l.schema.checkChild(d,"$text")){if(n){let t=n[0].start,o=c.toModelPosition(t);if(!a||Array.from(a.getItems()).every(e=>l.schema.checkChild(o,e))){if(l.schema.checkChild(o,"$text"))return l.createRange(o);if(t)return gG(e,gK(e,t.parent),i,r)}}}else if(l.schema.isInline(d))return gG(e,d,i,r)}if(l.schema.isBlock(d))return gG(e,d,i,r);if(l.schema.checkChild(d,"$block")){let t=Array.from(d.getChildren()).filter(t=>t.is("element")&&!function(e,t){let n=e.editing.mapper,i=e.editing.view.domConverter,r=n.toViewElement(t);if(!r)return!0;let s=i.mapViewToDom(r);return"none"!=o.window.getComputedStyle(s).float}(e,t)),n=0,s=t.length;if(0==s)return l.createRange(l.createPositionAt(d,"end"));for(;n<s-1;){let o=Math.floor((n+s)/2);"before"==gW(e,t[o],i,r)?s=o:n=o}return gG(e,t[n],i,r)}d=d.parent}return null}function gG(e,t,n,i){let o=e.model;return o.createRange(o.createPositionAt(t,gW(e,t,n,i)))}function gW(e,t,n,i){let o=e.editing.mapper,r=e.editing.view.domConverter,s=o.toViewElement(t),a=new nI(r.mapViewToDom(s));return e.model.schema.isInline(t)?n<(a.left+a.right)/2?"before":"after":i<(a.top+a.bottom)/2?"before":"after"}function gK(e,t){let n=e.editing.mapper,i=e.editing.view,o=n.toModelElement(t);if(o)return o;let r=i.createPositionBefore(t),s=n.findMappedViewAncestor(r);return n.toModelElement(s)}class g$ extends i4{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(nA())}static get pluginName(){return"DragDropBlockToolbar"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;if(this.listenTo(e,"change:isReadOnly",(e,t,n)=>{n?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}
2),l.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){let t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",(e,t)=>this._handleBlockDragStart(t)),this._domEmitter.listenTo(o.document,"dragover",(e,t)=>this._handleBlockDragging(t)),this._domEmitter.listenTo(o.document,"drop",(e,t)=>this._handleBlockDragging(t)),this._domEmitter.listenTo(o.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",(e,n,i)=>{t.setAttribute("draggable",i?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;let t=this.editor.model,n=t.document.selection,i=this.editor.editing.view,o=Array.from(n.getSelectedBlocks()),r=t.createRange(t.createPositionBefore(o[0]),t.createPositionAfter(o[o.length-1]));t.change(e=>e.setSelection(r)),this._isBlockDragging=!0,i.focus(),i.getObserver(hk).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;let t=e.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=e.clientY,i=document.elementFromPoint(t,n),o=this.editor.editing.view;i&&i.closest(".ck-editor__editable")&&o.getObserver(hk).onDomEvent({...e,type:e.type,dataTransfer:e.dataTransfer,target:i,clientX:t,clientY:n,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var gY=r(7793),gQ={attributes:{"data-cke":!0}};gQ.setAttributes=iY(),gQ.insert=iK().bind(null,"head"),gQ.domAPI=iG(),gQ.insertStyleElement=iZ(),iU()(gY.A,gQ),gY.A&&gY.A.locals&&gY.A.locals;class gZ extends i4{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=iw(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(nA())}static get pluginName(){return"DragDrop"}static get isOfficialPlugin(){return!0}static get requires(){return[hM,gL,gU,g$]}init(){let e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(hk),t.addObserver(lB),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(e,t,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(e,t,n)=>{n||this._finalizeDragging(!1)}),l.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(){let e=this.editor,t=e.model,n=e.editing.view,i=n.document,r=e.plugins.get(gU);this.listenTo(i,"dragstart",(e,n)=>{if(n.target&&n.target.is("editableElement")||(this._prepareDraggedRange(n.target),!this._draggedRange))return void n.preventDefault();this._draggingUid=f(),n.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",n.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);let i=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(n.dataTransfer,i,"dragstart");let{dataTransfer:o,domTarget:r,domEvent:s}=n,{clientX:a}=s;this._updatePreview({dataTransfer:o,domTarget:r,clientX:a}),n.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(i,"dragend",(e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(o.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(i,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(i,"dragleave",()=>{r.removeDropMarkerDelayed()}),this.listenTo(i,"dragging",(e,t)=>{if(!this.isEnabled)return void(t.dataTransfer.dropEffect="none");let{clientX:n,clientY:i}=t.domEvent;r.updateDropMarker(t.target,t.targetRanges,n,i,this._blockMode,this._draggedRange),this._draggedRange||(t.dataTransfer.dropEffect="copy"),l.isGecko||("copy"==t.dataTransfer.effectAllowed?t.dataTransfer.dropEffect="copy":["all","copyMove"].includes(t.dataTransfer.effectAllowed)&&(t.dataTransfer.dropEffect="move")),e.stop()},{priority:"low"})}_setupClipboardInputIntegration(){let e=this.editor,t=e.editing.view.document,n=e.plugins.get(gU);this.listenTo(t,"clipboardInput",(t,i)=>{if("drop"!=i.method)return;let{clientX:o,clientY:r}=i.domEvent,s=n.getFinalDropRange(i.target,i.targetRanges,o,r,this._blockMode,this._draggedRange);return s?(this._draggedRange&&this._draggingUid!=i.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==gJ(i.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(s,!0))?(this._finalizeDragging(!1),void t.stop()):void(i.targetRanges=[e.editing.mapper.toViewRange(s)]):(this._finalizeDragging(!1),void t.stop())},{priority:"high"})}_setupContentInsertionIntegration(){let e=this.editor.plugins.get(hM);e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;let n=t.targetRanges.map(e=>this.editor.editing.mapper.toModelRange(e));this.editor.model.change(e=>e.setSelection(n))},{priority:"high"}),e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;let n="move"==gJ(t.dataTransfer),i=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(i&&n)},{priority:"lowest"})}_setupDraggableAttributeHandling(){let e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,"mousedown",(i,o)=>
2{if(l.isAndroid||!o)return;this._clearDraggableAttributesDelayed.cancel();let r=gX(o.target);if(l.isBlink&&!e.isReadOnly&&!r&&!n.selection.isCollapsed){let e=n.selection.getSelectedElement();e&&gm(e)||(r=n.selection.editableElement)}r&&(t.change(e=>{e.setAttribute("draggable","true",r)}),this._draggableElement=e.editing.mapper.toModelElement(r))}),this.listenTo(n,"mouseup",()=>{l.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){let e=this.editor.editing;e.view.change(t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(e){let t=this.editor,n=t.model;t.plugins.get(gU).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&n.change(e=>{let t=n.createSelection(this._draggedRange);n.deleteContent(t,{doNotAutoparagraph:!0});let i=t.getFirstPosition().parent;i.isEmpty&&!n.schema.checkChild(i,"$text")&&n.schema.checkChild(i,"paragraph")&&e.insertElement("paragraph",i,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){let t=this.editor,n=t.model,i=n.document.selection,o=e?gX(e):null;if(o){let e=t.editing.mapper.toModelElement(o);this._draggedRange=sY.fromRange(n.createRangeOn(e)),this._blockMode=n.schema.isBlock(e),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;let r=Array.from(i.getSelectedBlocks()),s=i.getFirstRange();if(0==r.length)return void(this._draggedRange=sY.fromRange(s));let a=function e(t,n){let i=n[0],o=n[n.length-1],r=i.getCommonAncestor(o),s=t.createPositionBefore(i),a=t.createPositionAfter(o);if(r&&r.is("element")&&!t.schema.isLimit(r)){let n=t.createRangeOn(r),i=s.isTouching(n.start),o=a.isTouching(n.end);if(i&&o)return e(t,[r])}return t.createRange(s,a)}(n,r);if(r.length>1)this._draggedRange=sY.fromRange(a),this._blockMode=!0;else if(1==r.length){let e=s.start.isTouching(a.start)&&s.end.isTouching(a.end);this._draggedRange=sY.fromRange(e?a:s),this._blockMode=e}n.change(e=>e.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:e,domTarget:t,clientX:n}){let i=this.editor.editing.view,r=i.document.selection.editableElement,s=i.domConverter.mapViewToDom(r),a=o.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=em(o.document,"div",{style:"position: fixed; left: -999999px;"}),o.document.body.appendChild(this._previewContainer));let c=new nI(s);if(s.contains(t))return;let d=parseFloat(a.paddingLeft),u=em(o.document,"div");u.className="ck ck-content",u.style.width=a.width,u.style.paddingLeft=`${c.left-n+d}px`,l.isiOS&&(u.style.backgroundColor="white"),i.domConverter.setContentOf(u,e.getData("text/html")),e.setDragImage(u,0,0),this._previewContainer.appendChild(u)}}function gJ(e){return l.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function gX(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(gm);if(gm(e))return e;let t=e.findAncestor(e=>gm(e)||e.is("editableElement"));return gm(t)?t:null}class g0 extends i4{static get pluginName(){return"PastePlainText"}static get isOfficialPlugin(){return!0}static get requires(){return[hM]}init(){let e=this.editor,t=e.model,n=e.editing.view,i=t.document.selection;n.addObserver(hk),e.plugins.get(hM).on("contentInsertion",(e,n)=>{(function(e,t){let n=t.createRangeIn(e);if(1==e.childCount){let i=e.getChild(0);i.is("element")&&t.schema.isBlock(i)&&!t.schema.isObject(i)&&!t.schema.isLimit(i)&&(n=t.createRangeIn(i))}for(let e of n.getItems())if(!t.schema.isInline(e)||Array.from(e.getAttributeKeys()).find(e=>t.schema.getAttributeProperties(e).isFormatting))return!1;return!0})(n.content,t)&&t.change(e=>{let o=Array.from(i.getAttributes()).filter(([e])=>t.schema.getAttributeProperties(e).isFormatting);for(let r of(i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0}),o.push(...i.getAttributes()),e.createRangeIn(n.content).getItems())
2)for(let n of o)t.schema.checkAttribute(r,n[0])&&e.setAttribute(n[0],n[1],r)})})}}class g1 extends i4{static get pluginName(){return"Clipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[hS,hM,gZ,g0]}init(){let e=this.editor,t=this.editor.t;e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Copy selected content"),keystroke:"CTRL+C"},{label:t("Paste content"),keystroke:"CTRL+V"},{label:t("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}class g2 extends i6{constructor(e){super(e),this.affectsData=!1}execute(){let e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!g5(e.schema,n))do if(!(n=n.parent))return;while(!g5(e.schema,n));e.change(e=>{e.setSelection(n,"in")})}}function g5(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}let g4=nX("Ctrl+A");class g3 extends i4{static get pluginName(){return"SelectAllEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.t,n=e.editing.view.document;e.commands.add("selectAll",new g2(e)),this.listenTo(n,"keydown",(t,n)=>{nJ(n)===g4&&(e.execute("selectAll"),n.preventDefault())}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}class g6 extends i4{static get pluginName(){return"SelectAllUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add("selectAll",()=>{let e=this._createButton(l4);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add("menuBar:selectAll",()=>this._createButton(cw))}_createButton(e){let t=this.editor,n=t.locale,i=t.commands.get("selectAll"),o=new e(t.locale),r=n.t;return o.set({label:r("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"}),o.bind("isEnabled").to(i,"isEnabled"),this.listenTo(o,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),o}}class g7 extends i4{static get requires(){return[g3,g6]}static get pluginName(){return"SelectAll"}static get isOfficialPlugin(){return!0}}class g9 extends i6{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",(e,t)=>{t[1]={...t[1]};let n=t[1];n.batchType||(n.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(e.data,"set",(e,t)=>{t[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){let t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){let i=this.editor.model,o=i.document,r=[],s=e.map(e=>e.getTransformedByOperations(n)),a=s.flat();for(let e of s){let t=e.filter(e=>e.root!=o.graveyard).filter(e=>!function(e,t){return t.some(t=>t!==e&&t.containsRange(e,!0))}(e,a));t.length&&(function(e){e.sort((e,t)=>
2e.start.isBefore(t.start)?-1:1);for(let t=1;t<e.length;t++){let n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}(t),r.push(t[0]))}r.length&&i.change(e=>{e.setSelection(r,{backward:t})})}_undo(e,t){let n=this.editor.model,i=n.document;this._createdBatches.add(t);let o=e.operations.slice().filter(e=>e.isDocumentOperation);for(let e of(o.reverse(),o)){let o=e.baseVersion+1,r=Array.from(i.history.getOperations(o));for(let o of function(e,t,n){e=e.slice(),t=t.slice();let i=new a4(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(e),i.setOriginalOperations(t);let o=i.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:o};let r=new WeakMap;for(let t of e)r.set(t,0);let s={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},a=0;for(;a<e.length;){let n=e[a],o=r.get(n);if(o==t.length){a++;continue}let s=t[o],l=a5(n,s,i.getContext(n,s,!0)),c=a5(s,n,i.getContext(s,n,!1));for(let e of(i.updateRelation(n,s),i.setOriginalOperations(l,n),i.setOriginalOperations(c,s),l))r.set(e,o+c.length);e.splice(a,1,...l),t.splice(o,1,...c)}if(a7(e),a7(t),n.padWithNoOps){let n=e.length-s.originalOperationsACount,i=t.length-s.originalOperationsBCount;a6(e,i-n),a6(t,n-i)}return a3(e,s.nextBaseVersionB),a3(t,s.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:o}}([e.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA){let r=o.affectedSelectable;r&&!n.canEditAt(r)&&(o=new a$(o.baseVersion)),t.addOperation(o),n.applyOperation(o),i.history.setOperationAsUndone(e,o)}}}}class g8 extends g9{execute(e=null){let t=e?this._stack.findIndex(t=>t.batch==e):this._stack.length-1,n=this._stack.splice(t,1)[0],i=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(i,()=>{this._undo(n.batch,i);let e=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,e)}),this.fire("revert",n.batch,i),this.refresh()}}class me extends g9{execute(){let e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{let n=e.batch.operations[e.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(n);this._restoreSelection(e.selection.ranges,e.selection.isBackward,i),this._undo(e.batch,t)}),this.refresh()}}class mt extends i4{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.t;this._undoCommand=new g8(e),this._redoCommand=new me(e),e.commands.add("undo",this._und
2oCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(e,t)=>{let n=t[0];if(!n.isDocumentOperation)return;let 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",(e,t,n)=>{this._redoCommand.addBatch(n)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo"),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Undo"),keystroke:"CTRL+Z"},{label:t("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class mn extends i4{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?lZ.undo:lZ.redo,o="ltr"==t.uiLanguageDirection?lZ.redo:lZ.undo;this._addButtonsToFactory("undo",n("Undo"),"CTRL+Z",i),this._addButtonsToFactory("redo",n("Redo"),"CTRL+Y",o)}_addButtonsToFactory(e,t,n,i){let o=this.editor;o.ui.componentFactory.add(e,()=>{let o=this._createButton(l4,e,t,n,i);return o.set({tooltip:!0}),o}),o.ui.componentFactory.add("menuBar:"+e,()=>this._createButton(cw,e,t,n,i))}_createButton(e,t,n,i,o){let r=this.editor,s=r.locale,a=r.commands.get(t),l=new e(s);return l.set({label:n,icon:o,keystroke:i}),l.bind("isEnabled").to(a,"isEnabled"),this.listenTo(l,"execute",()=>{r.execute(t),r.editing.view.focus()}),l}}class mi extends i4{static get requires(){return[mt,mn]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}class mo extends i4{static get requires(){return[cS,g1,gr,g7,gc,hK,mi]}static get pluginName(){return"Essentials"}static get isOfficialPlugin(){return!0}}class mr extends U(){constructor(){super();let e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){let t=this._reader;return this.total=e.size,new Promise((n,i)=>{t.onload=()=>{let e=t.result;this._data=e,n(e)},t.onerror=()=>{i("error")},t.onabort=()=>{i("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class ms extends i4{constructor(){super(...arguments),this.loaders=new iu,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[lQ]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return _("filerepository-no-upload-adapter"),null;let t=new ma(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(e=>{this._loadersMap.set(e,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let e=0;for(let t of this.loaders)e+=t.uploaded;this.uploaded=e}),t.on("change:uploadTotal",()=>{let e=0;for(let t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e}),t}destroyLoader(e){let t=e instanceof ma?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((e,n)=>{e===t&&this._loadersMap.delete(n)})}_updatePendingAction(){let e=this.editor.plugins.get(lQ);if(this.loaders.length){if(!this._pendingAction){let t=this.editor.t,n=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}class ma extends U(){constructor(e,t){super(),this.id=f(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new mr,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new w("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e}).catch(e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e})}upload(){if("idle"!=this.status)throw new w("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e})}abort(){let e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&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(e){let t={};return t.promise=new Promise((n,i)=>
2{t.rejecter=i,t.isFulfilled=!1,e.then(e=>{t.isFulfilled=!0,n(e)}).catch(e=>{t.isFulfilled=!0,i(e)})}),t}}let ml="ckCsrfToken";class mc extends i4{static get requires(){return[ms]}static get pluginName(){return"CKFinderUploadAdapter"}static get isOfficialPlugin(){return!0}init(){let e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(ms).createUploadAdapter=t=>new md(t,e,this.editor.t))}}class md{constructor(e,t,n){this.loader=e,this.url=t,this.t=n}upload(){return this.loader.file.then(e=>new Promise((t,n)=>{this._initRequest(),this._initListeners(t,n,e),this._sendRequest(e)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){let e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,n){let i=this.xhr,o=this.loader,r=(0,this.t)("Cannot upload file:")+` ${n.name}.`;i.addEventListener("error",()=>t(r)),i.addEventListener("abort",()=>t()),i.addEventListener("load",()=>{let n=i.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:r);e({default:n.url})}),i.upload&&i.upload.addEventListener("progress",e=>{e.lengthComputable&&(o.uploadTotal=e.total,o.uploaded=e.loaded)})}_sendRequest(e){var t;let n;let i=new FormData;i.append("upload",e),i.append("ckCsrfToken",((n=function(e){for(let t of(e=e.toLowerCase(),document.cookie.split(";"))){let n=t.split("=");if(decodeURIComponent(n[0].trim().toLowerCase())===e)return decodeURIComponent(n[1])}return null}(ml))&&40==n.length||(t=n=function(e){let t="",n=new Uint8Array(40);window.crypto.getRandomValues(n);for(let e=0;e<n.length;e++){let i="abcdefghijklmnopqrstuvwxyz0123456789".charAt(n[e]%36);t+=Math.random()>.5?i.toUpperCase():i}return t}(0),document.cookie=encodeURIComponent(ml)+"="+encodeURIComponent(t)+";path=/"),n)),this.xhr.send(i)}}function mu(e,t,n,i){let o,r=null;"function"==typeof i?o=i:(r=e.commands.get(i),o=()=>{e.execute(i)}),e.model.document.on("change:data",(s,a)=>{if(r&&!r.isEnabled||!t.isEnabled)return;let l=ih(e.model.document.selection.getRanges());if(!l.isCollapsed||a.isUndo||!a.isLocal)return;let c=Array.from(e.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;let u=d.position.parent;if(u.is("element","codeBlock")||u.is("element","listItem")&&"function"!=typeof i&&!["numberedList","bulletedList","todoList"].includes(i)||r&&!0===r.value)return;let h=u.getChild(0),g=e.model.createRangeOn(h);if(!g.containsRange(l)&&!l.end.isEqual(g.end))return;let m=n.exec(h.data.substr(0,l.end.offset));m&&e.model.enqueueChange(t=>{let n=new sY(t.createPositionAt(u,0),t.createPositionAt(u,m[0].length));if(!1!==o({match:m})){t.remove(n);let i=e.model.document.selection.getFirstRange(),o=t.createRangeIn(u);!u.isEmpty||o.isEqual(i)||o.containsRange(i,!0)||t.remove(u)}n.detach(),e.model.enqueueChange(()=>{e.plugins.get("Delete").requestUndoOnBackspace()})})})}function mh(e,t,n,i){let o,r;n instanceof RegExp?o=n:r=n,r=r||(e=>{let t;let n=[],i=[];for(;null!==(t=o.exec(e))&&!(t&&t.length<4);){let{index:e,1:o,2:r,3:s}=t,a=o+r+s,l=[e+=t[0].length-a.length,e+o.length],c=[e+o.length+r.length,e+o.length+r.length+s.length];n.push(l),n.push(c),i.push([e+o.length,e+o.length+r.length])}return{remove:n,format:i}}),e.model.document.on("change:data",(n,o)=>{var s;let a;if(o.isUndo||!o.isLocal||!t.isEnabled)return;let l=e.model,c=l.document.selection;if(!c.isCollapsed)return;let d=Array.from(l.document.differ.getChanges()),u=d[0];if(1!=d.length||"insert"!==u.type||"$text"!=u.name||1!=u.length)return;let h=c.focus,g=h.parent,{text:m,range:p}=(a=(s=l.createRange(l.createPositionAt(g,0),h)).start,{text:Array.from(s.getItems()).reduce((e,t)=>!t.is("$text")&&!t.is("$textProxy")||t.getAttribute("code")?(a=l.createPositionAfter(t),""):e+t.data,""),range:l.createRange(a,s.end)}),k=r(m),f=mg(p.start,k.format,l),b=mg(p.start,k.remove,l);f.length&&b.length&&l.enqueueChange(t=>{if(!1!==i(t,f)){for(let e of b.reverse())t.remove(e);l.enqueueChange(()=>{e.plugins.get("Delete").requestUndoOnBackspace()})}})})}function mg(e,t,n){return t.filter(e=>void 0!==e[0]&&void 0!==e[1]).map(t=>n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1])))}class mm extends i4{static get requires(){return[hW]}static get pluginName(){return"Autoformat"}static get isOfficialPlugin(){return!0}afterInit(){let e=this.editor,t=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){let e=this.editor.commands;e.get("bulletedList")&&mu(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&mu(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&mu(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&mu(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){let e=this.editor.commands;if(e.get("bold")){let e=mp(this.editor,"bold");mh(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),mh(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(e.get("italic")){let e=mp(this.editor,"italic");mh(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),mh(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(e.get("code")){let e=mp(this.editor,"code");mh(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(e.get("strikethrough")){let e=mp(this.editor,"strikethrough");mh(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){let e=this.editor.commands.get("heading");e&&e.modelElements.filter(e=>
2e.match(/^heading[1-6]$/)).forEach(t=>{let n=t[7],i=RegExp(`^(#{${n}})\\s$`);mu(this.editor,this,i,()=>{if(!e.isEnabled||e.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&mu(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){let e=this.editor,t=e.model.document.selection;e.commands.get("codeBlock")&&mu(e,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&mu(this.editor,this,/^---$/,"horizontalLine")}}function mp(e,t){return(n,i)=>{if(!e.commands.get(t).isEnabled)return!1;for(let o of e.model.schema.getValidRanges(i,t))n.setAttribute(t,!0,o);n.removeSelectionAttribute(t)}}class mk extends i6{constructor(e,t){super(e),this.attributeKey=t}refresh(){let e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){let t=this.editor.model,n=t.document.selection,i=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(n.isCollapsed)i?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else for(let o of t.schema.getValidRanges(n.getRanges(),this.attributeKey))i?e.setAttribute(this.attributeKey,i,o):e.removeAttribute(this.attributeKey,o)})}_getValueFromFirstAllowedNode(){let e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(let e of n.getRanges())for(let n of e.getItems())if(t.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}let mf="bold";class mb extends i4{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:mf}),e.model.schema.setAttributeProperties(mf,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:mf,view:"strong",upcastAlso:["b",e=>{let t=e.getStyle("font-weight");return t&&("bold"==t||Number(t)>=600)?{name:!0,styles:["font-weight"]}:null}]}),e.commands.add(mf,new mk(e,mf)),e.keystrokes.set("CTRL+B",mf),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Bold text"),keystroke:"CTRL+B"}]})}}function mA({editor:e,commandName:t,plugin:n,icon:i,label:o,keystroke:r}){return s=>{let a=e.commands.get(t),l=new s(e.locale);return l.set({label:o,icon:i,keystroke:r,isToggleable:!0}),l.bind("isEnabled").to(a,"isEnabled"),l.bind("isOn").to(a,"value"),l instanceof cw?l.set({role:"menuitemcheckbox"}):l.set({tooltip:!0}),n.listenTo(l,"execute",()=>{e.execute(t),e.editing.view.focus()}),l}}let mw="bold";class m_ extends i4{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t,n=mA({editor:e,commandName:mw,plugin:this,icon:lZ.bold,label:t("Bold"),keystroke:"CTRL+B"});e.ui.componentFactory.add(mw,()=>n(l4)),e.ui.componentFactory.add("menuBar:"+mw,()=>n(cw))}}class mC extends i4{static get requires(){return[mb,m_]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}}var mv=r(4199),my={attributes:{"data-cke":!0}};my.setAttributes=iY(),my.insert=iK().bind(null,"head"),my.domAPI=iG(),my.insertStyleElement=iZ(),iU()(mv.A,my),mv.A&&mv.A.locals&&mv.A.locals;let mx="italic";class mE extends i4{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:mx}),e.model.schema.setAttributeProperties(mx,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:mx,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(mx,new mk(e,mx)),e.keystrokes.set("CTRL+I",mx),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Italic text"),keystroke:"CTRL+I"}]})}}let mD="italic";class mI extends i4{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t,n=mA({editor:e,commandName:mD,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2<path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",label:t("Italic")});e.ui.componentFactory.add(mD,()=>n(l4)),e.ui.componentFactory.add("menuBar:"+mD,()=>n(cw))}}class mS extends i4{static get requires(){return[mE,mI]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}}class mM extends i6{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){let t=this.editor.model,n=t.schema,i=Array.from(t.document.selection.getSelectedBlocks()),o=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(o){let t=i.filter(e=>mB(e)||mN(n,e));this._applyQuote(e,t)}else this._removeQuote(e,i.filter(mB))})}_getValue(){let e=ih(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!mB(e))}_checkEnabled(){if(this.value)return!0;let e=this.editor.model.document.selection,t=this.editor.model.schema,n=ih(e.getSelectedBlocks());return!!n&&mN(t,n)}_removeQuote(e,t){mT(e,t).reverse().forEach(t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){let n=e.createPositionBefore(t.start.parent);return void e.move(t,n)}t.end.isAtEnd||e.split(t.end);let n=e.createPositionAfter(t.end.parent);e.move(t,n)})}_applyQuote(e,t){let n=[];mT(e,t).reverse().forEach(t=>{let i=mB(t.start);i||(i=e.createElement("blockQuote"),e.wrap(t,i)),n.push(i)}),n.reverse().reduce((t,n)=>t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n)}}function mB(e){return"blockQuote"==e.parent.name?e.parent:null}function mT(e,t){let n,i=0,o=[];for(;i<t.length;){let r=t[i],s=t[i+1];n||(n=e.createPositionBefore(r)),s&&r.nextSibling==s||(o.push(e.createRange(n,e.createPositionAfter(r))),n=null),i++}return o}function mN(e,t){let n=e.checkChild(t.parent,"blockQuote"),i=e.checkChild(["$root","blockQuote"],t);return n&&i}class mP extends i4{static get pluginName(){return"BlockQuoteEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[gr,hW]}init(){let e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new mM(e)),t.register("blockQuote",{inheritAllFrom:"$container"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer(n=>{for(let i of e.model.document.differ.getChanges())if("insert"==i.type){let e=i.position.nodeAfter;if(!e)continue;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0;if(e.is("element","blockQuote")&&!t.checkChild(i.position,e))return n.unwrap(e),!0;if(e.is("element")){for(let i of n.createRangeIn(e).getItems())if(i.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(i),i))return n.unwrap(i),!0}}else if("remove"==i.type){let e=i.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1});let n=this.editor.editing.view.document,i=e.model.document.selection,o=e.commands.get("blockQuote");this.listenTo(n,"enter",(t,n)=>{i.isCollapsed&&o.value&&i.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(t,n)=>{if("backward"!=n.direction||!i.isCollapsed||!o.value)return;let r=i.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())},{context:"blockquote"})}}var mL=r(8708),mO={attributes:{"data-cke":!0}};mO.setAttributes=iY(),mO.insert=iK().bind(null,"head"),mO.domAPI=iG(),mO.insertStyleElement=iZ(),iU()(mL.A,mO),mL.A&&mL.A.locals&&mL.A.locals;class mz extends i4{static get pluginName(){return"BlockQuoteUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add("blockQuote",()=>{let e=this._createButton(l4);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add("menuBar:blockQuote",()=>{let e=this._createButton(cw);return e.set({role:"menuitemcheckbox"}),e})}_createButton(e){let t=this.editor,n=t.locale,i=t.commands.get("blockQuote"),o=new e(t.locale),r=n.t;return o.set({label:r("Block quote"),icon:lZ.quote,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value"),this.listenTo(o,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),o}}class mR extends i4{static get requires(){return[mP,mz]}static get pluginName(){return"BlockQuote"}static get isOfficialPlugin(){return!0}}class mF extends i4{static get pluginName(){return"CKBoxUI"}static get isOfficialPlugin(){return!0}afterInit(){let e=this.editor;e.commands.get("ckbox")&&(e.ui.componentFactory.add("ckbox",()=>this._createFileToolbarButton()),e.ui.componentFactory.add("menuBar:ckbox",()=>this._createFileMenuBarButton()),e.plugins.has("ImageInsertUI")&&e.plugins.get("ImageInsertUI").registerIntegration({name:"assetManager",observable:()=>e.commands.get("ckbox"),buttonViewCreator:()=>this._createImageToolbarButton(),formViewCreator:()=>this._createImageDropdownButton(),menuBarButtonViewCreator:e=>this._createImageMenuBarButton(e?"insertOnly":"insertNested")}))}_createButton(e){let t=this.editor,n=new e(t.locale),i=t.commands.get("ckbox");return n.bind("isOn","isEnabled").to(i,"value","isEnabled"),n.on("execute",()=>{t.execute("ckbox")}),n}_createFileToolbarButton(){let e=this.editor.locale.t,t=this._createButton(l4);return t.icon=lZ.browseFiles,t.label=e("Open file manager"),t.tooltip=!0,t}_createImageToolbarButton(){let e=this.editor.locale.t,t=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(l4);return n.icon=lZ.imageAssetManager,n.bind("label").to(t,"isImageSelected",t=>e(t?"Replace image with file manager":"Insert image with file manager")),n.tooltip=!0,n}_createImageDropdownButton(){let e=this.editor.locale.t,t=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(l4);return n.icon=lZ.imageAssetManager,n.withText=!0,n.bind("label").to(t,"isImageSelected",t=>e(t?"Replace with file manager":"Insert with file manager")),n.on("execute",()=>{t.dropdownView.isOpen=!1}),n}_createFileMenuBarButton(){let e=this.editor.locale.t,t=this._createButton(cw);return t.icon=lZ.browseFiles,t.withText=!0,t.label=e("File"),t}_createImageMenuBarButton(e){let t=this.editor.locale.t,n=this.editor.locale.t,i=this._createButton(cw);switch(i.icon=lZ.imageAssetManager,i.withText=!0,e){case"insertOnly":i.label=t("Image");break;case"insertNested":i.label=n("With file manager")}return i}}var mj=["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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],mV=e=>{let t=0;for(let n=0;n<e.length;n++){let i=e[n];t=83*t+mj.indexOf(i)}return t},mH=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},mU=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},mq=(e,t)=>
2(e<0?-1:1)*Math.pow(Math.abs(e),t),mG=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},mW=e=>{if(!e||e.length<6)throw new mG("The blurhash string must be at least 6 characters");let t=mV(e[0]),n=Math.floor(t/9)+1,i=t%9+1;if(e.length!==4+2*i*n)throw new mG(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*i*n}`)},mK=e=>[mH(e>>16),mH(e>>8&255),mH(255&e)],m$=(e,t)=>{let n=Math.floor(e/361),i=Math.floor(e/19)%19;return[mq((n-9)/9,2)*t,mq((i-9)/9,2)*t,mq((e%19-9)/9,2)*t]},mY=(e,t,n,i)=>{mW(e),i|=1;let o=mV(e[0]),r=Math.floor(o/9)+1,s=o%9+1,a=(mV(e[1])+1)/166,l=Array(s*r);for(let t=0;t<l.length;t++)if(0===t){let n=mV(e.substring(2,6));l[t]=mK(n)}else{let n=mV(e.substring(4+2*t,6+2*t));l[t]=m$(n,a*i)}let c=4*t,d=new Uint8ClampedArray(c*n);for(let e=0;e<n;e++)for(let i=0;i<t;i++){let o=0,a=0,u=0;for(let c=0;c<r;c++)for(let r=0;r<s;r++){let d=Math.cos(Math.PI*i*r/t)*Math.cos(Math.PI*e*c/n),h=l[r+c*s];o+=h[0]*d,a+=h[1]*d,u+=h[2]*d}let h=mU(o),g=mU(a),m=mU(u);d[4*i+0+e*c]=h,d[4*i+1+e*c]=g,d[4*i+2+e*c]=m,d[4*i+3+e*c]=255}return d};function mQ(e){let t=[],n=0;for(let i in e){let o=parseInt(i,10);isNaN(o)||(o>n&&(n=o),t.push(`${e[i]} ${i}w`))}let i=[{srcset:t.join(","),sizes:`(max-width: ${n}px) 100vw, ${n}px`,type:"image/webp"}];return{imageFallbackUrl:e.default,imageSources:i}}function mZ({url:e,method:t="GET",data:n,onUploadProgress:i,signal:o,authorization:r}){let s=new XMLHttpRequest;s.open(t,e.toString()),s.setRequestHeader("Authorization",r),s.setRequestHeader("CKBox-Version","CKEditor 5"),s.responseType="json";let a=()=>{s.abort()};return new Promise((e,t)=>{o.throwIfAborted(),o.addEventListener("abort",a),s.addEventListener("loadstart",()=>{o.addEventListener("abort",a)}),s.addEventListener("loadend",()=>{o.removeEventListener("abort",a)}),s.addEventListener("error",()=>{t()}),s.addEventListener("abort",()=>{t()}),s.addEventListener("load",()=>{let n=s.response;if(!n||n.statusCode>=400)return t(n&&n.message);e(n)}),i&&s.upload.addEventListener("progress",e=>{i(e)}),s.send(n)})}let mJ={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};class mX extends i6{constructor(e){super(e),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(){let e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");return!(!e.isEnabled&&!t.isEnabled)}_prepareOptions(){let e=this.editor.config.get("ckbox"),t=e.dialog,n=e.categories,i=e.view,o=e.upload;return{theme:e.theme,language:e.language,tokenUrl:e.tokenUrl,serviceOrigin:e.serviceOrigin,forceDemoLabel:e.forceDemoLabel,choosableFileExtensions:e.choosableFileExtensions,assets:{onChoose:e=>this.fire("ckbox:choose",e)},dialog:{onClose:()=>this.fire("ckbox:close"),width:t&&t.width,height:t&&t.height},categories:n&&{icons:n.icons},view:i&&{openLastView:i.openLastView,startupFolderId:i.startupFolderId,startupCategoryId:i.startupCategoryId,hideMaximizeButton:i.hideMaximizeButton},upload:o&&{componentsHideTimeout:o.componentsHideTimeout,dialogMinimizeTimeout:o.dialogMinimizeTimeout}}}_initListeners(){let e=this.editor,t=e.model,n=!e.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=em(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,e.editing.view.focus())}),this.on("ckbox:choose",(i,o)=>{if(!this.isEnabled)return;let r=e.commands.get("insertImage"),s=e.commands.get("link"),a=function({assets:e,isImageAllowed:t,isLinkAllowed:n}){return e.map(e=>!function(e){let t=e.data.metadata;return!!t&&t.width&&t.height}(e)?{id:e.data.id,type:"link",attributes:{linkName:e.data.name,linkHref:function(e){let t=new URL(e.data.url);return t.searchParams.set("download","true"),t.toString()}(e)}}:{id:e.data.id,type:"image",attributes:function(e){let{imageFallbackUrl:t,
2imageSources:n}=mQ(e.data.imageUrls),{description:i,width:o,height:r,blurHash:s}=e.data.metadata,a=function(e){if(e)try{let t="32px",n=document.createElement("canvas");n.setAttribute("width",t),n.setAttribute("height",t);let i=n.getContext("2d");if(!i)return;let o=i.createImageData(32,32),r=mY(e,32,32);return o.data.set(r),i.putImageData(o,0,0),n.toDataURL()}catch(e){return}}(s);return{imageFallbackUrl:t,imageSources:n,imageTextAlternative:i||"",imageWidth:o,imageHeight:r,...a?{imagePlaceholder:a}:null}}(e)}).filter(e=>"image"===e.type?t:n)}({assets:o,isImageAllowed:r.isEnabled,isLinkAllowed:s.isEnabled}),l=a.length;0!==l&&(t.change(e=>{for(let t of a){let i=t===a[l-1],o=1===l;this._insertAsset(t,i,e,o),n&&(setTimeout(()=>this._chosenAssets.delete(t),1e3),this._chosenAssets.add(t))}}),e.editing.view.focus())}),this.listenTo(e,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(e,t,n,i){let o=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===e.type?this._insertImage(e):this._insertLink(e,n,i),t||n.setSelection(o.getLastPosition())}_insertImage(e){let t=this.editor,{imageFallbackUrl:n,imageSources:i,imageTextAlternative:o,imageWidth:r,imageHeight:s,imagePlaceholder:a}=e.attributes;t.execute("insertImage",{source:{src:n,sources:i,alt:o,width:r,height:s,...a?{placeholder:a}:null}})}_insertLink(e,t,n){let i=this.editor,o=i.model,r=o.document.selection,{linkName:s,linkHref:a}=e.attributes;if(r.isCollapsed){let e=ib(r.getAttributes()),l=t.createText(s,e);if(!n){let e=r.getLastPosition(),n=e.parent;"paragraph"===n.name&&n.isEmpty||i.execute("insertParagraph",{position:e});let s=o.insertContent(l);return t.setSelection(s),void i.execute("link",a)}let c=o.insertContent(l);t.setSelection(c)}i.execute("link",a)}}class m0 extends i4{static get pluginName(){return"CKBoxUtils"}static get isOfficialPlugin(){return!0}static get requires(){return["CloudServices"]}init(){let e=this.editor,t=!!e.config.get("ckbox"),n=!!window.CKBox;if(!t&&!n)return;e.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:e.locale.uiLanguage,theme:"lark",tokenUrl:e.config.get("cloudServices.tokenUrl")});let i=e.plugins.get("CloudServices"),o=e.config.get("cloudServices.tokenUrl"),r=e.config.get("ckbox.tokenUrl");if(!r)throw new w("ckbox-plugin-missing-token-url",this);this._token=r==o?Promise.resolve(i.token):i.registerTokenUrl(r)}getToken(){return this._token}async getWorkspaceId(){let e=(0,this.editor.t)("Cannot access default workspace."),t=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(e,t){let[,n]=e.value.split("."),i=JSON.parse(atob(n)),o=i.auth&&i.auth.ckbox&&i.auth.ckbox.workspaces||[i.aud];return t?"superadmin"==(i.auth&&i.auth.ckbox&&i.auth.ckbox.role)||o.includes(t)?t:null:o[0]}(await this._token,t);if(null==n)throw C("ckbox-access-default-workspace-error"),e;return n}async getCategoryIdForFile(e,t){let n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),i=this.editor.config.get("ckbox.defaultUploadCategories"),o=this._getAvailableCategories(t),r="string"==typeof e?mJ[await async function(e,t){try{let n=await fetch(e,{method:"HEAD",cache:"force-cache",...t});return n.ok&&n.headers.get("content-type")||""}catch{return""}}(e,t)]:e.name.match(/\.(?<ext>[^.]+)$/).groups.ext.toLowerCase(),s=await o;if(!s)throw n;if(i){let e=Object.keys(i).find(e=>i[e].find(e=>e.toLowerCase()==r));if(e){let t=s.find(t=>t.id===e||t.name===e);if(!t)throw n;return t.id}}let a=s.find(e=>e.extensions.find(e=>e.toLowerCase()==r));if(!a)throw n;return a.id}async _getAvailableCategories(e){let t=this.editor,n=this._token,{signal:i}=e,o=t.config.get("ckbox.serviceOrigin"),r=await this.getWorkspaceId();try{let e=[],t,n=0;do{let i=await s(n);e.push(...i.items),t=i.totalCount-(n+50),n+=50}while(t>0);return e}catch{return i.throwIfAborted(),void C("ckbox-fetch-category-http-error")}async function s(e){let t=new URL("categories",o);return t.searchParams.set("limit",String(50)),t.searchParams.set("offset",String(e)),t.searchParams.set("workspaceId",r),mZ({url:t,signal:i,authorization:(await n).value})}}}class m1 extends i4{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ms,m4]}static get pluginName(){return"CKBoxUploadAdapter"}static get isOfficialPlugin(){return!0}async afterInit(){let e=this.editor,t=!!e.config.get("ckbox"),n=!!window.CKBox;if(!t&&!n)return;let i=e.plugins.get(ms),o=e.plugins.get(m0);i.createUploadAdapter=t=>new m2(t,e,o);let r=!e.config.get("ckbox.ignoreDataId"),s=e.plugins.get("ImageUploadEditing");r&&s.on("uploadComplete",(t,{imageElement:n,data:i})=>{e.model.change(e=>{e.setAttribute("ckboxImageId",i.ckboxImageId,n)})})}}class m2{constructor(e,t,n){this.loader=e,this.token=n.getToken(),this.ckboxUtils=n,this.editor=t,this.controller=new AbortController,this.serviceOrigin=t.config.get("ckbox.serviceOrigin")}async upload(){let e=this.ckboxUtils,t=this.editor.t,n=await this.loader.file,i=await e.getCategoryIdForFile(n,{signal:this.controller.signal}),o=new URL("assets",this.serviceOrigin),r=new FormData;return o.searchParams.set("workspaceId",await e.getWorkspaceId()),r.append("categoryId",i),r.append("file",n),mZ({method:"POST",url:o,data:r,onUploadProgress:e=>{e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)},signal:this.controller.signal,authorization:(await this.token).value}).then(async e=>{let t=mQ(e.imageUrls);
2return{ckboxImageId:e.id,default:t.imageFallbackUrl,sources:t.imageSources}}).catch(()=>Promise.reject(t("Cannot upload file:")+` ${n.name}.`))}abort(){this.controller.abort()}}let m5="NoPermission";class m4 extends i4{static get pluginName(){return"CKBoxEditing"}static get isOfficialPlugin(){return!0}static get requires(){return["LinkEditing","PictureEditing",m1,m0]}init(){let e=this.editor;this._shouldBeInitialised()&&(this._checkImagePlugins(),m6()&&e.commands.add("ckbox",new mX(e)),(async function(e){let t=e.plugins.get(m0),n=new URL("permissions",e.config.get("ckbox.serviceOrigin")),{value:i}=await t.getToken();return Object.values(await mZ({url:n,authorization:i,signal:(new AbortController).signal})).some(e=>e["asset:create"])})(e).then(e=>{e||this._blockImageCommands()}))}afterInit(){let e=this.editor;this._shouldBeInitialised()&&(e.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()))}_shouldBeInitialised(){return!!this.editor.config.get("ckbox")||m6()}_blockImageCommands(){let e=this.editor,t=e.commands.get("uploadImage"),n=e.commands.get("ckboxImageEdit");t&&(t.isAccessAllowed=!1,t.forceDisabled(m5)),n&&n.forceDisabled(m5)}_checkImagePlugins(){let e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||C("ckbox-plugin-image-feature-missing",e)}_initSchema(){let e=this.editor.model.schema;e.extend("$text",{allowAttributes:"ckboxLinkId"}),e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.addAttributeCheck(e=>{if(!e.last.getAttribute("linkHref"))return!1},"ckboxLinkId")}_initConversion(){let e=this.editor;e.conversion.for("downcast").add(e=>{e.on("attribute:ckboxLinkId:imageBlock",(e,t,n)=>{let{writer:i,mapper:o,consumable:r}=n;if(!r.consume(t.item,e.name))return;let s=[...o.toViewElement(t.item).getChildren()].find(e=>"a"===e.name);s&&(t.item.hasAttribute("ckboxLinkId")?i.setAttribute("data-ckbox-resource-id",t.item.getAttribute("ckboxLinkId"),s):i.removeAttribute("data-ckbox-resource-id",s))},{priority:"low"}),e.on("attribute:ckboxLinkId",(e,t,n)=>{let{writer:i,mapper:o,consumable:r}=n;if(r.consume(t.item,e.name)){if(t.attributeOldValue){let e=m3(i,t.attributeOldValue);i.unwrap(o.toViewRange(t.range),e)}if(t.attributeNewValue){let e=m3(i,t.attributeNewValue);if(t.item.is("selection")){let t=i.document.selection;i.wrap(t.getFirstRange(),e)}else i.wrap(o.toViewRange(t.range),e)}}},{priority:"low"})}),e.conversion.for("upcast").add(e=>{e.on("element:a",(e,t,n)=>{let{writer:i,consumable:o}=n;if(!t.viewItem.getAttribute("href")||!o.consume(t.viewItem,{attributes:["data-ckbox-resource-id"]}))return;let r=t.viewItem.getAttribute("data-ckbox-resource-id");if(r){if(t.modelRange)for(let e of t.modelRange.getItems()){var s;e.is("$textProxy")&&(e=e.textNode),((s=e).is("$text")||s.is("element","imageInline")||s.is("element","imageBlock"))&&i.setAttribute("ckboxLinkId",r,e)}else{let e=t.modelCursor.nodeBefore||t.modelCursor.parent;i.setAttribute("ckboxLinkId",r,e)}}},{priority:"low"})}),e.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),e.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:e=>e.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});let t=e.commands.get("replaceImageSource");t&&this.listenTo(t,"cleanupImage",(e,[t,n])=>{t.removeAttribute("ckboxImageId",n)})}_initFixers(){let e=this.editor,t=e.model,n=t.document.selection;t.document.registerPostFixer(t=>{let n=!1,i=e.model,o=e.commands.get("ckbox");if(!o)return n;for(let e of i.document.differ.getChanges()){if("insert"!==e.type&&"attribute"!==e.type)continue;let i="insert"===e.type?new sF(e.position,e.position.getShiftedBy(e.length)):e.range,r="attribute"===e.type&&"linkHref"===e.attributeKey&&null===e.attributeNewValue;for(let e of i.getItems()){if(r&&e.hasAttribute("ckboxLinkId")){t.removeAttribute("ckboxLinkId",e),n=!0;continue}for(let i of function(e,t){let n=e.is("element","imageInline")||e.is("element","imageBlock"),i=e.hasAttribute("linkHref");return[...t].filter(t=>"image"===t.type&&n?t.attributes.imageFallbackUrl===e.getAttribute("src"):"link"===t.type&&i?t.attributes.linkHref===e.getAttribute("linkHref"):void 0)}(e,o._chosenAssets)){let o="image"===i.type?"ckboxImageId":"ckboxLinkId";i.id!==e.getAttribute(o)&&(t.setAttribute(o,i.id,e),n=!0)}}}return n}),t.document.registerPostFixer(e=>!(n.hasAttribute("linkHref")||!n.hasAttribute("ckboxLinkId"))&&(e.removeSelectionAttribute("ckboxLinkId"),!0))}}function m3(e,t){let n=e.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return e.setCustomProperty("link",!0,n),n}function m6(){return!!window.CKBox}class m7 extends i4{static get pluginName(){return"CKBox"}static get isOfficialPlugin(){return!0}static get requires(){return[m4,mF]}}var m9=r(1866),m8={attributes:{"data-cke":!0}};m8.setAttributes=iY(),m8.insert=iK().bind(null,"head"),m8.domAPI=iG(),m8.insertStyleElement=iZ(),iU()(m9.A,m8),m9.A&&m9.A.locals&&m9.A.locals;class pe extends i4{static get pluginName(){return"CKFinderUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add("ckfinder",()=>this._createFileToolbarButton()),e.ui.componentFactory.add("menuBar:ckfinder",()=>this._createFileMenuBarButton()),e.plugins.has("ImageInsertUI")&&e.plugins.get("ImageInsertUI").registerIntegration({name:"assetManager",observable:()=>e.commands.get("ckfinder"),buttonViewCreator:()=>this._createImageToolbarButton(),formViewCreator:()=>this._createImageDropdownButton(),menuBarButtonViewCreator:e=>this._createImageMenuBarButton(e?"insertOnly":"insertNested")})}_createButton(e){let t=this.editor,n=new e(t.locale),i=t.commands.get("ckfinder");return n.bind("isEnabled").to(i),n.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),n}_createFileToolbarButton(){let e=this.editor.locale.t,t=this._createButton(l4);return t.icon=lZ.browseFiles,t.label=e("Insert image or file"),t.tooltip=!0,t}_createImageToolbarButton(){let e=this.editor.locale.t,t=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(l4);return n.icon=lZ.imageAssetManager,n.bind("label").to(t,"isImageSelected",t=>e(t?"Replace image with file manager":"Insert image with file manager")),n.tooltip=!0,n}_createImageDropdownButton(){let e=this.editor.locale.t,t=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(l4);return n.icon=lZ.imageAssetManager,n.withText=!0,n.bind("label").to(t,"isImageSelected",t=>e(t?"Replace with file manager":"Insert with file manager")),n.on("execute",()=>{t.dropdownView.isOpen=!1}),n}_createFileMenuBarButton(){let e=this.editor.locale.t,t=this._createButton(cw);return t.icon=lZ.browseFiles,t.withText=!0,t.label=e("File"),t}_createImageMenuBarButton(e){let t=this.editor.locale.t,n=this.editor.locale.t,i=this._createButton(cw);switch(i.icon=lZ.imageAssetManager,i.withText=!0,e){case"insertOnly":i.label=t("Image");break;case"insertNested":i.label=n("With file manager")}return i}}class pt extends i6{constructor(e){super(e),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){let e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}execute(){let e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new w("ckfinder-unknown-openermethod",e);let n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;let i=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=t=>{i&&i(t),t.on("files:choose",n=>{let i=n.data.files.toArray(),o=i.filter(e=>!e.isImage()),r=i.filter(e=>e.isImage());for(let t of o)e.execute("link",t.getUrl());let s=[];for(let e of r){let n=e.getUrl();s.push(n||t.request("file:getProxyUrl",{file:e}))}s.length&&pn(e,s)}),t.on("file:choose:resizedImage",t=>{let n=t.data.resizedUrl;if(n)pn(e,[n]);else{let t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[t](n)}}function pn(e,t){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:t});else{let t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class pi extends i4{static get pluginName(){return"CKFinderEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[uD,"LinkEditing"]}init(){let e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new w("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new pt(e))}}class po extends i4{static get pluginName(){return"CKFinder"}static get isOfficialPlugin(){return!0}static get requires(){return["Link","CKFinderUploadAdapter",pi,pe]}}class pr extends i4{static get pluginName(){return"CloudServicesUploadAdapter"}static get isOfficialPlugin(){return!0}static get requires(){return["CloudServices",ms]}init(){let e=this.editor,t=e.plugins.get("CloudServices"),n=t.token,i=t.uploadUrl;if(!n)return;let o=e.plugins.get("CloudServicesCore");this._uploadGateway=o.createUploadGateway(n,i),e.plugins.get(ms).createUploadAdapter=e=>new ps(this._uploadGateway,e)}}class ps{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then(e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",(e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class pa extends i4{static get pluginName(){return"EasyImage"}static get isOfficialPlugin(){return!0}static get requires(){return[pr,"ImageUpload"]}init(){let e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||_("easy-image-image-feature-missing",e)}}class pl extends i6{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){let e=this.editor.model,t=ih(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&pc(t,e.schema)}execute(e={}){let t=this.editor.model,n=t.document,i=e.selection||n.selection;t.canEditAt(i)&&t.change(e=>{for(let n of i.getSelectedBlocks())!n.is("element","paragraph")&&pc(n,t.schema)&&e.rename(n,"paragraph")})}}function pc(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class pd extends i6{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){let t=this.editor.model,n=e.attributes,i=e.position;t.canEditAt(i)&&t.change(e=>{if(!(i=this._findPositionToInsertParagraph(i,e)))return;let o=e.createElement("paragraph");n&&t.schema.setAllowedAttributes(o,n,e),t.insertContent(o,i),e.setSelection(o,"in")})}_findPositionToInsertParagraph(e,t){let n=this.editor.model;if(n.schema.checkChild(e,"paragraph"))return e;let i=n.schema.findAllowedParent(e,"paragraph");if(!i)return null;let o=e.parent,r=n.schema.checkChild(o,"$text");
2return o.isEmpty||r&&e.isAtEnd?n.createPositionAfter(o):!o.isEmpty&&r&&e.isAtStart?n.createPositionBefore(o):t.split(e,i).position}}class pu extends i4{static get pluginName(){return"Paragraph"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.model;e.commands.add("paragraph",new pl(e)),e.commands.add("insertParagraph",new pd(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>pu.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}static{this.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])}}class ph extends i6{constructor(e,t){super(e),this.modelElements=t}refresh(){let e=ih(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>pg(e,t,this.editor.model.schema))}execute(e){let t=this.editor.model,n=t.document,i=e.value;t.change(e=>{for(let o of Array.from(n.selection.getSelectedBlocks()).filter(e=>pg(e,i,t.schema)))o.is("element",i)||e.rename(o,i)})}}function pg(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}let pm="paragraph";class pp extends i4{static get pluginName(){return"HeadingEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.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[pu]}init(){let e=this.editor,t=e.config.get("heading.options"),n=[];for(let i of t)"paragraph"!==i.model&&(e.model.schema.register(i.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(i),n.push(i.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new ph(e,n))}afterInit(){let e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(t,i)=>{let o=e.model.document.selection.getFirstPosition().parent;n.some(e=>o.is("element",e.model))&&!o.is("element",pm)&&0===o.childCount&&i.writer.rename(o,pm)})}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:b.low+1})}}var pk=r(6269),pf={attributes:{"data-cke":!0}};pf.setAttributes=iY(),pf.insert=iK().bind(null,"head"),pf.domAPI=iG(),pf.insertStyleElement=iZ(),iU()(pk.A,pf),pk.A&&pk.A.locals&&pk.A.locals;class pb extends i4{static get pluginName(){return"HeadingUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.t,n=function(e){let t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map(e=>{let t=n[e.title];return t&&t!=e.title&&(e.title=t),e})}(e),i=t("Choose heading"),o=t("Heading");e.ui.componentFactory.add("heading",t=>{let r={},s=new iu,a=e.commands.get("heading"),l=e.commands.get("paragraph"),c=[a];for(let e of n){let t={type:"button",model:new uI({label:e.title,class:e.class,role:"menuitemradio",withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(l,"value"),t.model.set("commandName","paragraph"),c.push(l)):(t.model.bind("isOn").to(a,"value",t=>t===e.model),t.model.set({commandName:"heading",commandValue:e.model})),s.add(t),r[e.model]=e.title}let d=dV(t);return dq(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(c,"isEnabled",(...e)=>e.some(e=>e)),d.buttonView.bind("label").to(a,"value",l,"value",(e,t)=>{let n=t?"paragraph":e;return"boolean"==typeof n?i:r[n]?r[n]:i}),d.buttonView.bind("ariaLabel").to(a,"value",l,"value",(e,t)=>{let n=t?"paragraph":e;return"boolean"==typeof n?o:r[n]?`${r[n]}, ${o}`:o}),this.listenTo(d,"execute",t=>{let{commandName:n,commandValue:i}=t.source;e.execute(n,i?{value:i}:void 0),e.editing.view.focus()}),d}),e.ui.componentFactory.add("menuBar:heading",i=>{let o=new hi(i),r=e.commands.get("heading"),s=e.commands.get("paragraph"),a=[r],l=new ho(i);for(let c of(o.set({class:"ck-heading-dropdown"}),l.set({ariaLabel:t("Heading"),role:"menu"}),o.buttonView.set({label:t("Heading")}),o.panelView.children.add(l),n)){let t=new ul(i,o),n=new cw(i);t.children.add(n),l.items.add(t),n.set({isToggleable:!0,label:c.title,role:"menuitemradio",class:c.class}),n.delegate("execute").to(o),n.on("execute",()=>{let t="paragraph"===c.model?"paragraph":"heading";e.execute(t,{value:c.model}),e.editing.view.focus()}),"paragraph"===c.model?(n.bind("isOn").to(s,"value"),a.push(s)):n.bind("isOn").to(r,"value",e=>e===c.model)}return o.bind("isEnabled").toMany(a,"isEnabled",(...e)=>e.some(e=>e)),o})}}class pA extends i4{static get requires(){return[pp,pb]}static get pluginName(){return"Heading"}static get isOfficialPlugin(){return!0}}function pw(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot("children")])}function p_(e,t){let n=e.plugins.get("ImageUtils"),i=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return e=>n.isInlineImageView(e)?i&&("block"==e.getStyle("display")||e.findAnce
2stor(n.isBlockImageView)?"imageBlock":"imageInline")!==t?null:function(e){let t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}(e):null}function pC(e,t){let n=ih(t.getSelectedBlocks());return!n||e.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}function pv(e){return e&&e.endsWith("px")?parseInt(e):null}function py(e){let t=pv(e.getStyle("width")),n=pv(e.getStyle("height"));return!(!t||!n)}let px=/^(image|image-inline)$/;class pE extends i4{constructor(){super(...arguments),this._domEmitter=new(nA())}static get pluginName(){return"ImageUtils"}static get isOfficialPlugin(){return!0}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,n=null,i={}){let o=this.editor,r=o.model,s=r.document.selection,a=pD(o,t||s,n);for(let t in e={...Object.fromEntries(s.getAttributes()),...e})r.schema.checkAttribute(a,t)||delete e[t];return r.change(n=>{let{setImageSizes:o=!0}=i,s=n.createElement(a,e);return r.insertObject(s,t,null,{setSelection:"on",findOptimalPosition:t||"imageInline"==a?void 0:"auto"}),s.parent?(o&&this.setImageNaturalSizeAttributes(s),s):null})}setImageNaturalSizeAttributes(e){let t=e.getAttribute("src");t&&(e.getAttribute("width")||e.getAttribute("height")||this.editor.model.change(n=>{let i=new o.window.Image;this._domEmitter.listenTo(i,"load",()=>{e.getAttribute("width")||e.getAttribute("height")||this.editor.model.enqueueChange(n.batch,t=>{t.setAttribute("width",i.naturalWidth,e),t.setAttribute("height",i.naturalHeight,e)}),this._domEmitter.stopListening(i,"load")}),i.src=t}))}getClosestSelectedImageWidget(e){let t=e.getFirstPosition();if(!t)return null;let n=e.getSelectedElement();if(n&&this.isImageWidget(n))return n;let i=t.parent;for(;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}getClosestSelectedImageElement(e){let t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(e){return e.findAncestor({classes:px})}isImageAllowed(){let e=this.editor.model.document.selection;return function(e,t){if("imageBlock"==pD(e,t,null)){let n=function(e,t){let n=gw(e,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,e.model);if(e.model.schema.checkChild(n,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&[...e.focus.getAncestors()].every(e=>!e.is("element","imageBlock"))}toImageWidget(e,t,n){return t.setCustomProperty("image",!0,e),gp(e,t,{label:()=>{let t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${n}`:n}})}isImageWidget(e){return!!e.getCustomProperty("image")&&gm(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;for(let{item:t}of this.editor.editing.view.createRangeIn(e))if(this.isInlineImageView(t))return t}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function pD(e,t,n){let i=e.model.schema,o=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?n||("inline"===o?"imageInline":"auto"!==o?"imageBlock":t.is("selection")?pC(i,t):i.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class pI extends i6{refresh(){let e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){let t=this.editor,n=t.plugins.get("ImageUtils"),i=t.model,o=n.getClosestSelectedImageElement(i.document.selection);i.change(t=>{t.setAttribute("alt",e.newValue,o)})}}class pS extends i4{static get requires(){return[pE]}static get pluginName(){return"ImageTextAlternativeEditing"}static get isOfficialPlugin(){return!0}init(){this.editor.commands.add("imageTextAlternative",new pI(this.editor))}}var pM=r(4062),pB={attributes:{"data-cke":!0}};pB.setAttributes=iY(),pB.insert=iK().bind(null,"head"),pB.domAPI=iG(),pB.insertStyleElement=iZ(),iU()(pM.A,pB),pM.A&&pM.A.locals&&pM.A.locals;var pT=r(2722),pN={attributes:{"data-cke":!0}};pN.setAttributes=iY(),pN.insert=iK().bind(null,"head"),pN.domAPI=iG(),pN.insertStyleElement=iZ(),iU()(pT.A,pN),pT.A&&pT.A.locals&&pT.A.locals;class pP extends i0{constructor(e){super(e);let t=this.locale.t;this.focusTracker=new ig,this.keystrokes=new ik,this.labeledInput=this._createLabeledInputVie
2w(),this.saveButtonView=this._createButton(t("Save"),lZ.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),lZ.cancel,"ck-button-cancel","cancel"),this._focusables=new ix,this._focusCycler=new l8({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),i5({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,n,i){let o=new l4(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}_createLabeledInputView(){let e=this.locale.t,t=new cW(this.locale,dK);return t.label=e("Text alternative"),t}}function pL(e){let t=e.editing.view,n=dk.defaultPositions,i=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(i.getClosestSelectedImageWidget(t.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class pO extends i4{static get requires(){return[uP]}static get pluginName(){return"ImageTextAlternativeUI"}static get isOfficialPlugin(){return!0}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){let e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",n=>{let i=e.commands.get("imageTextAlternative"),o=new l4(n);return o.set({label:t("Change image text alternative"),icon:lZ.textAlternative,tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",e=>!!e),this.listenTo(o,"execute",()=>{this._showForm()}),o})}_createForm(){let e=this.editor,t=e.editing.view.document,n=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(i2(pP))(e.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{e.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",(e,t)=>{this._hideForm(!0),t()}),this.listenTo(e.ui,"update",()=>{n.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){let t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){let n=pL(e);t.updatePosition(n)}}(e):this._hideForm(!0)}),i1({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();let e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:pL(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&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 pz extends i4{static get requires(){return[pS,pO]}static get pluginName(){return"ImageTextAlternative"}static get isOfficialPlugin(){return!0}}function pR(e,t){let n=(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;let o=i.writer,r=i.mapper.toViewElement(n.item),s=e.findViewImgElement(r);null===n.attributeNewValue?(o.removeAttribute("srcset",s),o.removeAttribute("sizes",s)):n.attributeNewValue&&(o.setAttribute("srcset",n.attributeNewValue,
2s),o.setAttribute("sizes","100vw",s))};return e=>{e.on(`attribute:srcset:${t}`,n)}}function pF(e,t,n){let i=(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;let o=i.writer,r=i.mapper.toViewElement(n.item),s=e.findViewImgElement(r);o.setAttribute(n.attributeKey,n.attributeNewValue||"",s)};return e=>{e.on(`attribute:${n}:${t}`,i)}}class pj extends rH{observe(e){this.listenTo(e,"load",(e,t)=>{let n=t.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(t)},{useCapture:!0})}stopObserving(e){this.stopListening(e)}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class pV extends i6{constructor(e){super(e);let t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&_("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&_("image-inline-plugin-required")}refresh(){let e=this.editor.plugins.get("ImageUtils");this.isEnabled=e.isImageAllowed()}execute(e){let t=n2(e.source),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(n.getAttributes());t.forEach((t,r)=>{let s=n.getSelectedElement();if("string"==typeof t&&(t={src:t}),r&&s&&i.isImage(s)){let n=this.editor.model.createPositionAfter(s);i.insertImage({...t,...o},n,e.imageType)}else i.insertImage({...t,...o},null,e.imageType)})}}class pH extends i6{constructor(e){super(e),this.decorate("cleanupImage")}refresh(){let e=this.editor.plugins.get("ImageUtils"),t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(t),this.value=this.isEnabled?t.getAttribute("src"):null}execute(e){let t=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(i=>{i.setAttribute("src",e.source,t),this.cleanupImage(i,t),n.setImageNaturalSizeAttributes(t)})}cleanupImage(e,t){e.removeAttribute("srcset",t),e.removeAttribute("sizes",t),e.removeAttribute("sources",t),e.removeAttribute("width",t),e.removeAttribute("height",t),e.removeAttribute("alt",t)}}class pU extends i4{static get requires(){return[pE]}static get pluginName(){return"ImageEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.conversion;e.editing.view.addObserver(pj),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});let n=new pV(e),i=new pH(e);e.commands.add("insertImage",n),e.commands.add("replaceImageSource",i),e.commands.add("imageInsert",n)}}class pq extends i4{static get requires(){return[pE]}static get pluginName(){return"ImageSizeAttributes"}static get isOfficialPlugin(){return!0}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(e){let t=this.editor,n=t.plugins.get("ImageUtils"),i="imageBlock"===e?"figure":"img";function o(t,i,o,r){t.on(`attribute:${i}:${e}`,(t,i,s)=>{if(!s.consumable.consume(i.item,t.name))return;let a=s.writer,l=s.mapper.toViewElement(i.item),c=n.findViewImgElement(l);if(null!==i.attributeNewValue?a.setAttribute(o,i.attributeNewValue,c):a.removeAttribute(o,c),i.item.hasAttribute("sources"))return;let d=i.item.hasAttribute("resizedWidth");if("imageInline"===e&&!d&&!r)return;let u=i.item.getAttribute("width"),h=i.item.getAttribute("height");u&&h&&a.setStyle("aspect-ratio",`${u}/${h}`,c)})}t.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:e=>py(e)?pv(e.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:e=>py(e)?pv(e.getStyle("height")):null}}).attributeToAttribute({view:{name:i,key:"height"},model:"height"}),t.conversion.for("editingDowncast").add(e=>{o(e,"width","width",!0),o(e,"height","height",!0)}),t.conversion.for("dataDowncast").add(e=>{o(e,"width","width",!1),o(e,"height","height",!1)})}}class pG extends i6{constructor(e,t){super(e),this._modelElementName=t}refresh(){let e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(e={}){let t=this.editor,n=this.editor.model,i=t.plugins.get("ImageUtils"),o=i.getClosestSelectedImageElement(n.document.selection),r=Object.fromEntries(o.getAttributes());return r.src||r.uploadId?n.change(t=>{let{setImageSizes:s=!0}=e,a=Array.from(n.markers).filter(e=>e.getRange().containsItem(o)),l=i.insertImage(r,n.createSelection(o,"on"),this._modelElementName,{setImageSizes:s});if(!l)return null;
2let c=t.createRangeOn(l);for(let e of a){let n=e.getRange(),i="$graveyard"!=n.root.rootName?n.getJoined(c,!0):c;t.updateMarker(e,{range:i})}return{oldElement:o,newElement:l}}):null}}var pW=r(7378),pK={attributes:{"data-cke":!0}};pK.setAttributes=iY(),pK.insert=iK().bind(null,"head"),pK.domAPI=iG(),pK.insertStyleElement=iZ(),iU()(pW.A,pK),pW.A&&pW.A.locals&&pW.A.locals;class p$ extends i4{static get requires(){return[pE]}static get pluginName(){return"ImagePlaceholder"}static get isOfficialPlugin(){return!0}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){let e=this.editor.model.schema;e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["placeholder"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){let e=this.editor,t=e.conversion,n=e.plugins.get("ImageUtils");t.for("editingDowncast").add(e=>{e.on("attribute:placeholder",(e,t,i)=>{if(!i.consumable.test(t.item,e.name)||!t.item.is("element","imageBlock")&&!t.item.is("element","imageInline"))return;i.consumable.consume(t.item,e.name);let o=i.writer,r=i.mapper.toViewElement(t.item),s=n.findViewImgElement(r);t.attributeNewValue?(o.addClass("image_placeholder",s),o.setStyle("background-image",`url(${t.attributeNewValue})`,s),o.setCustomProperty("editingPipeline:doNotReuseOnce",!0,s)):(o.removeClass("image_placeholder",s),o.removeStyle("background-image",s))})})}_setupLoadListener(){let e=this.editor,t=e.model,n=e.editing,i=n.view,o=e.plugins.get("ImageUtils");i.addObserver(pj),this.listenTo(i.document,"imageLoaded",(e,r)=>{let s=i.domConverter.mapDomToView(r.target);if(!s)return;let a=o.getImageWidgetFromImageView(s);if(!a)return;let l=n.mapper.toModelElement(a);l&&l.hasAttribute("placeholder")&&t.enqueueChange({isUndoable:!1},e=>{e.removeAttribute("placeholder",l)})})}}class pY extends i4{static get requires(){return[pU,pq,pE,p$,hM]}static get pluginName(){return"ImageBlockEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new pG(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){let e=this.editor,t=e.t,n=e.conversion,i=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:t})=>pw(t)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:n})=>i.toImageWidget(pw(n),n,t("image widget"))}),n.for("downcast").add(pF(i,"imageBlock","src")).add(pF(i,"imageBlock","alt")).add(pR(i,"imageBlock")),n.for("upcast").elementToElement({view:p_(e,"imageBlock"),model:(e,{writer:t})=>t.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:void 0)}).add(function(e){let t=(t,n,i)=>{if(!i.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;let o=e.findViewImgElement(n.viewItem);if(!o||!i.consumable.test(o,{name:!0}))return;i.consumable.consume(n.viewItem,{name:!0,classes:"image"});let r=ih(i.convertItem(o,n.modelCursor).modelRange.getItems());r?(i.convertChildren(n.viewItem,r),i.updateConversionResult(r,n)):i.consumable.revert(n.viewItem,{name:!0,classes:"image"})};return e=>{e.on("element:figure",t)}}(i))}_setupClipboardIntegration(){let e=this.editor,t=e.model,n=e.editing.view,i=e.plugins.get("ImageUtils"),o=e.plugins.get("ClipboardPipeline");this.listenTo(o,"inputTransformation",(o,r)=>{let s;let a=Array.from(r.content.getChildren());if(!a.every(i.isInlineImageView))return;s=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();let l=t.createSelection(s);if("imageBlock"===pC(t.schema,l)){let e=new lT(n.document),t=a.map(t=>e.createElement("figure",{class:"image"},t));r.content=e.createDocumentFragment(t)}}),this.listenTo(o,"contentInsertion",(e,n)=>{"paste"===n.method&&t.change(e=>{for(let t of e.createRangeIn(n.content).getItems())t.is("element","imageBlock")&&i.setImageNaturalSizeAttributes(t)})})}}var pQ=r(3350),pZ={attributes:{"data-cke":!0}};pZ.setAttributes=iY(),pZ.insert=iK().bind(null,"head"),pZ.domAPI=iG(),pZ.insertStyleElement=iZ(),iU()(pQ.A,pZ),pQ.A&&pQ.A.locals&&pQ.A.locals;class pJ extends i0{constructor(e,t=[]){for(let n of(super(e),this.focusTracker=new ig,this.keystrokes=new ik,this._focusables=new ix,this.children=this.createCollection(),this._focusCycler=new l8({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),t))this.children.add(n),this._focusables.add(n),n instanceof cV&&this._focusables.addMany(n.children);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){for(let e of(super.render(),i5({view:this}),this._focusables))this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);let e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class pX extends i4{constructor(e){super(e),this._integrations=new Map,e.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get isOfficialPlugin(){return!0}static get requires(){return[pE]}init(){let e=this.editor,t=e.model.document.selection,n=e.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(e.model.document,"change",()=>{this.isImageSelected=n.isImage(t.getSelectedElement())});let i=e=>this._createToolbarComponent(e);e.ui.componentFactory.add("insertImage",i),e.ui.componentFactory.add("imageInsert",i),e.ui.componentFactory.add("menuBar:insertImage",e=>this._createMenuBarComponent(e))}registerIntegration({name:e,observable:t,buttonViewCreator:n,formViewCreator:i,menuBarButtonViewCreator:o,requiresForm:r=!1}){this._integrations.has(e)&&_("image-insert-integration-exists",{name:e}),this._integrations.set(e,{observable:t,buttonViewCreator:n,menuBarButtonViewCreator:o,formViewCreator:i,requiresForm:r})}_createToolbarComponent(e){let t;let n=this.editor,i=e.t,o=this._prepareIntegrations();if(!o.length)return null;let r=o[0];if(1==o.length){if(!r.requiresForm)return r.buttonViewCreator(!0);t=r.buttonViewCreator(!0)}
2else(t=new dO(e,r.buttonViewCreator(!1))).tooltip=!0,t.bind("label").to(this,"isImageSelected",e=>i(e?"Replace image":"Insert image"));let s=this.dropdownView=dV(e,t),a=o.map(({observable:e})=>"function"==typeof e?e():e);return s.bind("isEnabled").toMany(a,"isEnabled",(...e)=>e.some(e=>e)),s.once("change:isOpen",()=>{let e=o.map(({formViewCreator:e})=>e(1==o.length)),t=new pJ(n.locale,e);s.panelView.children.add(t)}),s}_createMenuBarComponent(e){let t;let n=e.t,i=this._prepareIntegrations();if(!i.length)return null;let o=i[0];if(1==i.length)t=o.menuBarButtonViewCreator(!0);else{t=new hi(e);let o=new ho(e);for(let r of(t.panelView.children.add(o),t.buttonView.set({icon:lZ.image,label:n("Image")}),i)){let n=new ul(e,t),i=r.menuBarButtonViewCreator(!1);n.children.add(i),o.items.add(n)}}return t}_prepareIntegrations(){let e=this.editor.config.get("image.insert.integrations"),t=[];if(!e.length)return _("image-insert-integrations-not-specified"),t;for(let n of e)this._integrations.has(n)?t.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||_("image-insert-unknown-integration",{item:n});return t.length||_("image-insert-integrations-not-registered"),t}}var p0=r(265),p1={attributes:{"data-cke":!0}};p1.setAttributes=iY(),p1.insert=iK().bind(null,"head"),p1.domAPI=iG(),p1.insertStyleElement=iZ(),iU()(p0.A,p1),p0.A&&p0.A.locals&&p0.A.locals;class p2 extends i4{static get requires(){return[pY,gL,pz,pX]}static get pluginName(){return"ImageBlock"}static get isOfficialPlugin(){return!0}}class p5 extends i4{static get requires(){return[pU,pq,pE,p$,hM]}static get pluginName(){return"ImageInlineEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.model.schema.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"],disallowIn:["caption"]}),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new pG(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){let e=this.editor,t=e.t,n=e.conversion,i=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(e,{writer:t})=>t.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(e,{writer:n})=>i.toImageWidget(n.createContainerElement("span",{class:"image-inline"},n.createEmptyElement("img")),n,t("image widget"))}),n.for("downcast").add(pF(i,"imageInline","src")).add(pF(i,"imageInline","alt")).add(pR(i,"imageInline")),n.for("upcast").elementToElement({view:p_(e,"imageInline"),model:(e,{writer:t})=>t.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){let e=this.editor,t=e.model,n=e.editing.view,i=e.plugins.get("ImageUtils"),o=e.plugins.get("ClipboardPipeline");this.listenTo(o,"inputTransformation",(o,r)=>{let s;let a=Array.from(r.content.getChildren());if(!a.every(i.isBlockImageView))return;s=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();let l=t.createSelection(s);if("imageInline"===pC(t.schema,l)){let e=new lT(n.document),t=a.map(t=>1===t.childCount?(Array.from(t.getAttributes()).forEach(n=>e.setAttribute(...n,i.findViewImgElement(t))),t.getChild(0)):t);r.content=e.createDocumentFragment(t)}}),this.listenTo(o,"contentInsertion",(e,n)=>{"paste"===n.method&&t.change(e=>{for(let t of e.createRangeIn(n.content).getItems())t.is("element","imageInline")&&i.setImageNaturalSizeAttributes(t)})})}}class p4 extends i4{static get requires(){return[p5,gL,pz,pX]}static get pluginName(){return"ImageInline"}static get isOfficialPlugin(){return!0}}class p3 extends i4{static get requires(){return[p2,p4]}static get pluginName(){return"Image"}static get isOfficialPlugin(){return!0}}class p6 extends i4{static get pluginName(){return"ImageCaptionUtils"}static get isOfficialPlugin(){return!0}static get requires(){return[pE]}getCaptionFromImageModelElement(e){for(let t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}getCaptionFromModelSelection(e){let t=this.editor.plugins.get("ImageUtils"),n=e.getFirstPosition().findAnce
2stor("caption");return n&&t.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(e){let t=this.editor.plugins.get("ImageUtils");return"figcaption"==e.name&&t.isBlockImageView(e.parent)?{name:!0}:null}}class p7 extends i6{refresh(){let e=this.editor,t=e.plugins.get("ImageCaptionUtils"),n=e.plugins.get("ImageUtils");if(!e.plugins.has(pY))return this.isEnabled=!1,void(this.value=!1);let i=e.model.document.selection,o=i.getSelectedElement();if(!o){let e=t.getCaptionFromModelSelection(i);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=n.isImage(o),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(o):this.value=!1}execute(e={}){let{focusCaptionOnShow:t}=e;this.editor.model.change(e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)})}_showImageCaption(e,t){let n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageCaptionEditing"),o=this.editor.plugins.get("ImageUtils"),r=n.getSelectedElement(),s=i._getSavedCaption(r);o.isInlineImage(r)&&(this.editor.execute("imageTypeBlock"),r=n.getSelectedElement());let a=s||e.createElement("caption");e.append(a,r),t&&e.setSelection(a,"in")}_hideImageCaption(e){let t=this.editor,n=t.model.document.selection,i=t.plugins.get("ImageCaptionEditing"),o=t.plugins.get("ImageCaptionUtils"),r,s=n.getSelectedElement();s?r=o.getCaptionFromImageModelElement(s):s=(r=o.getCaptionFromModelSelection(n)).parent,i._saveCaption(s,r),e.setSelection(s,"on"),e.remove(r)}}class p9 extends i4{static get requires(){return[pE,p6]}static get pluginName(){return"ImageCaptionEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){let e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new p7(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){let e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),o=e.t;e.conversion.for("upcast").elementToElement({view:e=>i.matchImageCaptionViewElement(e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>n.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:i})=>{if(!n.isBlockImage(e.parent))return null;let r=i.createEditableElement("figcaption");i.setCustomProperty("imageCaption",!0,r),r.placeholder=o("Enter image caption"),os({view:t,element:r,keepOnFocus:!0});let s=e.parent.getAttribute("alt");return gA(r,i,{label:s?o("Caption for image: %0",[s]):o("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){let e=this.editor,t=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),i=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),r=e=>{if(!e.return)return;let{oldElement:i,newElement:o}=e.return;if(!i)return;if(t.isBlockImage(i)){let e=n.getCaptionFromImageModelElement(i);if(e)return void this._saveCaption(o,e)}let 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(e){let t=this._savedCaptionsMap.get(e);return t?sM.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){let e=this.editor,t=e.model,n=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",()=>{for(let o of t.document.differ.getChanges()){if("alt"!==o.attributeKey)continue;let t=o.range.start.nodeAfter;if(n.isBlockImage(t)){let n=i.getCaptionFromImageModelElement(t);if(!n)return;e.editing.reconvertItem(n)}}})}}class p8 extends i4{static get requires(){return[p6]}static get pluginName(){return"ImageCaptionUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.editing.view,n=e.plugins.get("ImageCaptionUtils"),i=e.t;e.ui.componentFactory.add("toggleImageCaption",o=>{let r=e.commands.get("toggleImageCaption"),s=new l4(o);return s.set({icon:lZ.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.bind("label").to(r,"value",e=>i(e?"Toggle caption off":"Toggle caption on")),this.listenTo(s,"execute",()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});let i=n.getCaptionFromModelSelection(e.model.document.selection);if(i){let n=e.editing.mapper.toViewElement(i);t.scrollToTheSelection(),t.change(e=>
2{e.addClass("image__caption_highlighted",n)})}e.editing.view.focus()}),s})}}var ke=r(5247),kt={attributes:{"data-cke":!0}};kt.setAttributes=iY(),kt.insert=iK().bind(null,"head"),kt.domAPI=iG(),kt.insertStyleElement=iZ(),iU()(ke.A,kt),ke.A&&ke.A.locals&&ke.A.locals;class kn extends i4{static get requires(){return[p9,p8]}static get pluginName(){return"ImageCaption"}static get isOfficialPlugin(){return!0}}function ki(e){let t=e.map(e=>e.replace("+","\\+"));return RegExp(`^image\\/(${t.join("|")})$`)}function ko(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class kr extends i4{static get pluginName(){return"ImageUploadUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add("uploadImage",()=>this._createToolbarButton()),e.ui.componentFactory.add("imageUpload",()=>this._createToolbarButton()),e.ui.componentFactory.add("menuBar:uploadImage",()=>this._createMenuBarButton("standalone")),e.plugins.has("ImageInsertUI")&&e.plugins.get("ImageInsertUI").registerIntegration({name:"upload",observable:()=>e.commands.get("uploadImage"),buttonViewCreator:()=>this._createToolbarButton(),formViewCreator:()=>this._createDropdownButton(),menuBarButtonViewCreator:e=>this._createMenuBarButton(e?"insertOnly":"insertNested")})}_createButton(e){let t=this.editor,n=t.locale,i=t.commands.get("uploadImage"),o=t.config.get("image.upload.types"),r=ki(o),s=new e(t.locale),a=n.t;return s.set({acceptedType:o.map(e=>`image/${e}`).join(","),allowMultipleFiles:!0,label:a("Upload from computer"),icon:lZ.imageUpload}),s.bind("isEnabled").to(i),s.on("done",(e,n)=>{let i=Array.from(n).filter(e=>r.test(e.type));i.length&&(t.execute("uploadImage",{file:i}),t.editing.view.focus())}),s}_createToolbarButton(){let e=this.editor.locale.t,t=this.editor.plugins.get("ImageInsertUI"),n=this.editor.commands.get("uploadImage"),i=this._createButton(cP);return i.tooltip=!0,i.bind("label").to(t,"isImageSelected",n,"isAccessAllowed",(t,n)=>e(n?t?"Replace image from computer":"Upload image from computer":"You have no image upload permissions.")),i}_createDropdownButton(){let e=this.editor.locale.t,t=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(cP);return n.withText=!0,n.bind("label").to(t,"isImageSelected",t=>e(t?"Replace from computer":"Upload from computer")),n.on("execute",()=>{t.dropdownView.isOpen=!1}),n}_createMenuBarButton(e){let t=this.editor.locale.t,n=this._createButton(hs);switch(n.withText=!0,e){case"standalone":n.label=t("Image from computer");break;case"insertOnly":n.label=t("Image");break;case"insertNested":n.label=t("From computer")}return n}}var ks=r(2267),ka={attributes:{"data-cke":!0}};ka.setAttributes=iY(),ka.insert=iK().bind(null,"head"),ka.domAPI=iG(),ka.insertStyleElement=iZ(),iU()(ks.A,ka),ks.A&&ks.A.locals&&ks.A.locals;var kl=r(7693),kc={attributes:{"data-cke":!0}};kc.setAttributes=iY(),kc.insert=iK().bind(null,"head"),kc.domAPI=iG(),kc.insertStyleElement=iZ(),iU()(kl.A,kc),kl.A&&kl.A.locals&&kl.A.locals;var kd=r(1559),ku={attributes:{"data-cke":!0}};ku.setAttributes=iY(),ku.insert=iK().bind(null,"head"),ku.domAPI=iG(),ku.insertStyleElement=iZ(),iU()(kd.A,ku),kd.A&&kd.A.locals&&kd.A.locals;class kh extends i4{constructor(e){super(e),this.uploadStatusChange=(e,t,n)=>{let i=this.editor,o=t.item,r=o.getAttribute("uploadId");if(!n.consumable.consume(t.item,e.name))return;let s=i.plugins.get("ImageUtils"),a=i.plugins.get(ms),l=r?t.attributeNewValue:null,c=this.placeholder,d=i.editing.mapper.toViewElement(o),u=n.writer;if("reading"==l)return kg(d,u),void km(s,c,d,u);if("uploading"==l){let e=a.loaders.get(r);return kg(d,u),void(e?(kp(d,u),function(e,t,n,i){let o=function(e){let t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),o),n.on("change:uploadedPercent",(e,t,n)=>{i.change(e=>{e.setStyle("width",n+"%",o)})})}(d,u,e,i.editing.view),function(e,t,n,i){if(i.data){let o=e.findViewImgElement(t);n.setAttribute("src",i.data,o)}}(s,d,u,e)):km(s,c,d,u))}"complete"==l&&a.loaders.get(r)&&function(e,t,n){let i=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),i),setTimeout(()=>{n.change(e=>e.remove(e.createRangeOn(i)))},3e3)}(d,u,i.editing.view),kf(d,u,"progressBar"),kp(d,u),function(e,t){t.removeClass("ck-appear",e)}(d,u)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function kg(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function km(e,t,n,i){n.hasClass("ck-image-upload-placeholder")||i.addClass("ck-image-upload-placeholder",n);let o=e.findViewImgElement(n);o.getAttribute("src")!==t&&i.setAttribute("src",t,o),kk(n,"placeholder")||i.insert(i.createPositionAfter(o
2),function(e){let t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(i))}function kp(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),kf(e,t,"placeholder")}function kk(e,t){for(let n of e.getChildren())if(n.getCustomProperty(t))return n}function kf(e,t,n){let i=kk(e,n);i&&t.remove(t.createRangeOn(i))}class kb extends i6{constructor(e){super(e),this.set("isAccessAllowed",!0)}refresh(){let e=this.editor,t=e.plugins.get("ImageUtils"),n=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(n)}execute(e){let t=n2(e.file),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(n.getAttributes());t.forEach((e,t)=>{let r=n.getSelectedElement();if(t&&r&&i.isImage(r)){let t=this.editor.model.createPositionAfter(r);this._uploadImage(e,o,t)}else this._uploadImage(e,o)})}_uploadImage(e,t,n){let i=this.editor,o=i.plugins.get(ms).createLoader(e),r=i.plugins.get("ImageUtils");o&&r.insertImage({...t,uploadId:o.id},n)}}class kA extends i4{static get requires(){return[ms,uD,hM,pE]}static get pluginName(){return"ImageUploadEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){let e=this.editor,t=e.model.document,n=e.conversion,i=e.plugins.get(ms),r=e.plugins.get("ImageUtils"),s=e.plugins.get("ClipboardPipeline"),a=ki(e.config.get("image.upload.types")),l=new kb(e);e.commands.add("uploadImage",l),e.commands.add("imageUpload",l),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(t,n)=>{var i;if(Array.from((i=n.dataTransfer).types).includes("text/html")&&""!==i.getData("text/html"))return;let o=Array.from(n.dataTransfer.files).filter(e=>!!e&&a.test(e.type));if(o.length&&(t.stop(),e.model.change(t=>{n.targetRanges&&t.setSelection(n.targetRanges.map(t=>e.editing.mapper.toModelRange(t))),e.execute("uploadImage",{file:o})}),!e.commands.get("uploadImage").isAccessAllowed)){let t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("You have no image upload permissions."),{namespace:"image"})}}),this.listenTo(s,"inputTransformation",(t,n)=>{let s=Array.from(e.editing.view.createRangeIn(n.content)).map(e=>e.item).filter(e=>!(!r.isInlineImageView(e)||!e.getAttribute("src")||!e.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!e.getAttribute("src").match(/^blob:/g))&&!e.getAttribute("uploadProcessed")).map(e=>({promise:new Promise((t,n)=>{let i=e.getAttribute("src");fetch(i).then(e=>e.blob()).then(e=>{let n=ko(e,i),o=n.replace("image/","");t(new File([e],`image.${o}`,{type:n}))}).catch(e=>e&&"TypeError"===e.name?new Promise((e,t)=>{let n=o.document.createElement("img");n.addEventListener("load",()=>{let i=o.document.createElement("canvas");i.width=n.width,i.height=n.height,i.getContext("2d").drawImage(n,0,0),i.toBlob(n=>n?e(n):t())}),n.addEventListener("error",()=>t()),n.src=i}).then(e=>{let t=ko(e,i),n=t.replace("image/","");return new File([e],`image.${n}`,{type:t})}).then(t).catch(n):n(e))}),imageElement:e}));if(!s.length)return;let a=new lT(e.editing.view.document);for(let e of s){a.setAttribute("uploadProcessed",!0,e.imageElement);let t=i.createLoader(e.promise);t&&(a.setAttribute("src","",e.imageElement),a.setAttribute("uploadId",t.id,e.imageElement))}}),e.editing.view.document.on("dragover",(e,t)=>{t.preventDefault()}),t.on("change",()=>{let n=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(let t of n)if("insert"==t.type&&"$text"!=t.name){let n=t.position.nodeAfter,r="$graveyard"==t.position.root.rootName;for(let t of function(e,t){let n=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter(e=>n.isImage(e.item)).map(e=>e.item)}(e,n)){let e=t.getAttribute("uploadId");if(!e)continue;let n=i.loaders.get(e);n&&(r?o.has(e)||n.abort():(o.add(e),this._uploadImageElements.set(e,t),"idle"==n.status&&this._readAndUpload(n)))}}}),this.on("uploadComplete",(e,{imageElement:t,data:n})=>{let i=n.urls?n.urls:n;this.editor.model.change(e=>{e.setAttribute("src",i.default,t),this._parseAndSetSrcsetAttributeOnImage(i,t,e),r.setImageNaturalSizeAttributes(t)})},{priority:"low"})}afterInit(){let e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){let t=this.editor,n=t.model,i=t.locale.t,o=t.plugins.get(ms),r=t.plugins.get(uD),s=t.plugins.get("ImageUtils"),a=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},t=>{t.setAttribute("uploadStatus","reading",a.get(e.id))}),e.read().then(()=>{let o=e.upload(),r=a.get(e.id);if(l.isSafari){let e=t.editing.mapper.toViewElement(r),n=s.findViewImgElement(e);t.editing.view.once("render",()=>{if(!n.parent)return;let e=t.editing.view.domConverter.mapViewToDom(n.parent);if(!e)return;let i=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=i})}return t.ui&&t.ui.ariaLiveAnnouncer.announce(i("Uploading image")),n.enqueueChange({isUndoable:!1},e=>
2{e.setAttribute("uploadStatus","uploading",r)}),o}).then(o=>{n.enqueueChange({isUndoable:!1},n=>{let r=a.get(e.id);n.setAttribute("uploadStatus","complete",r),t.ui&&t.ui.ariaLiveAnnouncer.announce(i("Image upload complete")),this.fire("uploadComplete",{data:o,imageElement:r})}),c()}).catch(o=>{if(t.ui&&t.ui.ariaLiveAnnouncer.announce(i("Error during image upload")),"error"!==e.status&&"aborted"!==e.status)throw o;"error"==e.status&&o&&r.showWarning(o,{title:i("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},t=>{t.remove(a.get(e.id))}),c()});function c(){n.enqueueChange({isUndoable:!1},t=>{let n=a.get(e.id);t.removeAttribute("uploadId",n),t.removeAttribute("uploadStatus",n),a.delete(e.id)}),o.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,n){let i=0,o=Object.keys(e).filter(e=>{let t=parseInt(e,10);if(!isNaN(t))return i=Math.max(i,t),!0}).map(t=>`${e[t]} ${t}w`).join(", ");if(""!=o){let e={srcset:o};t.hasAttribute("width")||t.hasAttribute("height")||(e.width=i),n.setAttributes(e,t)}}}class kw extends i4{static get pluginName(){return"ImageUpload"}static get isOfficialPlugin(){return!0}static get requires(){return[kA,kr,kh]}}var k_=r(4642),kC={attributes:{"data-cke":!0}};kC.setAttributes=iY(),kC.insert=iK().bind(null,"head"),kC.domAPI=iG(),kC.insertStyleElement=iZ(),iU()(k_.A,kC),k_.A&&k_.A.locals&&k_.A.locals;var kv=r(3469),ky={attributes:{"data-cke":!0}};ky.setAttributes=iY(),ky.insert=iK().bind(null,"head"),ky.domAPI=iG(),ky.insertStyleElement=iZ(),iU()(kv.A,ky),kv.A&&kv.A.locals&&kv.A.locals;class kx extends i6{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map(e=>{if(e.isDefault)for(let t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]}))}refresh(){let e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){let t=this.editor,n=t.model,i=t.plugins.get("ImageUtils");n.change(t=>{let o=e.value,{setImageSizes:r=!0}=e,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?t.removeAttribute("imageStyle",s):t.setAttribute("imageStyle",o,s),r&&i.setImageNaturalSizeAttributes(s)})}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}let kE={get inline(){return{name:"inline",title:"In line",icon:lZ.objectInline,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:lZ.objectLeft,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:lZ.objectBlockLeft,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:lZ.objectCenter,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:lZ.objectRight,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:lZ.objectBlockRight,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:lZ.objectCenter,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:lZ.objectRight,modelElements:["imageBlock"],className:"image-style-side"}}},kD={full:lZ.objectFullWidth,left:lZ.objectBlockLeft,right:lZ.objectBlockRight,center:lZ.objectCenter,inlineLeft:lZ.objectLeft,inlineRight:lZ.objectRight,inline:lZ.objectInline},kI=[{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 kS(e){_("image-style-configuration-definition-invalid",e)}let kM={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map(e=>{var t;return"string"==typeof(t="string"==typeof(t=e)?kE[t]?{...kE[t]}:{name:t}:function(e,t){let n={...t};for(let i in e)Object.prototype.hasOwnProperty.call(t,i)||(n[i]=e[i]);return n}(kE[t.name],t)).icon&&(t.icon=kD[t.icon]||t.icon),t}).filter(t=>(function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:n}){let{modelElements:i,name:o}=e;if(!(i&&i.length&&o))return kS({style:e}),!1;{let o=[t?"imageBlock":null,n?"imageInline":null];if(!i.some(e=>o.includes(e)))return _("image-style-missing-dependency",{style:e,missingPlugins:i.map(e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0})(t,e))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...kI]:[]}
2,warnInvalidStyle:kS,DEFAULT_OPTIONS:kE,DEFAULT_ICONS:kD,DEFAULT_DROPDOWN_DEFINITIONS:kI};function kB(e,t){for(let n of t)if(n.name===e)return n}class kT extends i4{static get pluginName(){return"ImageStyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[pE]}init(){let{normalizeStyles:e,getDefaultStylesConfiguration:t}=kM,n=this.editor,i=n.plugins.has("ImageBlockEditing"),o=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(i,o)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:o}),this._setupConversion(i,o),this._setupPostFixer(),n.commands.add("imageStyle",new kx(n,this.normalizedStyles))}_setupConversion(e,t){var n;let i=this.editor,o=i.model.schema,r=(n=this.normalizedStyles,(e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;let o=kB(t.attributeNewValue,n),r=kB(t.attributeOldValue,n),s=i.mapper.toViewElement(t.item),a=i.writer;r&&a.removeClass(r.className,s),o&&a.addClass(o.className,s)}),s=function(e){let t={imageInline:e.filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:e.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))};return(e,n,i)=>{if(!n.modelRange)return;let o=n.viewItem,r=ih(n.modelRange.getItems());if(r&&i.schema.checkAttribute(r,"imageStyle"))for(let e of t[r.name])i.consumable.consume(o,{classes:e.className})&&i.writer.setAttribute("imageStyle",e.name,r)}}(this.normalizedStyles);i.editing.downcastDispatcher.on("attribute:imageStyle",r),i.data.downcastDispatcher.on("attribute:imageStyle",r),e&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),t&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){let e=this.editor,t=e.model.document,n=e.plugins.get(pE),i=new Map(this.normalizedStyles.map(e=>[e.name,e]));t.registerPostFixer(e=>{let o=!1;for(let r of t.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let t="insert"==r.type?r.position.nodeAfter:r.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!n.isImage(t))continue;let s=t.getAttribute("imageStyle");if(!s)continue;let a=i.get(s);a&&a.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),o=!0)}return o})}}var kN=r(6386),kP={attributes:{"data-cke":!0}};kP.setAttributes=iY(),kP.insert=iK().bind(null,"head"),kP.domAPI=iG(),kP.insertStyleElement=iZ(),iU()(kN.A,kP),kN.A&&kN.A.locals&&kN.A.locals;class kL extends i4{static get requires(){return[kT]}static get pluginName(){return"ImageStyleUI"}static get isOfficialPlugin(){return!0}get localizedDefaultStylesTitles(){let e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){let e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],n=kO(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(let e of n)this._createButton(e);for(let i of kO([...t.filter(O),...kM.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles))this._createDropdown(i,n)}_createDropdown(e,t){let n=this.editor.ui.componentFactory;n.add(e.name,i=>{let o;let{defaultItem:r,items:s,title:a}=e,l=s.filter(e=>t.find(({name:t})=>kz(t)===e)).map(e=>{let t=n.create(e);return e===r&&(o=t),t});s.length!==l.length&&kM.warnInvalidStyle({dropdown:e});let c=dV(i,dO),d=c.buttonView,u=d.arrowView;return dH(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:(a?a+": ":"")+o.label,class:null,tooltip:!0}),u.unbind("label"),u.set({label:a}),d.bind("icon").toMany(l,"isOn",(...e)=>{let t=e.findIndex(n9);return t<0?o.icon:l[t].icon}),d.bind("label").toMany(l,"isOn",(...e)=>{let t=e.findIndex(n9);return(a?a+": ":"")+(t<0?o.label:l[t].label)}),d.bind("isOn").toMany(l,"isOn",(...e)=>e.some(n9)),d.bind("class").toMany(l,"isOn",(...e)=>e.some(n9)?"ck-splitbutton_flatten":void 0),d.on("execute",()=>{l.some(({isOn:e})=>e)?c.isOpen=!c.isOpen:o.fire("execute")}),c.bind("isEnabled").toMany(l,"isEnabled",(...e)=>e.some(n9)),this.listenTo(c,"execute",()=>{this.editor.editing.view.focus()}),c})}_createButton(e){let t=e.name;this.editor.ui.componentFactory.add(kz(t),n=>{let i=this.editor.commands.get("imageStyle"),o=new l4(n);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",e=>e===t),o.on("execute",this._executeCommand.bind(this,t)),o})}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function kO(e,t){for(let n of e)t[n.title]&&(n.title=t[n.title]);return e}function kz(e){return`imageStyle:${e}`}class kR extends i4{static get requires(){return[kT,kL]}static get pluginName(){return"ImageStyle"}static get isOfficialPlugin(){return!0}}class kF extends i4{static get requires(){return[gO,pE]}static get pluginName(){return"ImageToolbar"}static get isOfficialPlugin(){return!0}afterInit(){let e=this.editor,t=e.t,n=e.plugins.get(gO),i=e.plugins.get("ImageUtils");n.register("image",{ariaLabel:t("Image toolbar"),items:(e.config.get("image.toolbar")||[]).map(e=>O(e)?e.name:e),getRelatedElement:e=>i.getClosestSelectedImageWidget(e)})}}class kj extends i4{static get requires(){return[pU,pE]}static get pluginName(){return"PictureEditing"}static get isOfficialPlugin(){return!0}afterInit(){let e=this.editor;e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){let e=this.editor,t=e.conversion,n=e.plugins.get("ImageUtils");t.for("upcast").add(function(e){let t=["srcset","media","type","sizes"],n=(n,i,o)=>{let r=i.viewItem;if(!o.consumable.test(r,{name:!0}))return;let s=new Map;for(let e of r.getChildren())if(e.is("element","source")){let n={};for(let i of t)e.hasAttribute(i)&&o.consumable.test(e,{attributes:i})&&(n[i]=e.getAttribute(i));Object.keys(n).length&&s.set(e,n)}let a=e.findViewImgElement(r);if(!a)return;let l=i.modelCursor.parent;if(!l.is("element","imageBlock")){let e=o.convertItem(a,i.modelCursor);i.modelRange=e.modelRange,i.modelCursor=e.modelCursor,l=ih(e.modelRange.getItems())}for(let[e,t]of(o.consumable.consume(r,{name:!0}),s))o.consumable.consume(e,{attributes:Object.keys(t)});s.size&&o.writer.setAttribute("sources",Array.from(s.values()),l),o.convertChildren(r,l)};return e=>{e.on("element:picture",n)}}(n)),t.for("downcast").add(function(e){let t=(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;let o=i.writer,r=i.mapper.toViewElement(n.item),s=e.findViewImgElement(r),a=n.attributeNewValue;if(a&&a.length){let e=[],t=s.parent;for(;t&&t.is("attributeElement");){let n=t.parent;o.unwrap(o.createRangeOn(s),t),e.unshift(t),t=n}let n=s.parent.is("element","picture"),i=n?s.parent:o.createContainerElement("picture",null);for(let t of(n||o.insert(o.createPositionBefore(s),i),o.remove(o.createRangeIn(i)),o.insert(o.createPositionAt(i,"end"),a.map(e=>o.createEmptyElement("source",e))),o.move(o.createRangeOn(s),o.createPositionAt(i,"end")),e))o.wrap(o.createRangeOn(i),t)}else if(s.parent.is("element","picture")){let e=s.parent;o.move(o.createRangeOn(s),o.createPositionBefore(e)),o.remove(e)}};return e=>{e.on("attribute:sources:imageBlock",t),e.on("attribute:sources:imageInline",t)}}(n))}_setupImageUploadEditingIntegration(){let e=this.editor;if(!e.plugins.has("ImageUploadEditing"))return;let t=e.plugins.get("ImageUploadEditing");this.listenTo(t,"uploadComplete",(t,{imageElement:n,data:i})=>{let o=i.sources;o&&e.model.change(e=>{e.setAttributes({sources:o},n)})})}}class kV extends i4{static get pluginName(){return"IndentEditing"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;
2e.commands.add("indent",new i9(e)),e.commands.add("outdent",new i9(e))}}class kH extends i4{static get pluginName(){return"IndentUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?lZ.indent:lZ.outdent,o="ltr"==t.uiLanguageDirection?lZ.outdent:lZ.indent;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),o)}_defineButton(e,t,n){let i=this.editor;i.ui.componentFactory.add(e,()=>{let i=this._createButton(l4,e,t,n);return i.set({tooltip:!0}),i}),i.ui.componentFactory.add("menuBar:"+e,()=>this._createButton(cw,e,t,n))}_createButton(e,t,n,i){let o=this.editor,r=o.commands.get(t),s=new e(o.locale);return s.set({label:n,icon:i}),s.bind("isEnabled").to(r,"isEnabled"),this.listenTo(s,"execute",()=>{o.execute(t),o.editing.view.focus()}),s}}class kU extends i4{static get pluginName(){return"Indent"}static get isOfficialPlugin(){return!0}static get requires(){return[kV,kH]}}class kq{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach(e=>this._definitions.add(e)):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",(e,t,n)=>{if(!n.consumable.test(t.item,"attribute:linkHref")||!t.item.is("selection")&&!n.schema.isInline(t.item))return;let i=n.writer,o=i.document.selection;for(let e of this._definitions){let r=i.createAttributeElement("a",e.attributes,{priority:5});for(let t in e.classes&&i.addClass(e.classes,r),e.styles)i.setStyle(t,e.styles[t],r);i.setCustomProperty("link",!0,r),e.callback(t.attributeNewValue)?t.item.is("selection")?i.wrap(o.getFirstRange(),r):i.wrap(n.mapper.toViewRange(t.range),r):i.unwrap(n.mapper.toViewRange(t.range),r)}},{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",(e,t,{writer:n,mapper:i})=>{let o=Array.from(i.toViewElement(t.item).getChildren()).find(e=>e.is("element","a"));if(o)for(let e of this._definitions){let i=ib(e.attributes);if(e.callback(t.attributeNewValue)){for(let[e,t]of i)"class"===e?n.addClass(t,o):n.setAttribute(e,t,o);for(let t in e.classes&&n.addClass(e.classes,o),e.styles)n.setStyle(t,e.styles[t],o)}else{for(let[e,t]of i)"class"===e?n.removeClass(t,o):n.removeAttribute(e,o);for(let t in e.classes&&n.removeClass(e.classes,o),e.styles)n.removeStyle(t,o)}}})}}}let kG=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:oP(e,t,n)};var kW=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let kK=function(e){return kW.test(e)};var k$="\ud800-\udfff",kY="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",kQ="\ud83c[\udffb-\udfff]",kZ="[^"+k$+"]",kJ="(?:\ud83c[\udde6-\uddff]){2}",kX="[\ud800-\udbff][\udc00-\udfff]",k0="(?:"+kY+"|"+kQ+")?",k1="[\\ufe0e\\ufe0f]?",k2=k1+k0+("(?:\\u200d(?:"+[kZ,kJ,kX].join("|")+")")+k1+k0+")*",k5=RegExp(kQ+"(?="+kQ+")|(?:"+[kZ+kY+"?",kY,kJ,kX,"["+k$+"]"].join("|")+")"+k2,"g");let k4=function(e){var t,n=kK(e=oS(e))?kK(t=e)?t.match(k5)||[]:t.split(""):void 0,i=n?n[0]:e.charAt(0),o=n?kG(n,1).join(""):e.slice(1);return i.toUpperCase()+o},k3=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,k6=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,k7=/^((\w+:(\/{2,})?)|(\W))/i,k9=["https?","ftps?","mailto"],k8="Ctrl+K";function fe(e,{writer:t}){let n=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,n),n}function ft(e,t=k9){var n;let i=String(e),o=t.join("|");return(n=RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",o)}`,"i"),i.replace(k3,"").match(n))?i:"#"}function fn(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function fi(e,t){let n=k6.test(e)?"mailto:":t,i=!!n&&!k7.test(e);return e&&i?n+e:e}function fo(e){window.open(e,"_blank","noopener")}class fr extends i6{constructor(){super(...arguments),this.manualDecorators=new iu,this.automaticDecorators=new kq}restoreManualDecoratorStates(){for(let e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){let e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||ih(t.getSelectedBlocks());for(let i of(fn(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")),this.manualDecorators))i.value=this._getDecoratorStateFromModel(i.id)}
2execute(e,t={}){let n=this.editor.model,i=n.document.selection,o=[],r=[];for(let e in t)t[e]?o.push(e):r.push(e);n.change(t=>{if(i.isCollapsed){let s=i.getFirstPosition();if(i.hasAttribute("linkHref")){let a=fs(i),l=h9(s,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===a&&(l=this._updateLinkContent(n,t,l,e)),t.setAttribute("linkHref",e,l),o.forEach(e=>{t.setAttribute(e,!0,l)}),r.forEach(e=>{t.removeAttribute(e,l)}),t.setSelection(t.createPositionAfter(l.end.nodeBefore))}else if(""!==e){let r=ib(i.getAttributes());r.set("linkHref",e),o.forEach(e=>{r.set(e,!0)});let{end:a}=n.insertContent(t.createText(e,r),s);t.setSelection(a)}["linkHref",...o,...r].forEach(e=>{t.removeSelectionAttribute(e)})}else{let s=n.schema.getValidRanges(i.getRanges(),"linkHref"),a=[];for(let e of i.getSelectedBlocks())n.schema.checkAttribute(e,"linkHref")&&a.push(t.createRangeOn(e));let l=a.slice();for(let e of s)this._isRangeToUpdate(e,a)&&l.push(e);for(let s of l){let a=s;if(1===l.length){let o=fs(i);i.getAttribute("linkHref")===o&&(a=this._updateLinkContent(n,t,s,e),t.setSelection(t.createSelection(a)))}t.setAttribute("linkHref",e,a),o.forEach(e=>{t.setAttribute(e,!0,a)}),r.forEach(e=>{t.removeAttribute(e,a)})}}})}_getDecoratorStateFromModel(e){let t=this.editor.model,n=t.document.selection,i=n.getSelectedElement();return fn(i,t.schema)?i.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(let n of t)if(n.containsRange(e))return!1;return!0}_updateLinkContent(e,t,n,i){let o=t.createText(i,{linkHref:i});return e.insertContent(o,n)}}function fs(e){if(e.isCollapsed){let t=e.getFirstPosition();return t.textNode&&t.textNode.data}{let t=Array.from(e.getFirstRange().getItems());if(t.length>1)return null;let n=t[0];return n.is("$text")||n.is("$textProxy")?n.data:null}}class fa extends i6{refresh(){let e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();fn(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){let e=this.editor,t=this.editor.model,n=t.document.selection,i=e.commands.get("link");t.change(e=>{for(let o of n.isCollapsed?[h9(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:t.schema.getValidRanges(n.getRanges(),"linkHref"))if(e.removeAttribute("linkHref",o),i)for(let t of i.manualDecorators)e.removeAttribute(t.id,o)})}}class fl extends U(){constructor({id:e,label:t,attributes:n,classes:i,styles:o,defaultValue:r}){super(),this.id=e,this.set("value",void 0),this.defaultValue=r,this.label=t,this.attributes=n,this.classes=i,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var fc=r(7719),fd={attributes:{"data-cke":!0}};fd.setAttributes=iY(),fd.insert=iK().bind(null,"head"),fd.domAPI=iG(),fd.insertStyleElement=iZ(),iU()(fc.A,fd),fc.A&&fc.A.locals&&fc.A.locals;let fu="automatic",fh=/^(https?:)?\/\//;class fg extends i4{static get pluginName(){return"LinkEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[hQ,hO,hM]}constructor(e){super(e),e.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){let e=this.editor,t=this.editor.config.get("link.allowedProtocols");e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:fe}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,n)=>fe(ft(e,t),n)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new fr(e)),e.commands.add("unlink",new fa(e));let n=function(e,t){let n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach(e=>("label"in e&&n[e.label]&&(e.label=n[e.label]),e)),t}(e.t,function(e){let t=[];if(e)for(let[n,i]of Object.entries(e)){let e=Object.assign({},i,{id:`link${k4(n)}`});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter(e=>e.mode===fu)),this._enableManualDecorators(n.filter(e=>"manual"===e.mode)),e.plugins.get(hQ).registerAttribute("linkHref"),function(e,t,n,i){let o=e.editing.view,r=new Set;o.document.registerPostFixer(n=>{let o=e.model.document.selection,s=!1;if(o.hasAttribute(t)){let a=h9(o.getFirstPosition(),t,o.getAttribute(t),e.model);for(let t of e.editing.mapper.toViewRange(a).getItems())t.is("element","a")&&!t.hasClass(i)&&(n.addClass(i,t),r.add(t),s=!0)}return s}),e.conversion.for("editingDowncast").add(e=>{function t(){o.change(e=>{for(let t of r.values())e.removeClass(i,t),r.delete(t)})}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})})}(e,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(e){let t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:fu,callback:e=>!!e&&fh.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;let t=this.editor,n=t.commands.get("link").manualDecorators;
2e.forEach(e=>{t.model.schema.extend("$text",{allowAttributes:e.id});let i=new fl(e);n.add(i),t.conversion.for("downcast").attributeToElement({model:i.id,view:(e,{writer:t,schema:n},{item:o})=>{if((o.is("selection")||n.isInline(o))&&e){let e=t.createAttributeElement("a",i.attributes,{priority:5});for(let n in i.classes&&t.addClass(i.classes,e),i.styles)t.setStyle(n,i.styles[n],e);return t.setCustomProperty("link",!0,e),e}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...i._createPattern()},model:{key:i.id}})})}_enableLinkOpen(){let e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(e,t)=>{if(!(l.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let n=t.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;let i=n.getAttribute("href");i&&(e.stop(),t.preventDefault(),fo(i))},{context:"$capture"}),this.listenTo(t,"keydown",(t,n)=>{let i=e.commands.get("link").value;i&&n.keyCode===nQ.enter&&n.altKey&&(t.stop(),fo(i))})}_enableSelectionAttributesFixer(){let e=this.editor.model,t=e.document.selection;this.listenTo(t,"change:attribute",(n,{attributeKeys:i})=>{i.includes("linkHref")&&!t.hasAttribute("linkHref")&&e.change(t=>{!function(e,t){for(let n of(e.removeSelectionAttribute("linkHref"),t))e.removeSelectionAttribute(n)}(t,e.schema.getDefinition("$text").allowAttributes.filter(e=>e.startsWith("link")))})})}_enableClipboardIntegration(){let e=this.editor,t=e.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(e.plugins.get("ClipboardPipeline"),"contentInsertion",(e,i)=>{t.change(e=>{for(let t of e.createRangeIn(i.content).getItems())if(t.hasAttribute("linkHref")){let i=fi(t.getAttribute("linkHref"),n);e.setAttribute("linkHref",i,t)}})})}}var fm=r(3817),fp={attributes:{"data-cke":!0}};fp.setAttributes=iY(),fp.insert=iK().bind(null,"head"),fp.domAPI=iG(),fp.insertStyleElement=iZ(),iU()(fm.A,fp),fm.A&&fm.A.locals&&fm.A.locals;class fk extends i0{constructor(e,t,n){super(e),this.focusTracker=new ig,this.keystrokes=new ik,this._focusables=new ix;let i=e.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),lZ.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),lZ.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusCycler=new l8({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});let o=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((e,t)=>(e[t.name]=t.isOn,e),{})}render(){super.render(),i5({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){for(let e of(this.resetFormStatus(),this._validators)){let t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){let e=this.locale.t,t=new cW(this.locale,dK);return t.fieldView.inputMode="url",t.label=e("Link URL"),t}_createButton(e,t,n,i){let o=new l4(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}_createManualDecoratorSwitches(e){let t=this.createCollection();for(let n of e.manualDecorators){let i=new cN(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,e],"value",(e,t)=>void 0===t&&void 0===e?!!n.defaultValue:!!e),i.on("execute",()=>{n.set("value",!i.isOn)}),t.add(i)}return t}_createFormChildren(e){let t=this.createCollection();if(t.add(this.urlInputView),e.length){let e=new i0;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}
2)),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}get url(){let{element:e}=this.urlInputView.fieldView;return e?e.value.trim():null}}var ff=r(8762),fb={attributes:{"data-cke":!0}};fb.setAttributes=iY(),fb.insert=iK().bind(null,"head"),fb.domAPI=iG(),fb.insertStyleElement=iZ(),iU()(ff.A,fb),ff.A&&ff.A.locals&&ff.A.locals;class fA extends i0{constructor(e,t={}){super(e),this.focusTracker=new ig,this.keystrokes=new ik,this._focusables=new ix;let n=e.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(n("Edit link"),lZ.pencil,"edit"),this.set("href",void 0),this._linkConfig=t,this._focusCycler=new l8({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(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(e,t,n){let i=new l4(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){let e=new l4(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",e=>e&&ft(e,this._linkConfig.allowedProtocols)),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",e=>e||n("This link has no URL")),e.bind("isEnabled").to(this,"href",e=>!!e),e.template.tag="a",e.template.eventListeners={},e}}let fw="link-ui";class f_ extends i4{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[uP]}static get pluginName(){return"LinkUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.editing.view.addObserver(lM),this._balloon=e.plugins.get(uP),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:fw,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:fw,view:(e,{writer:t})=>{if(!e.markerRange.isCollapsed)return null;let n=t.createUIElement("span");return t.addClass(["ck-fake-link-selection","ck-fake-link-selection_collapsed"],n),n}}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Create link"),keystroke:k8},{label:t("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){let e=this.editor,t=new fA(e.locale,e.config.get("link")),n=e.commands.get("link"),i=e.commands.get("unlink");return t.bind("href").to(n,"value"),t.editButtonView.bind("isEnabled").to(n),t.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(t,"edit",()=>{this._addFormView()}),this.listenTo(t,"unlink",()=>{e.execute("unlink"),this._hideUI()}),t.keystrokes.set("Esc",(e,t)=>{this._hideUI(),t()}),t.keystrokes.set(k8,(e,t)=>{this._addFormView(),t()}),t}_createFormView(){let e=this.editor,t=e.commands.get("link"),n=e.config.get("link.defaultProtocol"),i=new(i2(fk))(e.locale,t,function(e){let t=e.t,n=e.config.get("link.allowCreatingEmptyLinks");return[e=>{if(!n&&!e.url.length)return t("Link URL must not be empty.")}]}(e));return i.urlInputView.fieldView.bind("value").to(t,"value"),i.urlInputView.bind("isEnabled").to(t,"isEnabled"),i.saveButtonView.bind("isEnabled").to(t,"isEnabled"),this.listenTo(i,"submit",()=>{if(i.isValid()){let{value:t}=i.urlInputView.fieldView.element,o=fi(t,n);e.execute("link",o,i.getDecoratorSwitchesState()),this._closeFormView()}}),this.listenTo(i.urlInputView,"change:errorText",()=>{e.ui.update()}),this.listenTo(i,"cancel",()=>{this._closeFormView()}),i.keystrokes.set("Esc",(e,t)=>{this._closeFormView(),t()}),i}_createToolbarLinkButton(){let e=this.editor;e.ui.componentFactory.add("link",()=>{let e=this._createButton(l4);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add("menuBar:link",()=>{let e=this._createButton(cw);return e.set({role:"menuitemcheckbox"}),e})}_createButton(e){let t=this.editor,n=t.locale,i=t.commands.get("link"),o=new e(t.locale),r=n.t;return o.set({label:r("Link"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2<path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',keystroke:k8,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",e=>!!e),this.listenTo(o,"execute",()=>this._showUI(!0)),o}_enableBalloonActivators(){let e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),e.keystrokes.set(k8,(t,n)=>{n(),e.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())},{priority:"high"}),this.editor.keystrokes.set("Esc",(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),i1({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;let e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=e.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){let e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;let e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){let e=this.editor,t=e.editing.view.document,n=this._getSelectedLinkElement(),i=r(),o=()=>{let e=this._getSelectedLinkElement(),t=r();(!n||e)&&(n||t===i)?this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()):this._hideUI(),n=e,i=t};function r(){return t.selection.focus.getAncestors().reverse().find(e=>e.is("element"))}this.listenTo(e.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(){let e=this._balloon.visibleView;return!!this.formView&&e==this.formView||this._areActionsVisible}_getBalloonPositionData(){let e;let t=this.editor.editing.view,n=this.editor.model,i=t.document;if(n.markers.has(fw)){let n=Array.from(this.editor.editing.mapper.markerNameToElements(fw)),i=t.createRange(t.createPositionBefore(n[0]),t.createPositionAfter(n[n.length-1]));e=t.domConverter.viewRangeToDom(i)}else e=()=>{let e=this._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(i.selection.getFirstRange())};return{target:e}}_getSelectedLinkElement(){let e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&gm(n))return fC(t.getFirstPosition());{let n=t.getFirstRange().getTrimmed(),i=fC(n.start),o=fC(n.end);return i&&i==o&&e.createRangeIn(i).getTrimmed().isEqual(n)?i:null}}_showFakeVisualSelection(){let e=this.editor.model;e.change(t=>{let n=e.document.selection.getFirstRange();if(e.markers.has(fw))t.updateMarker(fw,{range:n});else if(n.start.isAtEnd){let i=n.start.getLastMatchingPosition(({item:t})=>!e.schema.isContent(t),{boundaries:n});t.addMarker(fw,{usingOperation:!1,affectsData:!1,range:t.createRange(i,n.end)})}else t.addMarker(fw,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){let e=this.editor.model;e.markers.has(fw)&&e.change(e=>{e.removeMarker(fw)})}}function fC(e){return e.getAncestors().find(e=>e.is("attributeElement")&&!!e.getCustomProperty("link"))||null}let fv=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 fy extends i4{static get requires(){return[hW,fg]}static get pluginName(){return"AutoLink"}static get isOfficialPlugin(){return!0}init(){let e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(e,t){return t.textNode&&t.textNode.hasAttribute("linkHref")?h9(t,"linkHref",t.textNode.getAttribute("linkHref"),e):null}_selectEntireLinks(e,t){let n=this.editor.model,i=n.document.selection,o=i.getFirstPosition(),r=i.getLastPosition(),s=t.getJoined(this._expandLinkRange(n,o)||t);s&&(s=s.getJoined(this._expandLinkRange(n,r)||t)),s&&(s.start.isBefore(o)||s.end.isAfter(r))&&e.setSelection(s)}_enablePasteLinking(){let e=this.editor,t=e.model,n=t.document.selection,i=e.plugins.get("ClipboardPipeline"),o=e.commands.get("link");i.on("inputTransformation",(e,i)=>{if(!this.isEnabled||!o.isEnabled||n.isCollapsed||"paste"!==i.method||n.rangeCount>1)return;let r=n.getFirstRange(),s=i.dataTransfer.getData("text/plain");if(!s)return;let a=s.match(fv);a&&a[2]===s&&(t.change(e=>{this._selectEntireLinks(e,r),o.execute(s)}),e.stop())},{priority:"high"})}_enableTypingHandling(){let e=this.editor,t=new hY(e.model,e=>{if(!(e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]))return;let t=fx(e.substr(0,e.length-1));return t?{url:t}:void 0});t.on("matched:data",(t,n)=>{let{batch:i,range:o,url:r}=n;if(!i.isTyping)return;
2let s=o.end.getShiftedBy(-1),a=s.getShiftedBy(-r.length),l=e.model.createRange(a,s);this._applyAutoLink(r,l)}),t.bind("isEnabled").to(this)}_enableEnterHandling(){let e=this.editor,t=e.model,n=e.commands.get("enter");n&&n.on("execute",()=>{let e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;let n=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)})}_enableShiftEnterHandling(){let e=this.editor,t=e.model,n=e.commands.get("shiftEnter");n&&n.on("execute",()=>{let e=t.document.selection.getFirstPosition(),n=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)})}_checkAndApplyAutoLinkOnRange(e){let t=this.editor.model,{text:n,range:i}=h$(e,t),o=fx(n);if(o){let e=t.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,e)}}_applyAutoLink(e,t){let n=this.editor.model,i=fi(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&n.schema.checkAttributeInSelection(n.createSelection(t),"linkHref")&&k7.test(i)&&!function(e){let t=e.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(i,t)}_persistAutoLink(e,t){let n=this.editor.model,i=this.editor.plugins.get("Delete");n.enqueueChange(o=>{o.setAttribute("linkHref",e,t),n.enqueueChange(()=>{i.requestUndoOnBackspace()})})}}function fx(e){let t=fv.exec(e);return t?t[2]:null}class fE extends i4{static get requires(){return[fg,f_,fy]}static get pluginName(){return"Link"}static get isOfficialPlugin(){return!0}}var fD=r(4808),fI={attributes:{"data-cke":!0}};fI.setAttributes=iY(),fI.insert=iK().bind(null,"head"),fI.domAPI=iG(),fI.insertStyleElement=iZ(),iU()(fD.A,fI),fD.A&&fD.A.locals&&fD.A.locals;class fS{constructor(e,t){this._startElement=e,this._referenceIndent=e.getAttribute("listIndent"),this._isForward="forward"==t.direction,this._includeSelf=!!t.includeSelf,this._sameAttributes=n2(t.sameAttributes||[]),this._sameIndent=!!t.sameIndent,this._lowerIndent=!!t.lowerIndent,this._higherIndent=!!t.higherIndent}static first(e,t){return ih(new this(e,t)[Symbol.iterator]())}*[Symbol.iterator](){let e=[];for(let{node:t}of fM(this._getStartNode(),this._isForward?"forward":"backward")){let n=t.getAttribute("listIndent");if(n<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=n}else if(n>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){e.push(t);continue}}else{if(!this._sameIndent){if(this._higherIndent){e.length&&(yield*e,e.length=0);break}continue}if(this._sameAttributes.some(e=>t.getAttribute(e)!==this._startElement.getAttribute(e)))break}e.length&&(yield*e,e.length=0),yield t}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*fM(e,t="forward"){let n="forward"==t,i=[],o=null;for(;fN(e);){let t=null;if(o){let n=e.getAttribute("listIndent"),r=o.getAttribute("listIndent");n>r?i[r]=o:n<r?(t=i[n],i.length=n):t=o}yield{node:e,previous:o,previousNodeInList:t},o=e,e=n?e.nextSibling:e.previousSibling}}class fB{constructor(e){this._listHead=e}[Symbol.iterator](){return fM(this._listHead,"forward")}}class fT{static next(){return f()}}function fN(e){return!!e&&e.is("element")&&e.hasAttribute("listItemId")}function fP(e,t={}){return[...fL(e,{...t,direction:"backward"}),...fL(e,{...t,direction:"forward"})]}function fL(e,t={}){let n="forward"==t.direction,i=Array.from(new fS(e,{...t,includeSelf:n,sameIndent:!0,sameAttributes:"listItemId"}));return n?i:i.reverse()}function fO(e,t){let n=new fS(e,{sameIndent:!0,sameAttributes:"listType",...t}),i=new fS(e,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...t});return[...Array.from(n).reverse(),...i]}function fz(e){return!fS.first(e,{sameIndent:!0,sameAttributes:"listItemId"})}function fR(e){return!fS.first(e,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function fF(e,t={}){e=n2(e);let n=!1!==t.withNested,i=new Set;for(let t of e)for(let e of fP(t,{higherIndent:n}))i.add(e);return fG(i)}function fj(e,t){let n=fL(e,{direction:"forward"}),i=fT.next();for(let e of n)t.setAttribute("listItemId",i,e);return n}
2function fV(e,t,n){let i={};for(let[e,n]of t.getAttributes())e.startsWith("list")&&(i[e]=n);let o=fL(e,{direction:"forward"});for(let e of o)n.setAttributes(i,e);return o}function fH(e,t,{expand:n,indentBy:i=1}={}){e=n2(e);let o=n?fF(e):e;for(let e of o){let n=e.getAttribute("listIndent")+i;n<0?fU(e,t):t.setAttribute("listIndent",n,e)}return o}function fU(e,t){for(let n of e=n2(e))n.is("element","listItem")&&t.rename(n,"paragraph");for(let n of e)for(let e of n.getAttributeKeys())e.startsWith("list")&&t.removeAttribute(e,n);return e}function fq(e){if(!e.length)return!1;let t=e[0].getAttribute("listItemId");return!!t&&!e.some(e=>e.getAttribute("listItemId")!=t)}function fG(e){return Array.from(e).filter(e=>"$graveyard"!==e.root.rootName).sort((e,t)=>e.index-t.index)}function fW(e){let t=e.document.selection.getSelectedElement();return t&&e.schema.isObject(t)&&e.schema.isBlock(t)?t:null}function fK(e,t){return t.checkChild(e.parent,"listItem")&&t.checkChild(e,"$text")&&!t.isObject(e)}class f$ extends i6{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){let e=this.editor.model,t=fY(e.document.selection);e.change(e=>{let n=[];for(let i of(fq(t)&&!fz(t[0])?("forward"==this._direction&&n.push(...fH(t,e)),n.push(...fj(t[0],e))):"forward"==this._direction?n.push(...fH(t,e,{expand:!0})):n.push(...function(e,t){let n=fF(e=n2(e)),i=new Set,o=Math.min(...n.map(e=>e.getAttribute("listIndent"))),r=new Map;for(let e of n)r.set(e,fS.first(e,{lowerIndent:!0}));for(let e of n){if(i.has(e))continue;i.add(e);let n=e.getAttribute("listIndent")-1;if(n<0)fU(e,t);else{if(e.getAttribute("listIndent")==o){var s;let n=fL(s=r.get(e),{direction:"forward"}).pop().index>e.index?fV(e,s,t):[];for(let e of n)i.add(e);if(n.length)continue}t.setAttribute("listIndent",n,e)}}return fG(i)}(t,e)),n)){if(!i.hasAttribute("listType"))continue;let t=fS.first(i,{sameIndent:!0});t&&e.setAttribute("listType",t.getAttribute("listType"),i)}this._fireAfterExecute(n)})}_fireAfterExecute(e){this.fire("afterExecute",fG(new Set(e)))}_checkEnabled(){let e=fY(this.editor.model.document.selection),t=e[0];if(!t)return!1;if("backward"==this._direction||fq(e)&&!fz(e[0]))return!0;t=(e=fF(e))[0];let n=fS.first(t,{sameIndent:!0});return!!n&&n.getAttribute("listType")==t.getAttribute("listType")}}function fY(e){let t=Array.from(e.getSelectedBlocks()),n=t.findIndex(e=>!fN(e));return -1!=n&&(t.length=n),t}class fQ extends i6{constructor(e,t,n={}){super(e),this.type=t,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){let t=this.editor.model,n=t.document,i=fW(t),o=Array.from(n.selection.getSelectedBlocks()).filter(e=>t.schema.checkAttribute(e,"listType")||fK(e,t.schema)),r=void 0!==e.forceValue?!e.forceValue:this.value;t.change(s=>{if(r){let e=o[o.length-1],t=fL(e,{direction:"forward"}),n=[];t.length>1&&n.push(...fj(t[1],s)),n.push(...fU(o,s)),n.push(...function(e,t){let n=[],i=Number.POSITIVE_INFINITY;for(let{node:o}of fM(e.nextSibling,"forward")){let e=o.getAttribute("listIndent");if(0==e)break;e<i&&(i=e);let r=e-i;t.setAttribute("listIndent",r,o),n.push(o)}return n}(e,s)),this._fireAfterExecute(n)}else if((i||n.selection.isCollapsed)&&fN(o[0])){let t=fO(i||o[0],this._listWalkerOptions);for(let n of t)s.setAttributes({...e.additionalAttributes,listType:this.type},n);this._fireAfterExecute(t)}else{let n=[];for(let i of o)if(i.hasAttribute("listType"))for(let t of fF(i,{withNested:!1}))t.getAttribute("listType")!=this.type&&(s.setAttributes({...e.additionalAttributes,listType:this.type},t),n.push(t));else!i.is("element","listItem")&&fK(i,t.schema)&&s.rename(i,"listItem"),s.setAttributes({...e.additionalAttributes,listIndent:0,listItemId:fT.next(),listType:this.type},i),n.push(i);this._fireAfterExecute(n)}})}_fireAfterExecute(e){this.fire("afterExecute",fG(new Set(e)))}_getValue(){let e=Array.from(this.editor.model.document.selection.getSelectedBlocks());if(!e.length)return!1;for(let t of e)if(t.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){let e=this.editor.model,t=e.schema,n=Array.from(e.document.selection.getSelectedBlocks());if(!n.length)return!1;if(this.value)return!0;for(let e of n)if(t.checkAttribute(e,"listType")||fK(e,t))return!0;return!1}}class fZ extends i6{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:e=!1}={}){let t=this.editor.model,n=t.document.selection,i=[];t.change(o=>{let{firstElement:r,lastElement:s}=this._getMergeSubjectElements(n,e),a=r.getAttribute("listIndent")||0,l=s.getAttribute("listIndent"),c=s.getAttribute("listItemId");if(a!=l){let e=Array.from(new fS(s,{direction:"forward",higherIndent:!0}));i.push(...fH([s,...e],o,{indentBy:a-l,expand:a<l}))}if(e){let e=n;n.isCollapsed&&(e=o.createSelection(o.createRange(o.createPositionAt(r,"end"),o.createPositionAt(s,0)))),t.deleteContent(e,{doNotResetEntireContent:n.isCollapsed});let a=e.getLastPosition().parent,l=a.nextSibling;i.push(a),l&&l!==s&&l.getAttribute("listItemId")==c&&i.push(...fV(l,a,o))}else i.push(...fV(s,r,o));this._fireAfterExecute(i)})}_fireAfterExecute(e){this.fire("afterExecute",fG(new Set(e)))}_checkEnabled(){let e=this.editor.model,t=e.document.selection,n=fW(e);if(t.isCollapsed||n){let e=n||t.getFirstPosition().parent;if(!fN(e))return!1;let i="backward"==this._direction?e.previousSibling:e.nextSibling;if(!i||fq([e,i]))return!1}else{let e=t.getLastPosition(),n=t.getFirstPosition();if(e.parent===n.parent||!fN(e.parent))return!1}return!0}_getMergeSubjectElements(e,t){let n,i;let o=fW(this.editor.model);if(e.isCollapsed||o){let r=o||e.getFirstPosition().parent,s=fz(r);"backward"==this._direction?(i=r,n=s&&!t?fS.first(r,{sameIndent:!0,lowerIndent:!0}):r.previousSibling):(n=r,i=r.nextSibling)}else n=e.getFirstPosition().parent,i=e.getLastPosition().parent;return{firstElement:n,lastElement:i}}}class fJ extends i6{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(e=>{let t=fj(this._getStartBlock(),e);this._fireAfterExecute(t)})}_fireAfterExecute(e){this.fire("afterExecute",fG(new Set(e)))}_checkEnabled(){let e=this.editor.model.document.selection,t=this._getStartBlock();return e.isCollapsed&&fN(t)&&!fz(t)}_getStartBlock(){let e=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?e:e.nextSibling}}class fX extends i4{static get pluginName(){return"ListUtils"}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(e){return function(e){e=n2(e);let t=new Set;for(let n of e)for(let e of fO(n))t.add(e);return fG(t)}(e)}isFirstBlockOfListItem(e){return fz(e)}isListItemBlock(e){return fN(e)}expandListBlocksToCompleteItems(e,t={}){return fF(e,t)}isNumberedListType(e){return"numbered"==e||"customNumbered"==e}}function f0(e){return e.is("element","li")}function f1(e){return"numbered"==e||"customNumbered"==e?"ol":"ul"}function f2(e,t){return`list-${e}-${t}`}function f5(e,t){let n=e.nodeBefore;if(fN(n)){let e=n;for(let{node:n}of fM(e,"backward"))if(e=n,t.has(e))return;t.set(n,e)}else{let n=e.nodeAfter;fN(n)&&t.set(n,n)}}function f4(e,t,n,{dataPipeline:i}={}){let o=(t,n)=>{let i=[];for(let n of e)t.hasAttribute(n)&&i.push(`attribute:${n}`);return!!i.every(e=>
2!1!==n.test(t,e))&&(i.forEach(e=>n.consume(t,e)),!0)};return(r,s,a)=>{let{writer:l,mapper:c,consumable:d}=a,u=s.item;if(!e.includes(s.attributeKey)||!o(u,d))return;let h=function(e,t,n){let i=n.createRangeOn(e);return t.toViewRange(i).getTrimmed().end.nodeBefore}(u,c,n);f6(h,l,c),function(e,t){let n=e.parent;for(;n.is("attributeElement")&&["ul","ol","li"].includes(n.name);){let i=n.parent;t.unwrap(t.createRangeOn(e),n),n=i}}(h,l);let g=function(e,t,n,i,{dataPipeline:o}){let r=i.createRangeOn(t);if(!fz(e))return r;for(let s of n){if("itemMarker"!=s.scope)continue;let n=s.createElement(i,e,{dataPipeline:o});if(!n||(i.setCustomProperty("listItemMarker",!0,n),s.canInjectMarkerIntoElement&&s.canInjectMarkerIntoElement(e)?i.insert(i.createPositionAt(t,0),n):(i.insert(r.start,n),r=i.createRange(i.createPositionBefore(n),i.createPositionAfter(t))),!s.createWrapperElement||!s.canWrapElement))continue;let a=s.createWrapperElement(i,e,{dataPipeline:o});i.setCustomProperty("listItemWrapper",!0,a),s.canWrapElement(e)?r=i.wrap(r,a):(r=i.wrap(i.createRangeOn(n),a),r=i.createRange(r.start,i.createPositionAfter(t)))}return r}(u,h,t,l,{dataPipeline:i});!function(e,t,n,i){if(!e.hasAttribute("listIndent"))return;let o=e.getAttribute("listIndent"),r=e;for(let e=o;e>=0;e--){var s,a;let o=(s=e,a=r.getAttribute("listItemId"),i.createAttributeElement("li",null,{priority:(2*s+1)/100-100,id:a})),l=function(e,t,n,i=f2(n,t)){return e.createAttributeElement(f1(n),null,{priority:2*t/100-100,id:i})}(i,e,r.getAttribute("listType"));for(let e of n)("list"==e.scope||"item"==e.scope)&&r.hasAttribute(e.attributeName)&&e.setAttributeOnDowncast(i,r.getAttribute(e.attributeName),"list"==e.scope?l:o);if(t=i.wrap(t,o),t=i.wrap(t,l),0==e||!(r=fS.first(r,{lowerIndent:!0})))break}}(u,g,t,l)}}function f3(e,{dataPipeline:t}={}){return(n,{writer:i})=>{if(!f7(n,e))return null;if(!t)return i.createContainerElement("span",{class:"ck-list-bogus-paragraph"});let o=i.createContainerElement("p");return i.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}function f6(e,t,n){for(;e.parent.is("attributeElement")&&e.parent.getCustomProperty("listItemWrapper");)t.unwrap(t.createRangeOn(e),e.parent);let i=[];for(let n of(o(t.createPositionBefore(e).getWalker({direction:"backward"})),o(t.createRangeIn(e).getWalker()),i))t.remove(n);function o(e){for(let{item:t}of e){if(t.is("element")&&n.toModelElement(t))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&i.push(t)}}}function f7(e,t,n=fP(e)){if(!fN(e))return!1;for(let n of e.getAttributeKeys())if(!n.startsWith("selection:")&&!t.includes(n))return!1;return n.length<2}var f9=r(1232),f8={attributes:{"data-cke":!0}};f8.setAttributes=iY(),f8.insert=iK().bind(null,"head"),f8.domAPI=iG(),f8.insertStyleElement=iZ(),iU()(f9.A,f8),f9.A&&f9.A.locals&&f9.A.locals;var be=r(6903),bt={attributes:{"data-cke":!0}};bt.setAttributes=iY(),bt.insert=iK().bind(null,"head"),bt.domAPI=iG(),bt.insertStyleElement=iZ(),iU()(be.A,bt),be.A&&be.A.locals&&be.A.locals;let bn=["listType","listIndent","listItemId"];class bi extends i4{constructor(e){super(e),this._downcastStrategies=[],e.config.define("list.multiBlock",!0)}static get pluginName(){return"ListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[gr,hW,fX,hM]}init(){let e=this.editor,t=e.model,n=e.config.get("list.multiBlock");if(e.plugins.has("LegacyListEditing"))throw new w("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});for(let e of(t.schema.register("$listItem",{allowAttributes:bn}),n?(t.schema.extend("$container",{allowAttributesOf:"$listItem"}),t.schema.extend("$block",{allowAttributesOf:"$listItem"}),t.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):t.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"}),bn))t.schema.setAttributeProperties(e,{copyOnReplace:!0});e.commands.add("numberedList",new fQ(e,"numbered")),e.commands.add("bulletedList",new fQ(e,"bulleted")),e.commands.add("customNumberedList",new fQ(e,"customNumbered",{multiLevel:!0})),e.commands.add("customBulletedList",new fQ(e,"customBulleted",{multiLevel:!0})),e.commands.add("indentList",new f$(e,"forward")),e.commands.add("outde
2ntList",new f$(e,"backward")),e.commands.add("splitListItemBefore",new fJ(e,"before")),e.commands.add("splitListItemAfter",new fJ(e,"after")),n&&(e.commands.add("mergeListItemBackward",new fZ(e,"backward")),e.commands.add("mergeListItemForward",new fZ(e,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){let e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList"),{priority:"high"}),n&&n.registerChildCommand(e.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(e){this._downcastStrategies.push(e)}getListAttributeNames(){return[...bn,...this._downcastStrategies.map(e=>e.attributeName)]}_setupDeleteIntegration(){let e=this.editor,t=e.commands.get("mergeListItemBackward"),n=e.commands.get("mergeListItemForward");this.listenTo(e.editing.view.document,"delete",(i,o)=>{let r=e.model.document.selection;fW(e.model)||e.model.change(()=>{let s=r.getFirstPosition();if(r.isCollapsed&&"backward"==o.direction){if(!s.isAtStart)return;let n=s.parent;if(!fN(n))return;if(fS.first(n,{sameAttributes:"listType",sameIndent:!0})||0!==n.getAttribute("listIndent")){if(!t||!t.isEnabled)return;t.execute({shouldMergeOnBlocksContentLevel:bo(e.model,"backward")})}else fR(n)||e.execute("splitListItemAfter"),e.execute("outdentList");o.preventDefault(),i.stop()}else{if(r.isCollapsed&&!r.getLastPosition().isAtEnd||!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:bo(e.model,"forward")}),o.preventDefault(),i.stop()}})},{context:"li"})}_setupEnterIntegration(){let e=this.editor,t=e.model,n=e.commands,i=n.get("enter");this.listenTo(e.editing.view.document,"enter",(n,i)=>{let o=t.document,r=o.selection.getFirstPosition().parent;if(o.selection.isCollapsed&&fN(r)&&r.isEmpty&&!i.isSoft){let t=fz(r),o=fR(r);t&&o?(e.execute("outdentList"),i.preventDefault(),n.stop()):t&&!o?(e.execute("splitListItemAfter"),i.preventDefault(),n.stop()):o&&(e.execute("splitListItemBefore"),i.preventDefault(),n.stop())}},{context:"li"}),this.listenTo(i,"afterExecute",()=>{let t=n.get("splitListItemBefore");t.refresh(),t.isEnabled&&2===fP(e.model.document.selection.getLastPosition().parent).length&&t.execute()})}_setupTabIntegration(){let e=this.editor;this.listenTo(e.editing.view.document,"tab",(t,n)=>{let i=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(i).isEnabled&&(e.execute(i),n.stopPropagation(),n.preventDefault(),t.stop())},{context:"li"})}_setupConversion(){var e,t;let n=this.editor,i=n.model,o=this.getListAttributeNames(),r=n.config.get("list.multiBlock"),s=r?"paragraph":"listItem";n.conversion.for("upcast").elementToElement({view:"li",model:(e,{writer:t})=>t.createElement(s,{listType:""})}).elementToElement({view:"p",model:(e,{writer:t})=>e.parent&&e.parent.is("element","li")?t.createElement(s,{listType:""}):null,converterPriority:"high"}).add(e=>{e.on("element:li",(e,t,n)=>{let{writer:i,schema:o}=n;if(!t.modelRange)return;let r=Array.from(t.modelRange.getItems({shallow:!0})).filter(e=>o.checkAttribute(e,"listItemId"));if(!r.length)return;let s=fT.next(),a=function(e){let t=0,n=e.parent;for(;n;){if(f0(n))t++;else{let e=n.previousSibling;e&&f0(e)&&t++}n=n.parent}return t}(t.viewItem),l=t.viewItem.parent&&t.viewItem.parent.is("element","ol")?"numbered":"bulleted",c=r[0].getAttribute("listType");c&&(l=c);let d={listItemId:s,listIndent:a,listType:l};for(let e of r)e.hasAttribute("listItemId")||i.setAttributes(d,e);r.length>1&&r[1].getAttribute("listItemId")!=d.listItemId&&n.keepEmptyElement(r[0])})}),r||n.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),n.conversion.for("editingDowncast").elementToElement({model:s,view:f3(o),converterPriority:"high"}).add(e=>{var t;e.on("attribute",f4(o,this._downcastStrategies,i)),e.on("remove",(t=i.schema,(e,n,i)=>{let{writer:o,mapper:r}=i,s=e.name.split(":")[1];if(!t.checkAttribute(s,"listItemId"))return;let a=r.toViewPosition(n.position),l=n.position.getShiftedBy(n.length),c=r.toViewPosition(l,{isPhantom:!0}),d=o.createRange(a,c).getTrimmed().end.nodeBefore;d&&f6(d,o,r)}))}),n.conversion.for("dataDowncast").elementToElement({model:s,view:f3(o,{dataPipeline:!0}),converterPriority:"high"}).add(e=>{e.on("attribute",f4(o,this._downcastStrategies,i,{dataPipeline:!0}))});let a=(e=this._downcastStrategies,t=n.editing.view,(n,i)=>{if(i.modelPosition.offset>0)return;let o=i.modelPosition.parent;if(!fN(o)||!e.some(e=>"itemMarker"==e.scope&&e.canInjectMarkerIntoElement&&e.canInjectMarkerIntoElement(o)))return;let r=i.mapper.toViewElement(o),s=t.createRangeIn(r),a=s.getWalker(),l=s.start;for(let{item:e}of a){if(e.is("element")&&i.mapper.toModelElement(e)||e.is("$textProxy"))break;e.is("element")&&e.getCustomProperty("listItemMarker")&&(l=t.createPositionAfter(e),a.skip(({previousPosition:e})=>!e.isEqual(l)))}i.viewPosition=l});n.editing.mapper.on("modelToViewPosition",a),n.data.mapper.on("modelToViewPosition",a),this.listenTo(i.document,"change:data",function(e,t,n,i){return()=>{let r=e.document.differ.getChanges(),s=[],a=new Map,l=new Set;for(let e of r)if("insert"==e.type&&"$text"!=e.name)f5(e.position,a),e.attributes.has("listItemId")?l.add(e.position.nodeAfter):f5(e.position.getShiftedBy(e.length),a);else if("remove"==e.type&&e.attributes.has("listItemId"))f5(e.position,a);else if("attribute"==e.type){let t=e.range.start.nodeAfter;n.includes(e.attributeKey)?(f5(e.range.start,a),null===e.attributeNewValue?(f5(e.range.start.getShiftedBy(1),a),o(t)&&s.push(t)):l.add(t)):fN(t)&&o(t)&&s.push(t)}for(let e of a.values())s.push(...function(e,r){let s=[],a=new Set,l=[];for(let{node:c,previous:d}of fM(e,"forward")){if(a.has(c))continue;let e=c.getAttribute("listIndent");d&&e<d.getAttribute("listIndent")&&(l.length=e+1),l[e]=Object.fromEntries(Array.from(c.getAttributes()).filter(([e])=>n.includes(e)));let u=fL(c,{direction:"forward"});for(let e of u)a.add(e),(o(e,u)||function(e,n,o){if(o.has(e))return!1;let r=t.mapper.toViewElement(e),s=n.length-1;for(let e=r.parent;!e.is("editableElement");e=e.parent){var a;let t=f0(e),o=(a=e).is("element","ol")||a.is("element","ul");if(!o&&!t)continue;let r="checkAttributes:"+(t?"item":"list");if(i.fire(r,{viewElement:e,modelAttributes:n[s]}))break;if(o&&--s<0)return!1}return!0}(e,l,r))&&s.push(e)}return s}(e,l));for(let e of new Set(s))t.reconvertItem(e)};function o(e,o){let r=t.mapper.toViewElement(e);
2if(!r)return!1;if(i.fire("checkElement",{modelElement:e,viewElement:r}))return!0;if(!e.is("element","paragraph")&&!e.is("element","listItem"))return!1;let s=f7(e,n,o);return!(!s||!r.is("element","p"))||!(s||!r.is("element","span"))}}(i,n.editing,o,this),{priority:"high"}),this.on("checkAttributes:item",(e,{viewElement:t,modelAttributes:n})=>{t.id!=n.listItemId&&(e.return=!0,e.stop())}),this.on("checkAttributes:list",(e,{viewElement:t,modelAttributes:n})=>{t.name==f1(n.listType)&&t.id==f2(n.listType,n.listIndent)||(e.return=!0,e.stop())})}_setupModelPostFixing(){let e=this.editor.model,t=this.getListAttributeNames();e.document.registerPostFixer(n=>(function(e,t,n,i){let o=e.document.differ.getChanges(),r=new Map,s=i.editor.config.get("list.multiBlock"),a=!1;for(let i of o){if("insert"==i.type&&"$text"!=i.name){let o=i.position.nodeAfter;if(!e.schema.checkAttribute(o,"listItemId"))for(let e of Array.from(o.getAttributeKeys()))n.includes(e)&&(t.removeAttribute(e,o),a=!0);for(let{item:t,previousPosition:n}of(f5(i.position,r),i.attributes.has("listItemId")||f5(i.position.getShiftedBy(i.length),r),e.createRangeIn(o)))fN(t)&&f5(n,r)}else"remove"==i.type?f5(i.position,r):"attribute"==i.type&&n.includes(i.attributeKey)&&
2(f5(i.range.start,r),null===i.attributeNewValue&&f5(i.range.start.getShiftedBy(1),r));if(!s&&"attribute"==i.type&&bn.includes(i.attributeKey)){let e=i.range.start.nodeAfter;null===i.attributeNewValue&&e&&e.is("element","listItem")?(t.rename(e,"paragraph"),a=!0):null===i.attributeOldValue&&e&&e.is("element")&&"listItem"!=e.name&&(t.rename(e,"listItem"),a=!0)}}let l=new Set;for(let e of r.values())a=i.fire("postFixer",{listNodes:new fB(e),listHead:e,writer:t,seenIds:l})||a;return a})(e,n,t,this)),this.on("postFixer",(e,{listNodes:t,writer:n})=>{e.return=function(e,t){let n=0,i=-1,o=null,r=!1;for(let{node:s}of e){let e=s.getAttribute("listIndent");if(e>n){let a;null===o?(o=e-n,a=n):(o>e&&(o=e),a=e-o),a>i+1&&(a=i+1),t.setAttribute("listIndent",a,s),r=!0,i=a}else o=null,n=e+1,i=e}return r}(t,n)||e.return},{priority:"high"}),this.on("postFixer",(e,{listNodes:t,writer:n,seenIds:i})=>{e.return=function(e,t,n){let i=new Set,o=!1;for(let{node:r}of e){if(i.has(r))continue;let e=r.getAttribute("listType"),s=r.getAttribute("listItemId");if(t.has(s)&&(s=fT.next()),t.add(s),r.is("element","listItem"))r.getAttribute("listItemId")!=s&&(n.setAttribute("listItemId",s,r),o=!0);else for(let t of fL(r,{direction:"forward"}))i.add(t),t.getAttribute("listType")!=e&&(s=fT.next(),e=t.getAttribute("listType")),t.getAttribute("listItemId")!=s&&(n.setAttribute("listItemId",s,t),o=!0)}return o}(t,i,n)||e.return},{priority:"high"})}_setupClipboardIntegration(){let e=this.editor.model,t=this.editor.plugins.get("ClipboardPipeline");this.listenTo(e,"insertContent",(t,[n,i])=>{let o;let r=n.is("documentFragment")?Array.from(n.getChildren()):[n];if(!r.length)return;let s=(i?e.createSelection(i):e.document.selection).getFirstPosition();if(fN(s.parent))o=s.parent;else{if(!fN(s.nodeBefore))return;o=s.nodeBefore}e.change(e=>{let t=o.getAttribute("listType"),n=Math.max(o.getAttribute("listIndent")-(r[0].getAttribute("listIndent")||0),0);for(let i of r){let r=fN(i);o.is("element","listItem")&&i.is("element","paragraph")&&e.rename(i,"listItem"),e.setAttributes({listIndent:(r?i.getAttribute("listIndent"):0)+n,listItemId:r?i.getAttribute("listItemId"):fT.next(),listType:t},i)}})},{priority:"high"}),this.listenTo(t,"outputTransformation",(t,n)=>{e.change(e=>{let t=Array.from(n.content.getChildren()),i=t[t.length-1];if(t.length>1&&i.is("element")&&i.isEmpty&&t.slice(0,-1).every(fN)&&e.remove(i),"copy"==n.method||"cut"==n.method){let t=Array.from(n.content.getChildren());fq(t)&&fU(t,e)}})})}_setupAccessibilityIntegration(){let e=this.editor,t=e.t;e.accessibility.addKeystrokeInfoGroup({id:"list",label:t("Keystrokes that can be used in a list"),keystrokes:[{label:t("Increase list item indent"),keystroke:"Tab"},{label:t("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function bo(e,t){let n=e.document.selection;if(!n.isCollapsed)return!fW(e);if("forward"===t)return!0;let i=n.getFirstPosition().parent,o=i.previousSibling;return!e.schema.isObject(o)&&(!!o.isEmpty||fq([i,o]))}function br(e,t,n,i){e.ui.componentFactory.add(t,()=>{let o=bs(l4,e,t,n,i);return o.set({tooltip:!0,isToggleable:!0}),o}),e.ui.componentFactory.add(`menuBar:${t}`,()=>{let o=bs(cw,e,t,n,i);return o.set({role:"menuitemcheckbox",isToggleable:!0}),o})}function bs(e,t,n,i,o){let r=t.commands.get(n),s=new e(t.locale);return s.set({label:i,icon:o}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",()=>{t.execute(n),t.editing.view.focus()}),s}class ba extends i4{static get pluginName(){return"ListUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||br(this.editor,"numberedList",e("Numbered List"),lZ.numberedList),this.editor.ui.componentFactory.has("bulletedList")||br(this.editor,"bulletedList",e("Bulleted List"),lZ.bulletedList)}}class bl extends i4{static get requires(){return[bi,ba]}static get pluginName(){return"List"}static get isOfficialPlugin(){return!0}}let bc={},bd={},bu={};for(let{listStyle:e,typeAttribute:t,listType:n}of[{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"}])bc[e]=n,bd[e]=t,t&&(bu[t]=e);var bh=r(9968),bg={attributes:{"data-cke":!0}};bg.setAttributes=iY(),bg.insert=iK().bind(null,"head"),bg.domAPI=iG(),bg.insertStyleElement=iZ(),iU()(bh.A,bg),bh.A&&bh.A.locals&&bh.A.locals;var bm=r(7141),bp={attributes:{"data-cke":!0}};bp.setAttributes=iY(),bp.insert=iK().bind(null,"head"),bp.domAPI=iG(),bp.insertStyleElement=iZ(),iU()(bm.A,bp),bm.A&&bm.A.locals&&bm.A.locals;var bk=r(8991),bf={attributes:{"data-cke":!0}};function bb(e,t){let n=(n,i,o)=>
2{if(!o.consumable.consume(i.item,n.name))return;let r=i.attributeNewValue,s=o.writer,a=o.mapper.toViewElement(i.item),l=[...a.getChildren()].find(e=>e.getCustomProperty("media-content"));s.remove(l);let c=e.getMediaViewElement(s,r,t);s.insert(s.createPositionAt(a,0),c)};return e=>{e.on("attribute:url:media",n)}}function bA(e,t,n,i){return e.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(e,n,i),e.createSlot()])}function bw(e){let t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function b_(e,t,n,i){e.change(o=>{let r=o.createElement("media",{url:t});e.insertObject(r,n,null,{setSelection:"on",findOptimalPosition:i?"auto":void 0})})}bf.setAttributes=iY(),bf.insert=iK().bind(null,"head"),bf.domAPI=iG(),bf.insertStyleElement=iZ(),iU()(bk.A,bf),bk.A&&bk.A.locals&&bk.A.locals;class bC extends i6{refresh(){let e;let t=this.editor.model,n=t.document.selection,i=bw(n);this.value=i?i.getAttribute("url"):void 0,this.isEnabled=function(e){let t=e.getSelectedElement();return!!t&&"media"===t.name}(n)||((e=gw(n,t).start.parent).isEmpty&&!t.schema.isLimit(e)&&(e=e.parent),t.schema.checkChild(e,"media"))}execute(e){let t=this.editor.model,n=t.document.selection,i=bw(n);i?t.change(t=>{t.setAttribute("url",e,i)}):b_(t,e,n,!0)}}class bv{constructor(e,t){let n=t.providers,i=t.extraProviders||[],o=new Set(t.removeProviders),r=n.concat(i).filter(e=>{let t=e.name;return t?!o.has(t):(_("media-embed-no-provider-name",{provider:e}),!1)});this.locale=e,this.providerDefinitions=r}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,n){return this._getMedia(t).getViewElement(e,n)}_getMedia(e){if(!e)return new by(this.locale);for(let t of(e=e.trim(),this.providerDefinitions)){let n=t.html;for(let i of n2(t.url)){let t=this._getUrlMatches(e,i);if(t)return new by(this.locale,e,t,n)}}return null}_getUrlMatches(e,t){let n=e.match(t);if(n)return n;let i=e.replace(/^https?:\/\//,"");return(n=i.match(t))||(n=(i=i.replace(/^www\./,"")).match(t))||null}}class by{constructor(e,t,n,i){this.url=this._getValidUrl(t),this._locale=e,this._match=n,this._previewRenderer=i}getViewElement(e,t){let n;let i={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(i["data-oembed-url"]=this.url),t.renderForEditingView&&(i.class="ck-media__wrapper");let o=this._getPreviewHtml(t);n=e.createRawElement("div",i,(e,t)=>{t.setContentOf(e,o)})}else this.url&&(i.url=this.url),n=e.createEmptyElement(t.elementName,i);return e.setCustomProperty("media-content",!0,n),n}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){let e=new l0,t=this._locale.t;return e.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.
2637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',e.viewBox="0 0 64 42",new iE({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":t("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}var bx=r(7048),bE={attributes:{"data-cke":!0}};bE.setAttributes=iY(),bE.insert=iK().bind(null,"head"),bE.domAPI=iG(),bE.insertStyleElement=iZ(),iU()(bx.A,bE),bx.A&&bx.A.locals&&bx.A.locals;class bD extends i4{static get pluginName(){return"MediaEmbedEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[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:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[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\/shorts\/([\w-]+)(?:\?t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{let t=e[1],n=e[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${t}${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:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[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+)/,/^instagram\.com\/reel\/(\w+)/]},{name:"twitter",url:[/^twitter\.com/,/^x\.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 bv(e.locale,e.config.get("mediaEmbed"))}init(){let e=this.editor,t=e.model.schema,n=e.t,i=e.conversion,o=e.config.get("mediaEmbed.previewsInData"),r=e.config.get("mediaEmbed.elementName"),s=this.registry;e.commands.add("mediaEmbed",new bC(e)),t.register("media",{inheritAllFrom
2:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:(e,{writer:t})=>{let n=e.getAttribute("url");return bA(t,s,n,{elementName:r,renderMediaPreview:!!n&&o})}}),i.for("dataDowncast").add(bb(s,{elementName:r,renderMediaPreview:o})),i.for("editingDowncast").elementToStructure({model:"media",view:(e,{writer:t})=>{var i,o;return i=bA(t,s,e.getAttribute("url"),{elementName:r,renderForEditingView:!0}),o=n("media widget"),t.setCustomProperty("media",!0,i),gp(i,t,{label:o})}}),i.for("editingDowncast").add(bb(s,{elementName:r,renderForEditingView:!0})),i.for("upcast").elementToElement({view:e=>["oembed",r].includes(e.name)&&e.getAttribute("url")?{name:!0}:null,model:(e,{writer:t})=>{let n=e.getAttribute("url");return s.hasMedia(n)?t.createElement("media",{url:n}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,{writer:t})=>{let n=e.getAttribute("data-oembed-url");return s.hasMedia(n)?t.createElement("media",{url:n}):null}}).add(e=>{e.on("element:figure",(e,t,n)=>{if(!n.consumable.consume(t.viewItem,{name:!0,classes:"media"}))return;let{modelRange:i,modelCursor:o}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=i,t.modelCursor=o,ih(i.getItems())||n.consumable.revert(t.viewItem,{name:!0,classes:"media"})})})}}let bI=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class bS extends i4{static get requires(){return[g1,hW,mi]}static get pluginName(){return"AutoMediaEmbed"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){let e=this.editor,t=e.model.document,n=e.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{let e=t.selection.getFirstRange(),n=lt.fromPosition(e.start);n.stickiness="toPrevious";let i=lt.fromPosition(e.end);i.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(n,i),n.detach(),i.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(o.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){let n=this.editor,i=n.plugins.get(bD).registry,r=new sY(e,t),s=r.getWalker({ignoreElementEnd:!0}),a="";for(let e of s)e.item.is("$textProxy")&&(a+=e.item.data);if(!(a=a.trim()).match(bI)||!i.hasMedia(a))return void r.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=lt.fromPosition(e),this._timeoutId=o.window.setTimeout(()=>{n.model.change(e=>{this._timeoutId=null,e.remove(r),r.detach();let t=null;"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),b_(n.model,a,t,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(hW).requestUndoOnBackspace()},100)):r.detach()}}var bM=r(5651),bB={attributes:{"data-cke":!0}};bB.setAttributes=iY(),bB.insert=iK().bind(null,"head"),bB.domAPI=iG(),bB.insertStyleElement=iZ(),iU()(bM.A,bB),bM.A&&bM.A.locals&&bM.A.locals;class bT extends i0{constructor(e,t){super(t),this.focusTracker=new ig,this.keystrokes=new ik,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView]})}render(){super.render(),i5({view:this}),this.focusTracker.add(this.urlInputView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.urlInputView.focus()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.value=e.trim()}isValid(){for(let e of(this.resetFormStatus(),this._validators)){let t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){let e=this.locale.t,t=new cW(this.locale,dK),n=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,n.inputMode="url",n.on("input",()=>{t.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),t}}class bN extends i4{static get requires(){return[bD,cg]}static get pluginName(){return"MediaEmbedUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add("mediaEmbed",()=>{let e=this.editor.locale.t,t=this._createDialogButton(l4);return t.tooltip=!0,t.label=e("Insert media"),t}),e.ui.componentFactory.add("menuBar:mediaEmbed",()=>{let e=this.editor.locale.t,t=this._createDialogButton(cw);return t.label=e("Media"),t})}_createDialogButton(e){let t=this.editor,n=new e(t.locale),i=t.commands.get("mediaEmbed"),o=this.editor.plugins.get("Dialog");return n.icon='<svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208
21h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>',n.bind("isEnabled").to(i,"isEnabled"),n.on("execute",()=>{"mediaEmbed"===o.id?o.hide():this._showDialog()}),n}_showDialog(){let e=this.editor,t=e.plugins.get("Dialog"),n=e.commands.get("mediaEmbed"),i=e.locale.t;if(!this._formView){var o;let t=e.plugins.get(bD).registry;this._formView=new(i2(bT))((o=e.t,[e=>{if(!e.url.length)return o("The URL must not be empty.")},e=>{if(!t.hasMedia(e.url))return o("This media URL is not supported.")}]),e.locale),this._formView.on("submit",()=>this._handleSubmitForm())}t.show({id:"mediaEmbed",title:i("Insert media"),content:this._formView,isModal:!0,onShow:()=>{this._formView.url=n.value||"",this._formView.resetFormStatus(),this._formView.urlInputView.fieldView.select()},actionButtons:[{label:i("Cancel"),withText:!0,onExecute:()=>t.hide()},{label:i("Accept"),class:"ck-button-action",withText:!0,onExecute:()=>this._handleSubmitForm()}]})}_handleSubmitForm(){let e=this.editor,t=e.plugins.get("Dialog");this._formView.isValid()&&(e.execute("mediaEmbed",this._formView.url),t.hide(),e.editing.view.focus())}}var bP=r(70),bL={attributes:{"data-cke":!0}};bL.setAttributes=iY(),bL.insert=iK().bind(null,"head"),bL.domAPI=iG(),bL.insertStyleElement=iZ(),iU()(bP.A,bL),bP.A&&bP.A.locals&&bP.A.locals;class bO extends i4{static get requires(){return[bD,bN,bS,gL]}static get pluginName(){return"MediaEmbed"}static get isOfficialPlugin(){return!0}}function bz(e){return void 0!==e&&e.endsWith("px")}function bR(e){return e.toFixed(2).replace(/\.?0+$/,"")+"px"}let bF=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,bj=/xmlns:o="urn:schemas-microsoft-com/i;class bV{constructor(e,t=!1){this.document=e,this.hasMultiLevelListPlugin=t}isActive(e){return bF.test(e)||bj.test(e)}execute(e){let{body:t,stylesString:n}=e._parsedData;(function(e,t,n){if(!e.childCount)return;let i=new lT(e.document),o=function(e,t){let n=t.createRangeIn(e),i=[],o=new Set;for(let e of n.getItems()){if(!e.is("element")||!e.name.match(/^(p|h\d+|li|div)$/))continue;let t=function(e){let t=e.getStyle("margin-left");return void 0===t||t.endsWith("px")?t:function(e){let t=parseFloat(e);return e.endsWith("pt")?bR(96*t/72):e.endsWith("pc")?bR(12*t*96/72):e.endsWith("in")?bR(96*t):e.endsWith("cm")?bR(96*t/2.54):e.endsWith("mm")?bR(t/10*96/2.54):e}(t)}(e);if(void 0===t||0!=parseFloat(t)||Array.from(e.getClassNames()).find(e=>e.startsWith("MsoList"))||(t=void 0),e.hasStyle("mso-list")||void 0!==t&&o.has(t)){let n=function(e){let t=e.getStyle("mso-list");if(void 0===t)return{};let n=t.match(/(^|\s{1,100})l(\d+)/i),i=t.match(/\s{0,100}lfo(\d+)/i),o=t.match(/\s{0,100}level(\d+)/i);return n&&i&&o?{id:n[2],order:i[1],indent:parseInt(o[1])}:{indent:1}}(e);i.push({element:e,id:n.id,order:n.order,indent:n.indent,marginLeft:t}),void 0!==t&&o.add(t)}else o.clear()}return i}(e,i);if(!o.length)return;let r={},s=[];for(let e of o)if(void 0!==e.indent){(function(e){var t;return(t=e.element.previousSibling||e.element.parent).is("element","ol")||t.is("element","ul")})(e)||(s.length=0);let o=`${e.id}:${e.indent}`,a=Math.min(e.indent-1,s.length);if(a<s.length&&s[a].id!==e.id&&(s.length=a),a<s.length-1)s.length=a+1;else{let l=function(e,t){let n=RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),i=RegExp(`@list\\s+l${e.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),o=RegExp(`@list l${e.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),r=i.exec(t),s=o.exec(t),a=r&&!s,l=n.exec(t),c="decimal",d="ol",u=null;if(l&&l[1]){let t=/mso-level-number-format:([^;]{0,100});/gi.exec(l[1]);if(t&&t[1]&&(d="bullet"!==(c=t[1].trim())&&"image"!==c?"ol":"ul"),"bullet"===c){let t=function(e){if("li"==e.name&&"ul"==e.parent.name&&e.parent.hasAttribute("type"))return e.parent.getAttribute("type");let t=function(e){if(e.getChild(0).is("$text"))return null;for(let t of e.getChildren()){if(!t.is("element","span"))continue;let e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}(e);if(!t)return null;let n=t._data;return"o"===n?"circle":"\xb7"===n?"disc":"\xa7"===n?"square":null}(e.element);t&&(c=t)}else{let e=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi.exec(l[1]);e&&e[1]&&(u=parseInt(e[1]))}a&&(d="ol")}return{type:d,startIndex:u,style:function(e){if(e.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(e){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 e;default:return null}}(c),isLegalStyleList:a}}(e,t);if(a>s.length-1||s[a].listElement.name!=l.type){0==a&&"ol"==l.type&&void 0!==e.id&&r[o]&&(l.startIndex=r[o]);let t=function(e,t,n){let i=t.createElement(e.type);return e.style&&t.setStyle("list-style-type",e.style,i),e.startIndex&&e.startIndex>1&&t.setAttribute("start",e.startIndex,i),e.isLegalStyleList&&n&&t.addClass("legal-list",i),i}(l,i,n);if(bz(e.marginLeft)&&(0==a||bz(s[a-1].marginLeft))){let n=e.marginLeft;a>0&&(n=bR(parseFloat(n)-parseFloat(s[a-1].marginLeft))),i.setStyle("padding-left",n,t)}if(0==s.length){let n=e.element.parent,o=n.getChildIndex(e.element)+1;i.insertChild(o,t,n)}else{let e=s[a-1].listItemElements;i.appendChild(t,e[e.length-1])}s[a]={...e,listElement:t,listItemElements:[]},0==a&&void 0!==e.id&&(r[o]=l.startIndex||1)}}let l="li"==e.element.name?e.element:i.createElement("li");i.appendChild(l,s[a].listElement),s[a].listItemElements.push(l),0==a&&void 0!==e.id&&r[o]++,e.element!=l&&i.appendChild(e.element,l),function(e,t){let n=new om({name:"span",styles:{"mso-list":"Ignore"}});for(let i of t.createRangeIn(e))"elementStart"===i.type&&n.match(i.item)&&t.remove(i.item)}(e.element,i),i.removeStyle("text-indent",e.element),i.removeStyle("margin-left",e.element)}else{let t=s.find(t=>t.marginLeft==e.marginLeft);if(t){let n=t.listItemElements;i.appendChild(e.element,n[n.length-1]),i.removeStyle("margin-left",e.element)}else s.length=0}})(t,n,this.hasMultiLevelListPlugin),function(e,t){if(!e.childCount)return;let n=new lT(e.document),i=function(e,t){let n=t.createRangeIn(e),i=new om({name:/v:(.+)/}),o=[];for(let e of n){if("elementStart"!=e.type)continue;let t=e.item,n=t.previousSibling,r=n&&n.is("element")?n.name:null,s=["Chart"],a=i.match(t),l=t.getAttribute("o:gfxdata"),c="v:shapetype"===r,d=l&&s.some(e=>t.getAttribute("id").includes(e));a&&l&&!c&&!d&&o.push(e.item.getAttribute("id"))}return o}(e,n);(function(e,t,n){let i=n.createRangeIn(t),o=new om({name:"img"}),r=[];for(let t of i)if(t.item.is("element")&&o.match(t.item)){let n=t.item,i=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];i.length&&i.every(t=>e.indexOf(t)>
2-1)?r.push(n):n.getAttribute("src")||r.push(n)}for(let e of r)n.remove(e)})(i,e,n),function(e,t,n){let i=n.createRangeIn(t),o=[];for(let t of i)if("elementStart"==t.type&&t.item.is("element","v:shape")){let n=t.item.getAttribute("id");if(e.includes(n))continue;(function e(t,n){for(let i of t)if(i.is("element")&&("img"==i.name&&i.getAttribute("v:shapes")==n||e(i.getChildren(),n)))return!0;return!1})(t.item.parent.getChildren(),n)||o.push(t.item)}for(let e of o){let t={src:function(e){for(let t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}(e)};e.hasAttribute("alt")&&(t.alt=e.getAttribute("alt"));let i=n.createElement("img",t);n.insertChild(e.index+1,i,e.parent)}}(i,e,n),function(e,t){let n=t.createRangeIn(e),i=new om({name:/v:(.+)/}),o=[];for(let e of n)"elementStart"==e.type&&i.match(e.item)&&o.push(e.item);for(let e of o)t.remove(e)}(e,n);let o=function(e,t){let n=t.createRangeIn(e),i=new om({name:"img"}),o=[];for(let e of n)e.item.is("element")&&i.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&o.push(e.item);return o}(e,n);o.length&&function(e,t,n){if(e.length===t.length)for(let i=0;i<e.length;i++){let o=`data:${t[i].type};base64,${btoa(t[i].hex.match(/\w{2}/g).map(e=>String.fromCharCode(parseInt(e,16))).join(""))}`;n.setAttribute("src",o,e[i])}}(o,function(e){if(!e)return[];let t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),i=e.match(n),o=[];if(i)for(let e of i){let n=!1;e.includes("\\pngblip")?n="image/png":e.includes("\\jpegblip")&&(n="image/jpeg"),n&&o.push({hex:e.replace(t,"").replace(/[^\da-fA-F]/g,""),type:n})}return o}(t),n)}(t,e.dataTransfer.getData("text/rtf")),function(e){let t=[],n=new lT(e.document);for(let{item:i}of n.createRangeIn(e))if(i.is("element")){for(let e of i.getClassNames())/\bmso/gi.exec(e)&&n.removeClass(e,i);for(let e of i.getStyleNames())/\bmso/gi.exec(e)&&n.removeStyle(e,i);(i.is("element","w:sdt")||i.is("element","w:sdtpr")&&i.isEmpty||i.is("element","o:p")&&i.isEmpty)&&t.push(i)}for(let e of t){let t=e.parent,i=t.getChildIndex(e);n.insertChild(i,e.getChildren(),t),n.remove(e)}}(t),e.content=t}}function bH(e,t,n,{blockElements:i,inlineObjectElements:o}){let r=n.createPositionAt(e,"forward"==t?"after":"before");return r=r.getLastMatchingPosition(({item:e})=>e.is("element")&&!i.includes(e.name)&&!o.includes(e.name),{direction:t}),"forward"==t?r.nodeAfter:r.nodeBefore}function bU(e,t){return!!e&&e.is("element")&&t.includes(e.name)}let bq=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class bG{constructor(e){this.document=e}isActive(e){return bq.test(e)}execute(e){let t=new lT(this.document),{body:n}=e._parsedData;(function(e,t){for(let n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){let i=e.getChildIndex(n);t.remove(n),t.insertChild(i,n.getChildren(),e)}})(n,t),function(e,t){for(let n of t.createRangeIn(e)){let e=n.item;if(e.is("element","li")){let n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),function(e,t){let n=new rR(new o9(t.document.stylesProcessor),{renderingMode:"data"}),i=n.blockElements,o=n.inlineObjectElements,r=[];for(let n of t.createRangeIn(e)){let e=n.item;if(e.is("element","br")){let n=bH(e,"forward",t,{blockElements:i,inlineObjectElements:o}),s=bH(e,"backward",t,{blockElements:i,inlineObjectElements:o}),a=bU(n,i);(bU(s,i)||a)&&r.push(e)}}for(let e of r)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(n,t),e.content=n}}let bW=/<google-sheets-html-origin/i;class bK{constructor(e){this.document=e}isActive(e){return bW.test(e)}execute(e){let t=new lT(this.document),{body:n}=e._parsedData;(function(e,t){for(let n of e.getChildren())if(n.is("element","google-sheets-html-origin")){let i=e.getChildIndex(n);t.remove(n),t.insertChild(i,n.getChildren(),e)}})(n,t),function(e,t){for(let n of e.getChildren())n.is("element","table")&&n.hasAttribute("xmlns")&&t.removeAttribute("xmlns",n)}(n,t),function(e,t){for(let n of e.getChildren())n.is("element","table")&&"0px"===n.get
2Style("width")&&t.removeStyle("width",n)}(n,t),function(e,t){for(let n of Array.from(e.getChildren()))n.is("element","style")&&t.remove(n)}(n,t),e.content=n}}function b$(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>1===t.length?" ":Array(t.length+1).join("\xa0 ").substr(0,t.length))}class bY extends i4{static get pluginName(){return"PasteFromOffice"}static get isOfficialPlugin(){return!0}static get requires(){return[hM]}init(){let e=this.editor,t=e.plugins.get("ClipboardPipeline"),n=e.editing.view.document,i=[],o=this.editor.plugins.has("MultiLevelList");i.push(new bV(n,o)),i.push(new bG(n)),i.push(new bK(n)),t.on("inputTransformation",(t,o)=>{if(o._isTransformedWithPasteFromOffice||e.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;let r=o.dataTransfer.getData("text/html"),s=i.find(e=>e.isActive(r));s&&(o._parsedData||(o._parsedData=function(e,t){let n=new DOMParser,i=b$(b$(function(e){let t="</body>",n=e.indexOf(t);if(n<0)return e;let i=e.indexOf("</html>",n+t.length);return e.substring(0,n+t.length)+(i>=0?e.substring(i):"")}(e=(e=e.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,"")))).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,"\xa0</").replace(/ <o:p><\/o:p>/g,"\xa0<o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><"),o=n.parseFromString(i,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach(e=>{let t=e.innerText.length||0;e.innerText=Array(t+1).join("\xa0 ").substr(0,t)})}(o);let r=o.body.innerHTML,s=function(e,t){let n=new rR(new o9(t),{renderingMode:"data"}),i=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)i.appendChild(o[0]);return n.domToView(i,{skipComments:!0})}(o,t),a=function(e){let t=[],n=[];for(let i of Array.from(e.getElementsByTagName("style")))i.sheet&&i.sheet.cssRules&&i.sheet.cssRules.length&&(t.push(i.sheet),n.push(i.innerHTML));return{styles:t,stylesString:n.join(" ")}}(o);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}(r,n.stylesProcessor)),s.execute(o),o._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}}function bQ(e,t,n,i,o=1){null!=t&&null!=o&&t>o?i.setAttribute(e,t,n):i.removeAttribute(e,n)}function bZ(e,t,n={}){let i=e.createElement("tableCell",n);return e.insertElement("paragraph",i),e.insert(i,t),i}function bJ(e,t){let n=parseInt(t.parent.parent.getAttribute("headingColumns")||"0"),{column:i}=e.getCellLocation(t);return!!n&&i<n}function bX(e){return t=>{t.on(`element:${e}`,(e,t,{writer:n})=>{if(!t.modelRange)return;let i=t.modelRange.start.nodeAfter,o=n.createPositionAt(i,0);if(t.viewItem.isEmpty)return void n.insertElement("paragraph",o);let r=Array.from(i.getChildren());if(r.every(e=>e.is("element","$marker"))){let e=n.createElement("paragraph");for(let t of(n.insert(e,n.createPositionAt(i,0)),r))n.move(n.createRangeOn(t),n.createPositionAt(e,"end"))}},{priority:"low"})}}class b0{constructor(e,t={}){this._jumpedToStartRow=!1,this._table=e,this._startRow=void 0!==t.row?t.row:t.startRow||0,this._endRow=void 0!==t.row?t.row:t.endRow,this._startColumn=void 0!==t.column?t.column:t.startColumn||0,this._endColumn=void 0!==t.column?t.column:t.endColumn,this._includeAllSlots=!!t.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();let e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0,value:void 0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{let n=e.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();let i=parseInt(n.getAttribute("colspan")||"1"),o=parseInt(n.getAttribute("rowspan")||"1");(i>1||o>1)&&this._recordSpans(n,o,i),this._shouldSkipSlot()||(t=this._formatOutValue(n)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}
2skipRow(e){this._skipRows.add(e)}_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(e,t=this._row,n=this._column){return{done:!1,value:new b1(this,e,t,n)}}_shouldSkipSlot(){let e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,i=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||i}_getSpanned(){let e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,n){let i={cell:e,row:this._row,column:this._column};for(let e=this._row;e<this._row+t;e++)for(let t=this._column;t<this._column+n;t++)e==this._row&&t==this._column||this._markSpannedCell(e,t,i)}_markSpannedCell(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){let e=this._getRowLength(0);for(let t=this._startRow;!this._jumpedToStartRow;t--)e===this._getRowLength(t)&&(this._row=t,this._rowIndex=t,this._jumpedToStartRow=!0)}_getRowLength(e){return[...this._table.getChild(e).getChildren()].reduce((e,t)=>e+parseInt(t.getAttribute("colspan")||"1"),0)}}class b1{constructor(e,t,n,i){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=n,this.cellAnchorColumn=i,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._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 b2(e,t){return(n,{writer:i})=>{let o=n.getAttribute("headingRows")||0,r=i.createContainerElement("table",null,[]),s=i.createContainerElement("figure",{class:"table"},r);for(let{positionOffset:s,filter:a}of(o>0&&i.insert(i.createPositionAt(r,"end"),i.createContainerElement("thead",null,i.createSlot(e=>e.is("element","tableRow")&&e.index<o))),o<e.getRows(n)&&i.insert(i.createPositionAt(r,"end"),i.createContainerElement("tbody",null,i.createSlot(e=>e.is("element","tableRow")&&e.index>=o))),t.additionalSlots))i.insert(i.createPositionAt(r,s),i.createSlot(a));return i.insert(i.createPositionAt(r,"after"),i.createSlot(e=>!e.is("element","tableRow")&&!t.additionalSlots.some(({filter:t})=>t(e)))),t.asWidget?(i.setCustomProperty("table",!0,s),gp(s,i,{hasSelectionHandle:!0})):s}}function b5(e={}){return(t,{writer:n})=>{let i=t.parent,o=i.parent,r=o.getChildIndex(i),s=new b0(o,{row:r}),a=o.getAttribute("headingRows")||0,l=o.getAttribute("headingColumns")||0,c=null;for(let i of s)if(i.cell==t){let t=i.row<a||i.column<l?"th":"td";c=e.asWidget?gA(n.createEditableElement(t),n):n.createContainerElement(t);break}return c}}function b4(e={}){return(t,{writer:n})=>{if(!t.parent.is("element","tableCell")||!b3(t))return null;if(e.asWidget)return n.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{let e=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,e),e}}}function b3(e){return 1==e.parent.childCount&&!!e.getAttributeKeys().next().done}class b6 extends i6{refresh(){let e=this.editor.model,t=e.document.selection,n=e.schema;this.isEnabled=function(e,t){let n=e.getFirstPosition().parent,i=n===n.root?n:n.parent;return t.checkChild(i,"table")}(t,n)}execute(e={}){let t=this.editor,n=t.model,i=t.plugins.get("TableUtils"),o=t.config.get("table.defaultHeadings.rows"),r=t.config.get("table.defaultHeadings.columns");void 0===e.headingRows&&o&&(e.headingRows=o),void 0===e.headingColumns&&r&&(e.headingColumns=r),n.change(t=>{let o=i.createTable(t,e);n.insertObject(o,null,null,{findOptimalPosition:"auto"}),t.setSelection(t.createPositionAt(o.getNodeByPath([0,0,0]),0))})}}class b7 extends i6{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){let e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){let e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="above"===this.order,o=n.getSelectionAffectedTableCells(t),r=n.getRowIndexes(o),s=i?r.first:r.last,a=o[0].findAnce
2stor("table");n.insertRows(a,{at:i?s:s+1,copyStructureFromAbove:!i})}}class b9 extends i6{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){let e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){let e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="left"===this.order,o=n.getSelectionAffectedTableCells(t),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 b8 extends i6{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){let e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){let e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function Ae(e,t,n){let{startRow:i,startColumn:o,endRow:r,endColumn:s}=t,a=n.createElement("table"),l=r-i+1;for(let e=0;e<l;e++)n.insertElement("tableRow",a,"end");for(let{row:t,column:l,cell:c,isAnchor:d,cellAnchorRow:u,cellAnchorColumn:h}of[...new b0(e,{startRow:i,endRow:r,startColumn:o,endColumn:s,includeAllSlots:!0})]){let e=t-i,g=a.getChild(e);if(d){let e=n.cloneElement(c);n.append(e,g),Ar(e,t,l,r,s,n)}else(u<i||h<o)&&bZ(n,n.createPositionAt(g,"end"))}return function(e,t,n,i,o){let r=parseInt(t.getAttribute("headingRows")||"0");r>0&&bQ("headingRows",r-n,e,o,0);let s=parseInt(t.getAttribute("headingColumns")||"0");s>0&&bQ("headingColumns",s-i,e,o,0)}(a,e,i,o,n),a}function At(e,t,n=0){let i=[];for(let o of new b0(e,{startRow:n,endRow:t-1})){let{row:e,cellHeight:n}=o;e<t&&t<=e+n-1&&i.push(o)}return i}function An(e,t,n){let i=e.parent,o=i.parent,r=i.index,s=t-r,a={},l=parseInt(e.getAttribute("rowspan"))-s;l>1&&(a.rowspan=l);let c=parseInt(e.getAttribute("colspan")||"1");c>1&&(a.colspan=c);let d=r+s,u=[...new b0(o,{startRow:r,endRow:d,includeAllSlots:!0})],h,g=null;for(let t of u){let{row:i,column:o,cell:r}=t;r===e&&void 0===h&&(h=o),void 0!==h&&h===o&&i===d&&(g=bZ(n,t.getPositionBefore(),a))}return bQ("rowspan",s,e,n),g}function Ai(e,t){let n=[];for(let i of new b0(e)){let{column:e,cellWidth:o}=i;e<t&&t<=e+o-1&&n.push(i)}return n}function Ao(e,t,n,i){let o=n-t,r={},s=parseInt(e.getAttribute("colspan"))-o;s>1&&(r.colspan=s);let a=parseInt(e.getAttribute("rowspan")||"1");a>1&&(r.rowspan=a);let l=bZ(i,i.createPositionAfter(e),r);return bQ("colspan",o,e,i),l}function Ar(e,t,n,i,o,r){let s=parseInt(e.getAttribute("colspan")||"1"),a=parseInt(e.getAttribute("rowspan")||"1");n+s-1>o&&bQ("colspan",o-n+1,e,r,1),t+a-1>i&&bQ("rowspan",i-t+1,e,r,1)}function As(e,t){let n=Array(t.getColumns(e)).fill(0);for(let{column:t}of new b0(e))n[t]++;let i=n.reduce((e,t,n)=>t?e:[...e,n],[]);if(i.length>0){let n=i[i.length-1];return t.removeColumns(e,{at:n}),!0}return!1}function Aa(e,t){let n=[],i=t.getRows(e);for(let t=0;t<i;t++)e.getChild(t).isEmpty&&n.push(t);if(n.length>0){let i=n[n.length-1];return t.removeRows(e,{at:i}),!0}return!1}function Al(e,t){As(e,t)||Aa(e,t)}function Ac(e,t){let n=Array.from(new b0(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every(({cellHeight:e})=>1===e))return t.lastRow;let i=n[0].cellHeight-1;return t.lastRow+i}function Ad(e,t){let n=Array.from(new b0(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every(({cellWidth:e})=>1===e))return t.lastColumn;let i=n[0].cellWidth-1;return t.lastColumn+i}class Au extends i6{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){let e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){let e=this.editor.model,t=e.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],i=this.value,o=this.direction;e.change(e=>{let t="right"==o||"down"==o,r=t?n:i,s=t?i:n,a=s.parent;Ah(s)||(Ah(r)&&e.remove(e.createRangeIn(r)),e.move(e.createRangeIn(s),e.createPositionAt(r,"end"))),e.remove(s);let l=this.isHorizontal?"colspan":"rowspan",c=parseInt(n.getAttribute(l)||"1"),d=parseInt(i.getAttribute(l)||"1");e.setAttribute(l,c+d,r),e.setSelection(e.createRangeIn(r));let u=this.editor.plugins.get("TableUtils");
2Al(a.findAncestor("table"),u)})}_getMergeableCell(){let e=this.editor.model.document,t=this.editor.plugins.get("TableUtils"),n=t.getTableCellsContainingSelection(e.selection)[0];if(!n)return;let i=this.isHorizontal?function(e,t,n){let i=e.parent.parent,o="right"==t?e.nextSibling:e.previousSibling,r=(i.getAttribute("headingColumns")||0)>0;if(!o)return;let s="right"==t?e:o,a="right"==t?o:e,{column:l}=n.getCellLocation(s),{column:c}=n.getCellLocation(a),d=parseInt(s.getAttribute("colspan")||"1"),u=bJ(n,s),h=bJ(n,a);if(!r||u==h)return l+d===c?o:void 0}(n,this.direction,t):function(e,t,n){let i=e.parent,o=i.parent,r=o.getChildIndex(i);if("down"==t&&r===n.getRows(o)-1||"up"==t&&0===r)return null;let s=parseInt(e.getAttribute("rowspan")||"1"),a=o.getAttribute("headingRows")||0;if(a&&("down"==t&&r+s===a||"up"==t&&r===a))return null;let l=parseInt(e.getAttribute("rowspan")||"1"),c="down"==t?r+l:r,d=[...new b0(o,{endRow:c})],u=d.find(t=>t.cell===e).column,h=d.find(({row:e,cellHeight:n,column:i})=>i===u&&("down"==t?e===c:c===e+n));return h&&h.cell?h.cell:null}(n,this.direction,t);if(!i)return;let o=this.isHorizontal?"rowspan":"colspan",r=parseInt(n.getAttribute(o)||"1");return parseInt(i.getAttribute(o)||"1")===r?i:void 0}}function Ah(e){let t=e.getChild(0);return 1==e.childCount&&t.is("element","paragraph")&&t.isEmpty}class Ag extends i6{refresh(){let e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),n=t[0];if(n){let i=n.findAncestor("table"),o=e.getRows(i)-1,r=e.getRowIndexes(t),s=0===r.first&&r.last===o;this.isEnabled=!s}else this.isEnabled=!1}execute(){let e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=t.getSelectionAffectedTableCells(e.document.selection),i=t.getRowIndexes(n),o=n[0],r=o.findAncestor("table"),s=t.getCellLocation(o).column;e.change(e=>{let n=i.last-i.first+1;t.removeRows(r,{at:i.first,rows:n});let o=function(e,t,n,i){let o=e.getChild(Math.min(t,i-1)),r=o.getChild(0),s=0;for(let e of o.getChildren()){if(s>n)break;r=e,s+=parseInt(e.getAttribute("colspan")||"1")}return r}(r,i.first,s,t.getRows(r));e.setSelection(e.createPositionAt(o,0))})}}class Am extends i6{refresh(){let e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),n=t[0];if(n){let i=n.findAncestor("table"),o=e.getColumns(i),{first:r,last:s}=e.getColumnIndexes(t);this.isEnabled=s-r<o-1}else this.isEnabled=!1}execute(){let e=this.editor.plugins.get("TableUtils"),[t,n]=function(e,t){let n=t.getSelectionAffectedTableCells(e),i=n[0],o=n.pop(),r=[i,o];return i.isBefore(o)?r:r.reverse()}(this.editor.model.document.selection,e),i=t.parent.parent,o=[...new b0(i)],r={first:o.find(e=>e.cell===t).column,last:o.find(e=>e.cell===n).column},s=parseInt(n.getAttribute("colspan")||"1")>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?o.reverse().find(({column:e})=>e<r.first).cell:o.reverse().find(({column:e})=>e>r.last).cell;this.editor.model.change(t=>{let n=r.last-r.first+1;e.removeColumns(i,{at:r.first,columns:n}),t.setSelection(t.createPositionAt(s,0))})}}class Ap extends i6{refresh(){let e=this.editor.plugins.get("TableUtils"),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every(e=>this._isInHeading(e,e.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=t.getSelectionAffectedTableCells(n.document.selection),o=i[0].findAncestor("table"),{first:r,last:s}=t.getRowIndexes(i),a=this.value?r:s+1,l=o.getAttribute("headingRows")||0;n.change(e=>{if(a)for(let{cell:t}of At(o,a,a>l?l:0))An(t,a,e);bQ("headingRows",a,o,e,0)})}_isInHeading(e,t){let n=parseInt(t.getAttribute("headingRows")||"0");return!!n&&e.parent.index<n}}class Ak extends i6{refresh(){let e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=t.getSelectionAffectedTableCells(e.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every(e=>bJ(t,e))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=t.getSelectionAffectedTableCells(n.document.selection),o=i[0].findAnce
2stor("table"),{first:r,last:s}=t.getColumnIndexes(i),a=this.value?r:s+1;n.change(e=>{if(a)for(let{cell:t,column:n}of Ai(o,a))Ao(t,n,a,e);bQ("headingColumns",a,o,e,0)})}}class Af extends i4{static get pluginName(){return"TableUtils"}static get isOfficialPlugin(){return!0}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){let t=e.parent,n=t.parent,i=n.getChildIndex(t);for(let{cell:t,row:o,column:r}of new b0(n,{row:i}))if(t===e)return{row:o,column:r}}createTable(e,t){let n=e.createElement("table"),i=t.rows||2,o=t.columns||2;return Ab(e,n,0,i,o),t.headingRows&&bQ("headingRows",Math.min(t.headingRows,i),n,e,0),t.headingColumns&&bQ("headingColumns",Math.min(t.headingColumns,o),n,e,0),n}insertRows(e,t={}){let n=this.editor.model,i=t.at||0,o=t.rows||1,r=void 0!==t.copyStructureFromAbove,s=t.copyStructureFromAbove?i-1:i,a=this.getRows(e),l=this.getColumns(e);if(i>a)throw new w("tableutils-insertrows-insert-out-of-range",this,{options:t});n.change(t=>{let n=e.getAttribute("headingRows")||0;if(n>i&&bQ("headingRows",n+o,e,t,0),!r&&(0===i||i===a))return void Ab(t,e,i,o,l);let c=new b0(e,{endRow:r?Math.max(i,s):i}),d=Array(l).fill(1);for(let{row:e,column:n,cellHeight:a,cellWidth:l,cell:u}of c){let c=e+a-1,h=e<=s&&s<=c;e<i&&i<=c?(t.setAttribute("rowspan",a+o,u),d[n]=-l):r&&h&&(d[n]=l)}for(let n=0;n<o;n++){let n=t.createElement("tableRow");t.insert(n,e,i);for(let e=0;e<d.length;e++){let i=d[e],o=t.createPositionAt(n,"end");i>0&&bZ(t,o,i>1?{colspan:i}:void 0),e+=Math.abs(i)-1}}})}insertColumns(e,t={}){let n=this.editor.model,i=t.at||0,o=t.columns||1;n.change(t=>{let n=e.getAttribute("headingColumns");i<n&&t.setAttribute("headingColumns",n+o,e);let r=this.getColumns(e);if(0===i||r===i){for(let n of e.getChildren())n.is("element","tableRow")&&AA(o,t,t.createPositionAt(n,i?"end":0));return}let s=new b0(e,{column:i,includeAllSlots:!0});for(let e of s){let{row:n,cell:r,cellAnchorColumn:a,cellAnchorRow:l,cellWidth:c,cellHeight:d}=e;if(a<i){t.setAttribute("colspan",c+o,r);let e=l+d-1;for(let t=n;t<=e;t++)s.skipRow(t)}else AA(o,t,e.getPositionBefore())}})}removeRows(e,t){let n=this.editor.model,i=t.rows||1,o=this.getRows(e),r=t.at,s=r+i-1;if(s>o-1)throw new w("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});n.change(t=>{let n={first:r,last:s},{cellsToMove:i,cellsToTrim:o}=function(e,{first:t,last:n}){let i=new Map,o=[];for(let{row:r,column:s,cellHeight:a,cell:l}of new b0(e,{endRow:n})){let e=r+a-1;if(r>=t&&r<=n&&e>n){let e=a-(n-r+1);i.set(s,{cell:l,rowspan:e})}if(r<t&&e>=t){let i;i=e>=n?n-t+1:e-t+1,o.push({cell:l,rowspan:a-i})}}return{cellsToMove:i,cellsToTrim:o}}(e,n);i.size&&function(e,t,n,i){let o;let r=[...new b0(e,{includeAllSlots:!0,row:t})],s=e.getChild(t);for(let{column:e,cell:t,isAnchor:a}of r)if(n.has(e)){let{cell:t,rowspan:r}=n.get(e),a=o?i.createPositionAfter(o):i.createPositionAt(s,0);i.move(i.createRangeOn(t),a),bQ("rowspan",r,t,i),o=t}else a&&(o=t)}(e,s+1,i,t);for(let n=s;n>=r;n--)t.remove(e.getChild(n));for(let{rowspan:e,cell:n}of o)bQ("rowspan",e,n,t);(function(e,{first:t,last:n},i){let o=e.getAttribute("headingRows")||0;t<o&&bQ("headingRows",n<o?o-(n-t+1):t,e,i,0)})(e,n,t),As(e,this)||Aa(e,this)})}removeColumns(e,t){let n=this.editor.model,i=t.at,o=t.columns||1,r=t.at+o-1;n.change(t=>{!function(e,t,n){let i=e.getAttribute("headingColumns")||0;if(i&&t.first<i){let o=Math.min(i-1,t.last)-t.first+1;n.setAttribute("headingColumns",i-o,e)}}(e,{first:i,last:r},t);let n=function(e){let t=e.is("element","tableColumnGroup")?e:Array.from(e.getChildren()).find(e=>e.is("element","tableColumnGroup"));return t?Array.from(t.getChildren()):[]}(e);for(let o=r;o>=i;o--){for(let{cell:n,column:i,cellWidth:r}of[...new b0(e)])i<=o&&r>1&&i+r>o?bQ("colspan",r-1,n,t):i===o&&t.remove(n);if(n[o]){let e=0===o?n[1]:n[o-1],i=parseFloat(n[o].getAttribute("columnWidth")),r=parseFloat(e.getAttribute("columnWidth"));t.remove(n[o]),t.setAttribute("columnWidth",i+r+"%",e)}}Aa(e,this)||As(e,this)})}splitCellVertically(e,t=2){let n=this.editor.model,i=e.parent.parent,o=parseInt(e.getAttribute("rowspan")||"1"),r=parseInt(e.getAttribute("colspan")||"1");n.change(n=>{if(r>1){let{newCellsSpan:i,updatedSpan:s}=Aw(r,t);bQ("colspan",s,e,n);let a={};i>1&&(a.colspan=i),o>1&&(a.rowspan=o),AA(r>t?t-1:r-1,n,n.createPositionAfter(e),a)}if(r<t){let s=t-r,a=[...new b0(i)],{column:l}=a.find(({cell:t})=>t===e);for(let{cell:t,cellWidth:i}of a.filter(({cell:t,cellWidth:n,column:i})=>t!==e&&i===l||i<l&&i+n>l))n.setAttribute("colspan",i+s,t);let c={};o>1&&(c.rowspan=o),AA(s,n,n.createPositionAfter(e),c);let d=i.getAttribute("headingColumns")||0;d>l&&bQ("headingColumns",d+s,i,n)}})}splitCellHorizontally(e,t=2){let n=this.editor.model,i=e.parent,o=i.parent,r=o.getChildIndex(i),s=parseInt(e.getAttribute("rowspan")||"1"),a=parseInt(e.getAttribute("colspan")||"1");n.change(n=>{if(s>1){let i=[...new b0(o,{startRow:r,endRow:r+s-1,includeAllSlots:!0})],{newCellsSpan:l,updatedSpan:c}=Aw(s,t);bQ("rowspan",c,e,n);let{column:d}=i.find(({cell:t})=>t===e),u={};l>
21&&(u.rowspan=l),a>1&&(u.colspan=a);let h=0;for(let e of i){let{column:t,row:i}=e,o=t===d;h>=l&&o&&(h=0),i>=r+c&&o&&(h||AA(1,n,e.getPositionBefore(),u),h++)}}if(s<t){let i=t-s;for(let{cell:t,cellHeight:s,row:a}of[...new b0(o,{startRow:0,endRow:r})])if(t!==e&&a+s>r){let e=s+i;n.setAttribute("rowspan",e,t)}let l={};a>1&&(l.colspan=a),Ab(n,o,r+1,i,1,l);let c=o.getAttribute("headingRows")||0;c>r&&bQ("headingRows",c+i,o,n)}})}getColumns(e){return[...e.getChild(0).getChildren()].filter(e=>e.is("element","tableCell")).reduce((e,t)=>e+parseInt(t.getAttribute("colspan")||"1"),0)}getRows(e){return Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0)}createTableWalker(e,t={}){return new b0(e,t)}getSelectedTableCells(e){let t=[];for(let n of this.sortRanges(e.getRanges())){let e=n.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}getTableCellsContainingSelection(e){let t=[];for(let n of e.getRanges()){let e=n.start.findAncestor("tableCell");e&&t.push(e)}return t}getSelectionAffectedTableCells(e){let t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){let t=e.map(e=>e.parent.index);return this._getFirstLastIndexesObject(t)}
2getColumnIndexes(e){let t=[...new b0(e[0].findAncestor("table"))].filter(t=>e.includes(t.cell)).map(e=>e.column);return this._getFirstLastIndexesObject(t)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;let t=new Set,n=new Set,i=0;for(let o of e){let{row:e,column:r}=this.getCellLocation(o),s=parseInt(o.getAttribute("rowspan"))||1,a=parseInt(o.getAttribute("colspan"))||1;t.add(e),n.add(r),s>1&&t.add(e+s-1),a>1&&n.add(r+a-1),i+=s*a}return function(e,t){let n=Array.from(e.values()),i=Array.from(t.values());return(Math.max(...n)-Math.min(...n)+1)*(Math.max(...i)-Math.min(...i)+1)}(t,n)==i}sortRanges(e){return Array.from(e).sort(A_)}_getFirstLastIndexesObject(e){let t=e.sort((e,t)=>e-t);return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){let t=e[0].findAncestor("table"),n=this.getRowIndexes(e),i=parseInt(t.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,i))return!1;let o=this.getColumnIndexes(e),r=parseInt(t.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(o,r)}_areIndexesInSameSection({first:e,last:t},n){return e<n==t<n}}function Ab(e,t,n,i,o,r={}){for(let s=0;s<i;s++){let i=e.createElement("tableRow");e.insert(i,t,n),AA(o,e,e.createPositionAt(i,"end"),r)}}function AA(e,t,n,i={}){for(let o=0;o<e;o++)bZ(t,n,i)}function Aw(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};let n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}function A_(e,t){let n=e.start,i=t.start;return n.isBefore(i)?-1:1}class AC extends i6{refresh(){let e=this.editor.plugins.get(Af),t=e.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=e.isSelectionRectangular(t)}execute(){let e=this.editor.model,t=this.editor.plugins.get(Af);e.change(n=>{let i=t.getSelectedTableCells(e.document.selection),o=i.shift(),{mergeWidth:r,mergeHeight:s}=function(e,t,n){let i=0,o=0;for(let e of t){let{row:t,column:r}=n.getCellLocation(e);i=Ay(e,r,i,"colspan"),o=Ay(e,t,o,"rowspan")}let{row:r,column:s}=n.getCellLocation(e);return{mergeWidth:i-s,mergeHeight:o-r}}(o,i,t);for(let e of(bQ("colspan",r,o,n),bQ("rowspan",s,o,n),i))Av(e)||(Av(o)&&n.remove(n.createRangeIn(o)),n.move(n.createRangeIn(e),n.createPositionAt(o,"end"))),n.remove(e);Al(o.findAncestor("table"),t),n.setSelection(o,"in")})}}function Av(e){let t=e.getChild(0);return 1==e.childCount&&t.is("element","paragraph")&&t.isEmpty}function Ay(e,t,n,i){return Math.max(n,t+parseInt(e.getAttribute(i)||"1"))}class Ax extends i6{constructor(e){super(e),this.affectsData=!1}refresh(){let e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){let e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=t.getSelectionAffectedTableCells(e.document.selection),i=t.getRowIndexes(n),o=n[0].findAncestor("table"),r=[];for(let t=i.first;t<=i.last;t++)for(let n of o.getChild(t).getChildren())r.push(e.createRangeOn(n));e.change(e=>{e.setSelection(r)})}}class AE extends i6{constructor(e){super(e),this.affectsData=!1}refresh(){let e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){let e=this.editor.plugins.get("TableUtils"),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection),i=n[0],o=n.pop(),r=i.findAncestor("table"),s=e.getCellLocation(i),a=e.getCellLocation(o),l=Math.min(s.column,a.column),c=Math.max(s.column,a.column),d=[];for(let e of new b0(r,{startColumn:l,endColumn:c}))d.push(t.createRangeOn(e.cell));t.change(e=>{e.setSelection(d)})}}function AD(e,t){let n=!1;for(let i of e.getChildren())n=AI(i,t)||n;return n}function AI(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;let n=Array.from(e.getChildren()).filter(e=>e.is("$text"));for(let e of n)t.wrap(t.createRangeOn(e),"paragraph");return!!n.length}var AS=r(8137),AM={attributes:{"data-cke":!0}};AM.setAttributes=iY(),AM.insert=iK().bind(null,"head"),AM.domAPI=iG(),AM.insertStyleElement=iZ(),iU()(AS.A,AM),AS.A&&AS.A.locals&&AS.A.locals;class AB extends i4{static get pluginName(){return"TableEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Af]}constructor(e){super(e),this._additionalSlots=[]}init(){let e=this.editor,t=e.model,n=t.schema,i=e.conversion,o=e.plugins.get(Af);
2n.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(e=>{e.on("element:figure",(e,t,n)=>{if(!n.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;let i=function(e){for(let t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!i||!n.consumable.test(i,{name:!0}))return;n.consumable.consume(t.viewItem,{name:!0,classes:"table"});let o=ih(n.convertItem(i,t.modelCursor).modelRange.getItems());o?(n.convertChildren(t.viewItem,n.writer.createPositionAt(o,"end")),n.updateConversionResult(o,t)):n.consumable.revert(t.viewItem,{name:!0,classes:"table"})})}),i.for("upcast").add(e=>{e.on("element:table",(e,t,n)=>{let i=t.viewItem;if(!n.consumable.test(i,{name:!0}))return;let{rows:o,headingRows:r,headingColumns:s}=function(e){let t,n,i=0,o=[],r=[];for(let s of Array.from(e.getChildren()))if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name)for(let e of("thead"!==s.name||t||(t=s),Array.from(s.getChildren()).filter(e=>e.is("element","tr"))))if(t&&s===t||"tbody"===s.name&&Array.from(e.getChildren()).length&&Array.from(e.getChildren()).every(e=>e.is("element","th")))i++,o.push(e);else{r.push(e);let t=function(e){let t=0,n=0,i=Array.from(e.getChildren()).filter(e=>"th"===e.name||"td"===e.name);for(;n<i.length&&"th"===i[n].name;)t+=parseInt(i[n].getAttribute("colspan")||"1"),n++;return t}(e);(!n||t<n)&&(n=t)}return{headingRows:i,headingColumns:n||0,rows:[...o,...r]}}(i),a={};s&&(a.headingColumns=s),r&&(a.headingRows=r);let l=n.writer.createElement("table",a);if(n.safeInsert(l,t.modelCursor)){if(n.consumable.consume(i,{name:!0}),o.forEach(e=>n.convertItem(e,n.writer.createPositionAt(l,"end"))),n.convertChildren(i,n.writer.createPositionAt(l,"end")),l.isEmpty){let e=n.writer.createElement("tableRow");n.writer.insert(e,n.writer.createPositionAt(l,"end")),bZ(n.writer,n.writer.createPositionAt(e,"end"))}n.updateConversionResult(l,t)}})}),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:b2(o,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:b2(o,{additionalSlots:this._additionalSlots})}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add(e=>{e.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()},{priority:"high"})}),i.for("downcast").elementToElement({model:"tableRow",view:(e,{writer:t})=>e.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(bX("td")),i.for("upcast").add(bX("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:b5({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:b5()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:b4({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:b4(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:AT("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:AT("rowspan")},view:"rowspan"}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new b6(e)),e.commands.add("insertTableRowAbove",new b7(e,{order:"above"})),e.commands.add("insertTableRowBelow",new b7(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new b9(e,{order:"left"})),e.commands.add("insertTableColumnRight",new b9(e,{order:"right"})),e.commands.add("removeTableRow",new Ag(e)),e.commands.add("removeTableColumn",new Am(e)),e.commands.add("splitTableCellVertically",new b8(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new b8(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new AC(e)),e.commands.add("mergeTableCellRight",new Au(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Au(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Au(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Au(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Ak(e)),e.commands.add("setTableRowHeader",new Ap(e)),e.commands.add("selectTableRow",
2new Ax(e)),e.commands.add("selectTableColumn",new AE(e)),function(e){e.document.registerPostFixer(t=>(function(e,t){let n=t.document.differ.getChanges(),i=!1,o=new Set;for(let t of n){let n=null;"insert"==t.type&&"table"==t.name&&(n=t.position.nodeAfter),"insert"!=t.type&&"remove"!=t.type||"tableRow"!=t.name&&"tableCell"!=t.name||(n=t.position.findAncestor("table")),function(e){if("attribute"!==e.type)return!1;let t=e.attributeKey;return"headingRows"===t||"colspan"===t||"rowspan"===t}(t)&&(n=t.range.start.findAncestor("table")),n&&!o.has(n)&&(i=function(e,t){let n=!1,i=function(e){let t=parseInt(e.getAttribute("headingRows")||"0"),n=Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0),i=[];for(let{row:o,cell:r,cellHeight:s}of new b0(e)){if(s<2)continue;let e=o<t?t:n;if(o+s>e){let t=e-o;i.push({cell:r,rowspan:t})}}return i}(e);if(i.length)for(let e of(n=!0,i))bQ("rowspan",e.rowspan,e.cell,t,1);return n}(n,e)||i,i=function(e,t){let n=!1,i=function(e){let t=Array(e.childCount).fill(0);for(let{rowIndex:n}of new b0(e,{includeAllSlots:!0}))t[n]++;return t}(e),o=[];for(let[t,n]of i.entries())!n&&e.getChild(t).is("element","tableRow")&&o.push(t);if(o.length)for(let r of(n=!0,o.reverse()))t.remove(e.getChild(r)),i.splice(r,1);
2let r=i.filter((t,n)=>e.getChild(n).is("element","tableRow")),s=r[0];if(!r.every(e=>e===s)){let i=r.reduce((e,t)=>t>e?t:e,0);for(let[o,s]of r.entries()){let r=i-s;if(r){for(let n=0;n<r;n++)bZ(t,t.createPositionAt(e.getChild(o),"end"));n=!0}}}return n}(n,e)||i,o.add(n))}return i})(t,e))}(t),function(e){e.document.registerPostFixer(t=>(function(e,t){let n=t.document.differ.getChanges(),i=!1;for(let t of n){var o;"insert"==t.type&&"table"==t.name&&(i=function(e,t){let n=!1;for(let i of e.getChildren())i.is("element","tableRow")&&(n=AD(i,t)||n);return n}(t.position.nodeAfter,e)||i),"insert"==t.type&&"tableRow"==t.name&&(i=AD(t.position.nodeAfter,e)||i),"insert"==t.type&&"tableCell"==t.name&&(i=AI(t.position.nodeAfter,e)||i),("remove"==t.type||"insert"==t.type)&&(o=t).position.parent.is("element","tableCell")&&("insert"==o.type&&"$text"==o.name||"remove"==o.type)&&(i=AI(t.position.parent,e)||i)}return i})(t,e))}(t),this.listenTo(t.document,"change:data",()=>{(function(e,t){for(let n of e.document.differ.getChanges()){let e,i=!1;if("attribute"==n.type){let t=n.range.start.nodeAfter;if(!t||!t.is("element","table")||"headingRows"!=n.attributeKey&&"headingColumns"!=n.attributeKey)continue;e=t,i="headingRows"==n.attributeKey}else"tableRow"!=n.name&&"tableCell"!=n.name||(e=n.position.findAncestor("table"),i="tableRow"==n.name);if(!e)continue;let o=e.getAttribute("headingRows")||0,r=e.getAttribute("headingColumns")||0;for(let n of new b0(e)){let e=n.row<o||n.column<r?"th":"td",s=t.mapper.toViewElement(n.cell);s&&s.is("element")&&s.name!=e&&t.reconvertItem(i?n.cell.parent:n.cell)}}})(t,e.editing),function(e,t){let n=e.document.differ,i=new Set;for(let e of n.getChanges()){let t="attribute"==e.type?e.range.start.parent:e.position.parent;t.is("element","tableCell")&&i.add(t)}for(let e of i.values())for(let n of Array.from(e.getChildren()).filter(e=>(function(e,t){if(!e.is("element","paragraph"))return!1;let n=t.toViewElement(e);return!!n&&b3(e)!==n.is("element","span")})(e,t.mapper)))t.reconvertItem(n)}(t,e.editing)})}registerAdditionalSlot(e){this._additionalSlots.push(e)}}function AT(e){return t=>{let n=parseInt(t.getAttribute(e));return Number.isNaN(n)||n<=0?null:n}}var AN=r(5032),AP={attributes:{"data-cke":!0}};AP.setAttributes=iY(),AP.insert=iK().bind(null,"head"),AP.domAPI=iG(),AP.insertStyleElement=iZ(),iU()(AN.A,AP),AN.A&&AN.A.locals&&AN.A.locals;class AL extends i0{constructor(e){super(e);let t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new ik,this.focusTracker=new ig,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(e,t)=>`${t} \xd7 ${e}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"[email protected]":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(e,t)=>{let{row:n,column:i}=t.target.dataset;this.items.get(10*(parseInt(n,10)-1)+(parseInt(i,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(e,t,n)=>{if(!n)return;let{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(){for(let e of(super.render(),function({keystrokeHandler:e,focusTracker:t,gridItems:n,numberOfColumns:i,uiLanguageDirection:o}){let r="number"==typeof i?()=>i:i;function s(e){return i=>{let o=n.find(e=>e.element===t.focusedElement),r=e(n.getIndex(o),n);n.get(r).focus(),i.stopPropagation(),i.preventDefault()}}e.set("arrowright",s((e,t)=>{var n;return"rtl"===o?(n=t.length,0===e?n-1:e-1):e===t.length-1?0:e+1})),e.set("arrowleft",s((e,t)=>{var n;return"rtl"===o?e===t.length-1?0:e+1:(n=t.length,0===e?n-1:e-1)})),e.set("arrowup",s((e,t)=>{let n=e-r();return n<0&&(n=e+r()*Math.floor(t.length/r()))>t.length-1&&(n-=r()),n})),e.set("arrowdown",s((e,t)=>{let n=e+r();return n>t.length-1&&(n=e%r()),n}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.items))this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){let e=this.rows,t=this.columns;this.items.map((n,i)=>{let o=Math.floor(i/10)<e&&i%10<t;n.set("isOn",o)})}_createGridButton(e,t,n,i){let o=new l4(e);return o.set({label:i,class:"ck-insert-table-dropdown-grid-box"}),o.extendTemplate({attributes:{"data-row":t,"data-column":n}}),o}_createGridCollection(){let e=[];for(let t=0;t<100;t++){let n=Math.floor(t/10),i=t%10,o=`${n+1} \xd7 ${i+1}`;e.push(this._createGridButton(this.locale,n+1,i+1,o))}return this.createCollection(e)}}class AO extends i4{static get pluginName(){return"TableUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t,n="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",n=>{let i;let o=e.commands.get("insertTable"),r=dV(n);return r.bind("isEnabled").to(o),r.buttonView.set({icon:lZ.table,label:t("Insert table"),tooltip:!0}),r.on("change:isOpen",()=>{i||(i=new AL(n),r.panelView.children.add(i),i.delegate("execute").to(r),r.on("execute",()=>{e.execute("insertTable",{rows:i.rows,columns:i.columns}),e.editing.view.focus()}))}),r}),e.ui.componentFactory.add("menuBar:insertTable",n=>{let i=e.commands.get("insertTable"),o=new hi(n),r=new AL(n);return r.delegate("execute").to(o),o.on("change:isOpen",(e,t,n)=>{n||r.reset()}),r.on("execute",()=>{e.execute("insertTable",{rows:r.rows,columns:r.columns}),e.editing.view.focus()}),o.buttonView.set({label:t("Table"),icon:lZ.table}),o.panelView.children.add(r),o.bind("isEnabled").to(i),o}),e.ui.componentFactory.add("tableColumn",e=>{let i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("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,e)}),e.ui.componentFactory.add("tableRow",e=>{let n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("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,e)}),e.ui.componentFactory.add("mergeTableCells",e=>{let i=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("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,e)})}_prepareDropdown(e,t,n,i){let o=this.editor,r=dV(i),s=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:e,icon:t,tooltip:!0}),r.bind("isEnabled").toMany(s,"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(r,"execute",e=>{o.execute(e.source.commandName),e.source instanceof cN||o.editing.view.focus()}),r}_prepareMergeSplitButtonDropdown(e,t,n,i){let o=this.editor,r=dV(i,dO),s="mergeTableCells",a=o.commands.get(s),l=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([a,...l],"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(r.buttonView,"execute",()=>{o.execute(s),o.editing.view.focus()}),this.listenTo(r,"execute",e=>{o.execute(e.source.commandName),o.editing.view.focus()}),r}_fillDropdownWithListOptions(e,t){let n=this.editor,i=[],o=new iu;for(let e of t)(function(e,t,n,i){if("button"===e.type||"switchbutton"===e.type){let i=e.model=new uI(e.model),{commandName:o,bindIsOn:r}=e.model,s=t.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(e)})(e,n,i,o);return dq(e,o),i}}var Az=r(8423),AR={attributes:{"data-cke":!0}};AR.setAttributes=iY(),AR.insert=iK().bind(null,"head"),AR.domAPI=iG(),AR.insertStyleElement=iZ(),iU()(Az.A,AR),Az.A&&Az.A.locals&&Az.A.locals;class AF extends i4{static get pluginName(){return"TableSelection"}static get isOfficialPlugin(){return!0}static get requires(){return[Af,Af]}init(){let e=this.editor,t=e.model,n=e.editing.view;this.listenTo(t,"deleteContent",(e,t)=>this._handleDeleteContent(e,t),{priority:"high"}),this.listenTo(n.document,"insertText",(e,t)=>this._handleInsertTextEvent(e,t),{priority:"high"}
2),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){let e=this.editor.plugins.get(Af),t=this.editor.model.document.selection,n=e.getSelectedTableCells(t);return 0==n.length?null:n}getSelectionAsFragment(){let e=this.editor.plugins.get(Af),t=this.getSelectedTableCells();return t?this.editor.model.change(n=>{let i=n.createDocumentFragment(),{first:o,last:r}=e.getColumnIndexes(t),{first:s,last:a}=e.getRowIndexes(t),l=t[0].findAncestor("table"),c=a,d=r;if(e.isSelectionRectangular(t)){let e={firstColumn:o,lastColumn:r,firstRow:s,lastRow:a};c=Ac(l,e),d=Ad(l,e)}let u=Ae(l,{startRow:s,startColumn:o,endRow:c,endColumn:d},n);return n.insert(u,i,0),i}):null}setCellSelection(e,t){let n=this._getCellsToSelect(e,t);this.editor.model.change(e=>{e.setSelection(n.cells.map(t=>e.createRangeOn(t)),{backward:n.backward})})}getFocusCell(){let e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){let e=ih(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){let e=this.editor,t=new Set;e.conversion.for("editingDowncast").add(e=>e.on("selection",(e,n,i)=>{let o=i.writer;!function(e){for(let n of t)e.removeClass("ck-editor__editable_selected",n);t.clear()}(o);let r=this.getSelectedTableCells();if(!r)return;for(let e of r){let n=i.mapper.toViewElement(e);o.addClass("ck-editor__editable_selected",n),t.add(n)}let s=i.mapper.toViewElement(r[r.length-1]);o.setSelection(s,0)},{priority:"lowest"}))}_enablePluginDisabling(){let e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){let t=this.getSelectedTableCells();t&&e.model.change(n=>{let i=n.createPositionAt(t[0],0),o=e.model.schema.getNearestSelectionRange(i);n.setSelection(o)})}})}_handleDeleteContent(e,t){let n=this.editor.plugins.get(Af),i=t[0],o=t[1],r=this.editor.model,s=!o||"backward"==o.direction,a=n.getSelectedTableCells(i);a.length&&(e.stop(),r.change(e=>{let t=a[s?a.length-1:0];r.change(e=>{for(let t of a)r.deleteContent(e.createSelection(t,"in"))});let n=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));i.is("documentSelection")?e.setSelection(n):i.setTo(n)}))}_handleInsertTextEvent(e,t){let n=this.editor,i=this.getSelectedTableCells();if(!i)return;let o=n.editing.view,r=n.editing.mapper,s=i.map(e=>o.createRangeOn(r.toViewElement(e)));t.selection=o.createSelection(s)}_getCellsToSelect(e,t){let n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(e),o=n.getCellLocation(t),r=Math.min(i.row,o.row),s=Math.max(i.row,o.row),a=Math.min(i.column,o.column),l=Math.max(i.column,o.column),c=Array(s-r+1).fill(null).map(()=>[]);for(let{row:t,cell:n}of new b0(e.findAncestor("table"),{startRow:r,endRow:s,startColumn:a,endColumn:l}))c[t-r].push(n);let d=o.row<i.row,u=o.column<i.column;return d&&c.reverse(),u&&c.forEach(e=>e.reverse()),{cells:c.flat(),backward:d||u}}}class Aj extends i4{static get pluginName(){return"TableClipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[hS,hM,AF,Af]}init(){let e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",(e,t)=>this._onCopyCut(e,t)),this.listenTo(t,"cut",(e,t)=>this._onCopyCut(e,t)),this.listenTo(e.model,"insertContent",(e,[t,n])=>this._onInsertContent(e,t,n),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){let n=this.editor.editing.view,i=this.editor.plugins.get(AF),o=this.editor.plugins.get(hS);i.getSelectedTableCells()&&("cut"!=e.name||this.editor.model.canEditAt(this.editor.model.document.selection))&&(t.preventDefault(),e.stop(),this.editor.model.enqueueChange({isUndoable:"cut"===e.name},()=>{let r=o._copySelectedFragmentWithMarkers(e.name,this.editor.model.document.selection,()=>i.getSelectionAsFragment());n.document.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:this.editor.data.toView(r),method:e.name})}))}_onInsertContent(e,t,n){if(n&&!n.is("documentSelection"))return;let i=this.editor.model,o=this.editor.plugins.get(Af),r=this.editor.plugins.get(hS),s=this.getTableIfOnlyTableInContent(t,i);if(!s)return;let a=o.getSelectionAffectedTableCells(i.document.selection);a.length?(e.stop(),t.is("documentFragment")?r._pasteMarkersIntoTransformedElement(t.markers,e=>this._replaceSelectedCells(s,a,e)):this.editor.model.change(e=>{this._replaceSelectedCells(s,a,e)})):Al(s,o)}
2_replaceSelectedCells(e,t,n){let i=this.editor.plugins.get(Af),o={width:i.getColumns(e),height:i.getRows(e)},r=function(e,t,n,i){let o=e[0].findAncestor("table"),r=i.getColumnIndexes(e),s=i.getRowIndexes(e),a={firstColumn:r.first,lastColumn:r.last,firstRow:s.first,lastRow:s.last},l=1===e.length;return l&&(a.lastRow+=t.height-1,a.lastColumn+=t.width-1,function(e,t,n,i){let o=i.getColumns(e),r=i.getRows(e);n>o&&i.insertColumns(e,{at:o,columns:n-o}),t>r&&i.insertRows(e,{at:r,rows:t-r})}(o,a.lastRow+1,a.lastColumn+1,i)),l||!i.isSelectionRectangular(e)?function(e,t,n){let{firstRow:i,lastRow:o,firstColumn:r,lastColumn:s}=t,a={first:i,last:o},l={first:r,last:s};AH(e,r,a,n),AH(e,s+1,a,n),AV(e,i,l,n),AV(e,o+1,l,n,i)}(o,a,n):(a.lastRow=Ac(o,a),a.lastColumn=Ad(o,a)),a}(t,o,n,i),s=r.lastRow-r.firstRow+1,a=r.lastColumn-r.firstColumn+1;e=Ae(e,{startRow:0,startColumn:0,endRow:Math.min(s,o.height)-1,endColumn:Math.min(a,o.width)-1},n);let l=t[0].findAncestor("table"),c=this._replaceSelectedCellsWithPasted(e,o,l,r,n);if(this.editor.plugins.get("TableSelection").isEnabled){let e=i.sortRanges(c.map(e=>n.createRangeOn(e)));n.setSelection(e)}else n.setSelection(c[0],0);return l}_replaceSelectedCellsWithPasted(e,t,n,i,o){let r;let{width:s,height:a}=t,l=function(e,t,n){let i=Array(n).fill(null).map(()=>Array(t).fill(null));for(let{column:t,row:n,cell:o}of new b0(e))i[n][t]=o;return i}(e,s,a),c=[...new b0(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],d=[];for(let e of c){let{row:t,column:n}=e;n===i.firstColumn&&(r=e.getPositionBefore());let c=t-i.firstRow,u=n-i.firstColumn,h=l[c%a][u%s],g=h?o.cloneElement(h):null,m=this._replaceTableSlotCell(e,g,r,o);m&&(Ar(m,t,n,i.lastRow,i.lastColumn,o),d.push(m),r=o.createPositionAfter(m))}let u=parseInt(n.getAttribute("headingRows")||"0"),h=parseInt(n.getAttribute("headingColumns")||"0"),g=i.firstRow<u&&u<=i.lastRow,m=i.firstColumn<h&&h<=i.lastColumn;if(g){let e=AV(n,u,{first:i.firstColumn,last:i.lastColumn},o,i.firstRow);d.push(...e)}if(m){let e=AH(n,h,{first:i.firstRow,last:i.lastRow},o);d.push(...e)}return d}_replaceTableSlotCell(e,t,n,i){let{cell:o,isAnchor:r}=e;return r&&i.remove(o),t?(i.insert(t,n),t):null}getTableIfOnlyTableInContent(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);let n=t.createRangeIn(e);for(let e of n.getItems())if(e.is("element","table")){let i=t.createRange(n.start,t.createPositionBefore(e));if(t.hasContent(i,{ignoreWhitespaces:!0}))return null;let o=t.createRange(t.createPositionAfter(e),n.end);return t.hasContent(o,{ignoreWhitespaces:!0})?null:e}return null}}function AV(e,t,n,i,o=0){if(!(t<1))return At(e,t,o).filter(({column:e,cellWidth:t})=>AU(e,t,n)).map(({cell:e})=>An(e,t,i))}function AH(e,t,n,i){if(!(t<1))return Ai(e,t).filter(({row:e,cellHeight:t})=>AU(e,t,n)).map(({cell:e,column:n})=>Ao(e,n,t,i))}function AU(e,t,n){let{first:i,last:o}=n;return e>=i&&e<=o||e<i&&e+t-1>=i}class Aq extends i4{static get pluginName(){return"TableKeyboard"}static get isOfficialPlugin(){return!0}static get requires(){return[AF,Af]}init(){let e=this.editor,t=e.editing.view.document,n=e.t;this.listenTo(t,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(t,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(t,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]}),e.accessibility.addKeystrokeInfoGroup({id:"table",label:n("Keystrokes that can be used in a table cell"),keystrokes:[{label:n("Move the selection to the next cell"),keystroke:"Tab"},{label:n("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:n("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:n("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(e,t){let n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(t.preventDefault(),t.stopPropagation(),e.stop(),n.model.change(e=>{e.setSelection(e.createRangeIn(i.getChild(0).getChild(0)))}))}_handleTab(e,t){let n;let i=this.editor,o=this.editor.plugins.get(Af),r=this.editor.plugins.get("TableSelection"),s=i.model.document.selection,a=!t.shiftKey,l=o.getTableCellsContainingSelection(s)[0];if(l||(l=r.getFocusCell()),!l)return;t.preventDefault(),t.stopPropagation(),e.stop();let c=l.parent,d=c.parent,u=d.getChildIndex(c),h=c.getChildIndex(l),g=0===h;if(!a&&g&&0===u)return void i.model.change(e=>{e.setSelection(e.createRangeOn(d))});let m=h===c.childCount-1,p=u===o.getRows(d)-1;if(a&&p&&m&&(i.execute("insertTableRowBelow"),u===o.getRows(d)-1))return void i.model.change(e=>{e.setSelection(e.createRangeOn(d))});if(a&&m)n=d.getChild(u+1).getChild(0);else if(!a&&g){let e=d.getChild(u-1);n=e.getChild(e.childCount-1)}else n=c.getChild(h+(a?1:-1));i.model.change(e=>{e.setSelection(e.createRangeIn(n))})}_onArrowKey(e,t){let n=this.editor,i=n1(t.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){let n=this.editor.plugins.get(Af),i=this.editor.plugins.get("TableSelection"),o=this.editor.model,r=o.document.selection,s=["right","down"].includes(e),a=n.get
2SelectedTableCells(r);if(a.length){let n;return n=t?i.getFocusCell():s?a[a.length-1]:a[0],this._navigateFromCellInDirection(n,e,t),!0}let l=r.focus.findAncestor("tableCell");if(!l)return!1;if(!r.isCollapsed){if(t){if(r.isBackward==s&&!r.containsEntireContent(l))return!1}else{let e=r.getSelectedElement();if(!e||!o.schema.isObject(e))return!1}}return!!this._isSelectionAtCellEdge(r,l,s)&&(this._navigateFromCellInDirection(l,e,t),!0)}_isSelectionAtCellEdge(e,t,n){let i=this.editor.model,o=this.editor.model.schema,r=n?e.getLastPosition():e.getFirstPosition();if(!o.getLimitElement(r).is("element","tableCell"))return i.createPositionAt(t,n?"end":0).isTouching(r);let s=i.createSelection(r);return i.modifySelection(s,{direction:n?"forward":"backward"}),r.isEqual(s.focus)}_navigateFromCellInDirection(e,t,n=!1){let i=this.editor.model,o=e.findAncestor("table"),r=[...new b0(o,{includeAllSlots:!0})],{row:s,column:a}=r[r.length-1],l=r.find(({cell:t})=>t==e),{row:c,column:d}=l;switch(t){case"left":d--;break;case"up":c--;break;case"right":d+=l.cellWidth;break;case"down":c+=l.cellHeight}if(c<0||c>s||d<0&&c<=0||d>a&&c>=s)return void i.change(e=>{e.setSelection(e.createRangeOn(o))});d<0?(d=n?0:a,c--):d>a&&(d=n?a:0,c++);let u=r.find(e=>e.row==c&&e.column==d).cell,h=["right","down"].includes(t),g=this.editor.plugins.get("TableSelection");if(n&&g.isEnabled){let t=g.getAnchorCell()||e;g.setCellSelection(t,u)}else{let e=i.createPositionAt(u,h?0:"end");i.change(t=>{t.setSelection(e)})}}}class AG extends rG{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class AW extends i4{static get pluginName(){return"TableMouse"}static get isOfficialPlugin(){return!0}static get requires(){return[AF,Af]}init(){this.editor.editing.view.addObserver(AG),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){let e=this.editor,t=e.plugins.get(Af),n=!1,i=e.plugins.get(AF);this.listenTo(e.editing.view.document,"mousedown",(o,r)=>{let s=e.model.document.selection;if(!this.isEnabled||!i.isEnabled||!r.domEvent.shiftKey)return;let a=i.getAnchorCell()||t.getTableCellsContainingSelection(s)[0];if(!a)return;let l=this._getModelTableCellFromDomEvent(r);l&&AK(a,l)&&(n=!0,i.setCellSelection(a,l),r.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(e.editing.view.document,"selectionChange",e=>{n&&e.stop()},{priority:"highest"})}_enableMouseDragSelection(){let e=this.editor,t,n,i=!1,o=!1,r=e.plugins.get(AF);this.listenTo(e.editing.view.document,"mousedown",(e,n)=>{this.isEnabled&&r.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(n)))}),this.listenTo(e.editing.view.document,"mousemove",(e,s)=>{if(!s.domEvent.buttons||!t)return;let a=this._getModelTableCellFromDomEvent(s);a&&AK(t,a)&&(n=a,i||n==t||(i=!0)),i&&(o=!0,r.setCellSelection(t,n),s.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{i=!1,o=!1,t=null,n=null}),this.listenTo(e.editing.view.document,"selectionChange",e=>{o&&e.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){let t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function AK(e,t){return e.parent.parent==t.parent.parent}var A$=r(2329),AY={attributes:{"data-cke":!0}};AY.setAttributes=iY(),AY.insert=iK().bind(null,"head"),AY.domAPI=iG(),AY.insertStyleElement=iZ(),iU()(A$.A,AY),A$.A&&A$.A.locals&&A$.A.locals;class AQ extends i4{static get requires(){return[AB,AO,AF,AW,Aq,Aj,gL]}static get pluginName(){return"Table"}static get isOfficialPlugin(){return!0}}function AZ(e){let t=e.getSelectedElement();return t&&AX(t)?t:null}function AJ(e){let t=e.getFirstPosition();if(!t)return null;let n=t.parent;for(;n;){if(n.is("element")&&AX(n))return n;n=n.parent}return null}function AX(e){return!!e.getCustomProperty("table")&&gm(e)}class A0 extends i4{static get requires(){return[gO]}static get pluginName(){return"TableToolbar"}static get isOfficialPlugin(){return!0}afterInit(){let e=this.editor,t=e.t,n=e.plugins.get(gO),i=e.config.get("table.contentToolbar"),o=e.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:AJ}),o&&n.register("table",{ariaLabel:t("Table toolbar"),items:o,getRelatedElement:AZ})}}var A1=r(5506),A2={attributes:{"data-cke":!0}};A2.setAttributes=iY(),A2.insert=iK().bind(null,"head"),A2.domAPI=iG(),A2.insertStyleElement=iZ(),iU()(A1.A,A2),A1.A&&A1.A.locals&&A1.A.locals;var A5=r(2655),A4={attributes:{"data-cke":!0}};A4.setAttributes=iY(),A4.insert=iK().bind(null,"head"),A4.domAPI=iG(),A4.insertStyleElement=iZ(),iU()(A5.A,A4),A5.A&&A5.A.locals&&A5.A.locals;var A3=r(4043),A6={attributes:{"data-cke":!0}};A6.setAttributes=iY(),A6.insert=iK().bind(null,"head"),A6.domAPI=iG(),A6.insertStyleElement=iZ(),iU()(A3.A,A6),A3.A&&A3.A.locals&&A3.A.locals;var A7=r(1623),A9={attributes:{"data-cke":!0}};A9.setAttributes=iY(),A9.insert=iK().bind(null,"head"),A9.domAPI=iG(),A9.insertStyleElement=iZ(),iU()(A7.A,A9),A7.A&&A7.A.locals&&A7.A.locals;var A8=r(8986),we={attributes:{"data-cke":!0}};we.setAttributes=iY(),we.insert=iK().bind(null,"head"),we.domAPI=iG(),we.insertStyleElement=iZ(),iU()(A8.A,we),A8.A&&A8.A.locals&&A8.A.locals;var wt=r(5562),wn={attributes:{"data-cke":!0}};wn.setAttributes=iY(),wn.insert=iK().bind(null,"head"),wn.domAPI=iG(),wn.insertStyleElement=iZ(),iU()(wt.A,wn),wt.A&&wt.A.locals&&wt.A.locals;var wi=r(4143),wo={attributes:{"data-cke":!0}};wo.setAttributes=iY(),wo.insert=iK().bind(null,"head"),wo.domAPI=iG(),wo.insertStyleElement=iZ(),iU()(wi.A,wo),wi.A&&wi.A.locals&&wi.A.locals;var wr=r(8795),ws={attributes:{"data-cke":!0}};ws.setAttributes=iY(),ws.insert=iK().bind(null,"head"),ws.domAPI=iG(),ws.insertStyleElement=iZ(),iU()(wr.A,ws),wr.A&&wr.A.locals&&wr.A.locals;let wa={autoRefresh:!0};class wl extends U(){constructor(e,t={}){if(super(),!e)throw new w("token-missing-token-url",this);
2t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),this._refresh="function"==typeof e?e:()=>new Promise((t,n)=>{let i=new XMLHttpRequest;i.open("GET",e),i.addEventListener("load",()=>{let e=i.status,o=i.response;return e<200||e>299?n(new w("token-cannot-download-new-token",null)):t(o)}),i.addEventListener("error",()=>n(Error("Network Error"))),i.addEventListener("abort",()=>n(Error("Abort"))),i.send()}),this._options={...wa,...t}}init(){return new Promise((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)})}refreshToken(){let e=this._options.autoRefresh;return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),e&&this._registerRefreshTokenTimeout(),this)).catch(t=>{throw _("token-refresh-failed",{autoRefresh:e}),e&&this._registerRefreshTokenTimeout(5e3),t})}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){let t="string"==typeof e,n=!/^".*"$/.test(e),i=t&&3===e.split(".").length;if(!n||!i)throw new w("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(e){let t=e||this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{let[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));if(!t)return 36e5;return Math.floor((1e3*t-Date.now())/2)}catch(e){return 36e5}}static create(e,t={}){return new wl(e,t).init()}}let wc=/^data:(\S*?);base64,/;class wd extends M(){constructor(e,t,n){if(super(),!e)throw new w("fileuploader-missing-file",null);if(!t)throw new w("fileuploader-missing-token",null);if(!n)throw new w("fileuploader-missing-api-address",null);this.file=!function(e){if("string"!=typeof e)return!1;let t=e.match(wc);return!(!t||!t.length)}(e)?e:function(e,t=512){try{let n=e.match(wc)[1],i=atob(e.replace(wc,"")),o=[];for(let e=0;e<i.length;e+=t){let n=i.slice(e,e+t),r=Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);o.push(new Uint8Array(r))}return new Blob(o,{type:n})}catch(e){throw new w("fileuploader-decoding-image-data-error",null)}}(e),this._token=t,this._apiAddress=n}onProgress(e){return this.on("progress",(t,n)=>e(n)),this}onError(e){return this.once("error",(t,n)=>e(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){let e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){let e=this.xhr,t=e=>()=>this.fire("error",e);e.addEventListener("error",t("Network Error")),e.addEventListener("abort",t("Abort")),e.upload&&e.upload.addEventListener("progress",e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})}),e.addEventListener("load",()=>{let t=e.status,n=e.response;if(t<200||t>299)return this.fire("error",n.message||n.error)})}_sendRequest(){let e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((n,i)=>{t.addEventListener("load",()=>{let e=t.status,o=t.response;return e<200||e>299?o.message?i(new w("fileuploader-uploading-data-failed",this,{message:o.message})):i(o.error):n(o)}),t.addEventListener("error",()=>i(Error("Network Error"))),t.addEventListener("abort",()=>i(Error("Abort"))),t.send(e)})}}class wu{constructor(e,t){if(!e)throw new w("uploadgateway-missing-token",null);if(!t)throw new w("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new wd(e,this._token,this._apiAddress)}}class wh extends ot{static get pluginName(){return"CloudServicesCore"}static get isOfficialPlugin(){return!0}createToken(e,t){return new wl(e,t)}createUploadGateway(e,t){return new wu(e,t)}}class wg extends ot{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get isOfficialPlugin(){return!0}static get requires(){return[wh]}
2async init(){for(let[e,t]of Object.entries(this.context.config.get("cloudServices")||{}))this[e]=t;if(!this.tokenUrl)return void(this.token=null);let e=this.context.plugins.get("CloudServicesCore");this.token=await e.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)}async registerTokenUrl(e){if(this._tokens.has(e))return this.getTokenFor(e);let t=this.context.plugins.get("CloudServicesCore"),n=await t.createToken(e).init();return this._tokens.set(e,n),n}getTokenFor(e){let t=this._tokens.get(e);if(!t)throw new w("cloudservices-token-not-registered",this);return t}destroy(){for(let e of(super.destroy(),this._tokens.values()))e.destroy()}}class wm extends hp{static{this.builtinPlugins=[mo,mc,mm,mC,mS,mR,m7,po,wg,pa,pA,p3,kn,kR,kF,kw,kU,fE,bl,bO,pu,bY,kj,AQ,A0,h6]}static{this.defaultConfig={toolbar:{items:["undo","redo","|","heading","|","bold","italic","|","link","uploadImage","insertTable","blockQuote","mediaEmbed","|","bulletedList","numberedList","outdent","indent"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}}})(),s=s.default})(),e.exports=i()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.