1import{g as aD,c as gr}from"./_commonjsHelpers-Cpj98o6Y.js";var mr={exports:{}};mr.exports;(function(Ae,Ie){(function(Zn){const $e=Zn.en=Zn.en||{};$e.dictionary=Object.assign($e.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help","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 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 editing area: %0":"Editor editing area: %0","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.","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 from computer":"Image from computer","Image resize list":"Image resize list","Image toolbar":"Image toolbar","Image upload complete":"Image upload complete","
1image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent",Insert:"Insert","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 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 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 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 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",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:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","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",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(Zn,$e){Ae.exports=$e()}(self,()=>(()=>{var Zn={9246:(D,v,p)=>{const E=p(6931),y={};for(const f of Object.keys(E))y[E[f]]=f;const C={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"]}};D.exports=C;for(const f of Object.keys(C)){if(!("channels"in C[f]))throw new Error("missing channels property: "+f);if(!("labels"in C[f]))throw new Error("missing channel labels property: "+f);if(C[f].labels.length!==C[f].channels)throw new Error("channel and label counts mismatch: "+f);const{channels:w,labels:I}=C[f];delete C[f].channels,delete C[f].labels,Object.defineProperty(C[f],"channels",{value:w}),Object.defineProperty(C[f],"labels",{value:I})}C.rgb.hsl=function(f){const w=f[0]/255,I=f[1]/255,T=f[2]/255,S=Math.min(w,I,T),P=Math.max(w,I,T),z=P-S;let V,q;P===S?V=0:w===P?V=(I-T)/z:I===P?V=2+(T-w)/z:T===P&&(V=4+(w-I)/z),V=Math.min(60*V,360),V<0&&(V+=360);const tt=(S+P)/2;return q=P===S?0:tt<=.5?z/(P+S):z/(2-P-S),[V,100*q,100*tt]}
1,C.rgb.hsv=function(f){let w,I,T,S,P;const z=f[0]/255,V=f[1]/255,q=f[2]/255,tt=Math.max(z,V,q),Dt=tt-Math.min(z,V,q),_=function(U){return(tt-U)/6/Dt+.5};return Dt===0?(S=0,P=0):(P=Dt/tt,w=_(z),I=_(V),T=_(q),z===tt?S=T-I:V===tt?S=.3333333333333333+w-T:q===tt&&(S=.6666666666666666+I-w),S<0?S+=1:S>1&&(S-=1)),[360*S,100*P,100*tt]},C.rgb.hwb=function(f){const w=f[0],I=f[1];let T=f[2];const S=C.rgb.hsl(f)[0],P=1/255*Math.min(w,Math.min(I,T));return T=1-.00392156862745098*Math.max(w,Math.max(I,T)),[S,100*P,100*T]},C.rgb.cmyk=function(f){const w=f[0]/255,I=f[1]/255,T=f[2]/255,S=Math.min(1-w,1-I,1-T);return[100*((1-w-S)/(1-S)||0),100*((1-I-S)/(1-S)||0),100*((1-T-S)/(1-S)||0),100*S]},C.rgb.keyword=function(f){const w=y[f];if(w)return w;let I,T=1/0;for(const z of Object.keys(E)){const V=E[z],q=(P=V,((S=f)[0]-P[0])**2+(S[1]-P[1])**2+(S[2]-P[2])**2);q<T&&(T=q,I=z)}var S,P;return I},C.keyword.rgb=function(f){return E[f]},C.rgb.xyz=function(f){let w=f[0]/255,I=f[1]/255,T=f[2]/255;return w=w>.04045?((w+.055)/1.055)**2.4:w/12.92,I=I>.04045?((I+.055)/1.055)**2.4:I/12.92,T=T>.04045?((T+.055)/1.055)**2.4:T/12.92,[100*(.4124*w+.3576*I+.1805*T),100*(.2126*w+.7152*I+.0722*T),100*(.0193*w+.1192*I+.9505*T)]},C.rgb.lab=function(f){const w=C.rgb.xyz(f);let I=w[0],T=w[1],S=w[2];return I/=95.047,T/=100,S/=108.883,I=I>.008856?I**.3333333333333333:7.787*I+.13793103448275862,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,S=S>.008856?S**.3333333333333333:7.787*S+.13793103448275862,[116*T-16,500*(I-T),200*(T-S)]},C.hsl.rgb=function(f){const w=f[0]/360,I=f[1]/100,T=f[2]/100;let S,P,z;if(I===0)return z=255*T,[z,z,z];S=T<.5?T*(1+I):T+I-T*I;const V=2*T-S,q=[0,0,0];for(let tt=0;tt<3;tt++)P=w+.3333333333333333*-(tt-1),P<0&&P++,P>1&&P--,z=6*P<1?V+6*(S-V)*P:2*P<1?S:3*P<2?V+(S-V)*(.6666666666666666-P)*6:V,q[tt]=255*z;return q},C.hsl.hsv=function(f){const w=f[0];let I=f[1]/100,T=f[2]/100,S=I;const P=Math.max(T,.01);return T*=2,I*=T<=1?T:2-T,S*=P<=1?P:2-P,[w,100*(T===0?2*S/(P+S):2*I/(T+I)),100*((T+I)/2)]},C.hsv.rgb=function(f){const w=f[0]/60,I=f[1]/100;let T=f[2]/100;const S=Math.floor(w)%6,P=w-Math.floor(w),z=255*T*(1-I),V=255*T*(1-I*P),q=255*T*(1-I*(1-P));switch(T*=255,S){case 0:return[T,q,z];case 1:return[V,T,z];case 2:return[z,T,q];case 3:return[z,V,T];case 4:return[q,z,T];case 5:return[T,z,V]}},C.hsv.hsl=function(f){const w=f[0],I=f[1]/100,T=f[2]/100,S=Math.max(T,.01);let P,z;z=(2-I)*T;const V=(2-I)*S;return P=I*S,P/=V<=1?V:2-V,P=P||0,z/=2,[w,100*P,100*z]},C.hwb.rgb=function(f){const w=f[0]/360;let I=f[1]/100,T=f[2]/100;const S=I+T;let P;S>1&&(I/=S,T/=S);const z=Math.floor(6*w),V=1-T;P=6*w-z,1&z&&(P=1-P);const q=I+P*(V-I);let tt,Dt,_;switch(z){default:case 6:case 0:tt=V,Dt=q,_=I;break;case 1:tt=q,Dt=V,_=I;break;case 2:tt=I,Dt=V,_=q;break;case 3:tt=I,Dt=q,_=V;break;case 4:tt=q,Dt=I,_=V;break;case 5:tt=V,Dt=I,_=q}return[255*tt,255*Dt,255*_]},C.cmyk.rgb=function(f){const w=f[0]/100,I=f[1]/100,T=f[2]/100,S=f[3]/100;return[255*(1-Math.min(1,w*(1-S)+S)),255*(1-Math.min(1,I*(1-S)+S)),255*(1-Math.min(1,T*(1-S)+S))]},C.xyz.rgb=function(f){const w=f[0]/100,I=f[1]/100,T=f[2]/100;let S,P,z;return S=3.2406*w+-1.5372*I+-.4986*T,P=-.9689*w+1.8758*I+.0415*T,z=.0557*w+-.204*I+1.057*T,S=S>.0031308?1.055*S**.4166666666666667-.055:12.92*S,P=P>.0031308?1.055*P**.4166666666666667-.055:12.92*P,z=z>.0031308?1.055*z**.4166666666666667-.055:12.92*z,S=Math.min(Math.max(0,S),1),P=Math.min(Math.max(0,P),1),z=Math.min(Math.max(0,z),1),[255*S,255*P,255*z]},C.xyz.lab=function(f){let w=f[0],I=f[1],T=f[2];return w/=95.047,I/=100,T/=108.883,w=w>.008856?w**.3333333333333333:7.787*w+.13793103448275862,I=I>.008856?I**.3333333333333333:7.787*I+.13793103448275862,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,[116*I-16,500*(w-I),200*(I-T)]},C.lab.xyz=function(f){let w,I,T;I=(f[0]+16)/116,w=f[1]/500+I,T=I-f[2]/200;const S=I**3,P=w**3,z=T**3;return I=S>.008856?S:(I-.13793103448275862)/7.787,w=P>.008856?P:(w-.13793103448275862)/7.787,T=z>.008856?z:(T-.13793103448275862)/7.787,w*=95.047,I*=100,T*=108.883,[w,I,T]},C.lab.lch=function(f){const w=f[0],I=f[1],T=f[2];let S;return S=360*Math.atan2(T,I)/2/Math.PI,S<0&&(S+=360),[w,Math.sqrt(I*I+T*T),S]},C.lch.lab=function(f){const w=f[0],I=f[1],T=f[2]/360*2*Math.PI;return[w,I*Math.cos(T),I*Math.sin(T)]},C.rgb.ansi16=function(f,w=null){const[I,T,S]=f;let P=w===null?C.rgb.hsv(f)[2]:w;if(P=Math.round(P/50),P===0)return 30;
vendor: 3,104 bytes, line 1
1let z=30+(Math.round(S/255)<<2|Math.round(T/255)<<1|Math.round(I/255));return P===2&&(z+=60),z},C.hsv.ansi16=function(f){return C.rgb.ansi16(C.hsv.rgb(f),f[2])},C.rgb.ansi256=function(f){const w=f[0],I=f[1],T=f[2];return w===I&&I===T?w<8?16:w>248?231:Math.round((w-8)/247*24)+232:16+36*Math.round(w/255*5)+6*Math.round(I/255*5)+Math.round(T/255*5)},C.ansi16.rgb=function(f){let w=f%10;if(w===0||w===7)return f>50&&(w+=3.5),w=w/10.5*255,[w,w,w];const I=.5*(1+~~(f>50));return[(1&w)*I*255,(w>>1&1)*I*255,(w>>2&1)*I*255]},C.ansi256.rgb=function(f){if(f>=232){const I=10*(f-232)+8;return[I,I,I]}let w;return f-=16,[Math.floor(f/36)/5*255,Math.floor((w=f%36)/6)/5*255,w%6/5*255]},C.rgb.hex=function(f){const w=(((255&Math.round(f[0]))<<16)+((255&Math.round(f[1]))<<8)+(255&Math.round(f[2]))).toString(16).toUpperCase();return"000000".substring(w.length)+w},C.hex.rgb=function(f){const w=f.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!w)return[0,0,0];let I=w[0];w[0].length===3&&(I=I.split("").map(S=>S+S).join(""));const T=parseInt(I,16);return[T>>16&255,T>>8&255,255&T]},C.rgb.hcg=function(f){const w=f[0]/255,I=f[1]/255,T=f[2]/255,S=Math.max(Math.max(w,I),T),P=Math.min(Math.min(w,I),T),z=S-P;let V,q;return V=z<1?P/(1-z):0,q=z<=0?0:S===w?(I-T)/z%6:S===I?2+(T-w)/z:4+(w-I)/z,q/=6,q%=1,[360*q,100*z,100*V]},C.hsl.hcg=function(f){const w=f[1]/100,I=f[2]/100,T=I<.5?2*w*I:2*w*(1-I);let S=0;return T<1&&(S=(I-.5*T)/(1-T)),[f[0],100*T,100*S]},C.hsv.hcg=function(f){const w=f[1]/100,I=f[2]/100,T=w*I;let S=0;return T<1&&(S=(I-T)/(1-T)),[f[0],100*T,100*S]},C.hcg.rgb=function(f){const w=f[0]/360,I=f[1]/100,T=f[2]/100;if(I===0)return[255*T,255*T,255*T];const S=[0,0,0],P=w%1*6,z=P%1,V=1-z;let q=0;switch(Math.floor(P)){case 0:S[0]=1,S[1]=z,S[2]=0;break;case 1:S[0]=V,S[1]=1,S[2]=0;break;case 2:S[0]=0,S[1]=1,S[2]=z;break;case 3:S[0]=0,S[1]=V,S[2]=1;break;case 4:S[0]=z,S[1]=0,S[2]=1;break;default:S[0]=1,S[1]=0,S[2]=V}return q=(1-I)*T,[255*(I*S[0]+q),255*(I*S[1]+q),255*(I*S[2]+q)]},C.hcg.hsv=function(f){const w=f[1]/100,I=w+f[2]/100*(1-w);let T=0;return I>0&&(T=w/I),[f[0],100*T,100*I]},C.hcg.hsl=function(f){const w=f[1]/100,I=f[2]/100*(1-w)+.5*w;let T=0;return I>0&&I<.5?T=w/(2*I):I>=.5&&I<1&&(T=w/(2*(1-I))),[f[0],100*T,100*I]},C.hcg.hwb=function(f){const w=f[1]/100,I=w+f[2]/100*(1-w);return[f[0],100*(I-w),100*(1-I)]},C.hwb.hcg=function(f){const w=f[1]/100,I=1-f[2]/100,T=I-w;let S=0;return T<1&&(S=(I-T)/(1-T)),[f[0],100*T,100*S]},C.apple.rgb=function(f){return[f[0]/65535*255,f[1]/65535*255,f[2]/65535*255]},C.rgb.apple=function(f){return[f[0]/255*65535,f[1]/255*65535,f[2]/255*65535]},C.gray.rgb=function(f){return[f[0]/100*255,f[0]/100*255,f[0]/100*255]},C.gray.hsl=function(f){return[0,0,f[0]]},C.gray.hsv=C.gray.hsl,C.gray.hwb=function(f){return[0,100,f[0]]},C.gray.cmyk=function(f){return[0,0,0,f[0]]},C.gray.lab=function(f){return[f[0],0,0]},C.gray.hex=function(f){const w=255&Math.round(f[0]/100*255),I=((w<<16)+(w<<8)+w).toString(16).toUpperCase();return"000000".substring(I.length)+I},C.rgb.gray=function(f){return[(f[0]+f[1]+f[2])/3/255*100]}},9047:(D,v,p)=>{const E=p(9246),y=p(802),C={};
1Object.keys(E).forEach(f=>{C[f]={},Object.defineProperty(C[f],"channels",{value:E[f].channels}),Object.defineProperty(C[f],"labels",{value:E[f].labels});const w=y(f);Object.keys(w).forEach(I=>{const T=w[I];C[f][I]=function(S){const P=function(...z){const V=z[0];if(V==null)return V;V.length>1&&(z=V);const q=S(z);if(typeof q=="object")for(let tt=q.length,Dt=0;Dt<tt;Dt++)q[Dt]=Math.round(q[Dt]);return q};return"conversion"in S&&(P.conversion=S.conversion),P}(T),C[f][I].raw=function(S){const P=function(...z){const V=z[0];return V==null?V:(V.length>1&&(z=V),S(z))};return"conversion"in S&&(P.conversion=S.conversion),P}(T)})}),D.exports=C},802:(D,v,p)=>{const E=p(9246);function y(w){const I=function(){const S={},P=Object.keys(E);for(let z=P.length,V=0;V<z;V++)S[P[V]]={distance:-1,parent:null};return S}(),T=[w];for(I[w].distance=0;T.length;){const S=T.pop(),P=Object.keys(E[S]);for(let z=P.length,V=0;V<z;V++){const q=P[V],tt=I[q];tt.distance===-1&&(tt.distance=I[S].distance+1,tt.parent=S,T.unshift(q))}}return I}function C(w,I){return function(T){return I(w(T))}}function f(w,I){const T=[I[w].parent,w];let S=E[I[w].parent][w],P=I[w].parent;for(;I[P].parent;)T.unshift(I[P].parent),S=C(E[I[P].parent][P],S),P=I[P].parent;return S.conversion=T,S}D.exports=function(w){const I=y(w),T={},S=Object.keys(I);for(let P=S.length,z=0;z<P;z++){const V=S[z];I[V].parent!==null&&(T[V]=f(V,I))}return T}},6931:D=>{D.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:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4 */ 5 6.ck-content code { 7 background-color: hsla(0, 0%, 78%, 0.3); 8 padding: .15em; 9 border-radius: 2px; 10} 11 12.ck.ck-editor__editable .ck-code_selected { 13 background-color: hsla(0, 0%, 78%, 0.5); 14} 15`],sourceRoot:""}]);const w=f},8708:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 16 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 17 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 18 */ 19 20.ck-content blockquote { 21 /* See #12 */ 22 overflow: hidden; 23 24 /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */ 25 padding-right: 1.5em; 26 padding-left: 1.5em; 27 28 margin-left: 0; 29 margin-right: 0; 30 font-style: italic; 31 border-left: solid 5px hsl(0, 0%, 80%); 32} 33 34.ck-content[dir="rtl"] blockquote { 35 border-left: 0; 36 border-right: solid 5px hsl(0, 0%, 80%); 37} 38`],sourceRoot:""}]);const w=f},1866:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 39 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 40 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 41 */ 42 43:root { 44 /* Based on default CKBox theme colors */ 45 --ck-image-processing-highlight-color: hsl(220, 10%, 98%); 46 --ck-image-processing-background-color: hsl(220, 10%, 90%); 47} 48 49.ck.ck-editor__editable { 50 & .image { 51 &.image-processing { 52 position: relative; 53 54 &:before { 55 content: ''; 56 57 position: absolute; 58 top: 0; 59 left: 0; 60 z-index: 1; 61 62 height: 100%; 63 width: 100%; 64 65 background: linear-gradient( 66 90deg, 67 var(--ck-image-processing-background-color), 68 var(--ck-image-processing-highlight-color), 69 var(--ck-image-processing-background-color) 70 ); 71 background-size: 200% 100%; 72 73 animation: ck-image-processing-animation 2s linear infinite; 74 } 75 76 & img { 77 height: 100%; 78 } 79 } 80 } 81} 82 83@keyframes ck-image-processing-animation { 84 0% { 85 background-position: 200% 0; 86 } 87 100% { 88 background-position: -200% 0; 89 } 90} 91`],sourceRoot:""}]);const w=f},7793:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{dis
91play:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:[`/* 92 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 93 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 94 */ 95 96.ck.ck-editor__editable { 97 /* 98 * Vertical drop target (in text). 99 */ 100 & .ck.ck-clipboard-drop-target-position { 101 display: inline; 102 position: relative; 103 pointer-events: none; 104 105 & span { 106 position: absolute; 107 width: 0; 108 } 109 } 110 111 /* 112 * Styles of the widget being dragged (its preview). 113 */ 114 & .ck-widget:-webkit-drag { 115 & > .ck-widget__selection-handle { 116 display: none; 117 } 118 119 & > .ck-widget__type-around { 120 display: none; 121 } 122 } 123} 124 125.ck.ck-clipboard-drop-target-line { 126 position: absolute; 127 pointer-events: none; 128} 129`,`/* 130 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 131 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 132 */ 133 134@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 135 136:root { 137 --ck-clipboard-drop-target-dot-width: 12px; 138 --ck-clipboard-drop-target-dot-height: 8px; 139 --ck-clipboard-drop-target-color: var(--ck-color-focus-border); 140} 141
142.ck.ck-editor__editable { 143 /* 144 * Vertical drop target (in text). 145 */ 146 & .ck.ck-clipboard-drop-target-position { 147 & span { 148 bottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height)); 149 top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height)); 150 border: 1px solid var(--ck-clipboard-drop-target-color); 151 background: var(--ck-clipboard-drop-target-color); 152 margin-left: -1px; 153 154 /* The triangle above the marker */ 155 &::after { 156 content: ''; 157 width: 0; 158 height: 0; 159 160 display: block; 161 position: absolute; 162 left: 50%; 163 top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height)); 164 165 transform: translateX(-50%); 166 border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent; 167 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)); 168 border-style: solid; 169 } 170 } 171 } 172 173 /* 174 * Styles of the widget that it a drop target. 175 */ 176 & .ck-widget.ck-clipboard-drop-target-range { 177 outline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important; 178 } 179 180 /* 181 * Styles of the widget being dragged (its preview). 182 */ 183 & .ck-widget:-webkit-drag { 184 zoom: 0.6; 185 outline: none !important; 186 } 187} 188 189.ck.ck-clipboard-drop-target-line { 190 height: 0; 191 border: 1px solid var(--ck-clipboard-drop-target-color); 192 background: var(--ck-clipboard-drop-target-color); 193 margin-top: -1px; 194 195 &::before { 196 content: ''; 197 position: absolute; 198 top: calc(-.5 * var(--ck-clipboard-drop-target-dot-width)); 199 width: 0; 200 height: 0; 201 border-style: solid; 202 203 @mixin ck-dir ltr { 204 left: -1px; 205 206 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); 207 border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color); 208 } 209 210 @mixin ck-dir rtl { 211 right: -1px; 212 213 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; 214 border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent; 215 } 216 } 217} 218`],sourceRoot:""}]);const w=f},7388:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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-radius: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{border:solid var(--ck-color-base-border);border-width:1px 1px 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,.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,8DCED,eDeC,CAjBA,mKCMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAcF,CAjBA,8DAOC,wCAAsB,CAAtB,sBAUD,CARC,8FACC,uBACD,CAEA,qJAEC,QACD,CAMH,yCAEC,0CAA2C,CCtB3C,eDgCD,CAZA,yHChBE,qCAAsC,CDqBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:[`/* 219 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 220 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 221 */ 222
223.ck.ck-editor { 224 /* All the elements within \`.ck-editor\` are positioned relatively to it. 225 If any element needs to be positioned with respect to the <body>, etc., 226 it must land outside of the \`.ck-editor\` in DOM. */ 227 position: relative; 228 229 & .ck-editor__top .ck-sticky-panel .ck-toolbar { 230 /* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */ 231 z-index: var(--ck-z-panel); 232 } 233} 234`,`/* 235 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 236 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 237 */ 238 239@import "../mixins/_rounded.css"; 240 241.ck.ck-editor__top { 242 & .ck-sticky-panel { 243 & .ck-sticky-panel__content { 244 @mixin ck-rounded-corners { 245 border-bottom-left-radius: 0; 246 border-bottom-right-radius: 0; 247 } 248 249 border: 1px solid var(--ck-color-base-border); 250 border-bottom-width: 0; 251 252 &.ck-sticky-panel__content_sticky { 253 border-bottom-width: 1px; 254 } 255 256 & .ck-menu-bar, 257 & .ck-toolbar { 258 border: 0; 259 } 260 } 261 } 262} 263 264/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */ 265.ck.ck-editor__main > .ck-editor__editable { 266 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */ 267 background: var(--ck-color-base-background); 268 269 @mixin ck-rounded-corners { 270 border-top-left-radius: 0; 271 border-top-right-radius: 0; 272 } 273 274 &:not(.ck-focused) { 275 border-color: var(--ck-color-base-border); 276 } 277} 278`,`/* 279 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 280 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 281 */ 282 283/** 284 * Implements rounded corner interface for .ck-rounded-corners class. 285 * 286 * @see $ck-border-radius 287 */ 288@define-mixin ck-rounded-corners { 289 border-radius: 0; 290 291 @nest .ck-rounded-corners &, 292 &.ck-rounded-corners { 293 border-radius: var(--ck-border-radius); 294 @mixin-content; 295 } 296} 297`],sourceRoot:""}]);const w=f},4098:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 298 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 299 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 300 */ 301 302/* See ckeditor/ckeditor5#936. */ 303.ck.ck-placeholder, 304.ck .ck-placeholder { 305 position: relative; 306 307 &::before { 308 position: absolute; 309 left: 0; 310 right: 0; 311 content: attr(data-placeholder); 312 313 /* See ckeditor/ckeditor5#469. */ 314 pointer-events: none; 315 } 316} 317 318/* See ckeditor/ckeditor5#1987. */ 319.ck.ck-read-only .ck-placeholder { 320 &::before { 321 display: none; 322 } 323} 324 325/* 326 * Rules for the \`ck-placeholder\` are loaded before the rules for \`ck-reset_all\` in the base CKEditor 5 DLL build. 327 * This fix overwrites the incorrectly set \`position: static\` from \`ck-reset_all\`. 328 * See https://github.com/ckeditor/ckeditor5/issues/11418. 329 */ 330.ck.ck-reset_all .ck-placeholder { 331 position: relative; 332} 333`,`/* 334 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 335 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 336 */ 337 338@define-mixin ck-media-forced-colors { 339 @media (forced-colors: active) { 340 & { 341 @mixin-content; 342 } 343 } 344} 345 346@define-mixin ck-media-default-colors { 347 @media (forced-colors: none) { 348 & { 349 @mixin-content; 350 } 351 } 352} 353`,`/* 354 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 355 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 356 */ 357 358@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 359 360/* See ckeditor/ckeditor5#936. */ 361.ck.ck-placeholder, .ck .ck-placeholder { 362 @mixin ck-media-forced-colors { 363 /* 364 * This is needed for Edge on Windows to use the right color for the placeholder content (::before). 365 * See https://github.com/ckeditor/ckeditor5/issues/14907. 366 */ 367 forced-color-adjust: preserve-parent-color; 368 } 369 370 &::before { 371 cursor: text; 372 373 @mixin ck-media-default-colors { 374 color: var(--ck-color-engine-placeholder-text); 375 } 376 377 @mixin ck-media-forced-colors { 378 /* 379 * In the high contrast mode there is no telling between regular and placeholder text. Using 380 * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907. 381 */ 382 font-style: italic; 383 384 /* 385 * Without this margin, the caret will not show up and blink
385when the user puts the selection 386 * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907. 387 */ 388 margin-left: 1px; 389 } 390 } 391} 392`],sourceRoot:""}]);const w=f},8264:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 393 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 394 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 395 */ 396 397/* Elements marked by the Renderer as hidden should be invisible in the editor. */ 398.ck.ck-editor__editable span[data-ck-unsafe-element] { 399 display: none; 400} 401`],sourceRoot:""}]);const w=f},6269:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:[`/* 402 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 403 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 404 */ 405 406.ck.ck-heading_heading1 { 407 font-size: 20px; 408} 409 410.ck.ck-heading_heading2 { 411 font-size: 17px; 412} 413 414.ck.ck-heading_heading3 { 415 font-size: 14px; 416} 417 418.ck[class*="ck-heading_heading"] { 419 font-weight: bold; 420} 421`,`/* 422 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 423 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 424 */ 425 426/* Resize dropdown's button label. */ 427.ck.ck-dropdown.ck-heading-dropdown { 428 & .ck-dropdown__button .ck-button__label { 429 width: 8em; 430 } 431 432 & .ck-dropdown__panel .ck-list__item { 433 min-width: 18em; 434 } 435} 436`],sourceRoot:""}]);const w=f},265:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 437 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 438 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 439 */ 440 441.ck-content { 442 & .image { 443 display: table; 444 clear: both; 445 text-align: center; 446 447 /* Make sure there is some space between the content and the image. Center image by default. */ 448 /* The first value should be equal to --ck-spacing-large variable if used in the editor context 449 to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ 450 margin: 0.9em auto; 451 452 /* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */ 453 min-width: 50px; 454 455 & img { 456 /* Prevent unnecessary margins caused by line-height (see #44). */ 457 display: block; 458 459 /* Center the image if its width is smaller than the content's width. */ 460 margin: 0 auto; 461 462 /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */ 463 max-width: 100%; 464 465 /* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */ 466 min-width: 100%; 467 468 /* Keep proportions of the block image if the height is set and the image is wider than the editor width. 469 See https://github.com/ckeditor/ckeditor5/issues/14542. */ 470 height: auto; 471 } 472 } 473 474 & .image-inline { 475 /* 476 * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing). 477 * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root. 478 * This strange behavior does not happen with inline-flex. 479 */ 480 display: inline-flex; 481 482 /* While being resized, don't allow the image to exceed the width of the editing root. */ 483 max-width: 100%; 484 485 /* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */ 486 align-items: flex-start; 487 488 /* When the picture is present it must act as a flex container to let the img resize properly */ 489 & picture { 490 display: flex; 491 } 492 493 /* When the picture is present, it must act like a resizable img. */ 494 & picture, 495 & img { 496 /* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */ 497 flex-grow: 1; 498 flex-shrink: 1; 499 500 /* Prevents overflowing the editing root boundaries when an inline image is very wide. */ 501 max-width: 100%; 502 } 503 } 504} 505 506.ck.ck-editor__editable { 507 /* 508 * Inhertit the content styles padding of the <figcaption> in case the integration overrides \`text-align: center\` 509 * of \`.image\` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native 510 * caret does, and not at the edge of <figcaption>. 511 */ 512 & .image > figcaption.ck-placeholder::before { 513 padding-left: inherit; 514 padding-right: inherit; 515 516 /* 517 * Make sure the image caption placeholder doesn't overflow the placeholder area. 518 * See https://github.com/ckeditor/ckeditor5/issues/9162. 519 */ 520 white-space: nowrap; 521 overflow: hidden; 522 text-overflow: ellipsis; 523 } 524 525 /* 526 * See https://github.com/ckeditor/ckeditor5/issues/15115. 527 */ 528 & .image { 529 z-index: 1; 530 531 /* 532 * Make sure the selected image always stays on top of its siblings. 533 * See https://github.com/ckeditor/ckeditor5/issues/9108. 534 */ 535 &.ck-widget_selected { 536 z-index: 2; 537 } 538 } 539 540 /* 541 * See https://github.com/ckeditor/ckeditor5/issues/15115. 542 */ 543 & .image-inline { 544 z-index: 1; 545 546 /* 547 * Make sure the selected inline image always stays on top of its siblings. 548 * See https://github.com/ckeditor/ckeditor5/issues/9108. 549 */ 550 &.ck-widget_selected { 551 z-index: 2; 552 553 /* 554 * Make sure the native browser selection style is not displayed. 555 * Inline image widgets have their own styles for the selected state and 556 * leaving this up to the browser is asking for a visual collision. 557 */ 558 & ::selection { 559 display: none; 560 } 561 } 562 } 563 564 /* Keep proportions of the inline image if the height is set and the image is wider than the editor width. 565 See https://github.com/ckeditor/ckeditor5/issues/14542. */ 566 & .image-inline img { 567 height: auto; 568 } 569 570 /* The inline image nested in the table should have its original size if not resized. 571 See https://github.com/ckeditor/ckeditor5/issues/9117. */ 572 & td, 573 & th { 574 & .image-inline img { 575 max-width: none; 576 } 577 } 578} 579`],sourceRoot:""}]);const w=f},5247:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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>
579figcaption.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:[`/* 580 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 581 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 582 */ 583 584@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 585 586:root { 587 --ck-color-image-caption-background: hsl(0, 0%, 97%); 588 --ck-color-image-caption-text: hsl(0, 0%, 20%); 589 --ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%); 590} 591 592/* Content styles */ 593.ck-content .image > figcaption { 594 display: table-caption; 595 caption-side: bottom; 596 word-break: break-word; 597 color: var(--ck-color-image-caption-text); 598 background-color: var(--ck-color-image-caption-background); 599 padding: .6em; 600 font-size: .75em; 601 outline-offset: -1px; 602 603 /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */ 604 @media (forced-colors: active) { 605 background-color: unset; 606 color: unset; 607 } 608} 609 610/* Editing styles */ 611.ck.ck-editor__editable .image > figcaption.image__caption_highlighted { 612 @mixin ck-media-default-colors { 613 animation: ck-image-caption-highlight .6s ease-out; 614 } 615 616 @media (prefers-reduced-motion: reduce) { 617 animation: none; 618 } 619} 620 621@keyframes ck-image-caption-highlight { 622 0% { 623 background-color: var(--ck-color-image-caption-highlighted-background); 624 } 625 626 100% { 627 background-color: var(--ck-color-image-caption-background); 628 } 629} 630`,`/* 631 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 632 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 633 */ 634 635@define-mixin ck-media-forced-colors { 636 @media (forced-colors: active) { 637 & { 638 @mixin-content; 639 } 640 } 641} 642 643@define-mixin ck-media-default-colors { 644 @media (forced-colors: none) { 645 & { 646 @mixin-content; 647 } 648 } 649} 650`],sourceRoot:""}]);const w=f},4642:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 651 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 652 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 653 */ 654 655@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 656 657.ck.ck-image-custom-resize-form { 658 display: flex; 659 flex-direction: row; 660 flex-wrap: nowrap; 661 align-items: flex-start; 662 663 & .ck-labeled-field-view { 664 display: inline-block; 665 } 666 667 & .ck-label { 668 display: none; 669 } 670 671 @mixin ck-media-phone { 672 flex-wrap: wrap; 673 674 & .ck-labeled-field-view { 675 flex-basis: 100%; 676 } 677 678 & .ck-button { 679 flex-basis: 50%; 680 } 681 } 682} 683`,`/* 684 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 685 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 686 */ 687 688@define-mixin ck-media-phone { 689 @media screen and (max-width: 600px) { 690 @mixin-content; 691 } 692} 693`],sourceRoot:""}]);const w=f},3350:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,
693CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:[`/* 694 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 695 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 696 */ 697 698.ck.ck-image-insert-url { 699 & .ck-image-insert-url__action-row { 700 display: grid; 701 grid-template-columns: repeat(2, 1fr); 702 } 703} 704`,`/* 705 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 706 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 707 */ 708 709@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 710 711:root { 712 --ck-image-insert-insert-by-url-width: 250px; 713} 714 715.ck.ck-image-insert-url { 716 --ck-input-width: 100%; 717 718 & .ck-image-insert-url__action-row { 719 grid-column-gap: var(--ck-spacing-large); 720 margin-top: var(--ck-spacing-large); 721 722 & .ck-button-save, 723 & .ck-button-cancel { 724 justify-content: center; 725 min-width: auto; 726 } 727 728 & .ck-button .ck-button__label { 729 color: var(--ck-color-text); 730 } 731 } 732} 733 734.ck.ck-image-insert-form { 735 & > .ck.ck-button { 736 display: block; 737 width: 100%; 738 padding: var(--ck-list-button-padding); 739 740 @mixin ck-dir ltr { 741 text-align: left; 742 } 743 744 @mixin ck-dir rtl { 745 text-align: right; 746 } 747 } 748 749 & > .ck.ck-collapsible { 750 &:not(:first-child) { 751 border-top: 1px solid var(--ck-color-base-border); 752 } 753 754 &:not(:last-child) { 755 border-bottom: 1px solid var(--ck-color-base-border); 756 } 757 758 min-width: var(--ck-image-insert-insert-by-url-width); 759 } 760 761 /* This is the case when there are no other integrations configured than insert by URL */ 762 & > .ck.ck-image-insert-url { 763 min-width: var(--ck-image-insert-insert-by-url-width); 764 padding: var(--ck-spacing-large); 765 } 766 767 &:focus { 768 outline: none; 769 } 770} 771`],sourceRoot:""}]);const w=f},7378:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 772 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 773 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 774 */ 775 776.ck.ck-editor__editable { 777 & img.image_placeholder { 778 background-size: 100% 100%; 779 } 780} 781`],sourceRoot:""}]);const w=f},3469:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 782 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 783 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 784 */ 785 786/* Preserve aspect ratio of the resized image after introducing image height attribute. */ 787.ck-content img.image_resized { 788 height: auto; 789} 790 791.ck-content .image.image_resized { 792 max-width: 100%; 793 /* 794 The \`<figure>\` element for resized images must not use \`display:table\` as browsers do not support \`max-width\` for it well. 795 See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more. 796 Fortunately, since we control the width, there is no risk that the image will look bad. 797 */ 798 display: block; 799 box-sizing: border-box; 800 801 & img { 802 /* For resized images it is the \`<figure>\` element that determines the image width. */ 803 width: 100%; 804 } 805 806 & > figcaption { 807 /* The \`<figure>\` element uses \`display:block\`, so \`<figcaption>\` also has to. */ 808 display: block; 809 } 810} 811 812.ck.ck-editor__editable { 813 /* The resized inline image nested in the table should respect its parent size. 814 See https://github.com/ckeditor/ckeditor5/issues/9117. */ 815 & td, 816 & th { 817 & .image-inline.image_resized img { 818 max-width: 100%; 819 } 820 } 821} 822 823[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon { 824 margin-right: var(--ck-spacing-standard); 825} 826 827[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon { 828 margin-left: var(--ck-spacing-standard); 829} 830
831.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label { 832 width: 4em; 833} 834`],sourceRoot:""}]);const w=f},6386:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:[`/* 835 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 836 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 837 */ 838 839:root { 840 --ck-image-style-spacing: 1.5em; 841 --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2); 842} 843 844.ck-content { 845 /* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback 846 confirming successful application of the style if image width exceeds the editor's size. 847 See https://github.com/ckeditor/ckeditor5/issues/9342 */ 848 & .image-style-block-align-left, 849 & .image-style-block-align-right { 850 max-width: calc(100% - var(--ck-image-style-spacing)); 851 } 852 853 /* Allows displaying multiple floating images in the same line. 854 See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */ 855 & .image-style-align-left, 856 & .image-style-align-right { 857 clear: none; 858 } 859 860 & .image-style-side { 861 float: right; 862 margin-left: var(--ck-image-style-spacing); 863 max-width: 50%; 864 } 865 866 & .image-style-align-left { 867 float: left; 868 margin-right: var(--ck-image-style-spacing); 869 } 870 871 & .image-style-align-center { 872 margin-left: auto; 873 margin-right: auto; 874 } 875 876 & .image-style-align-right { 877 float: right; 878 margin-left: var(--ck-image-style-spacing); 879 } 880 881 & .image-style-block-align-right { 882 margin-right: 0; 883 margin-left: auto; 884 } 885 886 & .image-style-block-align-left { 887 margin-left: 0; 888 margin-right: auto; 889 } 890 891 /* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */ 892 & p + .image-style-align-left, 893 & p + .image-style-align-right, 894 & p + .image-style-side { 895 margin-top: 0; 896 } 897 898 & .image-inline { 899 &.image-style-align-left, 900 &.image-style-align-right { 901 margin-top: var(--ck-inline-image-style-spacing); 902 margin-bottom: var(--ck-inline-image-style-spacing); 903 } 904 905 &.image-style-align-left { 906 margin-right: var(--ck-inline-image-style-spacing); 907 } 908 909 &.image-style-align-right { 910 margin-left: var(--ck-inline-image-style-spacing); 911 } 912 } 913} 914 915.ck.ck-splitbutton { 916 /* The button should display as a regular drop-down if the action button 917 is forced to fire the same action as the arrow button. */ 918 &.ck-splitbutton_flatten { 919 &:hover, 920 &.ck-splitbutton_open { 921 & > .ck-splitbutton__action:not(.ck-disabled), 922 & > .ck-splitbutton__arrow:not(.ck-disabled), 923 & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) { 924 background-color: var(--ck-color-button-on-background); 925 926 &::after { 927 display: none; 928 } 929 } 930 } 931 932 &.ck-splitbutton_open:hover { 933 & > .ck-splitbutton__action:not(.ck-disabled), 934 & > .ck-splitbutton__arrow:not(.ck-disabled), 935 & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) { 936 background-color: var(--ck-color-button-on-hover-background); 937 } 938 } 939 } 940} 941`],sourceRoot:""}]);const w=f},7693:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;
941transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0ms}.ck-image-upload-complete-icon:after{animation:none;height:.45em;opacity:1;width:.3em}}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFAqCD,CAjCC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAEA,uCA7CD,+BA8CE,sBASF,CAPE,qCACC,cAAe,CAGf,YAAc,CAFd,SAAU,CACV,UAED,CACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:[`/* 942 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 943 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 944 */ 945 946.ck-image-upload-complete-icon { 947 display: block; 948 position: absolute; 949 950 /* 951 * Smaller images should have the icon closer to the border. 952 * Match the icon position with the linked image indicator brought by the link image feature. 953 */ 954 top: min(var(--ck-spacing-medium), 6%); 955 right: min(var(--ck-spacing-medium), 6%); 956 border-radius: 50%; 957 z-index: 1; 958 959 &::after { 960 content: ""; 961 position: absolute; 962 } 963} 964`,`/* 965 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 966 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 967 */ 968 969:root { 970 --ck-color-image-upload-icon: hsl(0, 0%, 100%); 971 --ck-color-image-upload-icon-background: hsl(120, 100%, 27%); 972 973 /* Match the icon size with the linked image indicator brought by the link image feature. */ 974 --ck-image-upload-icon-size: 20; 975 --ck-image-upload-icon-width: 2px; 976 --ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px); 977} 978 979.ck-image-upload-complete-icon { 980 opacity: 0; 981 background: var(--ck-color-image-upload-icon-background); 982 animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide; 983 animation-fill-mode: forwards, forwards; 984 animation-duration: 500ms, 500ms; 985 986 /* To make animation scalable. */ 987 font-size: calc(1px * var(--ck-image-upload-icon-size)); 988 989 /* Hide completed upload icon after 3 seconds. */ 990 animation-delay: 0ms, 3000ms; 991 992 /* 993 * Use CSS math to simulate container queries. 994 * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things 995 */ 996 overflow: hidden; 997 width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size)); 998 height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size)); 999 1000 /* This is check icon element made from border-width mixed with animations. */ 1001 &::after { 1002 /* Because of border transformation we need to "hard code" left position. */ 1003 left: 25%; 1004 1005 top: 50%; 1006 opacity: 0; 1007 height: 0; 1008 width: 0; 1009 1010 transform: scaleX(-1) rotate(135deg); 1011 transform-origin: left top; 1012 border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon); 1013 border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon); 1014 1015 animation-name: ck-upload-complete-icon-check; 1016 animation-duration: 500ms; 1017 animation-delay: 500ms; 1018 animation-fill-mode: forwards; 1019 1020 /* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */ 1021 box-sizing: border-box; 1022 } 1023 1024 @media (prefers-reduced-motion: reduce) { 1025 animation-duration: 0ms; 1026 1027 &::after { 1028 animation: none; 1029 opacity: 1; 1030 width: 0.3em; 1031 height: 0.45em; 1032 } 1033 } 1034} 1035 1036@keyframes ck-upload-complete-icon-show { 1037 from { 1038 opacity: 0; 1039 } 1040 1041 to { 1042 opacity: 1; 1043 } 1044} 1045 1046@keyframes ck-upload-complete-icon-hide { 1047 from { 1048 opacity: 1; 1049 } 1050 1051 to { 1052 opacity: 0; 1053 } 1054} 1055 1056@keyframes ck-upload-complete-icon-check { 1057 0% { 1058 opacity: 1; 1059 width: 0; 1060 height: 0; 1061 } 1062 33% { 1063 width: 0.3em; 1064 height: 0; 1065 } 1066 100% { 1067 opacity: 1; 1068 width: 0.3em; 1069 height: 0.45em; 1070 } 1071} 1072`],sourceRoot:""}]);const w=f},1559:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1073 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1074 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1075 */ 1076 1077.ck .ck-upload-placeholder-loader { 1078 position: absolute;
1079 display: flex; 1080 align-items: center; 1081 justify-content: center; 1082 top: 0; 1083 left: 0; 1084 1085 &::before { 1086 content: ''; 1087 position: relative; 1088 } 1089} 1090`,`/* 1091 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1092 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1093 */ 1094 1095:root { 1096 --ck-color-upload-placeholder-loader: hsl(0, 0%, 70%); 1097 --ck-upload-placeholder-loader-size: 32px; 1098 --ck-upload-placeholder-image-aspect-ratio: 2.8; 1099} 1100 1101.ck .ck-image-upload-placeholder { 1102 /* We need to control the full width of the SVG gray background. */ 1103 width: 100%; 1104 margin: 0; 1105 1106 &.image-inline { 1107 width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) ); 1108 } 1109 1110 & img { 1111 /* 1112 * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short. 1113 * There's nothing special about this number except that it should make the image placeholder look like 1114 * a real image during this short period after the upload started and before the image was read from the 1115 * file system (and a rich preview was loaded). 1116 */ 1117 aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio); 1118 } 1119} 1120 1121.ck .ck-upload-placeholder-loader { 1122 width: 100%; 1123 height: 100%; 1124 1125 &::before { 1126 width: var(--ck-upload-placeholder-loader-size); 1127 height: var(--ck-upload-placeholder-loader-size); 1128 border-radius: 50%; 1129 border-top: 3px solid var(--ck-color-upload-placeholder-loader); 1130 border-right: 2px solid transparent; 1131 animation: ck-upload-placeholder-loader 1s linear infinite; 1132 } 1133} 1134 1135@keyframes ck-upload-placeholder-loader { 1136 to { 1137 transform: rotate( 360deg ); 1138 } 1139} 1140`],sourceRoot:""}]);const w=f},2267:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1141 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1142 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1143 */ 1144 1145.ck.ck-editor__editable { 1146 & .image, 1147 & .image-inline { 1148 position: relative; 1149 } 1150 1151 /* Upload progress bar. */ 1152 & .image .ck-progress-bar, 1153 & .image-inline .ck-progress-bar { 1154 position: absolute; 1155 top: 0; 1156 left: 0; 1157 } 1158} 1159`,`/* 1160 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1161 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1162 */ 1163 1164.ck.ck-editor__editable { 1165 & .image, 1166 & .image-inline { 1167 /* Showing animation. */ 1168 &.ck-appear { 1169 animation: fadeIn 700ms; 1170 1171 @media (prefers-reduced-motion: reduce) { 1172 opacity: 1; 1173 animation: none; 1174 } 1175 } 1176 } 1177 1178 /* Upload progress bar. */ 1179 & .image .ck-progress-bar, 1180 & .image-inline .ck-progress-bar { 1181 height: 2px; 1182 width: 0; 1183 background: var(--ck-color-upload-bar-background); 1184 transition: width 100ms; 1185 } 1186} 1187 1188@keyframes fadeIn { 1189 from { opacity: 0; } 1190 to { opacity: 1; } 1191} 1192`],sourceRoot:""}]);const w=f},4062:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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,
1192CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:[`/* 1193 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1194 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1195 */ 1196 1197@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1198 1199.ck.ck-text-alternative-form { 1200 display: flex; 1201 flex-direction: row; 1202 flex-wrap: nowrap; 1203 1204 & .ck-labeled-field-view { 1205 display: inline-block; 1206 } 1207 1208 & .ck-label { 1209 display: none; 1210 } 1211 1212 @mixin ck-media-phone { 1213 flex-wrap: wrap; 1214 1215 & .ck-labeled-field-view { 1216 flex-basis: 100%; 1217 } 1218 1219 & .ck-button { 1220 flex-basis: 50%; 1221 } 1222 } 1223} 1224`,`/* 1225 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1226 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1227 */ 1228 1229@define-mixin ck-media-phone { 1230 @media screen and (max-width: 600px) { 1231 @mixin-content; 1232 } 1233} 1234`],sourceRoot:""}]);const w=f},7719:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1235 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1236 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1237 */ 1238 1239/* Class added to span element surrounding currently selected link. */ 1240.ck .ck-link_selected { 1241 background: var(--ck-color-link-selected-background); 1242 1243 /* Give linked inline images some outline to let the user know they are also part of the link. */ 1244 & span.image-inline { 1245 outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background); 1246 } 1247} 1248 1249/* 1250 * Classes used by the "fake visual selection" displayed in the content when an input 1251 * in the link UI has focus (the browser does not render the native selection in this state). 1252 */ 1253.ck .ck-fake-link-selection { 1254 background: var(--ck-color-link-fake-selection); 1255} 1256 1257/* A collapsed fake visual selection. */ 1258.ck .ck-fake-link-selection_collapsed { 1259 height: 100%; 1260 border-right: 1px solid var(--ck-color-base-text); 1261 margin-right: -1px; 1262 outline: solid 1px hsla(0, 0%, 100%, .5); 1263} 1264`],sourceRoot:""}]);const w=f},8762:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:[`/* 1265 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1266 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1267 */ 1268 1269@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1270 1271.ck.ck-link-actions { 1272 display: flex; 1273 flex-direction: row; 1274 flex-wrap: nowrap; 1275 1276 & .ck-link-actions__preview { 1277 display: inline-block; 1278 1279 & .ck-button__label { 1280 overflow: hidden; 1281 } 1282 } 1283 1284 @mixin ck-media-phone { 1285 flex-wrap: wrap; 1286 1287 & .ck-link-actions__preview { 1288 flex-basis: 100%; 1289 } 1290 1291 & .ck-button:not(.ck-link-actions__preview) { 1292 flex-basis: 50%; 1293 } 1294 } 1295} 1296`,`/* 1297 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1298 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1299 */ 1300 1301@define-mixin ck-media-phone { 1302 @media screen and (max-width: 600px) { 1303 @mixin-content; 1304 } 1305} 1306`,`/* 1307 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1308 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1309 */ 1310 1311@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css"; 1312@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 1313@import "../mixins/_focus.css"; 1314@import "../mixins/_shadow.css"; 1315@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1316 1317.ck.ck-link-actions { 1318 & .ck-button.ck-link-actions__preview { 1319 padding-left: 0; 1320 padding-right: 0; 1321 1322 & .ck-button__label { 1323 padding: 0 var(--ck-spacing-medium); 1324 color: var(--ck-color-link-default); 1325 text-overflow: ellipsis; 1326 cursor: pointer; 1327 1328 /* Match the box model of the link editor form's input so the balloon 1329 does not change width when moving between actions and the form. */ 1330 max-width: var(--ck-input-width); 1331 min-width: 3em; 1332 text-align: center; 1333 1334 &:hover { 1335 text-decoration: underline; 1336 } 1337 } 1338 1339 &, 1340 &:hover, 1341 &:focus, 1342 &:active { 1343 background: none; 1344 } 1345 1346 &:active { 1347 box-shadow: none; 1348 } 1349 1350 &:focus { 1351 & .ck-button__label { 1352 text-decoration: underline; 1353 } 1354 } 1355 } 1356 1357 @mixin ck-dir ltr { 1358 & .ck-button:not(:first-child) { 1359 margin-left: var(--ck-spacing-standard); 1360 } 1361 } 1362 1363 @mixin ck-dir rtl { 1364 & .ck-button:not(:last-child) { 1365 margin-left: var(--ck-spacing-standard); 1366 } 1367 } 1368 1369 @mixin ck-media-phone { 1370 & .ck-button.ck-link-actions__preview { 1371 margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0; 1372 1373 & .ck-button__label { 1374 min-width: 0; 1375 max-width: 100%; 1376 } 1377 } 1378 1379 & .ck-button:not(.ck-link-actions__preview) { 1380 @mixin ck-dir ltr { 1381 margin-left: 0; 1382 } 1383 1384 @mixin ck-dir rtl { 1385 margin-left: 0; 1386 } 1387 } 1388 } 1389} 1390`],sourceRoot:""}]);const w=f},3817:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBAEC,sBAAuB,CADvB,YAkBD,CAfC,2BACC,YACD,CCPA,oCDCD,iBASE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CChBD,CDwBD,iCACC,aAYD,CALE,wHAEC,mCACD,CEhCF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:[`/* 1391 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1392 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1393 */ 1394 1395@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1396 1397.ck.ck-link-form { 1398 display: flex; 1399 align-items: flex-start; 1400 1401 & .ck-label { 1402 display: none; 1403 } 1404 1405 @mixin ck-media-phone { 1406 flex-wrap: wrap; 1407 1408 & .ck-labeled-field-view { 1409 flex-basis: 100%; 1410 } 1411 1412 & .ck-button { 1413 flex-basis: 50%; 1414 } 1415 } 1416} 1417 1418/* 1419 * Style link form differently when manual decorators are available. 1420 * See: https://github.com/ckeditor/ckeditor5-link/issues/186. 1421 */ 1422.ck.ck-link-form_layout-vertical { 1423 display: block; 1424 1425 /* 1426 * Whether the form is in the responsive mode or not, if there are decorator buttons 1427 * keep the top margin of action buttons medium. 1428 */ 1429 & .ck-button { 1430 &.ck-button-save, 1431 &.ck-button-cancel { 1432 margin-top: var(--ck-spacing-medium); 1433 } 1434 } 1435} 1436`,`/* 1437 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1438 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1439 */ 1440 1441@define-mixin ck-media-phone { 1442 @media screen and (max-width: 600px) { 1443 @mixin-content; 1444 } 1445} 1446`,`/* 1447 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1448 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1449 */ 1450 1451@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 1452 1453/* 1454 * Style link form differently when manual decorators are available. 1455 * See: https://github.com/ckeditor/ckeditor5-link/issues/186. 1456 */ 1457.ck.ck-link-form_layout-vertical { 1458 padding: 0; 1459 min-width: var(--ck-input-width); 1460 1461 & .ck-labeled-field-view { 1462 margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small); 1463 1464 & .ck-input-text { 1465 min-width: 0; 1466 width: 100%; 1467 } 1468 } 1469 1470 & > .ck-button { 1471 padding: var(--ck-spacing-standard); 1472 margin: 0; 1473 width: 50%; 1474 border-radius: 0; 1475 1476 &:not(:focus) { 1477 border-top: 1px solid var(--ck-color-base-border); 1478 } 1479 1480 @mixin ck-dir ltr { 1481 margin-left: 0; 1482 } 1483 1484 @mixin ck-dir rtl { 1485 margin-left: 0; 1486 1487 &:last-of-type { 1488 border-right: 1px solid var(--ck-color-base-border); 1489 } 1490 } 1491 } 1492 1493 /* Using additional \`.ck\` class for stronger CSS specificity than \`.ck.ck-link-form > :not(:first-child)\`. */ 1494 & .ck.ck-list { 1495 margin: var(--ck-spacing-standard) var(--ck-spacing-large); 1496 1497 & .ck-button.ck-switchbutton { 1498 padding: 0; 1499 width: 100%; 1500 1501 &:hover { 1502 background: none; 1503 } 1504 } 1505 } 1506} 1507`],sourceRoot:""}]);const w=f},4808:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzUuNzUgMCAwIDEtLjIxNy4yMDYgNS4yNTEgNS4yNTEgMCAwIDEtOC41MDMtNS45NTUuNy43IDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NHptNS40OTQtNS4zMzVhLjc1Ljc1IDAgMCAxLS4xMi4yNzRsLTEuMTQ3IDEuNjM5YS43NS43NSAwIDEgMS0xLjIyOC0uODZsLjg2LTEuMjNhMy43NSAzLjc1IDAgMCAwLTYuMTQ0LTQuMzAxbC0uODYgMS4yMjlhLjc1Ljc1IDAgMCAxLTEuMjI5LS44NmwxLjE0OC0xLjY0YS43NS43NSAwIDAgMSAuMjE3LS4yMDYgNS4yNTEgNS4yNTEgMCAwIDEgOC41MDMgNS45NTVtLTQuNTYzLTIuNTMyYS43NS43NSAwIDAgMSAuMTg0IDEuMDQ1bC0zLjE1NSA0LjUwNWEuNzUuNzUgMCAxIDEtMS4yMjktLjg2bDMuMTU1LTQuNTA2YS43NS43NSAwIDAgMSAxLjA0NS0uMTg0Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,
1507CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,k2BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:[`/* 1508 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1509 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1510 */ 1511 1512.ck.ck-editor__editable { 1513 /* Linked image indicator */ 1514 & figure.image > a, 1515 & a span.image-inline { 1516 &::after { 1517 display: block; 1518 position: absolute; 1519 } 1520 } 1521} 1522 1523`,`/* 1524 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1525 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1526 */ 1527 1528:root { 1529 /* Match the icon size with the upload indicator brought by the image upload feature. */ 1530 --ck-link-image-indicator-icon-size: 20; 1531 --ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px); 1532} 1533 1534.ck.ck-editor__editable { 1535 /* Linked image indicator */ 1536 & figure.image > a, 1537 & a span.image-inline { 1538 &::after {
1539 content: ""; 1540 1541 /* 1542 * Smaller images should have the icon closer to the border. 1543 * Match the icon position with the upload indicator brought by the image upload feature. 1544 */ 1545 top: min(var(--ck-spacing-medium), 6%); 1546 right: min(var(--ck-spacing-medium), 6%); 1547 1548 background-color: hsla(0, 0%, 0%, .4); 1549 background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+"); 1550 background-size: 14px; 1551 background-repeat: no-repeat; 1552 background-position: center; 1553 border-radius: 100%; 1554 1555 /* 1556 * Use CSS math to simulate container queries. 1557 * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things 1558 */ 1559 overflow: hidden; 1560 width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size)); 1561 height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size)); 1562 } 1563 } 1564} 1565 1566`],sourceRoot:""}]);const w=f},1232:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1567 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1568 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1569 */ 1570 1571.ck-editor__editable .ck-list-bogus-paragraph { 1572 display: block; 1573} 1574`],sourceRoot:""}]);const w=f},6903:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1575 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1576 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1577 */ 1578 1579.ck-content ol { 1580 list-style-type: decimal; 1581 1582 & ol { 1583 list-style-type: lower-latin; 1584 1585 & ol { 1586 list-style-type: lower-roman; 1587 1588 & ol { 1589 list-style-type: upper-latin; 1590 1591 & ol { 1592 list-style-type: upper-roman; 1593 } 1594 } 1595 } 1596 } 1597} 1598 1599.ck-content ul { 1600 list-style-type: disc; 1601 1602 & ul { 1603 list-style-type: circle; 1604 1605 & ul { 1606 list-style-type: square; 1607 1608 & ul { 1609 list-style-type: square; 1610 } 1611 } 1612 } 1613} 1614`],sourceRoot:""}]);const w=f},9968:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1615 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1616 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1617 */ 1618
1619.ck.ck-list-properties { 1620 /* When there are no list styles and there is no collapsible. */ 1621 &.ck-list-properties_without-styles { 1622 padding: var(--ck-spacing-large); 1623 1624 & > * { 1625 min-width: 14em; 1626 1627 & + * { 1628 margin-top: var(--ck-spacing-standard); 1629 } 1630 } 1631 } 1632 1633 /* 1634 * When the numbered list property fields (start at, reversed) should be displayed, 1635 * more horizontal space is needed. Reconfigure the style grid to create that space. 1636 */ 1637 &.ck-list-properties_with-numbered-properties { 1638 & > .ck-list-styles-list { 1639 grid-template-columns: repeat( 4, auto ); 1640 } 1641 1642 /* When list styles are rendered and property fields are in a collapsible. */ 1643 & > .ck-collapsible { 1644 border-top: 1px solid var(--ck-color-base-border); 1645 1646 & > .ck-collapsible__children { 1647 & > * { 1648 width: 100%; 1649 1650 & + * { 1651 margin-top: var(--ck-spacing-standard); 1652 } 1653 } 1654 } 1655 } 1656 } 1657 1658 & .ck.ck-numbered-list-properties__start-index .ck-input { 1659 min-width: auto; 1660 width: 100%; 1661 } 1662 1663 & .ck.ck-numbered-list-properties__reversed-order { 1664 background: transparent; 1665 padding-left: 0; 1666 padding-right: 0; 1667 margin-bottom: calc(-1 * var(--ck-spacing-tiny)); 1668 1669 &:active, &:hover { 1670 box-shadow: none; 1671 border-color: transparent; 1672 background: none; 1673 } 1674 } 1675} 1676`],sourceRoot:""}]);const w=f},7141:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1677 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1678 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1679 */ 1680 1681.ck.ck-list-styles-list { 1682 display: grid; 1683} 1684`,`/* 1685 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1686 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1687 */ 1688 1689:root { 1690 --ck-list-style-button-size: 44px; 1691} 1692 1693.ck.ck-list-styles-list { 1694 grid-template-columns: repeat( 3, auto ); 1695 row-gap: var(--ck-spacing-medium); 1696 column-gap: var(--ck-spacing-medium); 1697 padding: var(--ck-spacing-large); 1698 1699 & .ck-button { 1700 /* Make the button look like a thumbnail (the icon "takes it all"). */ 1701 width: var(--ck-list-style-button-size); 1702 height: var(--ck-list-style-button-size); 1703 padding: 0; 1704 1705 /* 1706 * Buttons are aligned by the grid so disable default button margins to not collide with the 1707 * gaps in the grid. 1708 */ 1709 margin: 0; 1710 1711 /* 1712 * Make sure the button border (which is displayed on focus, BTW) does not steal pixels 1713 * from the button dimensions and, as a result, decrease the size of the icon 1714 * (which becomes blurry as it scales down). 1715 */ 1716 box-sizing: content-box; 1717 1718 & .ck-icon { 1719 width: var(--ck-list-style-button-size); 1720 height: var(--ck-list-style-button-size); 1721 } 1722 } 1723} 1724`],sourceRoot:""}]);const w=f},8991:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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;
1724transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{transition:none}}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CA4EA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAtFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqFC,CAFA,wDApEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAoEA,CAhED,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sDAYE,eAEF,CADC,CAGD,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FAxHA,uBAAwB,CAQx
1724B,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAuHA,CAFA,wGAtGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAsGD,CAlGA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sGAYE,eAEF,CADC,CAGD,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:[`/* 1725 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1726 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1727 */ 1728 1729:root { 1730 --ck-todo-list-checkmark-size: 16px; 1731} 1732 1733@define-mixin todo-list-checkbox { 1734 -webkit-appearance: none; 1735 display: inline-block; 1736 position: relative; 1737 width: var(--ck-todo-list-checkmark-size); 1738 height: var(--ck-todo-list-checkmark-size); 1739 vertical-align: middle; 1740 1741 /* Needed on iOS */ 1742 border: 0; 1743 1744 /* LTR styles */ 1745 left: -25px; 1746 margin-right: -15px; 1747 right: 0; 1748 margin-left: 0; 1749 1750 /* RTL styles */ 1751 @nest [dir=rtl]& { 1752 left: 0; 1753 margin-right: 0; 1754 right: -25px; 1755 margin-left: -15px; 1756 } 1757 1758 &::before { 1759 display: block; 1760 position: absolute; 1761 box-sizing: border-box; 1762 content: ''; 1763 width: 100%; 1764 height: 100%; 1765 border: 1px solid hsl(0, 0%, 20%); 1766 border-radius: 2px; 1767 transition: 250ms ease-in-out box-shadow; 1768 1769 @media (prefers-reduced-motion: reduce) { 1770 transition: none; 1771 } 1772 } 1773 1774 &::after { 1775 display: block; 1776 position: absolute; 1777 box-sizing: content-box; 1778 pointer-events: none; 1779 content: ''; 1780 1781 /* Calculate tick position, size and border-width proportional to the checkmark size. */ 1782 left: calc( var(--ck-todo-list-checkmark-size) / 3 ); 1783 top: calc( var(--ck-todo-list-checkmark-size) / 5.3 ); 1784 width: calc( var(--ck-todo-list-checkmark-size) / 5.3 ); 1785 height: calc( var(--ck-todo-list-checkmark-size) / 2.6 ); 1786 border-style: solid; 1787 border-color: transparent; 1788 border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0; 1789 transform: rotate(45deg); 1790 } 1791 1792 &[checked] { 1793 &::before { 1794 background: hsl(126, 64%, 41%); 1795 border-color: hsl(126, 64%, 41%); 1796 } 1797 1798 &::after { 1799 border-color: hsl(0, 0%, 100%); 1800 } 1801 } 1802} 1803 1804/* 1805 * To-do list content styles. 1806 */ 1807.ck-content .todo-list { 1808 list-style: none; 1809 1810 & li { 1811 position: relative; 1812 margin-bottom: 5px; 1813 1814 & .todo-list { 1815 margin-top: 5px; 1816 } 1817 } 1818 1819 & .todo-list__label { 1820 & > input { 1821 @mixin todo-list-checkbox; 1822 } 1823 1824 & .todo-list__label__description { 1825 vertical-align: middle; 1826 } 1827 1828 &.todo-list__label_without-description input[type=checkbox] { 1829 position: absolute; 1830 } 1831 } 1832} 1833 1834/* 1835 * To-do list editing view styles. 1836 */ 1837.ck-editor__editable.ck-content .todo-list .todo-list__label { 1838 /* 1839 * To-do list should be interactive only during the editing 1840 * (https://github.com/ckeditor/ckeditor5/issues/2090). 1841 */ 1842 & > input, 1843 & > span[contenteditable=false] > input { 1844 cursor: pointer; 1845 1846 &:hover::before { 1847 box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1); 1848 } 1849 } 1850 1851 /* 1852 * Document Lists - editing view has an additional span around checkbox. 1853 */ 1854 & > span[contenteditable=false] > input { 1855 @mixin todo-list-checkbox; 1856 } 1857 1858 &.todo-list__label_without-description { 1859 & input[type=checkbox] { 1860 position: absolute; 1861 } 1862 } 1863} 1864`],sourceRoot:""}]);const w=f},70:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 1865 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1866 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1867 */ 1868 1869.ck-content .media { 1870 /* Don't allow floated content overlap the media. 1871 https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */ 1872 clear: both; 1873 1874 /* Make sure there is some space between the content and the media. */ 1875 /* The first value should be equal to --ck-spacing-large variable if used in the editor context 1876 to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ 1877 margin: 0.9em 0; 1878 1879 /* Make sure media is not overriden with Bootstrap default \`flex\` value. 1880 See: https://github.com/ckeditor/ckeditor5/issues/1373. */ 1881 display: block; 1882 1883 /* Give the media some minimal width in the content to prevent them
1884 from being "squashed" in tight spaces, e.g. in table cells (#44) */ 1885 min-width: 15em; 1886} 1887`],sourceRoot:""}]);const w=f},7048:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSlzY2FsZSguOTgwMTIpIj48cmVjdCB3aWR0aD0iNjAuMDk5IiBoZWlnaHQ9IjYwLjA5OSIgeD0iMTc2LjAzMSIgeT0iMjMxLjM5OSIgZmlsbD0iIzM0YTY2OCIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjIzOCIgcnk9IjUuMjM4Ii8+PHBhdGggZmlsbD0iIzVjODhjNSIgZD0ibTIwNi40NzcgMjYwLjktMjguOTg3IDI4Ljk4N2E1LjIyIDUuMjIgMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiLz48cGF0aCBmaWxsPSIjZGQ0YjNlIiBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwN3EuNS43NTMuOTUgMS41MDguNTE1LjcxNS45ODggMS40NGMxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5cS40NzMtLjcyMy45ODgtMS40MzkuNDUtLjc1NS45NS0xLjUwOGMuMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIGN4PSIyMjYuNzQyIiBjeT0iMjM5LjAwMiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjgyOCIgcnk9IjUuNTY0Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjlxLS4wMDEtLjU0My0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhxLS4wMDEtLjAwMy0uMDA0LS4wMDVjLTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTVtNC40MyA1LjY2LjAwMy4wMDZ2LS4wMDN6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGZpbGw9IiNjM2MzYzMiIGQ9Im0yMTUuMTg0IDI1MS45MjktNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMiA1LjIgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjl6Ii8+PHBhdGggZmlsbD0iI2ZkZGM0ZiIgZD0ibTIxMi45ODMgMjQ4LjQ5NS0zNi45NTIgMzYuOTUzdi44MTJhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzggNS4y
1887MzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYgMTM2IDAgMCAwLTIuNzY0LTMuOSAzOCAzOCAwIDAgMC0uOTg5LTEuNDQgMzUgMzUgMCAwIDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiPjxwYXRoIGZpbGw9IiNGRkZGRkUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTk2Ny40ODQgMEg1Ni41MTdDMjUuMzA0IDAgMCAyNS4zMDQgMCA1Ni41MTd2OTEwLjk2NkMwIDk5OC42OTQgMjUuMjk3IDEwMjQgNTYuNTIyIDEwMjRINTQ3VjYyOEg0MTRWNDczaDEzM1YzNTkuMDI5YzAtMTMyLjI2MiA4MC43NzMtMjA0LjI4MiAxOTguNzU2LTIwNC4yODIgNTYuNTEzIDAgMTA1LjA4NiA0LjIwOCAxMTkuMjQ0IDYuMDg5VjI5OWwtODEuNjE2LjAzN2MtNjMuOTkzIDAtNzYuMzg0IDMwLjQ5Mi03Ni4zODQgNzUuMjM2VjQ3M2gxNTMuNDg3bC0xOS45ODYgMTU1SDcwN3YzOTZoMjYwLjQ4NGMzMS4yMTMgMCA1Ni41MTYtMjUuMzAzIDU2LjUxNi01Ni41MTZWNTYuNTE1QzEwMjQgMjUuMzAzIDk5OC42OTcgMCA5NjcuNDg0IDAiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OW0wIDQ1LjM5MWM2Ny4yNjUgMCA3NS4yMzMuMjU3IDEwMS43OTcgMS40NjkgMjQuNTYyIDEuMTIgMzcuOTAxIDUuMjI0IDQ2Ljc3OCA4LjY3NCAxMS43NTkgNC41NyAyMC4xNTEgMTAuMDI5IDI4Ljk2NiAxOC44NDVzMTQuMjc1IDE3LjIwNyAxOC44NDUgMjguOTY2YzMuNDUgOC44NzcgNy41NTQgMjIuMjE2IDguNjc0IDQ2Ljc3OCAxLjIxMiAyNi41NjQgMS40NjkgMzQuNTMyIDEuNDY5IDEwMS43OTggMCA2Ny4yNjUtLjI1NyA3NS4yMzMtMS40NjkgMTAxLjc5Ny0xLjEyIDI0LjU2Mi01LjIyNCAzNy45MDEtOC42NzQgNDYuNzc4LTQuNTcgMTEuNzU5LTEwLjAyOSAyMC4xNTEtMTguODQ1IDI4Ljk2NnMtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1Yy04Ljg3NyAzLjQ1LTIyLjIxNiA3LjU1NC00Ni43NzggOC42NzQtMjYuNTYgMS4yMTItMzQuNTI3IDEuNDY5LTEwMS43OTcgMS40NjktNjcuMjcxIDAtNzUuMjM3LS4yNTctMTAxLjc5OC0xLjQ2OS0yNC41NjItMS4xMi0zNy45MDEtNS4yMjQtNDYuNzc4LTguNjc0LTExLjc1OS00LjU3LTIwLjE1MS0xMC4wMjktMjguOTY2LTE4Ljg0NXMtMTQuMjc1LTE3LjIwNy0xOC44NDUtMjguOTY2Yy0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NnMxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDVjOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OSIgbWFzaz0idXJsKCNiKSIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0yNTEuOTIxIDMzNi4wNTNjLTQ2LjM3OCAwLTgzLjk3NC0zNy41OTYtODMuOTc0LTgzLjk3M3MzNy41OTYtODMuOTc0IDgzLjk3NC04My45NzRjNDYuMzc3IDAgODMuOTczIDM3LjU5NiA4My45NzMgODMuOTc0IDAgNDYuMzc3LTM3LjU5NiA4My45NzMtODMuOTczIDgzLjk3M20wLTIxMy4zMzhjLTcxLjQ0NyA
1887wLTEyOS4zNjUgNTcuOTE4LTEyOS4zNjUgMTI5LjM2NSAwIDcxLjQ0NiA1Ny45MTggMTI5LjM2NCAxMjkuMzY1IDEyOS4zNjQgNzEuNDQ2IDAgMTI5LjM2NC01Ny45MTggMTI5LjM2NC0xMjkuMzY0IDAtNzEuNDQ3LTU3LjkxOC0xMjkuMzY1LTEyOS4zNjQtMTI5LjM2NU00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjNzMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzFjMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwME0xNjMuNCAzMDUuNWM4OC43IDAgMTM3LjItNzMuNSAxMzcuMi0xMzcuMiAwLTIuMSAwLTQuMi0uMS02LjIgOS40LTYuOCAxNy42LTE1LjMgMjQuMS0yNS04LjYgMy44LTE3LjkgNi40LTI3LjcgNy42IDEwLTYgMTcuNi0xNS40IDIxLjItMjYuNy05LjMgNS41LTE5LjYgOS41LTMwLjYgMTEuNy04LjgtOS40LTIxLjMtMTUuMi0zNS4yLTE1LjItMjYuNiAwLTQ4LjIgMjEuNi00OC4yIDQ4LjIgMCAzLjguNCA3LjUgMS4zIDExLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40LTQuMSA3LjEtNi41IDE1LjQtNi41IDI0LjIgMCAxNi43IDguNSAzMS41IDIxLjUgNDAuMS03LjktLjItMTUuMy0yLjQtMjEuOC02di42YzAgMjMuNCAxNi42IDQyLjggMzguNyA0Ny4zLTQgMS4xLTguMyAxLjctMTIuNyAxLjctMy4xIDAtNi4xLS4zLTkuMS0uOSA2LjEgMTkuMiAyMy45IDMzLjEgNDUgMzMuNS0xNi41IDEyLjktMzcuMyAyMC42LTU5LjkgMjAuNi0zLjkgMC03LjctLjItMTEuNS0uNyAyMS4xIDEzLjggNDYuNSAyMS44IDczLjcgMjEuOCIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==)}.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,goGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,o+GACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,g/BACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:[`/* 1888 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1889 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1890 */ 1891 1892.ck-media__wrapper { 1893 & .ck-media__placeholder { 1894 display: flex; 1895 flex-direction: column; 1896 align-items: center; 1897 1898 & .ck-media__placeholder__url { 1899 /* Otherwise the URL will overflow when the content is very narrow. */ 1900 max-width: 100%; 1901 1902 position: relative; 1903 1904 & .ck-media__placeholder__url__text { 1905 overflow: hidden; 1906 display: block; 1907 } 1908 } 1909 } 1910 1911 &[data-oembed-url*="twitter.com"], 1912 &[data-oembed-url*="google.com/maps"], 1913 &[data-oembed-url*="goo.gl/maps"], 1914 &[data-oembed-url*="maps.google.com"], 1915 &[data-oembed-url*="maps.app.goo.gl"], 1916 &[data-oembed-url*="facebook.com"], 1917 &[data-oembed-url*="instagram.com"] { 1918 & .ck-media__placeholder__icon * { 1919 display: none; 1920 } 1921 } 1922} 1923 1924/* Disable all mouse interaction as long as the editor is not readâonly. 1925 https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */ 1926.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) { 1927 pointer-events: none; 1928} 1929 1930/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident). 1931 https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */ 1932.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder { 1933 pointer-events: none; 1934} 1935`,`/* 1936 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1937 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1938 */ 1939 1940:root { 1941 --ck-media-embed-placeholder-icon-size: 3em; 1942 1943 --ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%); 1944 --ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text); 1945} 1946 1947.ck-media__wrapper { 1948 margin: 0 auto; 1949 1950 & .ck-media__placeholder { 1951 padding: calc( 3 * var(--ck-spacing-standard) ); 1952 background: var(--ck-color-base-foreground); 1953 1954 & .ck-media__placeholder__icon { 1955 min-width: var(--ck-media-embed-placeholder-icon-size); 1956 height: var(--ck-media-embed-placeholder-icon-size); 1957 margin-bottom: var(--ck-spacing-large); 1958 background-position: center; 1959 background-size: cover; 1960 1961 & .ck-icon { 1962 width: 100%; 1963 height: 100%; 1964 } 1965 } 1966 1967 & .ck-media__placeholder__url__text { 1968 color: var(--ck-color-media-embed-placeholder-url-text); 1969 white-space: nowrap; 1970 text-align: center; 1971 font-style: italic; 1972 text-overflow: ellipsis; 1973 1974 &:hover { 1975 color: var(--ck-color-media-embed-placeholder-url-text-hover); 1976 cursor: pointer; 1977 text-decoration: underline; 1978 } 1979 } 1980 } 1981 1982 &[data-oembed-url*="open.spotify.com"] { 1983 max-width: 300px; 1984 max-height: 380px; 1985 } 1986 1987 &[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon, 1988 &[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon, 1989 &[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon, 1990 &[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon { 1991 background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03
1991Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+); 1992 } 1993 1994 &[data-oembed-url*="facebook.com"] .ck-media__placeholder { 1995 background: hsl(220, 46%, 48%); 1996 1997 & .ck-media__placeholder__icon { 1998 background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+); 1999 } 2000 2001 & .ck-media__placeholder__url__text { 2002 color: hsl(220, 100%, 90%); 2003 2004 &:hover { 2005 color: hsl(0, 0%, 100%); 2006 } 2007 } 2008 } 2009 2010 &[data-oembed-url*="instagram.com"] .ck-media__placeholder { 2011 background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%)); 2012 2013 & .ck-media__placeholder__icon { 2014 background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMu
2014NTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=); 2015 } 2016 2017 /* stylelint-disable-next-line no-descending-specificity */ 2018 & .ck-media__placeholder__url__text { 2019 color: hsl(302, 100%, 94%); 2020 2021 &:hover { 2022 color: hsl(0, 0%, 100%); 2023 } 2024 } 2025 } 2026 2027 &[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder { 2028 /* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */ 2029 background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) ); 2030 2031 & .ck-media__placeholder__icon { 2032 background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+); 2033 } 2034 2035 & .ck-media__placeholder__url__text { 2036 color: hsl(201, 100%, 86%); 2037 2038 &:hover { 2039 color: hsl(0, 0%, 100%); 2040 } 2041 } 2042 } 2043} 2044`],sourceRoot:""}]);const w=f},5651:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:[`/* 2045 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2046 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2047 */ 2048 2049@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 2050 2051.ck.ck-media-form { 2052 display: flex; 2053 align-items: flex-start; 2054 flex-direction: row; 2055 flex-wrap: nowrap; 2056 2057 & .ck-labeled-field-view { 2058 display: inline-block; 2059 } 2060 2061 & .ck-label { 2062 display: none; 2063 } 2064 2065 @mixin ck-media-phone { 2066 flex-wrap: wrap; 2067 2068 & .ck-labeled-field-view { 2069 flex-basis: 100%; 2070 } 2071 2072 & .ck-button { 2073 flex-basis: 50%; 2074 } 2075 } 2076} 2077`,`/* 2078 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2079 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2080 */ 2081 2082@define-mixin ck-media-phone { 2083 @media screen and (max-width: 600px) { 2084 @mixin-content; 2085 } 2086} 2087`],sourceRoot:""}]);const w=f},5506:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;
2087top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:[`/* 2088 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2089 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2090 */ 2091 2092.ck.ck-input-color { 2093 width: 100%; 2094 display: flex; 2095 flex-direction: row-reverse; 2096 2097 & > input.ck.ck-input-text { 2098 min-width: auto; 2099 flex-grow: 1; 2100 } 2101 2102 & > div.ck.ck-dropdown { 2103 min-width: auto; 2104 2105 /* This dropdown has no arrow but a color preview instead. */ 2106 & > .ck-input-color__button .ck-dropdown__arrow { 2107 display: none; 2108 } 2109 } 2110 2111 & .ck.ck-input-color__button { 2112 /* Resolving issue with misaligned buttons on Safari (see #10589) */ 2113 display: flex; 2114 2115 & .ck.ck-input-color__button__preview { 2116 position: relative; 2117 overflow: hidden; 2118 2119 & > .ck.ck-input-color__button__preview__no-color-indicator { 2120 position: absolute; 2121 display: block; 2122 } 2123 } 2124 } 2125} 2126`,`/* 2127 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2128 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2129 */ 2130 2131@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 2132@import "../mixins/_rounded.css"; 2133 2134.ck.ck-input-color { 2135 & > .ck.ck-input-text { 2136 @mixin ck-dir ltr { 2137 border-top-right-radius: 0; 2138 border-bottom-right-radius: 0; 2139 } 2140 2141 @mixin ck-dir rtl { 2142 border-top-left-radius: 0; 2143 border-bottom-left-radius: 0; 2144 } 2145 2146 /* Make sure the focused input is always on top of the dropdown button so its 2147 outline and border are never cropped (also when the input is read-only). */ 2148 &:focus { 2149 z-index: 0; 2150 } 2151 } 2152 2153 & > .ck.ck-dropdown { 2154 & > .ck.ck-button.ck-input-color__button { 2155 padding: 0; 2156 2157 @mixin ck-dir ltr { 2158 border-top-left-radius: 0; 2159 border-bottom-left-radius: 0; 2160 2161 &:not(:focus) { 2162 border-left: 1px solid transparent; 2163 } 2164 } 2165 2166 @mixin ck-dir rtl { 2167 border-top-right-radius: 0; 2168 border-bottom-right-radius: 0; 2169 2170 &:not(:focus) { 2171 border-right: 1px solid transparent; 2172 } 2173 } 2174 2175 &.ck-disabled { 2176 background: var(--ck-color-input-disabled-background); 2177 } 2178 2179 & > .ck.ck-input-color__button__preview { 2180 @mixin ck-rounded-corners; 2181 2182 width: 20px; 2183 height: 20px; 2184 border: 1px solid var(--ck-color-input-border); 2185 2186 & > .ck.ck-input-color__button__preview__no-color-indicator { 2187 top: -30%; 2188 left: 50%; 2189 height: 150%; 2190 width: 8%; 2191 background: hsl(0, 100%, 50%); 2192 border-radius: 2px; 2193 transform: rotate(45deg); 2194 transform-origin: 50%; 2195 } 2196 } 2197 } 2198 } 2199 2200 & .ck.ck-input-color__remove-color { 2201 width: 100%; 2202 padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard); 2203 2204 border-bottom-left-radius: 0; 2205 border-bottom-right-radius: 0; 2206 2207 &:not(:focus) { 2208 border-bottom: 1px solid var(--ck-color-input-border); 2209 } 2210 2211 @mixin ck-dir ltr { 2212 border-top-right-radius: 0; 2213 } 2214 2215 @mixin ck-dir rtl { 2216 border-top-left-radius: 0; 2217 } 2218 2219 & .ck.ck-icon { 2220 margin-right: var(--ck-spacing-standard); 2221 2222 @mixin ck-dir rtl { 2223 margin-right: 0; 2224 margin-left: var(--ck-spacing-standard); 2225 } 2226 } 2227 } 2228} 2229`,`/* 2230 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2231 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2232 */ 2233 2234/** 2235 * Implements rounded corner interface for .ck-rounded-corners class. 2236 * 2237 * @see $ck-border-radius 2238 */ 2239@define-mixin ck-rounded-corners { 2240 border-radius: 0; 2241 2242 @nest .ck-rounded-corners &, 2243 &.ck-rounded-corners { 2244 border-radius: var(--ck-border-radius); 2245 @mixin-content; 2246 } 2247} 2248`],sourceRoot:""}]);const w=f},4043:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2249 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2250 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2251 */ 2252
2253.ck.ck-form { 2254 padding: 0 0 var(--ck-spacing-large); 2255 2256 &:focus { 2257 /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */ 2258 outline: none; 2259 } 2260 2261 & .ck.ck-input-text { 2262 min-width: 100%; 2263 width: 0; 2264 } 2265 2266 & .ck.ck-dropdown { 2267 min-width: 100%; 2268 2269 & .ck-dropdown__button { 2270 &:not(:focus) { 2271 border: 1px solid var(--ck-color-base-border); 2272 } 2273 2274 & .ck-button__label { 2275 width: 100%; 2276 } 2277 } 2278 } 2279} 2280`],sourceRoot:""}]);const w=f},2655:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:[`/* 2281 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2282 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2283 */ 2284 2285.ck.ck-form__row { 2286 display: flex; 2287 flex-direction: row; 2288 flex-wrap: nowrap; 2289 justify-content: space-between; 2290 2291 /* Ignore labels that work as fieldset legends */ 2292 & > *:not(.ck-label) { 2293 flex-grow: 1; 2294 } 2295 2296 &.ck-table-form__action-row { 2297 & .ck-button-save, 2298 & .ck-button-cancel { 2299 justify-content: center; 2300 } 2301 } 2302} 2303`,`/* 2304 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2305 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2306 */ 2307 2308@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 2309 2310.ck.ck-form__row { 2311 padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0; 2312 2313 /* Ignore labels that work as fieldset legends */ 2314 & > *:not(.ck-label) { 2315 & + * { 2316 @mixin ck-dir ltr { 2317 margin-left: var(--ck-spacing-large); 2318 } 2319 2320 @mixin ck-dir rtl { 2321 margin-right: var(--ck-spacing-large); 2322 } 2323 } 2324 } 2325 2326 & > .ck-label { 2327 width: 100%; 2328 min-width: 100%; 2329 } 2330 2331 &.ck-table-form__action-row { 2332 margin-top: var(--ck-spacing-large); 2333 2334 & .ck-button .ck-button__label { 2335 color: var(--ck-color-text); 2336 } 2337 } 2338} 2339`],sourceRoot:""}]);const w=f},5032:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2340 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2341 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2342 */ 2343 2344.ck .ck-insert-table-dropdown__grid {
2345 display: flex; 2346 flex-direction: row; 2347 flex-wrap: wrap; 2348} 2349`,`/* 2350 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2351 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2352 */ 2353 2354:root { 2355 --ck-insert-table-dropdown-padding: 10px; 2356 --ck-insert-table-dropdown-box-height: 11px; 2357 --ck-insert-table-dropdown-box-width: 12px; 2358 --ck-insert-table-dropdown-box-margin: 1px; 2359} 2360 2361.ck .ck-insert-table-dropdown__grid { 2362 /* The width of a container should match 10 items in a row so there will be a 10x10 grid. */ 2363 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); 2364 padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0; 2365} 2366 2367.ck .ck-insert-table-dropdown__label, 2368.ck[dir=rtl] .ck-insert-table-dropdown__label { 2369 text-align: center; 2370} 2371 2372.ck .ck-insert-table-dropdown-grid-box { 2373 min-width: var(--ck-insert-table-dropdown-box-width); 2374 min-height: var(--ck-insert-table-dropdown-box-height); 2375 margin: var(--ck-insert-table-dropdown-box-margin); 2376 border: 1px solid var(--ck-color-base-border); 2377 border-radius: 1px; 2378 outline: none; 2379 transition: none; 2380 2381 @media (prefers-reduced-motion: reduce) { 2382 transition: none; 2383 } 2384 2385 &:focus { 2386 box-shadow: none; 2387 } 2388 2389 &.ck-on { 2390 border-color: var(--ck-color-focus-border); 2391 background: var(--ck-color-focus-outer-shadow); 2392 } 2393} 2394 2395`],sourceRoot:""}]);const w=f},2329:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:[`/* 2396 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2397 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2398 */ 2399 2400.ck-content .table { 2401 /* Give the table widget some air and center it horizontally */ 2402 /* The first value should be equal to --ck-spacing-large variable if used in the editor context 2403 to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ 2404 margin: 0.9em auto; 2405 display: table; 2406 2407 & table { 2408 /* The table cells should have slight borders */ 2409 border-collapse: collapse; 2410 border-spacing: 0; 2411 2412 /* Table width and height are set on the parent <figure>. Make sure the table inside stretches 2413 to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */ 2414 width: 100%; 2415 height: 100%; 2416 2417 /* The outer border of the table should be slightly darker than the inner lines. 2418 Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */ 2419 border: 1px double hsl(0, 0%, 70%); 2420 2421 & td, 2422 & th { 2423 min-width: 2em; 2424 padding: .4em; 2425 2426 /* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here. 2427 However, the border is a content style, so it should use .ck-content (so it works outside the editor). 2428 Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */ 2429 border: 1px solid hsl(0, 0%, 75%); 2430 } 2431 2432 & th { 2433 font-weight: bold; 2434 background: hsla(0, 0%, 0%, 5%); 2435 } 2436 } 2437} 2438 2439/* Text alignment of the table header should match the editor settings and override the native browser styling, 2440when content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */ 2441.ck-content[dir="rtl"] .table th { 2442 text-align: right; 2443} 2444 2445.ck-content[dir="ltr"] .table th { 2446 text-align: left; 2447} 2448 2449.ck-editor__editable .ck-table-bogus-paragraph { 2450 /* 2451 * Use display:inline-block to force Chrome/Safari to limit text mutations to this element. 2452 * See https://github.com/ckeditor/ckeditor5/issues/6062. 2453 */ 2454 display: inline-block; 2455 2456 /* 2457 * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width. 2458 * See https://github.com/ckeditor/ckeditor5/issues/9117. 2459 */ 2460 width: 100%; 2461} 2462`],sourceRoot:""}]);const w=f},4143:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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,
2462CAIA,4BDqBC,qEACC,iDACD,CCnBD,CDsBA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:[`/* 2463 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2464 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2465 */ 2466 2467@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 2468 2469:root { 2470 --ck-color-selector-caption-background: hsl(0, 0%, 97%); 2471 --ck-color-selector-caption-text: hsl(0, 0%, 20%); 2472 --ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%); 2473} 2474 2475/* Content styles */ 2476.ck-content .table > figcaption { 2477 display: table-caption; 2478 caption-side: top; 2479 word-break: break-word; 2480 text-align: center; 2481 color: var(--ck-color-selector-caption-text); 2482 background-color: var(--ck-color-selector-caption-background); 2483 padding: .6em; 2484 font-size: .75em; 2485 outline-offset: -1px; 2486 2487 /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */ 2488 @mixin ck-media-forced-colors { 2489 background-color: unset; 2490 color: unset; 2491 } 2492} 2493 2494/* Editing styles */ 2495.ck.ck-editor__editable .table > figcaption { 2496 @mixin ck-media-default-colors { 2497 &.table__caption_highlighted { 2498 animation: ck-table-caption-highlight .6s ease-out; 2499 } 2500 } 2501 2502 &.ck-placeholder::before { 2503 padding-left: inherit; 2504 padding-right: inherit; 2505 2506 /* 2507 * Make sure the table caption placeholder doesn't overflow the placeholder area. 2508 * See https://github.com/ckeditor/ckeditor5/issues/9162. 2509 */ 2510 white-space: nowrap; 2511 overflow: hidden; 2512 text-overflow: ellipsis; 2513 } 2514} 2515 2516@keyframes ck-table-caption-highlight { 2517 0% { 2518 background-color: var(--ck-color-selector-caption-highlighted-background); 2519 } 2520 2521 100% { 2522 background-color: var(--ck-color-selector-caption-background); 2523 } 2524} 2525`,`/* 2526 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2527 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2528 */ 2529 2530@define-mixin ck-media-forced-colors { 2531 @media (forced-colors: active) { 2532 & { 2533 @mixin-content; 2534 } 2535 } 2536} 2537 2538@define-mixin ck-media-default-colors { 2539 @media (forced-colors: none) { 2540 & { 2541 @mixin-content; 2542 } 2543 } 2544} 2545`],sourceRoot:""}]);const w=f},8986:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2546 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2547 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2548 */ 2549 2550.ck.ck-table-cell-properties-form { 2551 & .ck-form__row { 2552 &.ck-table-cell-properties-form__alignment-row { 2553 flex-wrap: wrap; 2554 2555 & .ck.ck-toolbar { 2556 &:first-of-type { 2557 /* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */ 2558 flex-grow: 0.57; 2559 } 2560 2561 &:last-of-type { 2562 /* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */ 2563 flex-grow: 0.43; 2564 } 2565 2566 & .ck-button { 2567 flex-grow: 1; 2568 } 2569 } 2570 } 2571 } 2572} 2573`,`/* 2574 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2575 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2576 */ 2577
2578.ck.ck-table-cell-properties-form { 2579 width: 320px; 2580 2581 & .ck-form__row { 2582 &.ck-table-cell-properties-form__padding-row { 2583 align-self: flex-end; 2584 padding: 0; 2585 width: 25%; 2586 } 2587 2588 &.ck-table-cell-properties-form__alignment-row { 2589 & .ck.ck-toolbar { 2590 background: none; 2591 2592 /* Compensate for missing input label that would push the margin (toolbar has no inputs). */ 2593 margin-top: var(--ck-spacing-standard); 2594 } 2595 } 2596 } 2597} 2598`],sourceRoot:""}]);const w=f},8795:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2599 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2600 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2601 */ 2602 2603:root { 2604 --ck-color-selector-column-resizer-hover: var(--ck-color-base-active); 2605 --ck-table-column-resizer-width: 7px; 2606 2607 /* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border. 2608 The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */ 2609 --ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px); 2610} 2611 2612.ck-content .table .ck-table-resized { 2613 table-layout: fixed; 2614} 2615 2616.ck-content .table table { 2617 overflow: hidden; 2618} 2619 2620.ck-content .table td, 2621.ck-content .table th { 2622 /* To prevent text overflowing beyond its cell when columns are resized by resize handler 2623 (https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */ 2624 overflow-wrap: break-word; 2625 position: relative; 2626} 2627 2628.ck.ck-editor__editable .table .ck-table-column-resizer { 2629 position: absolute; 2630 top: 0; 2631 bottom: 0; 2632 right: var(--ck-table-column-resizer-position-offset); 2633 width: var(--ck-table-column-resizer-width); 2634 cursor: col-resize; 2635 user-select: none; 2636 z-index: var(--ck-z-default); 2637} 2638 2639.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer { 2640 display: none; 2641} 2642 2643/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again, 2644 all resizers must be hidden while the table is dragged. */ 2645.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer { 2646 display: none; 2647} 2648 2649.ck.ck-editor__editable .table .ck-table-column-resizer:hover, 2650.ck.ck-editor__editable .table .ck-table-column-resizer__active { 2651 background-color: var(--ck-color-selector-column-resizer-hover); 2652 opacity: 0.25; 2653 /* 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, 2654 it is extended to an extremely high height. Even for screens
2654with a very high pixel density, the resizer will fulfill its role as 2655 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 2656 unrealistic height for a single table. */ 2657 top: -999999px; 2658 bottom: -999999px; 2659} 2660 2661.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer { 2662 left: var(--ck-table-column-resizer-position-offset); 2663 right: unset; 2664} 2665`],sourceRoot:""}]);const w=f},8137:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:[`/* 2666 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2667 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2668 */ 2669 2670:root { 2671 --ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3); 2672} 2673 2674.ck-widget.table { 2675 & td, 2676 & th { 2677 &.ck-editor__nested-editable.ck-editor__nested-editable_focused, 2678 &.ck-editor__nested-editable:focus { 2679 /* A very slight background to highlight the focused cell */ 2680 background: var(--ck-color-selector-focused-cell-background); 2681 2682 /* Fixes the problem where surrounding cells cover the focused cell's border. 2683 It does not fix the problem in all places but the UX is improved. 2684 See https://github.com/ckeditor/ckeditor5-table/issues/29. */ 2685 border-style: none; 2686 outline: 1px solid var(--ck-color-focus-border); 2687 outline-offset: -1px; /* progressive enhancement - no IE support */ 2688 } 2689 } 2690} 2691`],sourceRoot:""}]);const w=f},1623:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}
2691.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCA6BD,CA3BC,8ECxCD,eD6DC,CArBA,mMCpCA,qCDyDA,CArBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CAXC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEAKD,CAHC,uCAlBD,8EAmBE,cAEF,CADC,CAID,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:[`/* 2692 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2693 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2694 */ 2695 2696.ck.ck-table-form { 2697 & .ck-form__row { 2698 &.ck-table-form__border-row { 2699 flex-wrap: wrap; 2700 } 2701 2702 &.ck-table-form__background-row { 2703 flex-wrap: wrap; 2704 } 2705 2706 &.ck-table-form__dimensions-row { 2707 flex-wrap: wrap; 2708 align-items: center; 2709 2710 & .ck-labeled-field-view { 2711 display: flex; 2712 flex-direction: column-reverse; 2713 align-items: center; 2714 2715 & .ck.ck-dropdown { 2716 flex-grow: 0; 2717 } 2718 } 2719 2720 & .ck-table-form__dimension-operator { 2721 flex-grow: 0; 2722 } 2723 } 2724 } 2725 2726 & .ck.ck-labeled-field-view { 2727 /* Allow absolute positioning of the status (error) balloons. */ 2728 position: relative; 2729 2730 & .ck.ck-labeled-field-view__status { 2731 position: absolute; 2732 left: 50%; 2733 bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) ); 2734 transform: translate(-50%,100%); 2735 2736 /* Make sure the balloon status stays on top of other form elements. */ 2737 z-index: 1; 2738 2739 /* The arrow pointing towards the field. */ 2740 &::after { 2741 content: ""; 2742 position: absolute; 2743 top: calc( -1 * var(--ck-table-properties-error-arrow-size) ); 2744 left: 50%; 2745 transform: translateX( -50% ); 2746 } 2747 } 2748 } 2749} 2750`,`/* 2751 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2752 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2753 */ 2754 2755@import "../mixins/_rounded.css"; 2756 2757:root { 2758 --ck-table-properties-error-arrow-size: 6px; 2759 --ck-table-properties-min-error-width: 150px; 2760} 2761 2762.ck.ck-table-form { 2763 & .ck-form__row { 2764 &.ck-table-form__border-row { 2765 & .ck-labeled-field-view { 2766 & > .ck-label { 2767 font-size: var(--ck-font-size-tiny); 2768 text-align: center; 2769 } 2770 } 2771 2772 & .ck-table-form__border-style, 2773 & .ck-table-form__border-width { 2774 width: 80px; 2775 min-width: 80px; 2776 max-width: 80px; 2777 } 2778 } 2779 2780 &.ck-table-form__dimensions-row { 2781 padding: 0; 2782 2783 & .ck-table-form__dimensions-row__width, 2784 & .ck-table-form__dimensions-row__height { 2785 margin: 0 2786 } 2787 2788 & .ck-table-form__dimension-operator { 2789 align-self: flex-end; 2790 display: inline-block; 2791 height: var(--ck-ui-component-min-height); 2792 line-height: var(--ck-ui-component-min-height); 2793 margin: 0 var(--ck-spacing-small); 2794 } 2795 } 2796 } 2797 2798 & .ck.ck-labeled-field-view { 2799 padding-top: var(--ck-spacing-standard); 2800 2801 & .ck.ck-labeled-field-view__status { 2802 @mixin ck-rounded-corners; 2803 2804 background: var(--ck-color-base-error); 2805 color: var(--ck-color-base-background); 2806 padding: var(--ck-spacing-small) var(--ck-spacing-medium); 2807 min-width: var(--ck-table-properties-min-error-width); 2808 text-align: center; 2809 2810 /* The arrow pointing towards the field. */ 2811 &::after { 2812 border-color: transparent transparent var(--ck-color-base-error) transparent; 2813 border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size); 2814 border-style: solid; 2815 } 2816 2817 animation: ck-table-form-labeled-view-status-appear .15s ease both; 2818 2819 @media (prefers-reduced-motion: reduce) { 2820 animation: none; 2821 } 2822 } 2823 2824 /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */ 2825 & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status { 2826 display: none; 2827 } 2828 } 2829} 2830 2831@keyframes ck-table-form-labeled-view-status-appear { 2832 0% { 2833 opacity: 0; 2834 } 2835 2836 100% { 2837 opacity: 1; 2838 } 2839} 2840`,`/* 2841 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2842 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2843 */ 2844 2845/** 2846 * Implements rounded corner interface for .ck-rounded-corners class. 2847 * 2848 * @see $ck-border-radius 2849 */ 2850@define-mixin ck-rounded-corners { 2851 border-radius: 0; 2852 2853 @nest .ck-rounded-corners &, 2854 &.ck-rounded-corners { 2855 border-radius: var(--ck-border-radius); 2856 @mixin-content; 2857 } 2858} 2859`],sourceRoot:""}]);const w=f},5562:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2860 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2861 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2862 */ 2863
2864.ck.ck-table-properties-form { 2865 & .ck-form__row { 2866 &.ck-table-properties-form__alignment-row { 2867 flex-wrap: wrap; 2868 flex-basis: 0; 2869 align-content: baseline; 2870 2871 & .ck.ck-toolbar .ck-toolbar__items { 2872 flex-wrap: nowrap; 2873 } 2874 } 2875 } 2876} 2877`,`/* 2878 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2879 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2880 */ 2881 2882.ck.ck-table-properties-form { 2883 width: 320px; 2884 2885 & .ck-form__row { 2886 &.ck-table-properties-form__alignment-row { 2887 align-self: flex-end; 2888 padding: 0; 2889 2890 & .ck.ck-toolbar { 2891 background: none; 2892 2893 /* Compensate for missing input label that would push the margin (toolbar has no inputs). */ 2894 margin-top: var(--ck-spacing-standard); 2895 2896 & .ck-toolbar__items > * { 2897 width: 40px; 2898 } 2899 } 2900 } 2901 } 2902} 2903`],sourceRoot:""}]);const w=f},8423:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2904 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2905 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2906 */ 2907 2908:root { 2909 --ck-table-selected-cell-background: hsla(208, 90%, 80%, .3); 2910} 2911 2912.ck.ck-editor__editable .table table { 2913 & td.ck-editor__editable_selected, 2914 & th.ck-editor__editable_selected { 2915 position: relative; 2916 caret-color: transparent; 2917 outline: unset; 2918 box-shadow: unset; 2919 2920 /* https://github.com/ckeditor/ckeditor5/issues/6446 */ 2921 &:after { 2922 content: ''; 2923 pointer-events: none; 2924 background-color: var(--ck-table-selected-cell-background); 2925 position: absolute; 2926 top: 0; 2927 left: 0; 2928 right: 0; 2929 bottom: 0; 2930 } 2931 2932 & ::selection, 2933 &:focus { 2934 background-color: transparent; 2935 } 2936 2937 /* 2938 * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle. 2939 * See https://github.com/ckeditor/ckeditor5/issues/9491. 2940 */ 2941 & .ck-widget { 2942 outline: unset; 2943 2944 & > .ck-widget__selection-handle { 2945 display: none; 2946 } 2947 } 2948 } 2949} 2950`],sourceRoot:""}]);const w=f},1801:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 2951 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2952 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2953 */ 2954
2955.ck.ck-aria-live-announcer { 2956 position: absolute; 2957 left: -10000px; 2958 top: -10000px; 2959} 2960 2961.ck.ck-aria-live-region-list { 2962 list-style-type: none; 2963} 2964`],sourceRoot:""}]);const w=f},5727:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:[`/* 2965 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2966 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2967 */ 2968 2969.ck.ck-autocomplete { 2970 position: relative; 2971 2972 & > .ck-search__results { 2973 position: absolute; 2974 z-index: var(--ck-z-panel); 2975 2976 &.ck-search__results_n { 2977 bottom: 100%; 2978 } 2979 2980 &.ck-search__results_s { 2981 top: 100%; 2982 bottom: auto; 2983 } 2984 } 2985} 2986`,`/* 2987 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2988 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2989 */ 2990 2991@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"; 2992@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"; 2993 2994.ck.ck-autocomplete { 2995 & > .ck-search__results { 2996 @mixin ck-rounded-corners; 2997 @mixin ck-drop-shadow; 2998 2999 max-height: 200px; 3000 overflow-y: auto; 3001 background: var(--ck-color-base-background); 3002 border: 1px solid var(--ck-color-dropdown-panel-border); 3003 min-width: auto; 3004 3005 &.ck-search__results_n { 3006 border-bottom-left-radius: 0; 3007 border-bottom-right-radius: 0; 3008 3009 /* Prevent duplicated borders between the input and the results pane. */ 3010 margin-bottom: -1px; 3011 } 3012 3013 &.ck-search__results_s { 3014 border-top-left-radius: 0; 3015 border-top-right-radius: 0; 3016 3017 /* Prevent duplicated borders between the input and the results pane. */ 3018 margin-top: -1px; 3019 } 3020 } 3021} 3022`,`/* 3023 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3024 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3025 */ 3026 3027/** 3028 * Implements rounded corner interface for .ck-rounded-corners class. 3029 * 3030 * @see $ck-border-radius 3031 */ 3032@define-mixin ck-rounded-corners { 3033 border-radius: 0; 3034 3035 @nest .ck-rounded-corners &, 3036 &.ck-rounded-corners { 3037 border-radius: var(--ck-border-radius); 3038 @mixin-content; 3039 } 3040} 3041`,`/* 3042 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3043 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3044 */ 3045 3046/** 3047 * A helper to combine multiple shadows. 3048 */ 3049@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 3050 box-shadow: $shadowA, $shadowB; 3051} 3052 3053/** 3054 * Gives an element a drop shadow so it looks like a floating panel. 3055 */ 3056@define-mixin ck-drop-shadow {
3057 @mixin ck-box-shadow var(--ck-drop-shadow); 3058} 3059`],sourceRoot:""}]);const w=f},9715:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{opacity:.5}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,
3059CAID,iFACC,sBACD,CEzBD,6BCAC,oDD+ID,CC5IE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eFgJD,CA/IA,wIEGE,qCF4IF,CA/IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBA0ID,CAhHC,uCA/BD,6BAgCE,eA+GF,CA9GC,CAEA,oFGpCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHyCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAWD,CAZA,6FAIE,mCAQF,CAZA,6FAQE,oCAIF,CAZA,yEAWC,UACD,CAIC,oIIxFD,oDJ4FC,CAOA,gLKnGD,kCLqGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCClIA,+CDsIA,CCnIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDmHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CClJC,mDDuJD,CCpJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDmID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:[`/* 3060 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3061 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3062 */ 3063 3064@import "../../mixins/_unselectable.css"; 3065@import "../../mixins/_dir.css"; 3066 3067.ck.ck-button, 3068a.ck.ck-button { 3069 @mixin ck-unselectable; 3070 3071 position: relative; 3072 display: inline-flex; 3073 align-items: center; 3074 3075 @mixin ck-dir ltr { 3076 justify-content: left; 3077 } 3078 3079 @mixin ck-dir rtl { 3080 justify-content: right; 3081 } 3082 3083 & .ck-button__label { 3084 display: none; 3085 } 3086 3087 &.ck-button_with-text { 3088 & .ck-button__label { 3089 display: inline-block; 3090 } 3091 } 3092 3093 /* Center the icon horizontally in a button without text. */ 3094 &:not(.ck-button_with-text) { 3095 justify-content: center; 3096 } 3097} 3098`,`/* 3099 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3100 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3101 */ 3102 3103/** 3104 * Makes element unselectable. 3105 */ 3106@define-mixin ck-unselectable { 3107 -moz-user-select: none; 3108 -webkit-user-select: none; 3109 -ms-user-select: none; 3110 user-select: none 3111} 3112`,`/* 3113 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3114 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3115 */ 3116 3117@import "../../../mixins/_focus.css"; 3118@import "../../../mixins/_shadow.css"; 3119@import "../../../mixins/_disabled.css"; 3120@import "../../../mixins/_rounded.css"; 3121@import "../../mixins/_button.css"; 3122@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3123 3124.ck.ck-button, 3125a.ck.ck-button { 3126 @mixin ck-button-colors --ck-color-button-default; 3127 @mixin ck-rounded-corners; 3128 3129 white-space: nowrap; 3130 cursor: default; 3131 vertical-align: middle; 3132 padding: var(--ck-spacing-tiny); 3133 text-align: center; 3134 3135 /* A very important piece of styling. Go to variable declaration to learn more. */ 3136 min-width: var(--ck-ui-component-min-height); 3137 min-height: var(--ck-ui-component-min-height); 3138 3139 /* Normalize the height of the line. Removing this will break consistent height 3140 among text and text-less buttons (with icons). */ 3141 line-height: 1; 3142 3143 /* Enable font size inheritance, which allows fluid UI scaling. */ 3144 font-size: inherit; 3145 3146 /* Avoid flickering when the foucs border shows up. */ 3147 border: 1px solid transparent; 3148 3149 /* Apply some smooth transition to the box-shadow and border. */ 3150 transition: box-shadow .2s ease-in-out, border .2s ease-in-out; 3151 3152 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */ 3153 -webkit-appearance: none; 3154 3155 @media (prefers-reduced-motion: reduce) { 3156 transition: none; 3157 } 3158 3159 &:active, 3160 &:focus { 3161 @mixin ck-focus-ring; 3162 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 3163 } 3164 3165 /* Allow icon coloring using the text "color" property. */ 3166 & .ck-button__icon { 3167 & use, 3168 & use * { 3169 color: inherit; 3170 } 3171 } 3172 3173 & .ck-button__label { 3174 /* Enable font size inheritance, which allows fluid UI scaling. */ 3175 font-size: inherit; 3176 font-weight: inherit; 3177 color: inherit; 3178 cursor: inherit; 3179 3180 /* Must be consistent with .ck-icon's vertical align. Otherwise, buttons with and 3181 without labels (but with icons) have different sizes in Chrome */ 3182 vertical-align: middle; 3183 3184 @mixin ck-dir ltr { 3185 text-align: left; 3186 } 3187 3188 @mixin ck-dir rtl { 3189 text-align: right; 3190 } 3191 } 3192 3193 & .ck-button__keystroke { 3194 color: inherit; 3195 3196 @mixin ck-dir ltr { 3197 margin-left: var(--ck-spacing-large); 3198 } 3199 3200 @mixin ck-dir rtl { 3201 margin-right: var(--ck-spacing-large); 3202 } 3203 3204 opacity: .5; 3205 } 3206 3207 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */ 3208 &.ck-disabled { 3209 &:active, 3210 &:focus { 3211 /* The disabled button should have a slightly less visible shadow when focu
3211sed. */ 3212 @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow); 3213 } 3214 3215 & .ck-button__icon { 3216 @mixin ck-disabled; 3217 } 3218 3219 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */ 3220 & .ck-button__label { 3221 @mixin ck-disabled; 3222 } 3223 3224 & .ck-button__keystroke { 3225 opacity: .3; 3226 } 3227 } 3228 3229 &.ck-button_with-text { 3230 padding: var(--ck-spacing-tiny) var(--ck-spacing-standard); 3231 3232 /* stylelint-disable-next-line no-descending-specificity */ 3233 & .ck-button__icon { 3234 @mixin ck-dir ltr { 3235 margin-left: calc(-1 * var(--ck-spacing-small)); 3236 margin-right: var(--ck-spacing-small); 3237 } 3238 3239 @mixin ck-dir rtl { 3240 margin-right: calc(-1 * var(--ck-spacing-small)); 3241 margin-left: var(--ck-spacing-small); 3242 } 3243 } 3244 } 3245 3246 &.ck-button_with-keystroke { 3247 /* stylelint-disable-next-line no-descending-specificity */ 3248 & .ck-button__label { 3249 flex-grow: 1; 3250 } 3251 } 3252 3253 /* A style of the button which is currently on, e.g. its feature is active. */ 3254 &.ck-on { 3255 @mixin ck-button-colors --ck-color-button-on; 3256 3257 color: var(--ck-color-button-on-color); 3258 } 3259 3260 &.ck-button-save { 3261 color: var(--ck-color-button-save); 3262 } 3263 3264 &.ck-button-cancel { 3265 color: var(--ck-color-button-cancel); 3266 } 3267} 3268 3269/* A style of the button which handles the primary action. */ 3270.ck.ck-button-action, 3271a.ck.ck-button-action { 3272 @mixin ck-button-colors --ck-color-button-action; 3273 3274 color: var(--ck-color-button-action-text); 3275} 3276 3277.ck.ck-button-bold, 3278a.ck.ck-button-bold { 3279 font-weight: bold; 3280} 3281`,`/* 3282 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3283 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3284 */ 3285 3286/** 3287 * Implements a button of given background color. 3288 * 3289 * @param {String} $background - Background color of the button. 3290 * @param {String} $border - Border color of the button. 3291 */ 3292@define-mixin ck-button-colors $prefix { 3293 background: var($(prefix)-background); 3294 3295 &:not(.ck-disabled) { 3296 &:hover { 3297 background: var($(prefix)-hover-background); 3298 } 3299 3300 &:active { 3301 background: var($(prefix)-active-background); 3302 } 3303 } 3304 3305 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */ 3306 &.ck-disabled { 3307 background: var($(prefix)-disabled-background); 3308 } 3309} 3310`,`/* 3311 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3312 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3313 */ 3314 3315/** 3316 * Implements rounded corner interface for .ck-rounded-corners class. 3317 * 3318 * @see $ck-border-radius 3319 */ 3320@define-mixin ck-rounded-corners { 3321 border-radius: 0; 3322 3323 @nest .ck-rounded-corners &, 3324 &.ck-rounded-corners { 3325 border-radius: var(--ck-border-radius); 3326 @mixin-content; 3327 } 3328} 3329`,`/* 3330 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3331 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3332 */ 3333 3334/** 3335 * A visual style of focused element's border. 3336 */ 3337@define-mixin ck-focus-ring { 3338 /* Disable native outline. */ 3339 outline: none; 3340 border: var(--ck-focus-ring) 3341} 3342`,`/* 3343 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3344 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3345 */ 3346 3347/** 3348 * A helper to combine multiple shadows. 3349 */ 3350@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 3351 box-shadow: $shadowA, $shadowB; 3352} 3353 3354/** 3355 * Gives an element a drop shadow so it looks like a floating panel. 3356 */ 3357@define-mixin ck-drop-shadow { 3358 @mixin ck-box-shadow var(--ck-drop-shadow); 3359} 3360`,`/* 3361 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3362 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3363 */ 3364 3365/** 3366 * A class which indicates that an element holding it is disabled. 3367 */ 3368@define-mixin ck-disabled { 3369 opacity: var(--ck-disabled-opacity); 3370} 3371`],sourceRoot:""}]);const w=f},4391:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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;
3371--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eDgFA,CA5CA,yIChCC,qCD4ED,CA5CA,2DAKE,gBAuCF,CA5CA,2DAUE,iBAkCF,CA5CA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CA2BD,CAxBC,2ECxDD,eDuEC,CAfA,6LCpDA,qCAAsC,CDsDpC,8CAaF,CAfA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAUD,CAHC,uCAZD,2EAaE,eAEF,CADC,CAGD,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEpFA,kCFsFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:[`/* 3372 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3373 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3374 */ 3375
3376.ck.ck-button.ck-switchbutton { 3377 & .ck-button__toggle { 3378 display: block; 3379 3380 & .ck-button__toggle__inner { 3381 display: block; 3382 } 3383 } 3384} 3385`,`/* 3386 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3387 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3388 */ 3389 3390@import "../../../mixins/_rounded.css"; 3391@import "../../../mixins/_disabled.css"; 3392@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3393 3394/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature 3395of the component, floatingâpoint numbers have been used which, for the default font size 3396(see: --ck-font-size-base), will generate simple integers. */ 3397:root { 3398 /* 34px at 13px font-size */ 3399 --ck-switch-button-toggle-width: 2.6153846154em; 3400 /* 14px at 13px font-size */ 3401 --ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px); 3402 --ck-switch-button-translation: calc( 3403 var(--ck-switch-button-toggle-width) - 3404 var(--ck-switch-button-toggle-inner-size) - 3405 2px /* Border */ 3406 ); 3407 --ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow); 3408} 3409 3410.ck.ck-button.ck-switchbutton { 3411 /* Unlike a regular button, the switch button text color and background should never change. 3412 * Changing toggle switch (background, outline) is enough to carry the information about the 3413 * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519) 3414 */ 3415 &, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active { 3416 color: inherit; 3417 background: transparent; 3418 } 3419 3420 & .ck-button__label { 3421 @mixin ck-dir ltr { 3422 /* Separate the label from the switch */ 3423 margin-right: calc(2 * var(--ck-spacing-large)); 3424 } 3425 3426 @mixin ck-dir rtl { 3427 /* Separate the label from the switch */ 3428 margin-left: calc(2 * var(--ck-spacing-large)); 3429 } 3430 } 3431 3432 & .ck-button__toggle { 3433 @mixin ck-rounded-corners; 3434 3435 @mixin ck-dir ltr { 3436 /* Make sure the toggle is always to the right as far as possible. */ 3437 margin-left: auto; 3438 } 3439 3440 @mixin ck-dir rtl { 3441 /* Make sure the toggle is always to the left as far as possible. */ 3442 margin-right: auto; 3443 } 3444 3445 /* Apply some smooth transition to the box-shadow and border. */ 3446 /* Gently animate the background color of the toggle switch */ 3447 transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out; 3448 border: 1px solid transparent; 3449 width: var(--ck-switch-button-toggle-width); 3450 background: var(--ck-color-switch-button-off-background); 3451 3452 & .ck-button__toggle__inner { 3453 @mixin ck-rounded-corners { 3454 border-radius: calc(.5 * var(--ck-border-radius)); 3455 } 3456 3457 width: var(--ck-switch-button-toggle-inner-size); 3458 height: var(--ck-switch-button-toggle-inner-size); 3459 background: var(--ck-color-switch-button-inner-background); 3460 3461 /* Gently animate the inner part of the toggle switch */ 3462 transition: all 300ms ease; 3463 3464 @media (prefers-reduced-motion: reduce) { 3465 transition: none; 3466 } 3467 } 3468 3469 &:hover { 3470 background: var(--ck-color-switch-button-off-hover-background); 3471 3472 & .ck-button__toggle__inner { 3473 box-shadow: var(--ck-switch-button-inner-hover-shadow); 3474 } 3475 } 3476 } 3477 3478 &.ck-disabled .ck-button__toggle { 3479 @mixin ck-disabled; 3480 } 3481 3482 /* Overriding default .ck-button:focus styles + an outline around the toogle */ 3483 &:focus { 3484 border-color: transparent; 3485 outline: none; 3486 box-shadow: none; 3487 3488 & .ck-button__toggle { 3489 box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow); 3490 outline-offset: 1px; 3491 outline: var(--ck-focus-ring); 3492 } 3493 } 3494 3495 /* stylelint-disable-next-line no-descending-specificity */ 3496 &.ck-on { 3497 & .ck-button__toggle { 3498 background: var(--ck-color-switch-button-on-background); 3499 3500 &:hover { 3501 background: var(--ck-color-switch-button-on-hover-background); 3502 } 3503 3504 & .ck-button__toggle__inner { 3505 /* 3506 * Move the toggle switch to the right. It will be animated. 3507 */ 3508 @mixin ck-dir ltr { 3509 transform: translateX( var( --ck-switch-button-translation ) ); 3510 } 3511 3512 @mixin ck-dir rtl { 3513 transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) ); 3514 } 3515 } 3516 } 3517 } 3518} 3519`,`/* 3520 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3521 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3522 */ 3523 3524/** 3525 * Implements rounded corner interface for .ck-rounded-corners class. 3526 * 3527 * @see $ck-border-radius 3528 */ 3529@define-mixin ck-rounded-corners { 3530 border-radius: 0; 3531 3532 @nest .ck-rounded-corners &, 3533 &.ck-rounded-corners { 3534 border-radius: var(--ck-border-radius); 3535 @mixin-content; 3536 } 3537} 3538`,`/* 3539 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3540 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3541 */ 3542 3543/** 3544 * A class which indicates that an element holding it is disabled. 3545 */ 3546@define-mixin ck-disabled { 3547 opacity: var(--ck-disabled-opacity); 3548} 3549`],sourceRoot:""}]);const w=f},25:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../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,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:[`/* 3550 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3551 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3552 */ 3553
3554.ck.ck-collapsible.ck-collapsible_collapsed { 3555 & > .ck-collapsible__children { 3556 display: none; 3557 } 3558} 3559`,`/* 3560 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3561 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3562 */ 3563 3564:root { 3565 --ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size)); 3566} 3567 3568.ck.ck-collapsible { 3569 & > .ck.ck-button { 3570 width: 100%; 3571 font-weight: bold; 3572 padding: var(--ck-list-button-padding); 3573 border-radius: 0; 3574 color: inherit; 3575 3576 &:focus { 3577 background: transparent; 3578 } 3579 3580 &:active, &:not(:focus), &:hover:not(:focus) { 3581 background: transparent; 3582 border-color: transparent; 3583 box-shadow: none; 3584 } 3585 3586 & > .ck-icon { 3587 margin-right: var(--ck-spacing-medium); 3588 width: var(--ck-collapsible-arrow-size); 3589 } 3590 } 3591 3592 & > .ck-collapsible__children { 3593 padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large); 3594 } 3595 3596 &.ck-collapsible_collapsed { 3597 & > .ck.ck-button .ck-icon { 3598 transform: rotate(-90deg); 3599 } 3600 } 3601} 3602`],sourceRoot:""}]);const w=f},7317:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{transition:box-shadow .2s ease}@media (forced-colors:none){.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}}@media (forced-colors:active){.ck.ck-color-grid__tile{height:unset;min-height:unset;min-width:unset;padding:0 var(--ck-spacing-small);width:unset}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAKA,kBACC,YACD,CCCA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,8BAkED,CC3EC,4BACC,wBDgBA,QAAS,CAJT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CAJV,oCCTA,CDgBA,8HAIC,QACD,CAEA,+DACC,gDACD,CAEA,8BACC,8FACD,CAEA,gGAEC,iGACD,CCjCD,CAZA,8BACC,wBDqDA,YAAa,CAEb,gBAAiB,CADjB,eAAgB,CAEhB,iCAAkC,CAJlC,WClDA,CDwDA,0CACC,oBACD,CCzDD,CD4DA,uCAhDD,wBAiDE,eAkBF,CAjBC,CAEA,oCACC,YAAa,CACb,gBACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAGC,0CACC,aACD,CAIF,yBACC,oCACD",sourcesContent:[`/* 3603 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3604 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3605 */ 3606 3607.ck.ck-color-grid { 3608 display: grid; 3609} 3610`,`/* 3611 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3612 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3613 */ 3614 3615@import "../../../mixins/_rounded.css"; 3616@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 3617 3618:root { 3619 --ck-color-grid-tile-size: 24px; 3620 3621 /* Not using global colors here because these may change but some colors in a pallette 3622 * require special treatment. For instance, this ensures no matter what the UI text color is, 3623 * the check icon will look good on the black color tile. */ 3624 --ck-color-color-grid-check-icon: hsl(212, 81%, 46%); 3625} 3626
3627.ck.ck-color-grid { 3628 grid-gap: 5px; 3629 padding: 8px; 3630} 3631 3632.ck.ck-color-grid__tile { 3633 transition: .2s ease box-shadow; 3634 3635 @mixin ck-media-default-colors { 3636 width: var(--ck-color-grid-tile-size); 3637 height: var(--ck-color-grid-tile-size); 3638 min-width: var(--ck-color-grid-tile-size); 3639 min-height: var(--ck-color-grid-tile-size); 3640 padding: 0; 3641 border: 0; 3642 3643 &.ck-on, 3644 &:focus:not( .ck-disabled ), 3645 &:hover:not( .ck-disabled ) { 3646 /* Disable the default .ck-button's border ring. */ 3647 border: 0; 3648 } 3649 3650 &.ck-color-selector__color-tile_bordered { 3651 box-shadow: 0 0 0 1px var(--ck-color-base-border); 3652 } 3653 3654 &.ck-on { 3655 box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text); 3656 } 3657 3658 &:focus:not( .ck-disabled ), 3659 &:hover:not( .ck-disabled ) { 3660 box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border); 3661 } 3662 } 3663 3664 /* 3665 * In high contrast mode, the colors are replaced with text labels. 3666 * See https://github.com/ckeditor/ckeditor5/issues/14907. 3667 */ 3668 @mixin ck-media-forced-colors { 3669 width: unset; 3670 height: unset; 3671 min-width: unset; 3672 min-height: unset; 3673 padding: 0 var(--ck-spacing-small); 3674 3675 & .ck-button__label { 3676 display: inline-block; 3677 } 3678 } 3679 3680 @media (prefers-reduced-motion: reduce) { 3681 transition: none; 3682 } 3683 3684 &.ck-disabled { 3685 cursor: unset; 3686 transition: unset; 3687 } 3688 3689 & .ck.ck-icon { 3690 display: none; 3691 color: var(--ck-color-color-grid-check-icon); 3692 } 3693 3694 &.ck-on { 3695 & .ck.ck-icon { 3696 display: block; 3697 } 3698 } 3699} 3700 3701.ck.ck-color-grid__label { 3702 padding: 0 var(--ck-spacing-standard); 3703} 3704`,`/* 3705 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3706 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3707 */ 3708 3709@define-mixin ck-media-forced-colors { 3710 @media (forced-colors: active) { 3711 & { 3712 @mixin-content; 3713 } 3714 } 3715} 3716 3717@define-mixin ck-media-default-colors { 3718 @media (forced-colors: none) { 3719 & { 3720 @mixin-content; 3721 } 3722 } 3723} 3724`],sourceRoot:""}]);const w=f},1905:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 3725 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3726 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3727 */ 3728 3729.color-picker-hex-input { 3730 width: max-content; 3731 3732 & .ck.ck-input { 3733 min-width: unset; 3734 } 3735} 3736 3737.ck.ck-color-picker__row { 3738 display: flex; 3739 flex-direction: row; 3740 flex-wrap: nowrap; 3741 justify-content: space-between; 3742 margin: var(--ck-spacing-large) 0 0; 3743 width: unset; 3744 3745 & .ck.ck-labeled-field-view { 3746 padding-top: unset; 3747 } 3748 3749 & .ck.ck-input-text { 3750 width: unset; 3751 } 3752 3753 & .ck-color-picker__hash-view { 3754 padding-top: var(--ck-spacing-tiny); 3755 padding-right: var(--ck-spacing-medium); 3756 } 3757} 3758`],sourceRoot:""}]);const w=f},6309:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MAC
3758D,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:[`/* 3759 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3760 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3761 */ 3762 3763@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3764 3765.ck.ck-color-selector { 3766 /* View fragment with color grids. */ 3767 & .ck-color-grids-fragment { 3768 & .ck-button.ck-color-selector__remove-color, 3769 & .ck-button.ck-color-selector__color-picker { 3770 display: flex; 3771 align-items: center; 3772 3773 @mixin ck-dir rtl { 3774 justify-content: flex-start; 3775 } 3776 } 3777 } 3778 3779 /* View fragment with a color picker. */ 3780 & .ck-color-picker-fragment { 3781 & .ck.ck-color-selector_action-bar { 3782 display: flex; 3783 flex-direction: row; 3784 justify-content: space-around; 3785 3786 & .ck-button-save, 3787 & .ck-button-cancel { 3788 flex: 1 3789 } 3790 } 3791 } 3792} 3793`,`/* 3794 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3795 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3796 */ 3797 3798@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3799 3800.ck.ck-color-selector { 3801 /* View fragment with color grids. */ 3802 & .ck-color-grids-fragment { 3803 & .ck-button.ck-color-selector__remove-color, 3804 & .ck-button.ck-color-selector__color-picker { 3805 width: 100%; 3806 } 3807 3808 & .ck-button.ck-color-selector__color-picker { 3809 padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard); 3810 border-bottom-left-radius: 0; 3811 border-bottom-right-radius: 0; 3812 3813 &:not(:focus) { 3814 border-top: 1px solid var(--ck-color-base-border); 3815 } 3816 3817 & .ck.ck-icon { 3818 @mixin ck-dir ltr { 3819 margin-right: var(--ck-spacing-standard); 3820 } 3821 3822 @mixin ck-dir rtl { 3823 margin-left: var(--ck-spacing-standard); 3824 } 3825 } 3826 } 3827 3828 & label.ck.ck-color-grid__label { 3829 font-weight: unset; 3830 } 3831 } 3832 3833 /* View fragment with a color picker. */ 3834 & .ck-color-picker-fragment { 3835 & .ck.ck-color-picker { 3836 padding: 8px; 3837 3838 & .hex-color-picker { 3839 height: 100px; 3840 min-width: 180px; 3841 3842 &::part(saturation) { 3843 border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0; 3844 } 3845 3846 &::part(hue) { 3847 border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius); 3848 } 3849 3850 &::part(saturation-pointer), 3851 &::part(hue-pointer) { 3852 width: 15px; 3853 height: 15px; 3854 } 3855 } 3856 } 3857 3858 & .ck.ck-color-selector_action-bar { 3859 padding: 0 8px 8px; 3860 } 3861 } 3862} 3863`],sourceRoot:""}]);const w=f},9819:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width)}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAcD,CAXC,kCACC,aAKD,CAHC,0DACC,WACD,CAVF,mEAcE,kBAEF,CC7BA,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BAA4B,CAC5B,4DAA6D,CAC7D,gEACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCbC,eD2BD,CAdA,mECTE,qCDuBF,CAdA,cEf
3863C,oCAA8B,CFmB9B,6CAA8C,CAE9C,4CAA6C,CAG7C,4CAA6C,CAF7C,sCAAuC,CACvC,oCAMD,CAHC,kCACC,iEACD,CAGD,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:[`/* 3864 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3865 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3866 */ 3867 3868.ck.ck-dialog-overlay { 3869 user-select: none; 3870 overscroll-behavior: none; 3871 3872 position: fixed; 3873 bottom: 0; 3874 left: 0; 3875 right: 0; 3876 top: 0; 3877 3878 &.ck-dialog-overlay__transparent { 3879 pointer-events: none; 3880 animation: none; 3881 background: none; 3882 } 3883} 3884 3885.ck.ck-dialog { 3886 overscroll-behavior: none; 3887 width: fit-content; 3888 position: absolute; 3889 3890 & .ck.ck-form__header { 3891 flex-shrink: 0; 3892 3893 & .ck-form__header__label { 3894 cursor: grab; 3895 } 3896 } 3897 3898 @nest .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & { 3899 pointer-events: all; 3900 } 3901} 3902`,`/* 3903 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3904 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3905 */ 3906 3907@import "../../../mixins/_rounded.css"; 3908@import "../../../mixins/_shadow.css"; 3909@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 3910 3911:root { 3912 --ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 ); 3913 --ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%); 3914 --ck-dialog-max-width: 100vw; 3915 --ck-dialog-max-height: 90vh; 3916 --ck-color-dialog-background: var(--ck-color-base-background); 3917 --ck-color-dialog-form-header-border: var(--ck-color-base-border); 3918} 3919 3920.ck.ck-dialog-overlay { 3921 animation: ck-dialog-fade-in .3s; 3922 background: var(--ck-dialog-overlay-background-color); 3923 z-index: var(--ck-z-dialog); 3924} 3925 3926.ck.ck-dialog { 3927 @mixin ck-rounded-corners; 3928 @mixin ck-drop-shadow; 3929 3930 --ck-drop-shadow: var(--ck-dialog-drop-shadow); 3931 3932 background: var(--ck-color-dialog-background); 3933 max-height: var(--ck-dialog-max-height); 3934 max-width: var(--ck-dialog-max-width); 3935 border: 1px solid var(--ck-color-base-border); 3936 3937 & .ck.ck-form__header { 3938 border-bottom: 1px solid var(--ck-color-dialog-form-header-border); 3939 } 3940} 3941 3942@keyframes ck-dialog-fade-in { 3943 0% { 3944 background: hsla( 0, 0%, 0%, 0 ); 3945 } 3946 3947 100% { 3948 background: var(--ck-dialog-overlay-background-color); 3949 } 3950} 3951`,`/* 3952 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3953 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3954 */ 3955 3956/** 3957 * Implements rounded corner interface for .ck-rounded-corners class. 3958 * 3959 * @see $ck-border-radius 3960 */ 3961@define-mixin ck-rounded-corners { 3962 border-radius: 0; 3963 3964 @nest .ck-rounded-corners &, 3965 &.ck-rounded-corners { 3966 border-radius: var(--ck-border-radius); 3967 @mixin-content; 3968 } 3969} 3970`,`/* 3971 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3972 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3973 */ 3974 3975/** 3976 * A helper to combine multiple shadows. 3977 */ 3978@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 3979 box-shadow: $shadowA, $shadowB; 3980} 3981 3982/** 3983 * Gives an element a drop shadow so it looks like a floating panel. 3984 */ 3985@define-mixin ck-drop-shadow { 3986 @mixin ck-box-shadow var(--ck-drop-shadow); 3987} 3988`],sourceRoot:""}]);const w=f},9822:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 3989 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3990 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3991 */ 3992 3993.ck.ck-dialog { 3994 & .ck.ck-dialog__actions { 3995 display: flex; 3996 justify-content: flex-end; 3997 } 3998} 3999`,`/* 4000 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4001 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4002 */ 4003
4004.ck.ck-dialog { 4005 & .ck.ck-dialog__actions { 4006 padding: var(--ck-spacing-large); 4007 4008 & > * + * { 4009 margin-left: var(--ck-spacing-large); 4010 } 4011 } 4012} 4013`],sourceRoot:""}]);const w=f},8149:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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
4013:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,o
4013HAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:[`/* 4014 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4015 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4016 */ 4017 4018:root { 4019 --ck-dropdown-max-width: 75vw; 4020} 4021 4022.ck.ck-dropdown { 4023 display: inline-block; 4024 position: relative; 4025 4026 & .ck-dropdown__arrow { 4027 pointer-events: none; 4028 z-index: var(--ck-z-default); 4029 } 4030 4031 /* Dropdown button should span horizontally, e.g. in vertical toolbars */ 4032 & .ck-button.ck-dropdown__button { 4033 width: 100%; 4034 } 4035 4036 & .ck-dropdown__panel { 4037 display: none; 4038 z-index: var(--ck-z-panel); 4039 max-width: var(--ck-dropdown-max-width); 4040 4041 position: absolute; 4042 4043 &.ck-dropdown__panel-visible { 4044 display: inline-block; 4045 } 4046 4047 &.ck-dropdown__panel_ne, 4048 &.ck-dropdown__panel_nw, 4049 &.ck-dropdown__panel_n, 4050 &.ck-dropdown__panel_nmw, 4051 &.ck-dropdown__panel_nme { 4052 bottom: 100%; 4053 } 4054 4055 &.ck-dropdown__panel_se, 4056 &.ck-dropdown__panel_sw, 4057 &.ck-dropdown__panel_smw, 4058 &.ck-dropdown__panel_sme, 4059 &.ck-dropdown__panel_s { 4060 /* 4061 * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays. 4062 * See https://github.com/ckeditor/ckeditor5/issues/1053. 4063 */ 4064 top: 100%; 4065 bottom: auto; 4066 } 4067 4068 &.ck-dropdown__panel_ne, 4069 &.ck-dropdown__panel_se { 4070 left: 0px; 4071 } 4072 4073 &.ck-dropdown__panel_nw, 4074 &.ck-dropdown__panel_sw { 4075 right: 0px; 4076 } 4077 4078 &.ck-dropdown__panel_s, 4079 &.ck-dropdown__panel_n { 4080 /* Positioning panels relative to the center of the button */ 4081 left: 50%; 4082 transform: translateX(-50%); 4083 } 4084 4085 &.ck-dropdown__panel_nmw, 4086 &.ck-dropdown__panel_smw { 4087 /* Positioning panels relative to the middle-west of the button */ 4088 left: 75%; 4089 transform: translateX(-75%); 4090 } 4091 4092 &.ck-dropdown__panel_nme, 4093 &.ck-dropdown__panel_sme { 4094 /* Positioning panels relative to the middle-east of the button */ 4095 left: 25%; 4096 transform: translateX(-25%); 4097 } 4098 } 4099} 4100 4101/* 4102 * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content. 4103 * See https://github.com/ckeditor/ckeditor5/issues/7874 4104 */ 4105.ck.ck-toolbar .ck-dropdown__panel { 4106 z-index: calc( var(--ck-z-panel) + 1 ); 4107} 4108`,`/* 4109 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4110 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4111 */ 4112 4113@import "../../../mixins/_rounded.css"; 4114@import "../../../mixins/_disabled.css"; 4115@import "../../../mixins/_shadow.css"; 4116@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 4117 4118:root { 4119 --ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size)); 4120} 4121 4122.ck.ck-dropdown { 4123 /* Enable font size inheritance, which allows fluid UI scaling. */ 4124 font-size: inherit; 4125 4126 & .ck-dropdown__arrow { 4127 width: var(--ck-dropdown-arrow-size); 4128 } 4129 4130 @mixin ck-dir ltr { 4131 & .ck-dropdown__arrow { 4132 right: var(--ck-spacing-standard); 4133 4134 /* A space to accommodate the triangle. */ 4135 margin-left: var(--ck-spacing-standard); 4136 } 4137 } 4138 4139 @mixin ck-dir rtl { 4140 & .ck-dropdown__arrow { 4141 left: var(--ck-spacing-standard); 4142 4143 /* A space to accommodate the triangle. */ 4144 margin-right: var(--ck-spacing-small); 4145 } 4146 } 4147 4148 &.ck-disabled .ck-dropdown__arrow { 4149 @mixin ck-disabled; 4150 } 4151 4152 & .ck-button.ck-dropdown__button { 4153 @mixin ck-dir ltr { 4154 &:not(.ck-button_with-text) { 4155 /* Make sure dropdowns with just an icon have the right inner spacing */ 4156 padding-left: var(--ck-spacing-small); 4157 } 4158 } 4159 4160 @mixin ck-dir rtl { 4161 &:not(.ck-button_with-text) {
4162 /* Make sure dropdowns with just an icon have the right inner spacing */ 4163 padding-right: var(--ck-spacing-small); 4164 } 4165 } 4166 4167 /* #23 */ 4168 & .ck-button__label { 4169 width: 7em; 4170 overflow: hidden; 4171 text-overflow: ellipsis; 4172 } 4173 4174 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */ 4175 &.ck-disabled .ck-button__label { 4176 @mixin ck-disabled; 4177 } 4178 4179 /* https://github.com/ckeditor/ckeditor5/issues/816 */ 4180 &.ck-on { 4181 border-bottom-left-radius: 0; 4182 border-bottom-right-radius: 0; 4183 } 4184 4185 &.ck-dropdown__button_label-width_auto .ck-button__label { 4186 width: auto; 4187 } 4188 4189 /* https://github.com/ckeditor/ckeditor5/issues/8699 */ 4190 &.ck-off:active, 4191 &.ck-on:active { 4192 box-shadow: none; 4193 4194 &:focus { 4195 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 4196 } 4197 } 4198 } 4199} 4200 4201.ck.ck-dropdown__panel { 4202 @mixin ck-rounded-corners; 4203 @mixin ck-drop-shadow; 4204 4205 background: var(--ck-color-dropdown-panel-background); 4206 border: 1px solid var(--ck-color-dropdown-panel-border); 4207 bottom: 0; 4208 4209 /* Make sure the panel is at least as wide as the drop-down's button. */ 4210 min-width: 100%; 4211 4212 /* Disabled corner border radius to be consistent with the .dropdown__button 4213 https://github.com/ckeditor/ckeditor5/issues/816 */ 4214 &.ck-dropdown__panel_se { 4215 border-top-left-radius: 0; 4216 } 4217 4218 &.ck-dropdown__panel_sw { 4219 border-top-right-radius: 0; 4220 } 4221 4222 &.ck-dropdown__panel_ne { 4223 border-bottom-left-radius: 0; 4224 } 4225 4226 &.ck-dropdown__panel_nw { 4227 border-bottom-right-radius: 0; 4228 } 4229 4230 &:focus { 4231 outline: none; 4232 } 4233} 4234`,`/* 4235 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4236 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4237 */ 4238 4239/** 4240 * A class which indicates that an element holding it is disabled. 4241 */ 4242@define-mixin ck-disabled { 4243 opacity: var(--ck-disabled-opacity); 4244} 4245`,`/* 4246 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4247 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4248 */ 4249 4250/** 4251 * A helper to combine multiple shadows. 4252 */ 4253@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4254 box-shadow: $shadowA, $shadowB; 4255} 4256 4257/** 4258 * Gives an element a drop shadow so it looks like a floating panel. 4259 */ 4260@define-mixin ck-drop-shadow { 4261 @mixin ck-box-shadow var(--ck-drop-shadow); 4262} 4263`,`/* 4264 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4265 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4266 */ 4267 4268/** 4269 * Implements rounded corner interface for .ck-rounded-corners class. 4270 * 4271 * @see $ck-border-radius 4272 */ 4273@define-mixin ck-rounded-corners { 4274 border-radius: 0; 4275 4276 @nest .ck-rounded-corners &, 4277 &.ck-rounded-corners { 4278 border-radius: var(--ck-border-radius); 4279 @mixin-content; 4280 } 4281} 4282`],sourceRoot:""}]);const w=f},3629:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:[`/* 4283 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4284 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4285 */ 4286 4287@import "../../../mixins/_rounded.css"; 4288 4289.ck.ck-dropdown > .ck-dropdown__panel > .ck-list { 4290 /* Disabled radius of top-left border to be consistent with .dropdown__button 4291 https://github.com/ckeditor/ckeditor5/issues/816 */ 4292 @mixin ck-rounded-corners { 4293 border-top-left-radius: 0; 4294 } 4295 4296 /* Make sure the button belonging to the first/last child of the list goes well with the 4297 border radius of the entire panel. */ 4298 & .ck-list__item { 4299 &:first-child > .ck-button { 4300 @mixin ck-rounded-corners { 4301 border-top-left-radius: 0; 4302 border-bottom-left-radius: 0; 4303 border-bottom-right-radius: 0; 4304 } 4305 } 4306 4307 &:last-child > .ck-button { 4308 @mixin ck-rounded-corners { 4309 border-top-left-radius: 0; 4310 border-top-right-radius: 0; 4311 } 4312 } 4313 } 4314} 4315`,`/* 4316 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4317 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4318 */ 4319 4320/** 4321 * Implements rounded corner interface for .ck-rounded-corners class. 4322 * 4323 * @see $ck-border-radius 4324 */ 4325@define-mixin ck-rounded-corners { 4326 border-radius: 0; 4327 4328 @nest .ck-rounded-corners &, 4329 &.ck-rounded-corners { 4330 border-radius: var(--ck-border-radius); 4331 @mixin-content; 4332 } 4333} 4334`],sourceRoot:""}]);const w=f},1792:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,
4334CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:[`/* 4335 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4336 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4337 */ 4338 4339.ck.ck-splitbutton { 4340 /* Enable font size inheritance, which allows fluid UI scaling. */ 4341 font-size: inherit; 4342 4343 & .ck-splitbutton__action:focus { 4344 z-index: calc(var(--ck-z-default) + 1); 4345 } 4346} 4347 4348`,`/* 4349 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4350 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4351 */ 4352 4353@import "../../../mixins/_rounded.css"; 4354 4355:root { 4356 --ck-color-split-button-hover-background: hsl(0, 0%, 92%); 4357 --ck-color-split-button-hover-border: hsl(0, 0%, 70%); 4358} 4359 4360.ck.ck-splitbutton { 4361 /* 4362 * Note: ck-rounded and ck-dir mixins don't go together (because they both use @nest). 4363 */ 4364 &:hover > .ck-splitbutton__action, 4365 &.ck-splitbutton_open > .ck-splitbutton__action { 4366 @nest [dir="ltr"] & { 4367 /* Don't round the action button on the right side */ 4368 border-top-right-radius: unset; 4369 border-bottom-right-radius: unset; 4370 } 4371 4372 @nest [dir="rtl"] & { 4373 /* Don't round the action button on the left side */ 4374 border-top-left-radius: unset; 4375 border-bottom-left-radius: unset; 4376 } 4377 } 4378 4379 & > .ck-splitbutton__arrow { 4380 /* It's a text-less button and since the icon is positioned absolutely in such situation, 4381 it must get some arbitrary min-width. */ 4382 min-width: unset; 4383 4384 @nest [dir="ltr"] & { 4385 /* Don't round the arrow button on the left side */ 4386 border-top-left-radius: unset; 4387 border-bottom-left-radius: unset; 4388 } 4389 4390 @nest [dir="rtl"] & { 4391 /* Don't round the arrow button on the right side */ 4392 border-top-right-radius: unset; 4393 border-bottom-right-radius: unset; 4394 } 4395 4396 & svg { 4397 width: var(--ck-dropdown-arrow-size); 4398 } 4399 } 4400 4401 /* Make sure the divider stretches 100% height of the button 4402 https://github.com/ckeditor/ckeditor5/issues/10936 */ 4403 & > .ck-splitbutton__arrow:not(:focus) { 4404 border-top-width: 0px; 4405 border-bottom-width: 0px; 4406 } 4407 4408 /* When the split button is "open" (the arrow is on) or being hovered, it should get some styling 4409 as a whole. The background of both buttons should stand out and there should be a visual 4410 separation between both buttons. */ 4411 &.ck-splitbutton_open, 4412 &:hover { 4413 /* When the split button hovered as a whole, not as individual buttons. */ 4414 & > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) { 4415 background: var(--ck-color-split-button-hover-background); 4416 } 4417 4418 /* Splitbutton separator needs to be set with the ::after pseudoselector 4419 to display properly the borders on focus */ 4420 & > .ck-splitbutton__arrow:not(.ck-disabled)::after { 4421 content: ''; 4422 position: absolute; 4423 width: 1px; 4424 height: 100%; 4425 background-color: var(--ck-color-split-button-hover-border); 4426 } 4427 4428 /* Make sure the divider between the buttons looks fine when the button is focused */ 4429 & > .ck-splitbutton__arrow:focus::after { 4430 --ck-color-split-button-hover-border: var(--ck-color-focus-border); 4431 } 4432 4433 @nest [dir="ltr"] & { 4434 & > .ck-splitbutton__arrow:not(.ck-disabled)::after { 4435 left: -1px; 4436 } 4437 } 4438 4439 @nest [dir="rtl"] & { 4440 & > .ck-splitbutton__arrow:not(.ck-disabled)::after { 4441 right: -1px; 4442 } 4443 } 4444 } 4445 4446 /* Don't round the bottom left and right corners of the buttons when "open" 4447 https://github.com/ckeditor/ckeditor5/issues/816 */ 4448 &.ck-splitbutton_open { 4449 @mixin ck-rounded-corners { 4450 & > .ck-splitbutton__action { 4451 border-bottom-left-radius: 0; 4452 } 4453 4454 & > .ck-splitbutton__arrow { 4455 border-bottom-right-radius: 0; 4456 } 4457 } 4458 } 4459} 4460`,`/* 4461 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4462 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4463 */ 4464 4465/** 4466 * Implements rounded corner interface for .ck-rounded-corners class. 4467 * 4468 * @see $ck-border-radius 4469 */ 4470@define-mixin ck-rounded-corners { 4471 border-radius: 0; 4472 4473 @nest .ck-rounded-corners &, 4474 &.ck-rounded-corners { 4475 border-radius: var(--ck-border-radius); 4476 @mixin-content; 4477 } 4478} 4479`],sourceRoot:""}]);const w=f},1666:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 4480 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4481 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4482 */ 4483 4484:root { 4485 --ck-toolbar-dropdown-max-width: 60vw; 4486} 4487
4488.ck.ck-toolbar-dropdown > .ck-dropdown__panel { 4489 /* https://github.com/ckeditor/ckeditor5/issues/5586 */ 4490 width: max-content; 4491 max-width: var(--ck-toolbar-dropdown-max-width); 4492 4493 & .ck-button { 4494 &:focus { 4495 z-index: calc(var(--ck-z-default) + 1); 4496 } 4497 } 4498} 4499`,`/* 4500 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4501 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4502 */ 4503 4504.ck.ck-toolbar-dropdown .ck-toolbar { 4505 border: 0; 4506} 4507`],sourceRoot:""}]);const w=f},8527:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{*{white-space:normal}}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAQA,MACC,8CAA+C,CAC/C,+CAAgD,CAChD,mDAA8D,CAC9D,4DAAyE,CACzE,uDACD,CAEA,wEAOC,4BAA6B,CAJ7B,yDAA0D,CAD1D,uDAAwD,CAExD,aAAc,CAHd,+BAAgC,CAIhC,gBAgFD,CA5EC,8ECdA,2BAA2B,CCF3B,2CAA8B,CDC9B,YDkBA,CAZD,wEAcC,EACC,kBACD,CAqED,CAlEC,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,qBAC
4507D,CAEA,4EAEC,yEAA4E,CAC5E,YAAa,CAFb,eAOD,CAHC,gFACC,eACD",sourcesContent:[`/* 4508 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4509 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4510 */ 4511 4512@import "../../../mixins/_focus.css"; 4513@import "../../../mixins/_shadow.css"; 4514 4515:root { 4516 --ck-accessibility-help-dialog-max-width: 600px; 4517 --ck-accessibility-help-dialog-max-height: 400px; 4518 --ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%); 4519 --ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%); 4520 --ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%); 4521} 4522 4523.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content { 4524 padding: var(--ck-spacing-large); 4525 max-width: var(--ck-accessibility-help-dialog-max-width); 4526 max-height: var(--ck-accessibility-help-dialog-max-height); 4527 overflow: auto; 4528 user-select: text; 4529 4530 border: 1px solid transparent; 4531 4532 &:focus { 4533 @mixin ck-focus-ring; 4534 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 4535 } 4536 4537 * { 4538 white-space: normal; 4539 } 4540 4541 /* Hide the main label of the content container. */ 4542 & .ck-label { 4543 display: none; 4544 } 4545 4546 & h3 { 4547 font-weight: bold; 4548 font-size: 1.2em; 4549 } 4550 4551 & h4 { 4552 font-weight: bold; 4553 font-size: 1em; 4554 } 4555 4556 & p, 4557 & h3, 4558 & h4, 4559 & table { 4560 margin: 1em 0; 4561 } 4562 4563 & dl { 4564 display: grid; 4565 grid-template-columns: 2fr 1fr; 4566 border-top: 1px solid var(--ck-accessibility-help-dialog-border-color); 4567 border-bottom: none; 4568 4569 & dt, & dd { 4570 border-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color); 4571 padding: .4em 0; 4572 } 4573 4574 & dt { 4575 grid-column-start: 1; 4576 } 4577 4578 & dd { 4579 grid-column-start: 2; 4580 text-align: right; 4581 } 4582 } 4583 4584 & kbd, & code { 4585 display: inline-block; 4586 background: var(--ck-accessibility-help-dialog-code-background-color); 4587 padding: .4em; 4588 vertical-align: middle; 4589 line-height: 1; 4590 border-radius: 2px; 4591 text-align: center; 4592 font-size: .9em; 4593 } 4594 4595 & code { 4596 font-family: monospace; 4597 } 4598 4599 & kbd { 4600 min-width: 1.8em; 4601 box-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color); 4602 margin: 0 1px; 4603 4604 & + kbd { 4605 margin-left: 2px; 4606 } 4607 } 4608} 4609 4610`,`/* 4611 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4612 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4613 */ 4614 4615/** 4616 * A visual style of focused element's border. 4617 */ 4618@define-mixin ck-focus-ring { 4619 /* Disable native outline. */ 4620 outline: none; 4621 border: var(--ck-focus-ring) 4622} 4623`,`/* 4624 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4625 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4626 */ 4627 4628/** 4629 * A helper to combine multiple shadows. 4630 */ 4631@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4632 box-shadow: $shadowA, $shadowB; 4633} 4634 4635/** 4636 * Gives an element a drop shadow so it looks like a floating panel. 4637 */ 4638@define-mixin ck-drop-shadow { 4639 @mixin ck-box-shadow var(--ck-drop-shadow); 4640} 4641`],sourceRoot:""}]);const w=f},1185:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CA
4641KC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:[`/* 4642 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4643 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4644 */ 4645 4646@import "../../../mixins/_rounded.css"; 4647@import "../../../mixins/_disabled.css"; 4648@import "../../../mixins/_shadow.css"; 4649@import "../../../mixins/_focus.css"; 4650@import "../../mixins/_button.css"; 4651 4652:root { 4653 --ck-color-editable-blur-selection: hsl(0, 0%, 85%); 4654} 4655 4656.ck.ck-editor__editable:not(.ck-editor__nested-editable) { 4657 @mixin ck-rounded-corners; 4658 4659 &.ck-focused { 4660 @mixin ck-focus-ring; 4661 @mixin ck-box-shadow var(--ck-inner-shadow); 4662 } 4663} 4664 4665.ck.ck-editor__editable_inline { 4666 overflow: auto; 4667 padding: 0 var(--ck-spacing-standard); 4668 border: 1px solid transparent; 4669 4670 &[dir="ltr"] { 4671 text-align: left; 4672 } 4673 4674 &[dir="rtl"] { 4675 text-align: right; 4676 } 4677 4678 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */ 4679 & > *:first-child { 4680 margin-top: var(--ck-spacing-large); 4681 } 4682 4683 /* https://github.com/ckeditor/ckeditor5/issues/847 */ 4684 & > *:last-child { 4685 /* 4686 * This value should match with the default margins of the block elements (like .media or .image) 4687 * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825). 4688 */ 4689 margin-bottom: var(--ck-spacing-large); 4690 } 4691 4692 /* https://github.com/ckeditor/ckeditor5/issues/6517 */ 4693 &.ck-blurred ::selection { 4694 background: var(--ck-color-editable-blur-selection); 4695 } 4696} 4697 4698/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */ 4699.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] { 4700 &::after { 4701 border-bottom-color: var(--ck-color-panel-background); 4702 } 4703} 4704 4705.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] { 4706 &::after { 4707 border-top-color: var(--ck-color-panel-background); 4708 } 4709} 4710`,`/* 4711 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4712 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4713 */ 4714 4715/** 4716 * Implements rounded corner interface for .ck-rounded-corners class. 4717 * 4718 * @see $ck-border-radius 4719 */ 4720@define-mixin ck-rounded-corners { 4721 border-radius: 0; 4722 4723 @nest .ck-rounded-corners &, 4724 &.ck-rounded-corners { 4725 border-radius: var(--ck-border-radius); 4726 @mixin-content; 4727 } 4728} 4729`,`/* 4730 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4731 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4732 */ 4733 4734/** 4735 * A visual style of focused element's border. 4736 */ 4737@define-mixin ck-focus-ring { 4738 /* Disable native outline. */ 4739 outline: none; 4740 border: var(--ck-focus-ring) 4741} 4742`,`/* 4743 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4744 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4745 */ 4746 4747/** 4748 * A helper to combine multiple shadows. 4749 */ 4750@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4751 box-shadow: $shadowA, $shadowB; 4752} 4753 4754/** 4755 * Gives an element a drop shadow so it looks like a floating panel. 4756 */ 4757@define-mixin ck-drop-shadow { 4758 @mixin ck-box-shadow var(--ck-drop-shadow); 4759} 4760`],sourceRoot:""}]);const w=f},7913:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CAdC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:[`/* 4761 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4762 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4763 */ 4764
4765.ck.ck-form__header { 4766 display: flex; 4767 flex-direction: row; 4768 flex-wrap: nowrap; 4769 align-items: center; 4770 justify-content: space-between; 4771 4772 & h2.ck-form__header__label { 4773 flex-grow: 1; 4774 } 4775} 4776`,`/* 4777 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4778 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4779 */ 4780 4781@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 4782 4783:root { 4784 --ck-form-header-height: 44px; 4785} 4786 4787.ck.ck-form__header { 4788 padding: var(--ck-spacing-small) var(--ck-spacing-large); 4789 height: var(--ck-form-header-height); 4790 line-height: var(--ck-form-header-height); 4791 border-bottom: 1px solid var(--ck-color-base-border); 4792 4793 & > .ck-icon { 4794 @mixin ck-dir ltr { 4795 margin-right: var(--ck-spacing-medium); 4796 } 4797 4798 @mixin ck-dir rtl { 4799 margin-left: var(--ck-spacing-medium); 4800 } 4801 } 4802 4803 & .ck-form__header__label { 4804 --ck-font-size-base: 15px; 4805 font-weight: bold; 4806 } 4807} 4808`],sourceRoot:""}]);const w=f},9529:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 4809 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4810 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4811 */ 4812 4813.ck.ck-highlighted-text mark { 4814 background: var(--ck-color-highlight-background); 4815 vertical-align: initial; 4816 font-weight: inherit; 4817 line-height: inherit; 4818 font-size: inherit; 4819} 4820`],sourceRoot:""}]);const w=f},7621:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:[`/* 4821 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4822 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4823 */ 4824 4825.ck.ck-icon { 4826 vertical-align: middle; 4827} 4828`,`/* 4829 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4830 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4831 */ 4832 4833:root { 4834 --ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal)); 4835} 4836 4837.ck.ck-icon { 4838 width: var(--ck-icon-size); 4839 height: var(--ck-icon-size); 4840 4841 /* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */ 4842 font-size: .8333350694em; 4843 4844 /* Inherit cursor style (#5). */ 4845 cursor: inherit; 4846 4847 /* This will prevent blurry icons on Firefox. See #340. */ 4848 will-change: transform; 4849 4850 & * { 4851 /* Inherit cursor style (#5). */ 4852 cursor: inherit; 4853 } 4854 4855 /* Allows dynamic coloring of an icon by inheriting its color from the parent. */ 4856 &.ck-icon_inherit-color { 4857 color: inherit; 4858 4859 & * { 4860 color: inherit; 4861 4862 &:not([fill]) { 4863 /* Needed by FF. */ 4864 fill: currentColor; 4865 } 4866 } 4867 } 4868} 4869`],sourceRoot:""}]);const w=f},253:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);
4869transition:box-shadow .1s ease-in-out,border .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eDmDD,CA9CA,iECDE,qCD+CF,CA9CA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DAkCD,CAhCC,uCAdD,aAeE,eA+BF,CA9BC,CAEA,mBEvBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YF2BA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BGnCD,oDHsCC,CAGD,sBAEC,sCAAuC,CADvC,+CAUD,CAPC,uCAJD,sBAKE,cAMF,CALC,CAEA,4BGjDD,iDHmDC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:[`/* 4870 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4871 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4872 */ 4873 4874@import "../../../mixins/_rounded.css"; 4875@import "../../../mixins/_focus.css"; 4876@import "../../../mixins/_shadow.css"; 4877 4878:root { 4879 --ck-input-width: 18em; 4880 4881 /* Backward compatibility. */ 4882 --ck-input-text-width: var(--ck-input-width); 4883} 4884 4885.ck.ck-input { 4886 @mixin ck-rounded-corners; 4887 4888 background: var(--ck-color-input-background); 4889 border: 1px solid var(--ck-color-input-border); 4890 padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium); 4891 min-width: var(--ck-input-width); 4892 4893 /* This is important to stay of the same height as surrounding buttons */ 4894 min-height: var(--ck-ui-component-min-height); 4895 4896 /* Apply some smooth transition to the box-shadow and border. */ 4897 transition: box-shadow .1s ease-in-out, border .1s ease-in-out; 4898 4899 @media (prefers-reduced-motion: reduce) { 4900 transition: none; 4901 } 4902 4903 &:focus { 4904 @mixin ck-focus-ring; 4905 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 4906 } 4907 4908 &[readonly] { 4909 border: 1px solid var(--ck-color-input-disabled-border); 4910 background: var(--ck-color-input-disabled-background); 4911 color: var(--ck-color-input-disabled-text); 4912 4913 &:focus { 4914 /* The read-only input should have a slightly less visible shadow when focused. */ 4915 @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow); 4916 } 4917 } 4918 4919 &.ck-error { 4920 border-color: var(--ck-color-input-error-border); 4921 animation: ck-input-shake .3s ease both; 4922 4923 @media (prefers-reduced-motion: reduce) { 4924 animation: none; 4925 } 4926 4927 &:focus { 4928 @mixin ck-box-shadow var(--ck-focus-error-outer-shadow); 4929 } 4930 } 4931} 4932 4933@keyframes ck-input-shake { 4934 20% { 4935 transform: translateX(-2px); 4936 } 4937 4938 40% { 4939 transform: translateX(2px); 4940 } 4941 4942 60% { 4943 transform: translateX(-1px); 4944 } 4945 4946 80% { 4947 transform: translateX(1px); 4948 } 4949} 4950`,`/* 4951 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4952 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4953 */ 4954 4955/** 4956 * Implements rounded corner interface for .ck-rounded-corners class. 4957 * 4958 * @see $ck-border-radius 4959 */ 4960@define-mixin ck-rounded-corners { 4961 border-radius: 0; 4962 4963 @nest .ck-rounded-corners &, 4964 &.ck-rounded-corners { 4965 border-radius: var(--ck-border-radius); 4966 @mixin-content; 4967 } 4968} 4969`,`/* 4970 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4971 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4972 */ 4973 4974/** 4975 * A visual style of focused element's border. 4976 */ 4977@define-mixin ck-focus-ring { 4978 /* Disable native outline. */ 4979 outline: none; 4980 border: var(--ck-focus-ring) 4981} 4982`,`/* 4983 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4984 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4985 */ 4986 4987/** 4988 * A helper to combine multiple shadows. 4989 */
4990@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4991 box-shadow: $shadowA, $shadowB; 4992} 4993 4994/** 4995 * Gives an element a drop shadow so it looks like a floating panel. 4996 */ 4997@define-mixin ck-drop-shadow { 4998 @mixin ck-box-shadow var(--ck-drop-shadow); 4999} 5000`],sourceRoot:""}]);const w=f},7801:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 5001 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5002 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5003 */ 5004 5005.ck.ck-label { 5006 display: block; 5007} 5008 5009.ck.ck-voice-label { 5010 display: none; 5011} 5012`,`/* 5013 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5014 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5015 */ 5016 5017.ck.ck-label { 5018 font-weight: bold; 5019} 5020`],sourceRoot:""}]);const w=f},4962:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focu
5020sed):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eDmHD,CA9GA,2FCDE,qCD+GF,CA3GC,mEACC,UAwCD,CAtCC,gFACC,KAoCD,CArCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBAgCF,CArCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAyBF,CArCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAQD,CAHC,uCAlCD,gFAmCE,eAEF,CADC,CASD,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,2XAGE,+HAYF,CAfA,2XAOE,wIAQF,CAfA,uWAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:[`/* 5021 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5022 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5023 */ 5024 5025.ck.ck-labeled-field-view { 5026 & > .ck.ck-labeled-field-view__input-wrapper { 5027 display: flex; 5028 position: relative; 5029 } 5030 5031 & .ck.ck-label { 5032 display: block; 5033 position: absolute; 5034 } 5035} 5036`,`/* 5037 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5038 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5039 */ 5040 5041@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5042@import "../../../mixins/_rounded.css"; 5043 5044:root { 5045 --ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95); 5046 --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium); 5047 --ck-labeled-field-label-default-position-x: var(--ck-spacing-medium); 5048 --ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base)); 5049 --ck-color-labeled-field-label-background: var(--ck-color-base-background); 5050} 5051 5052.ck.ck-labeled-field-view { 5053 @mixin ck-rounded-corners; 5054 5055 & > .ck.ck-labeled-field-view__input-wrapper { 5056 width: 100%; 5057 5058 & > .ck.ck-label { 5059 top: 0px; 5060 5061 @mixin ck-dir ltr { 5062 left: 0px; 5063 transform-origin: 0 0; 5064 /* By default, display the label scaled down above the field. */ 5065 transform: translate(var(--ck-spacing-medium), -6px) scale(.75); 5066 } 5067 5068 @mixin ck-dir rtl { 5069 right: 0px; 5070 transform-origin: 100% 0; 5071 transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75); 5072 } 5073 5074 pointer-events: none; 5075 5076 background: var(--ck-color-labeled-field-label-background); 5077 padding: 0 calc(.5 * var(--ck-font-size-tiny)); 5078 line-height: initial; 5079 font-weight: normal; 5080 5081 /* Prevent overflow when the label is longer than the input */ 5082 text-overflow: ellipsis; 5083 overflow: hidden; 5084 5085 max-width: 100%; 5086 5087 transition: 5088 transform var(--ck-labeled-field-view-transition), 5089 padding var(--ck-labeled-field-view-transition), 5090 background var(--ck-labeled-field-view-transition); 5091 5092 @media (prefers-reduced-motion: reduce) { 5093 transition: none; 5094 } 5095 } 5096 } 5097 5098 &.ck-error { 5099 & > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label { 5100 color: var(--ck-color-base-error); 5101 } 5102 5103 & .ck-input:not([readonly]) + .ck.ck-label { 5104 color: var(--ck-color-base-error); 5105 } 5106 } 5107 5108 & .ck-labeled-field-view__status { 5109 font-size: var(--ck-font-size-small); 5110 margin-top: var(--ck-spacing-small); 5111 5112 /* Let the info wrap to the next line to avoid stretching the layout horizontally. 5113 The status could be very long. */ 5114 white-space: normal; 5115 5116 &.ck-labeled-field-view__status_error { 5117 color: var(--ck-color-base-error); 5118 } 5119 } 5120
5121 /* Disabled fields and fields that have no focus should fade out. */ 5122 &.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label, 5123 &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label { 5124 color: var(--ck-color-input-disabled-text); 5125 } 5126 5127 /* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */ 5128 /* stylelint-disable-next-line no-descending-specificity */ 5129 &.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label, 5130 &.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 { 5131 @mixin ck-dir ltr { 5132 transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1); 5133 } 5134 5135 @mixin ck-dir rtl { 5136 transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1); 5137 } 5138 5139 /* Compensate for the default translate position. */ 5140 max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width)); 5141 5142 background: transparent; 5143 padding: 0; 5144 } 5145 5146 /*------ DropdownView integration ----------------------------------------------------------------------------------- */ 5147 5148 /* Make sure dropdown' background color in any of dropdown's state does not collide with labeled field. */ 5149 & > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button { 5150 background: transparent; 5151 } 5152 5153 /* When the dropdown is "empty", the labeled field label replaces its label. */ 5154 &.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label { 5155 opacity: 0; 5156 } 5157 5158 /* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */ 5159 &.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 { 5160 max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard)); 5161 } 5162} 5163`,`/* 5164 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5165 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5166 */ 5167 5168/** 5169 * Implements rounded corner interface for .ck-rounded-corners class. 5170 * 5171 * @see $ck-border-radius 5172 */ 5173@define-mixin ck-rounded-corners { 5174 border-radius: 0; 5175 5176 @nest .ck-rounded-corners &, 5177 &.ck-rounded-corners { 5178 border-radius: var(--ck-border-radius); 5179 @mixin-content; 5180 } 5181} 5182`],sourceRoot:""}]);const w=f},5199:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.11*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item>.ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item>.ck-button{text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button{text-align:right}.ck.ck-list__item>.ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item>.ck-button:active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);
5182:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,qJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UAwCD,CA1CA,uCAME,eAoCF,CA1CA,uCAUE,gBAgCF,CA1CA,6BAgBC,qCA0BD,CAxBC,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:[`/* 5183 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5184 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5185 */ 5186 5187@import "../../mixins/_unselectable.css"; 5188 5189.ck.ck-list { 5190 @mixin ck-unselectable; 5191 5192 display: flex; 5193 flex-direction: column; 5194 5195 & .ck-list__item, 5196 & .ck-list__separator { 5197 display: block; 5198 } 5199 5200 /* Make sure that whatever child of the list item gets focus, it remains on the 5201 top. Thanks to that, styles like box-shadow, outline, etc. are not masked by 5202 adjacent list items. */ 5203 & .ck-list__item > *:focus { 5204 position: relative; 5205 z-index: var(--ck-z-default); 5206 } 5207} 5208`,`/* 5209 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5210 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5211 */ 5212 5213/** 5214 * Makes element unselectable. 5215 */ 5216@define-mixin ck-unselectable { 5217 -moz-user-select: none; 5218 -webkit-user-select: none; 5219 -ms-user-select: none; 5220 user-select: none 5221} 5222`,`/* 5223 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5224 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5225 */ 5226 5227@import "../../../mixins/_disabled.css"; 5228@import "../../../mixins/_rounded.css"; 5229@import "../../../mixins/_shadow.css"; 5230@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5231 5232:root { 5233 --ck-list-button-padding: 5234 calc(.11 * var(--ck-line-height-base) * var(--ck-font-size-base)) 5235 calc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base)); 5236} 5237 5238.ck.ck-list { 5239 @mixin ck-rounded-corners; 5240 5241 list-style-type: none; 5242 background: var(--ck-color-list-background); 5243} 5244 5245.ck.ck-list__item { 5246 cursor: default; 5247 min-width: 12em; 5248 5249 & > .ck-button { 5250 min-height: unset; 5251 width: 100%; 5252 border-radius: 0; 5253 5254 @mixin ck-dir ltr { 5255 text-align: left; 5256 } 5257 5258 @mixin ck-dir rtl { 5259 text-align: right; 5260 } 5261 5262 /* List items should have the same height. Use absolute units to make sure it is so 5263 because e.g. different heading styles may have different height 5264 https://github.com/ckeditor/ckeditor5-heading/issues/63 */ 5265 padding: var(--ck-list-button-padding); 5266 5267 &:active { 5268 box-shadow: none; 5269 } 5270 5271 &.ck-on { 5272 background: var(--ck-color-list-button-on-background); 5273 color: var(--ck-color-list-button-on-text); 5274 5275 &:active { 5276 box-shadow: none; 5277 } 5278 5279 &:hover:not(.ck-disabled) { 5280 background: var(--ck-color-list-button-on-background-focus); 5281 } 5282 5283 &:focus:not(.ck-switchbutton):not(.ck-disabled) { 5284 border-color: var(--ck-color-base-background); 5285 } 5286 } 5287 5288 &:hover:not(.ck-disabled) { 5289 background: var(--ck-color-list-button-hover-background); 5290 } 5291 } 5292 5293 /* It's unnecessary to change the background/text of a switch toggle; it has different ways 5294 of conveying its state (like the switcher) */ 5295 & > .ck-switchbutton { 5296 &.ck-on { 5297 background: var(--ck-color-list-background); 5298 color: inherit; 5299 5300 &:hover:not(.ck-disabled) { 5301 background: var(--ck-color-list-button-hover-background); 5302 color: inherit; 5303 } 5304 } 5305 } 5306} 5307 5308.ck-list .ck-list__group { 5309 padding-top: var(--ck-spacing-medium); 5310 5311 /* The group should have a border when it's not the first item. */
5312 *:not(.ck-hidden) ~ & { 5313 border-top: 1px solid var(--ck-color-base-border); 5314 } 5315 5316 & > .ck-label { 5317 font-size: 11px; 5318 font-weight: bold; 5319 padding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium); 5320 } 5321} 5322 5323.ck.ck-list__separator { 5324 height: 1px; 5325 width: 100%; 5326 background: var(--ck-color-base-border); 5327} 5328`,`/* 5329 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5330 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5331 */ 5332 5333/** 5334 * Implements rounded corner interface for .ck-rounded-corners class. 5335 * 5336 * @see $ck-border-radius 5337 */ 5338@define-mixin ck-rounded-corners { 5339 border-radius: 0; 5340 5341 @nest .ck-rounded-corners &, 5342 &.ck-rounded-corners { 5343 border-radius: var(--ck-border-radius); 5344 @mixin-content; 5345 } 5346} 5347`],sourceRoot:""}]);const w=f},497:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 5348 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5349 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5350 */ 5351 5352.ck.ck-menu-bar { 5353 display: flex; 5354 flex-wrap: wrap; 5355 justify-content: flex-start; 5356 background: var(--ck-color-base-background); 5357 padding: var(--ck-spacing-small); 5358 gap: var(--ck-spacing-small); 5359 border: 1px solid var(--ck-color-toolbar-border); 5360 width: 100%; 5361} 5362`],sourceRoot:""}]);const w=f},4:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 5363 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5364 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5365 */ 5366 5367.ck.ck-menu-bar__menu { 5368 display: block; 5369 position: relative; 5370} 5371`,`/* 5372 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5373 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5374 */ 5375 5376.ck.ck-menu-bar__menu { 5377 /* Enable font size inheritance, which allows fluid UI scaling. */ 5378 font-size: inherit; 5379 5380 &.ck-menu-bar__menu_top-level { 5381 max-width: 100%; 5382 } 5383} 5384`],sourceRoot:""}]);const w=f},3344:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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{padding:var(--ck-list-button-padding);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:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.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{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{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)}[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);right:var(--ck-spacing-standard)}[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-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAMC,mFACC,mBAAoB,CACpB,2BACD,CCIA,iDACC,qCAAsC,CACtC,UAuBD,CArBC,mEACC,WAAY,CACZ,eAAgB,CAChB,s
5384BACD,CAEA,+ECdD,kCDgBC,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,eAiDD,CA/CC,yFACC,wBAAyB,CACzB,eAKD,CAHC,qGACC,0DACD,CAID,iIACC,+DACD,CAEA,qHACC,mCASD,CAVA,+HAIE,wBAMF,CAVA,+HAQE,uBAEF,CAEA,iICrFD,kCDuFC,CAGC,+HAIC,sCAAuC,CAHvC,gCAID,CAIA,+HACC,+BAAgC,CAGhC,oCACD",sourcesContent:[`/* 5385 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5386 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5387 */ 5388 5389.ck.ck-menu-bar__menu { 5390 & > .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow { 5391 pointer-events: none; 5392 z-index: var(--ck-z-default); 5393 } 5394} 5395`,`/* 5396 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5397 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5398 */ 5399 5400@import "../../../mixins/_disabled.css"; 5401@import "../../mixins/_button.css"; 5402@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5403 5404.ck.ck-menu-bar__menu { 5405 /* 5406 * All menu buttons. 5407 */ 5408 & > .ck-menu-bar__menu__button { 5409 padding: var(--ck-list-button-padding); 5410 width: 100%; 5411 5412 & > .ck-button__label { 5413 flex-grow: 1; 5414 overflow: hidden; 5415 text-overflow: ellipsis; 5416 } 5417 5418 &.ck-disabled > .ck-button__label { 5419 @mixin ck-disabled; 5420 } 5421 5422 @mixin ck-dir ltr { 5423 &:not(.ck-button_with-text) { 5424 padding-left: var(--ck-spacing-small); 5425 } 5426 } 5427 5428 @mixin ck-dir rtl { 5429 &:not(.ck-button_with-text) { 5430 padding-right: var(--ck-spacing-small); 5431 } 5432 } 5433 } 5434 5435 /* 5436 * Top-level menu buttons only. 5437 */ 5438 &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button { 5439 padding: var(--ck-spacing-small) var(--ck-spacing-medium); 5440 min-height: unset; 5441 5442 & .ck-button__label { 5443 width: unset; 5444 line-height: unset; 5445 } 5446 5447 &.ck-on { 5448 border-bottom-left-radius: 0; 5449 border-bottom-right-radius: 0; 5450 } 5451 5452 & .ck-icon { 5453 display: none; 5454 } 5455 } 5456 5457 /* 5458 * Sub-menu buttons. 5459 */ 5460 &:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button { 5461 border-radius: 0; 5462 5463 &:focus { 5464 border-color: transparent; 5465 box-shadow: none; 5466 5467 &:not(.ck-on) { 5468 background: var(--ck-color-button-default-hover-background); 5469 } 5470 } 5471 5472 /* Spacing in buttons that miss the icon. */ 5473 &:not(:has(.ck-button__icon)) > .ck-button__label { 5474 margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small)); 5475 } 5476 5477 & > .ck-menu-bar__menu__button__arrow { 5478 width: var(--ck-dropdown-arrow-size); 5479 5480 @mixin ck-dir ltr { 5481 transform: rotate(-90deg); 5482 } 5483 5484 @mixin ck-dir rtl { 5485 transform: rotate(90deg); 5486 } 5487 } 5488 5489 &.ck-disabled > .ck-menu-bar__menu__button__arrow { 5490 @mixin ck-disabled; 5491 } 5492 5493 @mixin ck-dir ltr { 5494 & > .ck-menu-bar__menu__button__arrow { 5495 right: var(--ck-spacing-standard); 5496 5497 /* A space to accommodate the triangle. */ 5498 margin-left: var(--ck-spacing-standard); 5499 } 5500 } 5501 5502 @mixin ck-dir rtl { 5503 & > .ck-menu-bar__menu__button__arrow { 5504 left: var(--ck-spacing-standard); 5505 5506 /* A space to accommodate the triangle. */ 5507 margin-right: var(--ck-spacing-small); 5508 } 5509 } 5510 } 5511} 5512`,`/* 5513 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5514 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5515 */ 5516 5517/** 5518 * A class which indicates that an element holding it is disabled. 5519 */ 5520@define-mixin ck-disabled { 5521 opacity: var(--ck-disabled-opacity); 5522} 5523`],sourceRoot:""}]);const w=f},9481:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 5524 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5525 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5526 */ 5527 5528:root { 5529 --ck-menu-bar-menu-item-min-width: 18em; 5530} 5531 5532.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item { 5533 min-width: var(--ck-menu-bar-menu-item-min-width); 5534} 5535`],sourceRoot:""}]);const w=f},977:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__panel>ul>.ck-menu-bar__menu__item>.ck-menu-bar__menu__item__button:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css"],names:[],mappings:"AASC,iEACC,eA0BD,CAxBC,0LAGC,8BACD,CAEA,uFAEC,4CAA+C,CAC/C,oCACD,CAMA,uEACC,wBAAyB,CACzB,eAKD,CAHC,mFACC,0DACD,CASD,uLACC,+DACD",sourcesContent:[`/* 5536 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5537 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5538 */ 5539
5540.ck.ck-menu-bar__menu { 5541 /* 5542 * List item buttons. 5543 */ 5544 & .ck-button.ck-menu-bar__menu__item__button { 5545 border-radius: 0; 5546 5547 & > .ck-spinner-container, 5548 & > .ck-spinner-container .ck-spinner { 5549 /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */ 5550 --ck-toolbar-spinner-size: 20px; 5551 } 5552 5553 & > .ck-spinner-container { 5554 /* These margins are the same as for .ck-icon. */ 5555 margin-left: calc(-1 * var(--ck-spacing-small)); 5556 margin-right: var(--ck-spacing-small); 5557 } 5558 5559 /* 5560 * Hovered items automatically get focused. Default focus styles look odd 5561 * while moving across a huge list of items so let's get rid of them 5562 */ 5563 &:focus { 5564 border-color: transparent; 5565 box-shadow: none; 5566 5567 &:not(.ck-on) { 5568 background: var(--ck-color-button-default-hover-background); 5569 } 5570 } 5571 } 5572 5573 /* 5574 * First-level sub-menu item buttons. 5575 */ 5576 &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__panel > ul > .ck-menu-bar__menu__item > .ck-menu-bar__menu__item__button { 5577 /* Spacing in buttons that miss the icon. */ 5578 &:not(:has(.ck-button__icon)) > .ck-button__label { 5579 margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small)); 5580 } 5581 } 5582} 5583 5584 5585`],sourceRoot:""}]);const w=f},9108:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{border-radius:0}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}","",{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"],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
5585D,CAEA,gLAEC,OACD,CAEA,gLAEC,kEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CAEA,gLAEC,mEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CCpDD,MACC,uCACD,CAEA,mDCDC,eDmCD,CAlCA,6ICGE,qCD+BF,CAlCA,mDAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CETT,oCAA8B,CFU9B,kBAAmB,CACnB,iDA0BD,CAvBC,gLAEC,wBACD,CAEA,gLAEC,yBACD,CAEA,gLAEC,2BACD,CAEA,gLAEC,4BACD,CAEA,yDACC,YACD",sourcesContent:[`/* 5586 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5587 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5588 */ 5589 5590:root { 5591 --ck-menu-bar-menu-max-width: 75vw; 5592 --ck-menu-bar-nested-menu-horizontal-offset: 5px; 5593} 5594 5595.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel { 5596 z-index: var(--ck-z-panel); 5597 max-width: var(--ck-menu-bar-menu-max-width); 5598 position: absolute; 5599 5600 &.ck-menu-bar__menu__panel_position_ne, 5601 &.ck-menu-bar__menu__panel_position_nw { 5602 bottom: 100%; 5603 } 5604 5605 &.ck-menu-bar__menu__panel_position_se, 5606 &.ck-menu-bar__menu__panel_position_sw { 5607 top: 100%; 5608 bottom: auto; 5609 } 5610 5611 &.ck-menu-bar__menu__panel_position_ne, 5612 &.ck-menu-bar__menu__panel_position_se { 5613 left: 0px; 5614 } 5615 5616 &.ck-menu-bar__menu__panel_position_nw, 5617 &.ck-menu-bar__menu__panel_position_sw { 5618 right: 0px; 5619 } 5620 5621 &.ck-menu-bar__menu__panel_position_es, 5622 &.ck-menu-bar__menu__panel_position_en { 5623 left: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) ); 5624 } 5625 5626 &.ck-menu-bar__menu__panel_position_es { 5627 top: 0px; 5628 } 5629 5630 &.ck-menu-bar__menu__panel_position_en { 5631 bottom: 0px; 5632 } 5633 5634 &.ck-menu-bar__menu__panel_position_ws, 5635 &.ck-menu-bar__menu__panel_position_wn { 5636 right: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) ); 5637 } 5638 5639 &.ck-menu-bar__menu__panel_position_ws { 5640 top: 0px; 5641 } 5642 5643 &.ck-menu-bar__menu__panel_position_wn { 5644 bottom: 0px; 5645 } 5646} 5647`,`/* 5648 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5649 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5650 */ 5651 5652@import "../../../mixins/_rounded.css"; 5653@import "../../../mixins/_shadow.css"; 5654 5655:root { 5656 --ck-menu-bar-menu-panel-max-width: 75vw; 5657} 5658 5659.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel { 5660 @mixin ck-rounded-corners; 5661 @mixin ck-drop-shadow; 5662 5663 background: var(--ck-color-dropdown-panel-background); 5664 border: 1px solid var(--ck-color-dropdown-panel-border); 5665 bottom: 0; 5666 height: fit-content; 5667 max-width: var(--ck-menu-bar-menu-panel-max-width); 5668 5669 /* Corner border radius consistent with the button. */ 5670 &.ck-menu-bar__menu__panel_position_es, 5671 &.ck-menu-bar__menu__panel_position_se { 5672 border-top-left-radius: 0; 5673 } 5674 5675 &.ck-menu-bar__menu__panel_position_ws, 5676 &.ck-menu-bar__menu__panel_position_sw { 5677 border-top-right-radius: 0; 5678 } 5679 5680 &.ck-menu-bar__menu__panel_position_en, 5681 &.ck-menu-bar__menu__panel_position_ne { 5682 border-bottom-left-radius: 0; 5683 } 5684 5685 &.ck-menu-bar__menu__panel_position_wn, 5686 &.ck-menu-bar__menu__panel_position_nw { 5687 border-bottom-right-radius: 0; 5688 } 5689 5690 &:focus { 5691 outline: none; 5692 } 5693} 5694`,`/* 5695 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5696 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5697 */ 5698 5699/** 5700 * Implements rounded corner interface for .ck-rounded-corners class. 5701 * 5702 * @see $ck-border-radius 5703 */ 5704@define-mixin ck-rounded-corners { 5705 border-radius: 0; 5706 5707 @nest .ck-rounded-corners &, 5708 &.ck-rounded-corners { 5709 border-radius: var(--ck-border-radius); 5710 @mixin-content; 5711 } 5712} 5713`,`/* 5714 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5715 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5716 */ 5717 5718/** 5719 * A helper to combine multiple shadows. 5720 */ 5721@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 5722 box-shadow: $shadowA, $shadowB; 5723} 5724 5725/** 5726 * Gives an element a drop shadow so it looks like a floating panel. 5727 */ 5728@define-mixin ck-drop-shadow { 5729 @mixin ck-box-shadow var(--ck-drop-shadow); 5730} 5731`],sourceRoot:""}]);const w=f},3710:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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-pane
vendor: 6,450 bytes, line 5731
5731l)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./
5731../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:[`/* 5732 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5733 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5734 */ 5735 5736:root { 5737 /* Make sure the balloon arrow does not float over its children. */ 5738 --ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3); 5739} 5740 5741.ck.ck-balloon-panel { 5742 display: none; 5743 position: absolute; 5744 5745 z-index: var(--ck-z-panel); 5746 5747 &.ck-balloon-panel_with-arrow { 5748 &::before, 5749 &::after { 5750 content: ""; 5751 position: absolute; 5752 } 5753 5754 &::before { 5755 z-index: var(--ck-balloon-panel-arrow-z-index); 5756 } 5757 5758 &::after { 5759 z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); 5760 } 5761 } 5762 5763 &[class*="arrow_n"] { 5764 &::before { 5765 z-index: var(--ck-balloon-panel-arrow-z-index); 5766 } 5767 5768 &::after { 5769 z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); 5770 } 5771 } 5772 5773 &[class*="arrow_s"] { 5774 &::before { 5775 z-index: var(--ck-balloon-panel-arrow-z-index); 5776 } 5777 5778 &::after { 5779 z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); 5780 } 5781 } 5782 5783 &.ck-balloon-panel_visible { 5784 display: block; 5785 } 5786} 5787`,`/* 5788 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5789 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5790 */ 5791 5792@import "../../../mixins/_rounded.css"; 5793@import "../../../mixins/_shadow.css"; 5794 5795:root { 5796 --ck-balloon-border-width: 1px; 5797 --ck-balloon-arrow-offset: 2px; 5798 --ck-balloon-arrow-height: 10px; 5799 --ck-balloon-arrow-half-width: 8px; 5800 --ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop); 5801} 5802 5803.ck.ck-balloon-panel { 5804 @mixin ck-rounded-corners; 5805 @mixin ck-drop-shadow; 5806 5807 min-height: 15px; 5808 5809 background: var(--ck-color-panel-background); 5810 border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border); 5811 5812 &.ck-balloon-panel_with-arrow { 5813 &::before, 5814 &::after { 5815 width: 0; 5816 height: 0; 5817 border-style: solid; 5818 } 5819 } 5820 5821 &[class*="arrow_n"] { 5822 &::before, 5823 &::after { 5824 border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width); 5825 } 5826 5827 &::before { 5828 border-color: transparent transparent var(--ck-color-panel-border) transparent; 5829 margin-top: calc( -1 * var(--ck-balloon-border-width) ); 5830 } 5831 5832 &::after { 5833 border-color: transparent transparent var(--ck-color-panel-background) transparent; 5834 margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 5835 } 5836 } 5837 5838 &[class*="arrow_s"] { 5839 &::before, 5840 &::after { 5841 border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width); 5842 } 5843 5844 &::before { 5845 border-color: var(--ck-color-panel-border) transparent transparent; 5846 filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow)); 5847 margin-bottom: calc( -1 * var(--ck-balloon-border-width) ); 5848 } 5849 5850 &::after { 5851 border-color: var(--ck-color-panel-background) transparent transparent transparent; 5852 margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 5853 } 5854 } 5855 5856 &[class*="arrow_e"] { 5857 &::before, 5858 &::after { 5859 border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height); 5860 } 5861 5862 &::before { 5863 border-color: transparent transparent transparent var(--ck-color-panel-border); 5864 margin-right: calc( -1 * var(--ck-balloon-border-width) ); 5865 } 5866 5867 &::after { 5868 border-color: transparent transparent transparent var(--ck-color-panel-background); 5869 margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 5870 } 5871 } 5872 5873 &[class*="arrow_w"] { 5874 &::before, 5875 &::after { 5876 border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0; 5877 } 5878 5879 &::before { 5880 border-color: transparent var(--ck-color-panel-border) transparent transparent; 5881 margin-left: calc( -1 * var(--ck-balloon-border-width) ); 5882 } 5883 5884 &::after { 5885 border-color: transparent var(--ck-color-panel-background) transparent transparent; 5886 margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 5887 } 5888 } 5889
5890 &.ck-balloon-panel_arrow_n { 5891 &::before, 5892 &::after { 5893 left: 50%; 5894 margin-left: calc(-1 * var(--ck-balloon-arrow-half-width)); 5895 top: calc(-1 * var(--ck-balloon-arrow-height)); 5896 } 5897 } 5898 5899 &.ck-balloon-panel_arrow_nw { 5900 &::before, 5901 &::after { 5902 left: calc(2 * var(--ck-balloon-arrow-half-width)); 5903 top: calc(-1 * var(--ck-balloon-arrow-height)); 5904 } 5905 } 5906 5907 &.ck-balloon-panel_arrow_ne { 5908 &::before, 5909 &::after { 5910 right: calc(2 * var(--ck-balloon-arrow-half-width)); 5911 top: calc(-1 * var(--ck-balloon-arrow-height)); 5912 } 5913 } 5914 5915 &.ck-balloon-panel_arrow_s { 5916 &::before, 5917 &::after { 5918 left: 50%; 5919 margin-left: calc(-1 * var(--ck-balloon-arrow-half-width)); 5920 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 5921 } 5922 } 5923 5924 &.ck-balloon-panel_arrow_sw { 5925 &::before, 5926 &::after { 5927 left: calc(2 * var(--ck-balloon-arrow-half-width)); 5928 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 5929 } 5930 } 5931 5932 &.ck-balloon-panel_arrow_se { 5933 &::before, 5934 &::after { 5935 right: calc(2 * var(--ck-balloon-arrow-half-width)); 5936 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 5937 } 5938 } 5939 5940 &.ck-balloon-panel_arrow_sme { 5941 &::before, 5942 &::after { 5943 right: 25%; 5944 margin-right: calc(2 * var(--ck-balloon-arrow-half-width)); 5945 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 5946 } 5947 } 5948 5949 &.ck-balloon-panel_arrow_smw { 5950 &::before, 5951 &::after { 5952 left: 25%; 5953 margin-left: calc(2 * var(--ck-balloon-arrow-half-width)); 5954 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 5955 } 5956 } 5957
5958 &.ck-balloon-panel_arrow_nme { 5959 &::before, 5960 &::after { 5961 right: 25%; 5962 margin-right: calc(2 * var(--ck-balloon-arrow-half-width)); 5963 top: calc(-1 * var(--ck-balloon-arrow-height)); 5964 } 5965 } 5966 5967 &.ck-balloon-panel_arrow_nmw { 5968 &::before, 5969 &::after { 5970 left: 25%; 5971 margin-left: calc(2 * var(--ck-balloon-arrow-half-width)); 5972 top: calc(-1 * var(--ck-balloon-arrow-height)); 5973 } 5974 } 5975 5976 &.ck-balloon-panel_arrow_e { 5977 &::before, 5978 &::after { 5979 right: calc(-1 * var(--ck-balloon-arrow-height)); 5980 margin-top: calc(-1 * var(--ck-balloon-arrow-half-width)); 5981 top: 50%; 5982 } 5983 } 5984 5985 &.ck-balloon-panel_arrow_w { 5986 &::before, 5987 &::after { 5988 left: calc(-1 * var(--ck-balloon-arrow-height)); 5989 margin-top: calc(-1 * var(--ck-balloon-arrow-half-width)); 5990 top: 50%; 5991 } 5992 } 5993} 5994`,`/* 5995 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5996 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5997 */ 5998 5999/** 6000 * Implements rounded corner interface for .ck-rounded-corners class. 6001 * 6002 * @see $ck-border-radius 6003 */ 6004@define-mixin ck-rounded-corners { 6005 border-radius: 0; 6006 6007 @nest .ck-rounded-corners &, 6008 &.ck-rounded-corners { 6009 border-radius: var(--ck-border-radius); 6010 @mixin-content; 6011 } 6012} 6013`,`/* 6014 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6015 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6016 */ 6017 6018/** 6019 * A helper to combine multiple shadows. 6020 */ 6021@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6022 box-shadow: $shadowA, $shadowB; 6023} 6024 6025/** 6026 * Gives an element a drop shadow so it looks like a floating panel. 6027 */ 6028@define-mixin ck-drop-shadow { 6029 @mixin ck-box-shadow var(--ck-drop-shadow); 6030} 6031`],sourceRoot:""}]);const w=f},991:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 6032 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6033 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6034 */ 6035 6036.ck .ck-balloon-rotator__navigation { 6037 display: flex; 6038 align-items: center; 6039 justify-content: center; 6040} 6041 6042/* Buttons inside a toolbar should be centered when rotator bar is wider. 6043 * See: https://github.com/ckeditor/ckeditor5-ui/issues/495 6044 */ 6045.ck .ck-balloon-rotator__content .ck-toolbar { 6046 justify-content: center; 6047} 6048`,`/* 6049 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6050 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6051 */ 6052 6053.ck .ck-balloon-rotator__navigation { 6054 background: var(--ck-color-toolbar-background); 6055 border-bottom: 1px solid var(--ck-color-toolbar-border); 6056 padding: 0 var(--ck-spacing-small); 6057 6058 /* Let's keep similar appearance to \`ck-toolbar\`. */ 6059 & > * { 6060 margin-right: var(--ck-spacing-small); 6061 margin-top: var(--ck-spacing-small); 6062 margin-bottom: var(--ck-spacing-small); 6063 } 6064 6065 /* Gives counter more breath than buttons. */ 6066 & .ck-balloon-rotator__counter { 6067 margin-right: var(--ck-spacing-standard); 6068 6069 /* We need to use smaller margin because of previous button's right margin. */ 6070 margin-left: var(--ck-spacing-small); 6071 } 6072} 6073 6074.ck .ck-balloon-rotator__content { 6075 6076 /* Disable default annotation shadow inside rotator with fake panels. */ 6077 & .ck.ck-annotation-wrapper { 6078 box-shadow: none; 6079 } 6080} 6081`],sourceRoot:""}]);const w=f},5380:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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}
6081: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:[`/* 6082 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6083 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6084 */ 6085 6086.ck .ck-fake-panel { 6087 position: absolute; 6088 6089 /* Fake panels should be placed under main balloon content. */ 6090 z-index: calc(var(--ck-z-panel) - 1); 6091} 6092 6093.ck .ck-fake-panel div { 6094 position: absolute; 6095} 6096 6097.ck .ck-fake-panel div:nth-child( 1 ) { 6098 z-index: 2; 6099} 6100 6101.ck .ck-fake-panel div:nth-child( 2 ) { 6102 z-index: 1; 6103} 6104`,`/* 6105 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6106 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6107 */ 6108 6109@import "../../../mixins/_shadow.css"; 6110 6111:root { 6112 --ck-balloon-fake-panel-offset-horizontal: 6px; 6113 --ck-balloon-fake-panel-offset-vertical: 6px; 6114} 6115 6116/* Let's use \`.ck-balloon-panel\` appearance. See: balloonpanel.css. */ 6117.ck .ck-fake-panel div { 6118 @mixin ck-drop-shadow; 6119 6120 min-height: 15px; 6121 6122 background: var(--ck-color-panel-background); 6123 border: 1px solid var(--ck-color-panel-border); 6124 border-radius: var(--ck-border-radius); 6125 6126 width: 100%; 6127 height: 100%; 6128} 6129 6130.ck .ck-fake-panel div:nth-child( 1 ) { 6131 margin-left: var(--ck-balloon-fake-panel-offset-horizontal); 6132 margin-top: var(--ck-balloon-fake-panel-offset-vertical); 6133} 6134 6135.ck .ck-fake-panel div:nth-child( 2 ) { 6136 margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2); 6137 margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2); 6138} 6139.ck .ck-fake-panel div:nth-child( 3 ) { 6140 margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3); 6141 margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3); 6142} 6143 6144/* If balloon is positioned above element, we need to move fake panel to the top. */ 6145.ck .ck-balloon-panel_arrow_s + .ck-fake-panel, 6146.ck .ck-balloon-panel_arrow_se + .ck-fake-panel, 6147.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel { 6148 --ck-balloon-fake-panel-offset-vertical: -6px; 6149} 6150`,`/* 6151 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6152 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6153 */ 6154 6155/** 6156 * A helper to combine multiple shadows. 6157 */ 6158@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6159 box-shadow: $shadowA, $shadowB; 6160} 6161 6162/** 6163 * Gives an element a drop shadow so it looks like a floating panel. 6164 */ 6165@define-mixin ck-drop-shadow { 6166 @mixin ck-box-shadow var(--ck-drop-shadow); 6167} 6168`],sourceRoot:""}]);const w=f},8298:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 6169 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6170 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6171 */ 6172
6173.ck.ck-sticky-panel { 6174 & .ck-sticky-panel__content_sticky { 6175 z-index: var(--ck-z-panel); /* #315 */ 6176 position: fixed; 6177 top: 0; 6178 } 6179 6180 & .ck-sticky-panel__content_sticky_bottom-limit { 6181 top: auto; 6182 position: absolute; 6183 } 6184} 6185`,`/* 6186 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6187 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6188 */ 6189 6190@import "../../../mixins/_shadow.css"; 6191 6192.ck.ck-sticky-panel { 6193 & .ck-sticky-panel__content_sticky { 6194 @mixin ck-drop-shadow; 6195 6196 border-width: 0 1px 1px; 6197 border-top-left-radius: 0; 6198 border-top-right-radius: 0; 6199 } 6200} 6201`,`/* 6202 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6203 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6204 */ 6205 6206/** 6207 * A helper to combine multiple shadows. 6208 */ 6209@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6210 box-shadow: $shadowA, $shadowB; 6211} 6212 6213/** 6214 * Gives an element a drop shadow so it looks like a floating panel. 6215 */ 6216@define-mixin ck-drop-shadow { 6217 @mixin ck-box-shadow var(--ck-drop-shadow); 6218} 6219`],sourceRoot:""}]);const w=f},2722:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAoED,CAlEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA+CF,CA7CE,8CACC,wDAYD,CAVC,4HAEC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDrEH",sourcesContent:[`/* 6220 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6221 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6222 */ 6223 6224@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 6225 6226.ck-vertical-form .ck-button { 6227 &::after { 6228 content: ""; 6229 width: 0; 6230 position: absolute; 6231 right: -1px; 6232 top: -1px; 6233 bottom: -1px; 6234 z-index: 1; 6235 } 6236 6237 &:focus::after { 6238 display: none; 6239 } 6240} 6241 6242.ck.ck-responsive-form { 6243 @mixin ck-media-phone { 6244 & .ck-button { 6245 &::after { 6246 content: ""; 6247 width: 0; 6248 position: absolute; 6249 right: -1px; 6250 top: -1px; 6251 bottom: -1px; 6252 z-index: 1; 6253 } 6254 6255 &:focus::after { 6256 display: none; 6257 } 6258 } 6259 } 6260} 6261`,`/* 6262 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6263 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6264 */ 6265 6266@define-mixin ck-media-phone { 6267 @media screen and (max-width: 600px) { 6268 @mixin-content; 6269 } 6270} 6271`,`/* 6272 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6273 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6274 */ 6275 6276@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 6277@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6278 6279.ck-vertical-form > .ck-button:nth-last-child(2)::after { 6280 border-right: 1px solid var(--ck-color-base-border); 6281} 6282
6283.ck.ck-responsive-form { 6284 padding: var(--ck-spacing-large); 6285 6286 &:focus { 6287 /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */ 6288 outline: none; 6289 } 6290 6291 @mixin ck-dir ltr { 6292 & > :not(:first-child) { 6293 margin-left: var(--ck-spacing-standard); 6294 } 6295 } 6296 6297 @mixin ck-dir rtl { 6298 & > :not(:last-child) { 6299 margin-left: var(--ck-spacing-standard); 6300 } 6301 } 6302 6303 @mixin ck-media-phone { 6304 padding: 0; 6305 width: calc(.8 * var(--ck-input-width)); 6306 6307 & .ck-labeled-field-view { 6308 margin: var(--ck-spacing-large) var(--ck-spacing-large) 0; 6309 6310 & .ck-input-text, 6311 & .ck-input-number { 6312 min-width: 0; 6313 width: 100%; 6314 } 6315 6316 /* Let the long error messages wrap in the narrow form. */ 6317 & .ck-labeled-field-view__error { 6318 white-space: normal; 6319 } 6320 } 6321 6322 /* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */ 6323 & > .ck-button:nth-last-child(2) { 6324 &::after { 6325 border-right: 1px solid var(--ck-color-base-border); 6326 } 6327 } 6328 6329 & > .ck-button:nth-last-child(1), 6330 & > .ck-button:nth-last-child(2) { 6331 padding: var(--ck-spacing-standard); 6332 margin-top: var(--ck-spacing-large); 6333 border-radius: 0; 6334 6335 &:not(:focus) { 6336 border-top: 1px solid var(--ck-color-base-border); 6337 } 6338 6339 @mixin ck-dir ltr { 6340 margin-left: 0; 6341 } 6342 6343 @mixin ck-dir rtl { 6344 margin-left: 0; 6345 6346 &:last-of-type { 6347 border-right: 1px solid var(--ck-color-base-border); 6348 } 6349 } 6350 } 6351 } 6352} 6353`],sourceRoot:""}]);const w=f},8107:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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>
6353.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:[`/* 6354 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6355 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6356 */ 6357 6358@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6359 6360.ck.ck-search { 6361 & > .ck-labeled-field-view { 6362 & > .ck-labeled-field-view__input-wrapper > .ck-icon { 6363 position: absolute; 6364 top: 50%; 6365 transform: translateY(-50%); 6366 6367 @mixin ck-dir ltr { 6368 left: var(--ck-spacing-medium); 6369 } 6370 6371 @mixin ck-dir rtl { 6372 right: var(--ck-spacing-medium); 6373 } 6374 } 6375 6376 & .ck-search__reset { 6377 position: absolute; 6378 top: 50%; 6379 transform: translateY(-50%); 6380 } 6381 } 6382 6383 & > .ck-search__results { 6384 & > .ck-search__info { 6385 & > span:first-child { 6386 display: block; 6387 } 6388 6389 /* Hide the filtered view when nothing was found */ 6390 &:not(.ck-hidden) ~ * { 6391 display: none; 6392 } 6393 } 6394 } 6395} 6396`,`/* 6397 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6398 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6399 */ 6400 6401@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6402 6403:root { 6404 --ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium)); 6405} 6406 6407.ck.ck-search { 6408 & > .ck-labeled-field-view { 6409 & .ck-input { 6410 width: 100%; 6411 } 6412 6413 &.ck-search__query_with-icon { 6414 --ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing); 6415 6416 & > .ck-labeled-field-view__input-wrapper > .ck-icon { 6417 opacity: .5; 6418 pointer-events: none; 6419 } 6420 6421 & .ck-input { 6422 width: 100%; 6423 6424 @mixin ck-dir ltr { 6425 padding-left: var(--ck-search-field-view-horizontal-spacing); 6426 } 6427 6428 @mixin ck-dir rtl { 6429 &:not(.ck-input-text_empty) { 6430 padding-left: var(--ck-search-field-view-horizontal-spacing); 6431 } 6432 } 6433 } 6434 } 6435 6436 &.ck-search__query_with-reset { 6437 --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing); 6438 6439 &.ck-labeled-field-view_empty { 6440 --ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium); 6441 } 6442 6443 & .ck-search__reset { 6444 min-width: auto; 6445 min-height: auto; 6446 6447 background: none; 6448 opacity: .5; 6449 padding: 0; 6450 6451 @mixin ck-dir ltr { 6452 right: var(--ck-spacing-medium); 6453 } 6454 6455 @mixin ck-dir rtl { 6456 left: var(--ck-spacing-medium); 6457 } 6458 6459 &:hover { 6460 opacity: 1; 6461 } 6462 } 6463 6464 & .ck-input { 6465 width: 100%; 6466 6467 @mixin ck-dir ltr { 6468 &:not(.ck-input-text_empty) { 6469 padding-right: var(--ck-search-field-view-horizontal-spacing); 6470 } 6471 } 6472 6473 @mixin ck-dir rtl { 6474 padding-right: var(--ck-search-field-view-horizontal-spacing); 6475 } 6476 } 6477 } 6478 } 6479 6480 & > .ck-search__results { 6481 min-width: 100%; 6482 6483 & > .ck-search__info { 6484 width: 100%; 6485 padding: var(--ck-spacing-medium) var(--ck-spacing-large); 6486 6487 & * { 6488 white-space: normal; 6489 } 6490 6491 & > span:first-child { 6492 font-weight: bold; 6493 } 6494 6495 & > span:last-child { 6496 margin-top: var(--ck-spacing-medium); 6497 } 6498 } 6499 } 6500} 6501 6502`],sourceRoot:""}]);const w=f},109:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite;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 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,
6502CCjBA,MACC,8BACD,CAEA,yBAGC,qCAAsC,CADtC,qCAAsC,CADtC,oCAOD,CAHC,uCALD,yBAME,qBAEF,CADC,CAGD,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCAA6B,CAH7B,qCAAsC,CADtC,oCAKD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:[`/* 6503 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6504 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6505 */ 6506 6507:root { 6508 --ck-toolbar-spinner-size: 18px; 6509} 6510 6511.ck.ck-spinner-container { 6512 display: block; 6513 position: relative; 6514} 6515 6516.ck.ck-spinner { 6517 position: absolute; 6518 top: 50%; 6519 left: 0; 6520 right: 0; 6521 margin: 0 auto; 6522 transform: translateY(-50%); 6523 z-index: 1; 6524} 6525`,`/* 6526 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6527 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6528 */ 6529 6530:root { 6531 --ck-toolbar-spinner-size: 18px; 6532} 6533 6534.ck.ck-spinner-container { 6535 width: var(--ck-toolbar-spinner-size); 6536 height: var(--ck-toolbar-spinner-size); 6537 animation: 1.5s infinite rotate linear; 6538 6539 @media (prefers-reduced-motion: reduce) { 6540 animation-duration: 3s; 6541 } 6542} 6543 6544.ck.ck-spinner { 6545 width: var(--ck-toolbar-spinner-size); 6546 height: var(--ck-toolbar-spinner-size); 6547 border-radius: 50%; 6548 border: 2px solid var(--ck-color-text); 6549 border-top-color: transparent; 6550} 6551 6552@keyframes rotate { 6553 to { 6554 transform: rotate(360deg) 6555 } 6556} 6557`],sourceRoot:""}]);const w=f},1671:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 6558 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6559 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6560 */ 6561 6562/* 6563 * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows. 6564 * This bug is especially visible when rows=1. 6565 */ 6566.ck-textarea { 6567 overflow-x: hidden 6568} 6569`],sourceRoot:""}]);const w=f},2710:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 6570 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6571 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6572 */ 6573 6574.ck.ck-block-toolbar-button { 6575 position: absolute; 6576 z-index: var(--ck-z-default); 6577} 6578`,`/* 6579 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6580 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6581 */ 6582 6583:root { 6584 --ck-color-block-toolbar-button: var(--ck-color-text); 6585 --ck-block-toolbar-button-size: var(--ck-font-size-normal); 6586} 6587
6588.ck.ck-block-toolbar-button { 6589 color: var(--ck-color-block-toolbar-button); 6590 font-size: var(--ck-block-toolbar-size); 6591} 6592`],sourceRoot:""}]);const w=f},9677:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../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
6592D,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:[`/* 6593 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6594 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6595 */ 6596 6597@import "../../mixins/_unselectable.css"; 6598 6599.ck.ck-toolbar { 6600 @mixin ck-unselectable; 6601 6602 display: flex; 6603 flex-flow: row nowrap; 6604 align-items: center; 6605 6606 & > .ck-toolbar__items { 6607 display: flex; 6608 flex-flow: row wrap; 6609 align-items: center; 6610 flex-grow: 1; 6611 6612 } 6613 6614 & .ck.ck-toolbar__separator { 6615 display: inline-block; 6616 6617 /* 6618 * A leading or trailing separator makes no sense (separates from nothing on one side). 6619 * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and 6620 * moved to another toolbar in the dropdown. 6621 */ 6622 &:first-child, 6623 &:last-child { 6624 display: none; 6625 } 6626 } 6627 6628 & .ck-toolbar__line-break { 6629 flex-basis: 100%; 6630 } 6631 6632 &.ck-toolbar_grouping > .ck-toolbar__items { 6633 flex-wrap: nowrap; 6634 } 6635 6636 &.ck-toolbar_vertical > .ck-toolbar__items { 6637 flex-direction: column; 6638 } 6639 6640 &.ck-toolbar_floating > .ck-toolbar__items { 6641 flex-wrap: nowrap; 6642 } 6643 6644 & > .ck.ck-toolbar__grouped-dropdown { 6645 & > .ck-dropdown__button .ck-dropdown__arrow { 6646 display: none; 6647 } 6648 } 6649} 6650`,`/* 6651 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6652 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6653 */ 6654 6655/** 6656 * Makes element unselectable. 6657 */ 6658@define-mixin ck-unselectable { 6659 -moz-user-select: none; 6660 -webkit-user-select: none; 6661 -ms-user-select: none; 6662 user-select: none 6663} 6664`,`/* 6665 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6666 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6667 */ 6668 6669@import "../../../mixins/_rounded.css"; 6670@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6671 6672.ck.ck-toolbar { 6673 @mixin ck-rounded-corners; 6674 6675 background: var(--ck-color-toolbar-background); 6676 padding: 0 var(--ck-spacing-small); 6677 border: 1px solid var(--ck-color-toolbar-border); 6678 6679 & .ck.ck-toolbar__separator { 6680 align-self: stretch; 6681 width: 1px; 6682 min-width: 1px; 6683 background: var(--ck-color-toolbar-border); 6684 6685 /* 6686 * These margins make the separators look better in balloon toolbars (when aligned with the "tip"). 6687 * See https://github.com/ckeditor/ckeditor5/issues/7493. 6688 */ 6689 margin-top: var(--ck-spacing-small); 6690 margin-bottom: var(--ck-spacing-small); 6691 } 6692 6693 & .ck-toolbar__line-break { 6694 height: 0; 6695 } 6696 6697 & > .ck-toolbar__items { 6698 & > *:not(.ck-toolbar__line-break) { 6699 /* (#11) Separate toolbar items. */ 6700 margin-right: var(--ck-spacing-small); 6701 } 6702 6703 /* Don't display a separator after an empty items container, for instance, 6704 when all items were grouped */ 6705 &:empty + .ck.ck-toolbar__separator { 6706 display: none; 6707 } 6708 } 6709 6710 & > .ck-toolbar__items > *:not(.ck-toolbar__line-break), 6711 & > .ck.ck-toolbar__grouped-dropdown { 6712 /* Make sure items wrapped to the next line have v-spacing */ 6713 margin-top: var(--ck-spacing-small); 6714 margin-bottom: var(--ck-spacing-small); 6715 } 6716 6717 &.ck-toolbar_vertical { 6718 /* Items in a vertical toolbar span the entire width. */ 6719 padding: 0; 6720 6721 /* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */ 6722 & > .ck-toolbar__items > .ck { 6723 /* Items in a vertical toolbar should span the horizontal space. */ 6724 width: 100%; 6725 6726 /* Items in a vertical toolbar should have no margin. */ 6727 margin: 0; 6728 6729 /* Items in a vertical toolbar span the entire width so rounded corners are pointless. */ 6730 border-radius: 0; 6731 } 6732 } 6733 6734 &.ck-toolbar_compact { 6735 /* No spacing around items. */ 6736 padding: 0; 6737 6738 & > .ck-toolbar__items > * { 6739 /* Compact toolbar items have no spacing between them. */ 6740 margin: 0; 6741 6742 /* "Middle" children should have no rounded corners. */ 6743 &:not(:first-child):not(:last-child) { 6744 border-radius: 0; 6745 } 6746 } 6747 } 6748 6749 & > .ck.ck-toolbar__grouped-dropdown { 6750 /* 6751 * Dropdown button has asymmetric padding to fit the arrow. 6752 * This button has no arrow so let's revert that padding back to normal. 6753 */ 6754 & > .ck.ck-button.ck-dropdown__button { 6755 padding-left: var(--ck-spacing-tiny); 6756 } 6757 } 6758 6759 /* A drop-down containing the nested toolbar with configured items. */ 6760 & .ck-toolbar__nested-toolbar-dropdown { 6761 /* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */ 6762 & > .ck-dropdown__panel { 6763 min-width: auto; 6764 } 6765 6766 & > .ck-button > .ck-button__label { 6767 max-width: 7em; 6768 width: auto; 6769 } 6770 } 6771 6772 &:focus { 6773 outline: none; 6774 } 6775 6776 @nest .ck-toolbar-container & { 6777 border: 0; 6778 } 6779} 6780 6781/* stylelint-disable */ 6782 6783/* 6784 * Styles for RTL toolbars. 6785 *
6786 * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir" 6787 * because its parent is not controlled by the editor framework. 6788 */ 6789[dir="rtl"] .ck.ck-toolbar, 6790.ck.ck-toolbar[dir="rtl"] { 6791 & > .ck-toolbar__items > .ck { 6792 margin-right: 0; 6793 } 6794 6795 &:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck { 6796 /* (#11) Separate toolbar items. */ 6797 margin-left: var(--ck-spacing-small); 6798 } 6799 6800 & > .ck-toolbar__items > .ck:last-child { 6801 margin-left: 0; 6802 } 6803 6804 &.ck-toolbar_compact > .ck-toolbar__items > .ck { 6805 /* No rounded corners on the right side of the first child. */ 6806 &:first-child { 6807 border-top-left-radius: 0; 6808 border-bottom-left-radius: 0; 6809 } 6810 6811 /* No rounded corners on the left side of the last child. */ 6812 &:last-child { 6813 border-top-right-radius: 0; 6814 border-bottom-right-radius: 0; 6815 } 6816 } 6817 6818 /* Separate the the separator form the grouping dropdown when some items are grouped. */ 6819 & > .ck.ck-toolbar__separator { 6820 margin-left: var(--ck-spacing-small); 6821 } 6822 6823 /* Some spacing between the items and the separator before the grouped items dropdown. */ 6824 &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) { 6825 margin-left: var(--ck-spacing-small); 6826 } 6827} 6828 6829/* 6830 * Styles for LTR toolbars. 6831 * 6832 * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir" 6833 * because its parent is not controlled by the editor framework. 6834 */ 6835[dir="ltr"] .ck.ck-toolbar, 6836.ck.ck-toolbar[dir="ltr"] { 6837 & > .ck-toolbar__items > .ck:last-child { 6838 margin-right: 0; 6839 } 6840 6841 &.ck-toolbar_compact > .ck-toolbar__items > .ck { 6842 /* No rounded corners on the right side of the first child. */ 6843 &:first-child { 6844 border-top-right-radius: 0; 6845 border-bottom-right-radius: 0; 6846 } 6847 6848 /* No rounded corners on the left side of the last child. */ 6849 &:last-child { 6850 border-top-left-radius: 0; 6851 border-bottom-left-radius: 0; 6852 } 6853 } 6854 6855 /* Separate the the separator form the grouping dropdown when some items are grouped. */ 6856 & > .ck.ck-toolbar__separator { 6857 margin-right: var(--ck-spacing-small); 6858 } 6859 6860 /* Some spacing between the items and the separator before the grouped items dropdown. */ 6861 &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) { 6862 margin-right: var(--ck-spacing-small); 6863 } 6864} 6865 6866/* stylelint-enable */ 6867`,`/* 6868 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6869 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6870 */ 6871 6872/** 6873 * Implements rounded corner interface for .ck-rounded-corners class. 6874 * 6875 * @see $ck-border-radius 6876 */ 6877@define-mixin ck-rounded-corners { 6878 border-radius: 0; 6879 6880 @nest .ck-rounded-corners &, 6881 &.ck-rounded-corners { 6882 border-radius: var(--ck-border-radius); 6883 @mixin-content; 6884 } 6885} 6886`],sourceRoot:""}]);const w=f},9205:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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);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{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-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,CAE/D,kCFJD,CEMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CAErB,eAAgB,CADhB,wCAAyC,CAFzC,wBAID,CArBD,gCAwBC,eAMD,CAHC,uCACC,YACD",sourcesContent:[`/* 6887 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6888 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6889 */ 6890 6891@import "../../mixins/_unselectable.css"; 6892 6893.ck.ck-balloon-panel.ck-tooltip { 6894 @mixin ck-unselectable; 6895 6896 z-index: calc( var(--ck-z-dialog) + 100 ); 6897} 6898`,`/* 6899 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6900 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6901 */ 6902 6903/** 6904 * Makes element unselectable. 6905 */ 6906@define-mixin ck-unselectable { 6907 -moz-user-select: none; 6908 -webkit-user-select: none; 6909 -ms-user-select: none; 6910 user-select: none 6911} 6912`,`/* 6913 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6914 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6915 */ 6916 6917@import "../../../mixins/_rounded.css"; 6918 6919.ck.ck-balloon-panel.ck-tooltip { 6920 --ck-balloon-border-width: 0px; 6921 --ck-balloon-arrow-offset: 0px; 6922 --ck-balloon-arrow-half-width: 4px; 6923 --ck-balloon-arrow-height: 4px; 6924 --ck-tooltip-text-padding: 4px; 6925 --ck-color-panel-background: var(--ck-color-tooltip-background); 6926 6927 padding: 0 var(--ck-spacing-medium); 6928 6929 & .ck-tooltip__text { 6930 font-size: .9em; 6931 line-height: 1.5; 6932 color: var(--ck-color-tooltip-text); 6933 } 6934 6935 &.ck-tooltip_multi-line .ck-tooltip__text { 6936 white-space: break-spaces; 6937 display: inline-block; 6938 padding: var(--ck-tooltip-text-padding) 0; 6939 max-width: 200px; 6940 } 6941 6942 /* Reset balloon panel styles */ 6943 box-shadow: none; 6944 6945 /* Hide the default shadow of the .ck-balloon-panel tip */ 6946 &::before { 6947 display: none; 6948 } 6949} 6950`],sourceRoot:""}]);const w=f},7676:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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}
6950.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,
6950CAIzD,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:[`/* 6951 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6952 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6953 */ 6954 6955/** 6956 * A class which hides an element in DOM. 6957 */ 6958.ck-hidden { 6959 /* Override selector specificity. Otherwise, all elements with some display 6960 style defined will override this one, which is not a desired result. */ 6961 display: none !important; 6962} 6963`,`/* 6964 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6965 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6966 */ 6967 6968:root { 6969 --ck-z-default: 1; 6970 --ck-z-panel: calc( var(--ck-z-default) + 999 ); 6971 --ck-z-dialog: 9999; 6972} 6973`,`/* 6974 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6975 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6976 */ 6977 6978/** 6979 * A class that disables all transitions of the element and its children. 6980 */ 6981.ck-transitions-disabled, 6982.ck-transitions-disabled * { 6983 transition: none !important; 6984} 6985`,`/* 6986 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6987 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6988 */ 6989 6990:root { 6991 --ck-powered-by-line-height: 10px; 6992 --ck-powered-by-padding-vertical: 2px; 6993 --ck-powered-by-padding-horizontal: 4px; 6994 --ck-powered-by-text-color: hsl(0, 0%, 31%); 6995 --ck-powered-by-border-radius: var(--ck-border-radius); 6996 --ck-powered-by-background: hsl(0, 0%, 100%); 6997 --ck-powered-by-border-color: var(--ck-color-focus-border); 6998} 6999 7000.ck.ck-balloon-panel.ck-powered-by-balloon { 7001 --ck-border-radius: var(--ck-powered-by-border-radius); 7002 7003 box-shadow: none; 7004 background: var(--ck-powered-by-background); 7005 min-height: unset; 7006 z-index: calc( var(--ck-z-panel) - 1 ); 7007 7008 & .ck.ck-powered-by { 7009 line-height: var(--ck-powered-by-line-height); 7010 7011 & a { 7012 cursor: pointer; 7013 display: flex; 7014 align-items: center; 7015 opacity: .66; 7016 filter: grayscale(80%); 7017 line-height: var(--ck-powered-by-line-height); 7018 padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal); 7019 } 7020 7021 & .ck-powered-by__label { 7022 font-size: 7.5px; 7023 letter-spacing: -.2px; 7024 padding-left: 2px; 7025 text-transform: uppercase; 7026 font-weight: bold; 7027 margin-right: 4px; 7028 cursor: pointer; 7029 line-height: normal; 7030 color: var(--ck-powered-by-text-color); 7031 7032 } 7033 7034 & .ck-icon { 7035 display: block; 7036 cursor: pointer; 7037 } 7038 7039 &:hover { 7040 & a { 7041 filter: grayscale(0%); 7042 opacity: 1; 7043 } 7044 } 7045 } 7046 7047 &[class*="position_inside"] { 7048 border-color: transparent; 7049 } 7050 7051 &[class*="position_border"] { 7052 border: var(--ck-focus-ring); 7053 border-color: var(--ck-powered-by-border-color); 7054 } 7055} 7056 7057`,`/* 7058 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7059 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7060 */ 7061 7062:root { 7063 --ck-color-base-foreground: hsl(0, 0%, 98%); 7064 --ck-color-base-background: hsl(0, 0%, 100%); 7065 --ck-color-base-border: hsl(220, 6%, 81%); 7066 --ck-color-base-action: hsl(104, 50.2%, 42.5%); 7067 --ck-color-base-focus: hsl(209, 92%, 70%); 7068 --ck-color-base-text: hsl(0, 0%, 20%); 7069 --ck-color-base-active: hsl(218.1, 100%, 58%); 7070 --ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);
7071 --ck-color-base-error: hsl(15, 100%, 43%); 7072 7073 /* -- Generic colors ------------------------------------------------------------------------ */ 7074 7075 --ck-color-focus-border-coordinates: 218, 81.8%, 56.9%; 7076 --ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates)); 7077 --ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%); 7078 --ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3); 7079 --ck-color-focus-error-shadow: hsla(9,100%,56%,.3); 7080 --ck-color-text: var(--ck-color-base-text); 7081 --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15); 7082 --ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2); 7083 --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1); 7084 7085 /* -- Buttons ------------------------------------------------------------------------------- */ 7086 7087 --ck-color-button-default-background: transparent; 7088 --ck-color-button-default-hover-background: hsl(0, 0%, 94.1%); 7089 --ck-color-button-default-active-background: hsl(0, 0%, 94.1%); 7090 --ck-color-button-default-disabled-background: transparent; 7091 7092 --ck-color-button-on-background: hsl(212, 100%, 97.1%); 7093 --ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%); 7094 --ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%); 7095 --ck-color-button-on-disabled-background: hsl(211, 15%, 95%); 7096 --ck-color-button-on-color: hsl(218.1, 100%, 58%); 7097 7098 7099 --ck-color-button-action-background: var(--ck-color-base-action); 7100 --ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%); 7101 --ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%); 7102 --ck-color-button-action-disabled-background: hsl(104, 44%, 58%); 7103 --ck-color-button-action-text: var(--ck-color-base-background); 7104 7105 --ck-color-button-save: hsl(120, 100%, 27%); 7106 --ck-color-button-cancel: hsl(15, 100%, 43%); 7107 7108 --ck-color-switch-button-off-background: hsl(0, 0%, 57.6%); 7109 --ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%); 7110 --ck-color-switch-button-on-background: var(--ck-color-button-action-background); 7111 --ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%); 7112 --ck-color-switch-button-inner-background: var(--ck-color-base-background); 7113 --ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1); 7114 7115 /* -- Dropdown ------------------------------------------------------------------------------ */ 7116 7117 --ck-color-dropdown-panel-background: var(--ck-color-base-background); 7118 --ck-color-dropdown-panel-border: var(--ck-color-base-border); 7119 7120 /* -- Dialog -------------------------------------------------------------------------------- */ 7121 7122 --ck-color-dialog-background: var(--ck-custom-background); 7123 --ck-color-dialog-form-header-border: var(--ck-custom-border); 7124 7125 /* -- Input --------------------------------------------------------------------------------- */ 7126 7127 --ck-color-input-background: var(--ck-color-base-background); 7128 --ck-color-input-border: var(--ck-color-base-border); 7129 --ck-color-input-error-border: var(--ck-color-base-error); 7130 --ck-color-input-text: var(--ck-color-base-text); 7131 --ck-color-input-disabled-background: hsl(0, 0%, 95%); 7132 --ck-color-input-disabled-border: var(--ck-color-base-border); 7133 --ck-color-input-disabled-text: hsl(0, 0%, 46%); 7134 7135 /* -- List ---------------------------------------------------------------------------------- */ 7136 7137 --ck-color-list-background: var(--ck-color-base-background); 7138 --ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background); 7139 --ck-color-list-button-on-background: var(--ck-color-button-on-color); 7140 --ck-color-list-button-on-background-focus: var(--ck-color-button-on-color); 7141 --ck-color-list-button-on-text: var(--ck-color-base-background); 7142 7143 /* -- Panel --------------------------------------------------------------------------------- */ 7144 7145 --ck-color-panel-background: var(--ck-color-base-background); 7146 --ck-color-panel-border: var(--ck-color-base-border); 7147 7148 /* -- Toolbar ------------------------------------------------------------------------------- */ 7149 7150 --ck-color-toolbar-background: var(--ck-color-base-background); 7151 --ck-color-toolbar-border: var(--ck-color-base-border); 7152 7153 /* -- Tooltip ------------------------------------------------------------------------------- */ 7154 7155 --ck-color-tooltip-background: var(--ck-color-base-text); 7156 --ck-color-tooltip-text: var(--ck-color-base-background); 7157 7158 /* -- Engine -------------------------------------------------------------------------------- */ 7159 7160 --ck-color-engine-placeholder-text: hsl(0, 0%, 44%); 7161 7162 /* -- Upload -------------------------------------------------------------------------------- */ 7163 7164 --ck-color-upload-bar-background: hsl(209, 92%, 70%); 7165 7166 /* -- Link -------------------------------------------------------------------------------- */ 7167 7168 --ck-color-link-default: hsl(240, 100%, 47%); 7169 --ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1); 7170 --ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3); 7171 7172 /* -- Search result highlight ---------------------------------------------------------------- */ 7173 7174 --ck-color-highlight-background: hsl(60, 100%, 50%); 7175 7176 /* -- Generic colors ------------------------------------------------------------------------- */ 7177 7178 --ck-color-light-red: hsl(0, 100%, 90%); 7179} 7180`,`/* 7181 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7182 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7183 */ 7184 7185:root { 7186 /** 7187 * An opacity value of disabled UI item. 7188 */ 7189 --ck-disabled-opacity: .5; 7190} 7191`,`/* 7192 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7193 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7194 */ 7195 7196:root { 7197 /** 7198 * The geometry of the of focused element's outer shadow. 7199 */ 7200 --ck-focus-outer-shadow-geometry: 0 0 0 3px; 7201 7202 /** 7203 * A visual style of focused element's outer shadow. 7204 */ 7205 --ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow); 7206 7207 /** 7208 * A visual style of focused element's outer shadow (when disabled). 7209 */ 7210 --ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow); 7211 7212 /** 7213 * A visual style of focused element's outer shadow (when has errors). 7214 */ 7215 --ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow); 7216 7217 /** 7218 * A visual style of focused element's border or outline. 7219 */ 7220 --ck-focus-ring: 1px solid var(--ck-color-focus-border); 7221} 7222`,`/* 7223 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7224 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7225 */ 7226 7227:root { 7228 --ck-font-size-base: 13px; 7229 --ck-line-height-base: 1.84615; 7230 --ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif; 7231 7232 --ck-font-size-tiny: 0.7em; 7233 --ck-font-size-small: 0.75em; 7234 --ck-font-size-normal: 1em; 7235 --ck-font-size-big: 1.4em; 7236 --ck-font-size-large: 1.8em; 7237} 7238`,`/* 7239 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7240 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7241 */ 7242 7243:root { 7244 /* This is super-important. This is **manually** adjusted so a button without an icon 7245 is never smaller than a button with icon, additionally making sure that text-less buttons 7246 are perfect squares. The value is also shared by other components which should stay "in-line" 7247 with buttons. */ 7248 --ck-ui-component-min-height: 2.3em; 7249} 7250 7251/** 7252 * Resets an element, ignoring its children. 7253 */ 7254.ck.ck-reset, 7255.ck.ck-reset_all, 7256.ck-reset_all *:not(.ck-reset_all-excluded *) { 7257 box-sizing: border-box; 7258 width: auto; 7259 height: auto; 7260 position: static; 7261
7262 /* Do not include inheritable rules here. */ 7263 margin: 0; 7264 padding: 0; 7265 border: 0; 7266 background: transparent; 7267 text-decoration: none; 7268 vertical-align: middle; 7269 transition: none; 7270 7271 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */ 7272 word-wrap: break-word; 7273} 7274 7275/** 7276 * Resets an element AND its children. 7277 */ 7278.ck.ck-reset_all, 7279.ck-reset_all *:not(.ck-reset_all-excluded *) { 7280 /* These are rule inherited by all children elements. */ 7281 border-collapse: collapse; 7282 font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face); 7283 color: var(--ck-color-text); 7284 text-align: left; 7285 white-space: nowrap; 7286 cursor: auto; 7287 float: none; 7288} 7289 7290.ck-reset_all { 7291 & .ck-rtl *:not(.ck-reset_all-excluded *) { 7292 text-align: right; 7293 } 7294 7295 & iframe:not(.ck-reset_all-excluded *) { 7296 /* For IE */ 7297 vertical-align: inherit; 7298 } 7299 7300 & textarea:not(.ck-reset_all-excluded *) { 7301 white-space: pre-wrap; 7302 } 7303 7304 & textarea:not(.ck-reset_all-excluded *), 7305 & input[type="text"]:not(.ck-reset_all-excluded *), 7306 & input[type="password"]:not(.ck-reset_all-excluded *) { 7307 cursor: text; 7308 } 7309 7310 & textarea[disabled]:not(.ck-reset_all-excluded *), 7311 & input[type="text"][disabled]:not(.ck-reset_all-excluded *), 7312 & input[type="password"][disabled]:not(.ck-reset_all-excluded *) { 7313 cursor: default; 7314 } 7315 7316 & fieldset:not(.ck-reset_all-excluded *) { 7317 padding: 10px; 7318 border: 2px groove hsl(255, 7%, 88%); 7319 } 7320 7321 & button:not(.ck-reset_all-excluded *)::-moz-focus-inner { 7322 /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */ 7323 padding: 0; 7324 border: 0 7325 } 7326} 7327 7328/** 7329 * Default UI rules for RTL languages. 7330 */ 7331.ck[dir="rtl"], 7332.ck[dir="rtl"] .ck { 7333 text-align: right; 7334} 7335`,`/* 7336 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7337 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7338 */ 7339 7340/** 7341 * Default border-radius value. 7342 */ 7343:root{ 7344 --ck-border-radius: 2px; 7345} 7346`,`/* 7347 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7348 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7349 */ 7350 7351:root { 7352 /** 7353 * A visual style of element's inner shadow (i.e. input). 7354 */ 7355 --ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset; 7356 7357 /** 7358 * A visual style of element's drop shadow (i.e. panel). 7359 */ 7360 --ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop); 7361 7362 /** 7363 * A visual style of element's active shadow (i.e. comment or suggestion). 7364 */ 7365 --ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active); 7366} 7367`,`/* 7368 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7369 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7370 */ 7371 7372:root { 7373 --ck-spacing-unit: 0.6em; 7374 --ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5); 7375 --ck-spacing-standard: var(--ck-spacing-unit); 7376 --ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8); 7377 --ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5); 7378 --ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3); 7379 --ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16); 7380} 7381`],sourceRoot:""}]);const w=f},695:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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%;
7381top: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{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}@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-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/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.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
7381D,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,4BAYD,CARC,yGCnCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YD2CA,CGvCA,4BACC,yGHoCC,iEGlCD,CACD,CHuCA,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:[`/* 7382 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7383 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7384 */ 7385 7386:root { 7387 --ck-color-resizer: var(--ck-color-focus-border); 7388 --ck-color-resizer-tooltip-background: hsl(0, 0%, 15%); 7389 --ck-color-resizer-tooltip-text: hsl(0, 0%, 95%); 7390 7391 --ck-resizer-border-radius: var(--ck-border-radius); 7392 --ck-resizer-tooltip-offset: 10px; 7393 --ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px); 7394} 7395 7396.ck .ck-widget { 7397 /* This is neccessary for type around UI to be positioned properly. */ 7398 position: relative; 7399} 7400 7401.ck .ck-widget.ck-widget_with-selection-handle { 7402 /* Make the widget wrapper a relative positioning container for the drag handle. */ 7403 position: relative; 7404 7405 & .ck-widget__selection-handle { 7406 position: absolute; 7407 7408 & .ck-icon { 7409 /* Make sure the icon in not a subject to font-size or line-height to avoid 7410 unnecessary spacing around it. */ 7411 display: block; 7412 } 7413 } 7414 7415 /* Show the selection handle on mouse hover over the widget, but not for nested widgets. */ 7416 &:hover > .ck-widget__selection-handle { 7417 visibility: visible; 7418 } 7419 7420 /* Show the selection handle when the widget is selected, but not for nested widgets. */ 7421 &.ck-widget_selected > .ck-widget__selection-handle { 7422 visibility: visible; 7423 } 7424} 7425 7426.ck .ck-size-view { 7427 background: var(--ck-color-resizer-tooltip-background); 7428 color: var(--ck-color-resizer-tooltip-text); 7429 border: 1px solid var(--ck-color-resizer-tooltip-text); 7430 border-radius: var(--ck-resizer-border-radius); 7431 font-size: var(--ck-font-size-tiny); 7432 display: block; 7433 padding: 0 var(--ck-spacing-small); 7434 height: var(--ck-resizer-tooltip-height); 7435 line-height: var(--ck-resizer-tooltip-height); 7436 7437 &.ck-orientation-top-left, 7438 &.ck-orientation-top-right, 7439 &.ck-orientation-bottom-right, 7440 &.ck-orientation-bottom-left, 7441 &.ck-orientation-above-center { 7442 position: absolute; 7443 } 7444 7445 &.ck-orientation-top-left { 7446 top: var(--ck-resizer-tooltip-offset); 7447 left: var(--ck-resizer-tooltip-offset); 7448 } 7449 7450 &.ck-orientation-top-right { 7451 top: var(--ck-resizer-tooltip-offset); 7452 right: var(--ck-resizer-tooltip-offset); 7453 } 7454 7455 &.ck-orientation-bottom-right { 7456 bottom: var(--ck-resizer-tooltip-offset); 7457 right: var(--ck-resizer-tooltip-offset); 7458 } 7459 7460 &.ck-orientation-bottom-left { 7461 bottom: var(--ck-resizer-tooltip-offset); 7462 left: var(--ck-resizer-tooltip-offset); 7463 } 7464 7465 /* Class applied if the widget is too small to contain the size label */ 7466 &.ck-orientation-above-center { 7467 top: calc(var(--ck-resizer-tooltip-height) * -1); 7468 left: 50%; 7469 transform: translate(-50%); 7470 } 7471} 7472`,`/* 7473 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7474 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7475 */ 7476 7477@import "../mixins/_focus.css"; 7478@import "../mixins/_shadow.css"; 7479@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 7480 7481:root { 7482 --ck-widget-outline-thickness: 3px; 7483 --ck-widget-handler-icon-size: 16px; 7484 --ck-widget-handler-animation-duration: 200ms; 7485 --ck-widget-handler-animation-curve: ease; 7486 7487 --ck-color-widget-blurred-border: hsl(0, 0%, 87%); 7488 --ck-color-widget-hover-border: hsl(43, 100%, 62%); 7489 --ck-color-widget-editable-focus-background: var(--ck-color-base-background); 7490 --ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background); 7491} 7492 7493.ck .ck-widget { 7494 outline-width: var(--ck-widget-outline-thickness); 7495 outline-style: solid; 7496 outline-color: transparent; 7497 transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve); 7498 7499 @media (prefers-reduced-motion: reduce) { 7500 transition: none; 7501 } 7502 7503 &.ck-widget_selected, 7504 &.ck-widget_selected:hover { 7505 outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border); 7506 } 7507 7508 &:hover { 7509 outline-color: var(--ck-color-widget-hover-border); 7510 } 7511} 7512 7513.ck .ck-editor__nested-editable { 7514 border: 1px solid transparent; 7515 7516 /* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view. 7517 These styles show a different border for a blink of an eye, so \`:focus\` need to have same styles applied. */ 7518 &.ck-editor__nested-editable_focused, 7519 &:focus { 7520 @mixin ck-focus-ring;
7521 @mixin ck-box-shadow var(--ck-inner-shadow); 7522 @mixin ck-media-default-colors { 7523 background-color: var(--ck-color-widget-editable-focus-background); 7524 } 7525 } 7526} 7527 7528.ck .ck-widget.ck-widget_with-selection-handle { 7529 & .ck-widget__selection-handle { 7530 padding: 4px; 7531 box-sizing: border-box; 7532 7533 /* Background and opacity will be animated as the handler shows up or the widget gets selected. */ 7534 background-color: transparent; 7535 opacity: 0; 7536 7537 /* Transition: 7538 * background-color for the .ck-widget_selected state change, 7539 * visibility for hiding the handler, 7540 * opacity for the proper look of the icon when the handler disappears. */ 7541 transition: 7542 background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), 7543 visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), 7544 opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve); 7545 7546 /* Make only top corners round. */ 7547 border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0; 7548 7549 /* Place the drag handler outside the widget wrapper. */ 7550 transform: translateY(-100%); 7551 left: calc(0px - var(--ck-widget-outline-thickness)); 7552 top: 0; 7553 7554 @media (prefers-reduced-motion: reduce) { 7555 transition: none; 7556 } 7557 7558 & .ck-icon { 7559 /* Make sure the dimensions of the icon are independent of the fon-size of the content. */ 7560 width: var(--ck-widget-handler-icon-size); 7561 height: var(--ck-widget-handler-icon-size); 7562 color: var(--ck-color-widget-drag-handler-icon-color); 7563 7564 /* The "selected" part of the icon is invisible by default */ 7565 & .ck-icon__selected-indicator { 7566 opacity: 0; 7567 7568 /* Note: The animation is longer on purpose. Simply feels better. */ 7569 transition: opacity 300ms var(--ck-widget-handler-animation-curve); 7570 7571 @media (prefers-reduced-motion: reduce) { 7572 transition: none; 7573 } 7574 } 7575 } 7576 7577 /* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */ 7578 &:hover .ck-icon .ck-icon__selected-indicator { 7579 opacity: 1; 7580 } 7581 } 7582 7583 /* Show the selection handler on mouse hover over the widget, but not for nested widgets. */ 7584 &:hover > .ck-widget__selection-handle { 7585 opacity: 1; 7586 background-color: var(--ck-color-widget-hover-border); 7587 } 7588 7589 /* Show the selection handler when the widget is selected, but not for nested widgets. */ 7590 &.ck-widget_selected, 7591 &.ck-widget_selected:hover { 7592 & > .ck-widget__selection-handle { 7593 opacity: 1; 7594 background-color: var(--ck-color-focus-border); 7595 7596 /* When the widget is selected, notify the user using the proper look of the icon. */ 7597 & .ck-icon .ck-icon__selected-indicator { 7598 opacity: 1; 7599 } 7600 } 7601 } 7602} 7603 7604/* In a RTL environment, align the selection handler to the right side of the widget */ 7605/* stylelint-disable-next-line no-descending-specificity */ 7606.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle { 7607 left: auto; 7608 right: calc(0px - var(--ck-widget-outline-thickness)); 7609} 7610 7611/* https://github.com/ckeditor/ckeditor5/issues/6415 */ 7612.ck.ck-editor__editable.ck-read-only .ck-widget { 7613 /* Prevent the :hover outline from showing up because of the used outline-color transition. */ 7614 transition: none; 7615 7616 &:not(.ck-widget_selected) { 7617 /* Disable visual effects of hover/active widget when CKEditor is in readOnly mode. 7618 * See: https://github.com/ckeditor/ckeditor5/issues/1261 7619 * 7620 * Leave the unit because this custom property is used in calc() by other features. 7621 * See: https://github.com/ckeditor/ckeditor5/issues/6775 7622 */ 7623 --ck-widget-outline-thickness: 0px; 7624 } 7625 7626 &.ck-widget_with-selection-handle { 7627 & .ck-widget__selection-handle, 7628 & .ck-widget__selection-handle:hover { 7629 background: var(--ck-color-widget-blurred-border); 7630 } 7631 } 7632} 7633 7634/* Style the widget when it's selected but the editable it belongs to lost focus. */ 7635/* stylelint-disable-next-line no-descending-specificity */ 7636.ck.ck-editor__editable.ck-blurred .ck-widget { 7637 &.ck-widget_selected, 7638 &.ck-widget_selected:hover { 7639 outline-color: var(--ck-color-widget-blurred-border); 7640 7641 &.ck-widget_with-selection-handle { 7642 & > .ck-widget__selection-handle, 7643 & > .ck-widget__selection-handle:hover { 7644 background: var(--ck-color-widget-blurred-border); 7645 } 7646 } 7647 } 7648} 7649 7650.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child, 7651.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {
7652 /* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable. 7653 In fact, anything with overflow: hidden. 7654 https://github.com/ckeditor/ckeditor5-block-quote/issues/28 7655 https://github.com/ckeditor/ckeditor5-widget/issues/44 7656 https://github.com/ckeditor/ckeditor5-widget/issues/66 */ 7657 margin-top: calc(1em + var(--ck-widget-handler-icon-size)); 7658} 7659`,`/* 7660 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7661 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7662 */ 7663 7664/** 7665 * A visual style of focused element's border. 7666 */ 7667@define-mixin ck-focus-ring { 7668 /* Disable native outline. */ 7669 outline: none; 7670 border: var(--ck-focus-ring) 7671} 7672`,`/* 7673 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7674 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7675 */ 7676 7677/** 7678 * A helper to combine multiple shadows. 7679 */ 7680@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 7681 box-shadow: $shadowA, $shadowB; 7682} 7683 7684/** 7685 * Gives an element a drop shadow so it looks like a floating panel. 7686 */ 7687@define-mixin ck-drop-shadow { 7688 @mixin ck-box-shadow var(--ck-drop-shadow); 7689} 7690`,`/* 7691 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7692 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7693 */ 7694 7695@define-mixin ck-media-forced-colors { 7696 @media (forced-colors: active) { 7697 & { 7698 @mixin-content; 7699 } 7700 } 7701} 7702 7703@define-mixin ck-media-default-colors { 7704 @media (forced-colors: none) { 7705 & { 7706 @mixin-content; 7707 } 7708 } 7709} 7710`],sourceRoot:""}]);const w=f},4095:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D.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:[`/* 7711 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7712 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7713 */ 7714 7715.ck .ck-widget_with-resizer { 7716 /* Make the widget wrapper a relative positioning container for the drag handle. */ 7717 position: relative; 7718} 7719 7720.ck .ck-widget__resizer { 7721 display: none; 7722 position: absolute; 7723 7724 /* The wrapper itself should not interfere with the pointer device, only the handles should. */ 7725 pointer-events: none; 7726 7727 left: 0; 7728 top: 0; 7729} 7730 7731.ck-focused .ck-widget_with-resizer.ck-widget_selected { 7732 & > .ck-widget__resizer { 7733 display: block; 7734 } 7735} 7736 7737.ck .ck-widget__resizer__handle { 7738 position: absolute; 7739 7740 /* Resizers are the only UI elements that should interfere with a pointer device. */ 7741 pointer-events: all; 7742 7743 &.ck-widget__resizer__handle-top-left, 7744 &.ck-widget__resizer__handle-bottom-right { 7745 cursor: nwse-resize; 7746 } 7747 7748 &.ck-widget__resizer__handle-top-right, 7749 &.ck-widget__resizer__handle-bottom-left { 7750 cursor: nesw-resize; 7751 } 7752} 7753`,`/* 7754 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7755 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7756 */ 7757 7758:root { 7759 --ck-resizer-size: 10px; 7760 7761 /* Set the resizer with a 50% offset. */ 7762 --ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px); 7763 --ck-resizer-border-width: 1px; 7764} 7765 7766.ck .ck-widget__resizer { 7767 outline: 1px solid var(--ck-color-resizer); 7768} 7769 7770.ck .ck-widget__resizer__handle { 7771 width: var(--ck-resizer-size); 7772 height: var(--ck-resizer-size); 7773 background: var(--ck-color-focus-border); 7774 border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%); 7775 border-radius: var(--ck-resizer-border-radius); 7776 7777 &.ck-widget__resizer__handle-top-left { 7778 top: var(--ck-resizer-offset); 7779 left: var(--ck-resizer-offset); 7780 } 7781 7782 &.ck-widget__resizer__handle-top-right { 7783 top: var(--ck-resizer-offset); 7784 right: var(--ck-resizer-offset); 7785 } 7786 7787 &.ck-widget__resizer__handle-bottom-right { 7788 bottom: var(--ck-resizer-offset); 7789 right: var(--ck-resizer-offset); 7790 } 7791 7792 &.ck-widget__resizer__handle-bottom-left { 7793 bottom: var(--ck-resizer-offset); 7794 left: var(--ck-resizer-offset); 7795 } 7796} 7797`],sourceRoot:""}]);const w=f},8508:(D,v,p)=>{p.d(v,{A:()=>w});var E=p(9372),y=p.n(E),C=p(935),f=p.n(C)()(y());f.push([D
vendor: 6,797 bytes, line 7797
7797.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}
vendor: 1,543 bytes, line 7797
7797.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}
vendor: 1,735 bytes, line 7797
7797to{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:[
7797`/* 7798 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7799 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7800 */ 7801 7802.ck .ck-widget { 7803 /* 7804 * Styles of the type around buttons 7805 */ 7806 & .ck-widget__type-around__button { 7807 display: block; 7808 position: absolute; 7809 overflow: hidden; 7810 z-index: var(--ck-z-default); 7811 7812 & svg { 7813 position: absolute; 7814 top: 50%; 7815 left: 50%; 7816 z-index: calc(var(--ck-z-default) + 2); 7817 } 7818 7819 &.ck-widget__type-around__button_before { 7820 /* Place it in the middle of the outline */ 7821 top: calc(-0.5 * var(--ck-widget-outline-thickness)); 7822 left: min(10%, 30px); 7823 7824 transform: translateY(-50%); 7825 } 7826 7827 &.ck-widget__type-around__button_after { 7828 /* Place it in the middle of the outline */ 7829 bottom: calc(-0.5 * var(--ck-widget-outline-thickness)); 7830 right: min(10%, 30px); 7831 7832 transform: translateY(50%); 7833 } 7834 } 7835 7836 /* 7837 * Styles for the buttons when: 7838 * - the widget is selected, 7839 * - or the button is being hovered (regardless of the widget state). 7840 */ 7841 &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button, 7842 & > .ck-widget__type-around > .ck-widget__type-around__button:hover { 7843 &::after { 7844 content: ""; 7845 display: block; 7846 position: absolute; 7847 top: 1px; 7848 left: 1px; 7849 z-index: calc(var(--ck-z-default) + 1); 7850 } 7851 } 7852 7853 /* 7854 * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard. 7855 */ 7856 & > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 7857 display: none; 7858 position: absolute; 7859 left: 0; 7860 right: 0; 7861 } 7862 7863 /* 7864 * When the widget is hovered the "fake caret" would normally be narrower than the 7865 * extra outline displayed around the widget. Let's extend the "fake caret" to match 7866 * the full width of the widget. 7867 */ 7868 &:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 7869 left: calc( -1 * var(--ck-widget-outline-thickness) ); 7870 right: calc( -1 * var(--ck-widget-outline-thickness) ); 7871 } 7872 7873 /* 7874 * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation). 7875 */ 7876 &.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 7877 top: calc( -1 * var(--ck-widget-outline-thickness) - 1px ); 7878 display: block; 7879 } 7880 7881 /* 7882 * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation). 7883 */ 7884 &.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 7885 bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px ); 7886 display: block; 7887 } 7888} 7889 7890/* 7891 * Integration with the read-only mode of the editor. 7892 */ 7893.ck.ck-editor__editable.ck-read-only .ck-widget__type-around { 7894 display: none; 7895} 7896 7897/* 7898 * Integration with the restricted editing mode (feature) of the editor. 7899 */ 7900.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around { 7901 display: none; 7902} 7903 7904/* 7905 * Integration with the #isEnabled property of the WidgetTypeAround plugin. 7906 */ 7907.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around { 7908 display: none; 7909} 7910`,`/* 7911 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7912 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7913 */ 7914 7915:root { 7916 --ck-widget-type-around-button-size: 20px; 7917 --ck-color-widget-type-around-button-active: var(--ck-color-focus-border); 7918 --ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border); 7919 --ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border); 7920 --ck-color-widget-type-around-button-radar-start-alpha: 0; 7921 --ck-color-widget-type-around-button-radar-end-alpha: .3; 7922 --ck-color-widget-type-around-button-icon: var(--ck-color-base-background); 7923} 7924 7925@define-mixin ck-widget-type-around-button-visible { 7926 opacity: 1; 7927 pointer-events: auto; 7928} 7929 7930@define-mixin ck-widget-type-around-button-hidden { 7931 opacity: 0; 7932 pointer-events: none; 7933} 7934 7935.ck .ck-widget { 7936 /* 7937 * Styles of the type around buttons 7938 */ 7939 & .ck-widget__type-around__button { 7940 width: var(--ck-widget-type-around-button-size); 7941 height: var(--ck-widget-type-around-button-size); 7942 background: var(--ck-color-widget-type-around-button); 7943 border-radius: 100px; 7944 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); 7945 7946 @mixin ck-widget-type-around-button-hidden; 7947 7948 @media (prefers-reduced-motion: reduce) { 7949 transition: none; 7950 } 7951 7952 & svg { 7953 width: 10px; 7954 height: 8px; 7955 transform: translate(-50%,-50%); 7956 transition: transform .5s ease;
7957 margin-top: 1px; 7958 7959 @media (prefers-reduced-motion: reduce) { 7960 transition: none; 7961 } 7962 7963 & * { 7964 stroke-dasharray: 10; 7965 stroke-dashoffset: 0; 7966 7967 fill: none; 7968 stroke: var(--ck-color-widget-type-around-button-icon); 7969 stroke-width: 1.5px; 7970 stroke-linecap: round; 7971 stroke-linejoin: round; 7972 } 7973 7974 & line { 7975 stroke-dasharray: 7; 7976 } 7977 } 7978 7979 &:hover { 7980 /* 7981 * Display the "sonar" around the button when hovered. 7982 */ 7983 animation: ck-widget-type-around-button-sonar 1s ease infinite; 7984 7985 /* 7986 * Animate active button's icon. 7987 */ 7988 & svg { 7989 & polyline { 7990 animation: ck-widget-type-around-arrow-dash 2s linear; 7991 } 7992 7993 & line { 7994 animation: ck-widget-type-around-arrow-tip-dash 2s linear; 7995 } 7996 } 7997 7998 @media (prefers-reduced-motion: reduce) { 7999 animation: none; 8000 8001 & svg { 8002 & polyline { 8003 animation: none; 8004 } 8005 8006 & line { 8007 animation: none; 8008 } 8009 } 8010 } 8011 } 8012 } 8013 8014 /* 8015 * Show type around buttons when the widget gets selected or being hovered. 8016 */ 8017 &.ck-widget_selected, 8018 &:hover { 8019 & > .ck-widget__type-around > .ck-widget__type-around__button { 8020 @mixin ck-widget-type-around-button-visible; 8021 } 8022 } 8023 8024 /* 8025 * Styles for the buttons when the widget is NOT selected (but the buttons are visible 8026 * and still can be hovered). 8027 */ 8028 &:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button { 8029 background: var(--ck-color-widget-type-around-button-hover); 8030 } 8031 8032 /* 8033 * Styles for the buttons when: 8034 * - the widget is selected, 8035 * - or the button is being hovered (regardless of the widget state). 8036 */ 8037 &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button, 8038 & > .ck-widget__type-around > .ck-widget__type-around__button:hover { 8039 background: var(--ck-color-widget-type-around-button-active); 8040 8041 &::after { 8042 width: calc(var(--ck-widget-type-around-button-size) - 2px); 8043 height: calc(var(--ck-widget-type-around-button-size) - 2px); 8044 border-radius: 100px; 8045 background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%); 8046 } 8047 } 8048 8049 /* 8050 * Styles for the "before" button when the widget has a selection handle. Because some space 8051 * is consumed by the handle, the button must be moved slightly to the right to let it breathe. 8052 */ 8053 &.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before { 8054 margin-left: 20px; 8055 } 8056 8057 /* 8058 * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard. 8059 */ 8060 & .ck-widget__type-around__fake-caret { 8061 pointer-events: none; 8062 height: 1px; 8063 animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards; 8064 8065 /* 8066 * The semi-transparent-outline+background combo improves the contrast 8067 * when the background underneath the fake caret is dark. 8068 */ 8069 outline: solid 1px hsla(0, 0%, 100%, .5); 8070 background: var(--ck-color-base-text); 8071 } 8072 8073 /* 8074 * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation). 8075 * Despite the widget being physically selected in the model, its outline should disappear. 8076 */ 8077 &.ck-widget_selected { 8078 &.ck-widget_type-around_show-fake-caret_before, 8079 &.ck-widget_type-around_show-fake-caret_after { 8080 outline-color: transparent; 8081 } 8082 } 8083 8084 &.ck-widget_type-around_show-fake-caret_before, 8085 &.ck-widget_type-around_show-fake-caret_after { 8086 /* 8087 * When the "fake caret" is visible we simulate that the widget is not selected 8088 * (despite being physically selected), so the outline color should be for the 8089 * unselected widget. 8090 */ 8091 &.ck-widget_selected:hover { 8092 outline-color: var(--ck-color-widget-hover-border); 8093 } 8094 8095 /* 8096 * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation). 8097 * In this state, the type around buttons would collide with the fake carets so they should disappear. 8098 */ 8099 & > .ck-widget__type-around > .ck-widget__type-around__button { 8100 @mixin ck-widget-type-around-button-hidden; 8101 } 8102 8103 /* 8104 * Fake horizontal caret integration with the selection handle. When the caret is visible, simply 8105 * hide the handle because it intersects with the caret (and does not make much sense anyway). 8106 */ 8107 &.ck-widget_with-selection-handle { 8108 &.ck-widget_selected, 8109 &.ck-widget_selected:hover { 8110 & > .ck-widget__selection-handle { 8111 opacity: 0 8112 } 8113 } 8114 } 8115 8116 /* 8117 * Fake horizontal caret integration with the resize UI. When the caret is visible, simply 8118 * hide the resize UI because it creates too much noise. It can be visible when the user 8119 * hovers the widget, though. 8120 */ 8121 &.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer { 8122 opacity: 0 8123 } 8124 } 8125} 8126 8127/* 8128 * Styles for the "before" button when the widget has a selection handle in an RTL environment. 8129 * The selection handler is aligned to the right side of the widget so there is no need to create 8130 * additional space for it next to the "before" button. 8131 */ 8132.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before { 8133 margin-left: 0; 8134 margin-right: 20px; 8135} 8136 8137/* 8138 * Hide type around buttons when the widget is selected as a child of a selected 8139 * nested editable (e.g. mulit-cell table selection). 8140 * 8141 * See https://github.com/ckeditor/ckeditor5/issues/7263. 8142 */ 8143.ck-editor__nested-editable.ck-editor__editable_selected { 8144 & .ck-widget { 8145 &.ck-widget_selected, 8146 &:hover { 8147 & > .ck-widget__type-around > .ck-widget__type-around__button { 8148 @mixin ck-widget-type-around-button-hidden; 8149 } 8150 } 8151 } 8152} 8153 8154/* 8155 * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor). 8156 */ 8157.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) { 8158 background: var(--ck-color-widget-type-around-button-blurred-editable); 8159 8160 & svg * { 8161 stroke: hsl(0,0%,60%); 8162 } 8163} 8164 8165@keyframes ck-widget-type-around-arrow-dash { 8166 0% { 8167 stroke-dashoffset: 10; 8168 } 8169 20%, 100% { 8170 stroke-dashoffset: 0; 8171 } 8172} 8173 8174@keyframes ck-widget-type-around-arrow-tip-dash { 8175 0%, 20% { 8176 stroke-dashoffset: 7; 8177 } 8178 40%, 100% { 8179 stroke-dashoffset: 0; 8180 } 8181} 8182 8183@keyframes ck-widget-type-around-button-sonar { 8184 0% { 8185 box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha)); 8186 } 8187 50% { 8188 box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha)); 8189 } 8190 100% { 8191 box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha)); 8192 } 8193} 8194 8195@keyframes ck-widget-type-around-fake-caret-pulse { 8196 0% { 8197 opacity: 1; 8198 } 8199 49% { 8200 opacity: 1; 8201 } 8202 50% { 8203 opacity: 0; 8204 } 8205 99% { 8206 opacity: 0; 8207 } 8208 100% { 8209 opacity: 1; 8210 } 8211} 8212`],sourceRoot:""}]);const w=f},935:D=>{D.exports=function(v){var p=[];return p.toString=function(){return this.map(function(E){var y=v(E);return E[2]?"@media ".concat(E[2]," {").concat(y,"}"):y}).join("")},p.i=function(E,y,C){typeof E=="string"&&(E=[[null,E,""]]);var f={};if(C)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(f[I]=!0)}for(var T=0;T<E.length;T++){var S=[].concat(E[T]);C&&f[S[0]]||(y&&(S[2]?S[2]="".concat(y," and ").concat(S[2]):S[2]=y),p.push(S))}},p}},9372:D=>{function v(E,y){return function(C){if(Array.isArray(C))return C}(E)||function(C,f){var w=C&&(typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"]);if(w!=null){var I,T,S=[],P=!0,z=!1;try{for(w=w.call(C);!(P=(I=w.next()).done)&&(S.push(I.value),!f||S.length!==f);P=!0);}catch(V){z=!0,T=V}finally{try{P||w.return==null||w.return()}finally{if(z)throw T}}return S}}(E,y)||function(C,f){if(C){if(typeof C=="string")return p(C,f);var w=Object.prototype.toString.call(C).slice(8,-1);if(w==="Object"&&C.constructor&&(w=C.constructor.name),w==="Map"||w==="Set")return Array.from(C);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return p(C,f)}}
8212(E,y)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8213In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p(E,y){(y==null||y>E.length)&&(y=E.length);for(var C=0,f=new Array(y);C<y;C++)f[C]=E[C];return f}D.exports=function(E){var y=v(E,4),C=y[1],f=y[3];if(!f)return C;if(typeof btoa=="function"){var w=btoa(unescape(encodeURIComponent(JSON.stringify(f)))),I="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(w),T="/*# ".concat(I," */"),S=f.sources.map(function(P){return"/*# sourceURL=".concat(f.sourceRoot||"").concat(P," */")});return[C].concat(S).concat([T]).join(` 8214`)}return[C].join(` 8215`)}},2591:(D,v,p)=>{var E,y=function(){return E===void 0&&(E=!!(window&&document&&document.all&&!window.atob)),E},C=function(){var _={};return function(U){if(_[U]===void 0){var Q=document.querySelector(U);if(window.HTMLIFrameElement&&Q instanceof window.HTMLIFrameElement)try{Q=Q.contentDocument.head}catch{Q=null}_[U]=Q}return _[U]}}(),f=[];function w(_){for(var U=-1,Q=0;Q<f.length;Q++)if(f[Q].identifier===_){U=Q;break}return U}function I(_,U){for(var Q={},ct=[],bt=0;bt<_.length;bt++){var Ct=_[bt],wt=U.base?Ct[0]+U.base:Ct[0],Ut=Q[wt]||0,le="".concat(wt," ").concat(Ut);Q[wt]=Ut+1;var qt=w(le),Jn={css:Ct[1],media:Ct[2],sourceMap:Ct[3]};qt!==-1?(f[qt].references++,f[qt].updater(Jn)):f.push({identifier:le,updater:Dt(Jn,U),references:1}),ct.push(le)}return ct}function T(_){var U=document.createElement("style"),Q=_.attributes||{};if(Q.nonce===void 0){var ct=p.nc;ct&&(Q.nonce=ct)}if(Object.keys(Q).forEach(function(Ct){U.setAttribute(Ct,Q[Ct])}),typeof _.insert=="function")_.insert(U);else{var bt=C(_.insert||"head");if(!bt)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");bt.appendChild(U)}return U}var S,P=(S=[],function(_,U){return S[_]=U,S.filter(Boolean).join(` 8216`)});function z(_,U,Q,ct){var bt=Q?"":ct.media?"@media ".concat(ct.media," {").concat(ct.css,"}"):ct.css;if(_.styleSheet)_.styleSheet.cssText=P(U,bt);else{var Ct=document.createTextNode(bt),wt=_.childNodes;wt[U]&&_.removeChild(wt[U]),wt.length?_.insertBefore(Ct,wt[U]):_.appendChild(Ct)}}function V(_,U,Q){var ct=Q.css,bt=Q.media,Ct=Q.sourceMap;if(bt?_.setAttribute("media",bt):_.removeAttribute("media"),Ct&&typeof btoa<"u"&&(ct+=` 8217/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(Ct))))," */")),_.styleSheet)_.styleSheet.cssText=ct;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(ct))}}var q=null,tt=0;function Dt(_,U){var Q,ct,bt;if(U.singleton){var Ct=tt++;Q=q||(q=T(U)),ct=z.bind(null,Q,Ct,!1),bt=z.bind(null,Q,Ct,!0)}else Q=T(U),ct=V.bind(null,Q,U),bt=function(){(function(wt){if(wt.parentNode===null)return!1;wt.parentNode.removeChild(wt)})(Q)};return ct(_),function(wt){if(wt){if(wt.css===_.css&&wt.media===_.media&&wt.sourceMap===_.sourceMap)return;ct(_=wt)}else bt()}}D.exports=function(_,U){(U=U||{}
8217).singleton||typeof U.singleton=="boolean"||(U.singleton=y());var Q=I(_=_||[],U);return function(ct){if(ct=ct||[],Object.prototype.toString.call(ct)==="[object Array]"){for(var bt=0;bt<Q.length;bt++){var Ct=w(Q[bt]);f[Ct].references--}for(var wt=I(ct,U),Ut=0;Ut<Q.length;Ut++){var le=w(Q[Ut]);f[le].references===0&&(f[le].updater(),f.splice(le,1))}Q=wt}}}}},$e={};function R(D){var v=$e[D];if(v!==void 0)return v.exports;var p=$e[D]={id:D,exports:{}};return Zn[D](p,p.exports,R),p.exports}R.n=D=>{var v=D&&D.__esModule?()=>D.default:()=>D;return R.d(v,{a:v}),v},R.d=(D,v)=>{for(var p in v)R.o(v,p)&&!R.o(D,p)&&Object.defineProperty(D,p,{enumerable:!0,get:v[p]})},R.o=(D,v)=>Object.prototype.hasOwnProperty.call(D,v),R.nc=void 0;var pr={};return(()=>{let D;R.d(pr,{default:()=>Ba});try{D={window,document}}catch{D={window:{},document:{}}}const v=D,p=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}();var E;const y={isMac:C(p),isWindows:(E=p,E.indexOf("windows")>-1),isGecko:function(o){return!!o.match(/gecko\/\d+/)}(p),isSafari:function(o){return o.indexOf(" applewebkit/")>-1&&o.indexOf("chrome")===-1}(p),isiOS:function(o){return!!o.match(/iphone|ipad/i)||C(o)&&navigator.maxTouchPoints>0}(p),isAndroid:function(o){return o.indexOf("android")>-1}(p),isBlink:function(o){return o.indexOf("chrome/")>-1&&o.indexOf("edge/")<0}(p),get isMediaForcedColors(){return!!v.window.matchMedia&&v.window.matchMedia("(forced-colors: active)").matches},get isMotionReduced(){return!!v.window.matchMedia&&v.window.matchMedia("(prefers-reduced-motion)").matches},features:{isRegExpUnicodePropertySupported:function(){let o=!1;try{o="Ä".search(new RegExp("[\\p{L}]","u"))===0}catch{}return o}()}};function C(o){return o.indexOf("macintosh")>-1}function f(o,t,e,n){e=e||function(c,l){return c===l};const i=Array.isArray(o)?o:Array.prototype.slice.call(o),r=Array.isArray(t)?t:Array.prototype.slice.call(t),s=function(c,l,d){const u=w(c,l,d);if(u===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const h=I(c,u),g=I(l,u),m=w(h,g,d),k=c.length-m,b=l.length-m;return{firstIndex:u,lastIndexOld:k,lastIndexNew:b}}(i,r,e);return n?function(c,l){const{firstIndex:d,lastIndexOld:u,lastIndexNew:h}=c;if(d===-1)return Array(l).fill("equal");let g=[];return d>0&&(g=g.concat(Array(d).fill("equal"))),h-d>0&&(g=g.concat(Array(h-d).fill("insert"))),u-d>0&&(g=g.concat(Array(u-d).fill("delete"))),h<l&&(g=g.concat(Array(l-h).fill("equal"))),g}(s,r.length):function(c,l){const d=[],{firstIndex:u,lastIndexOld:h,lastIndexNew:g}=l;return g-u>0&&d.push({index:u,type:"insert",values:c.slice(u,g)}),h-u>0&&d.push({index:u+(g-u),type:"delete",howMany:h-u}),d}(r,s)}function w(o,t,e){for(let n=0;n<Math.max(o.length,t.length);n++)if(o[n]===void 0||t[n]===void 0||!e(o[n],t[n]))return n;return-1}function I(o,t){return o.slice(t).reverse()}function T(o,t,e){e=e||function(k,b){return k===b};const n=o.length,i=t.length;if(n>200||i>200||n+i>300)return T.fastDiff(o,t,e,!0);let r,s;if(i<n){const k=o;o=t,t=k,r="delete",s="insert"}else r="insert",s="delete";const a=o.length,c=t.length,l=c-a,d={},u={};function h(k){const b=(u[k-1]!==void 0?u[k-1]:-1)+1,A=u[k+1]!==void 0?u[k+1]:-1,x=b>A?-1:1;d[k+x]&&(d[k]=d[k+x].slice(0)),d[k]||(d[k]=[]),d[k].push(b>A?r:s);let M=Math.max(b,A),N=M-k;for(;N<a&&M<c&&e(o[N],t[M]);)N++,M++,d[k].push("equal");return M}let g,m=0;do{for(g=-m;g<l;g++)u[g]=h(g);for(g=l+m;g>l;g--)u[g]=h(g);u[l]=h(l),m++}while(u[l]!==c);return d[l].slice(1)}T.fastDiff=f;const S=function(){return function o(){o.called=!0}};class P{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=S(),this.off=S()}}const z=new Array(256).fill("").map((o,t)=>("0"+t.toString(16)).slice(-2));function V(){const o=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+z[255&o]+z[o>>8&255]+z[o>>16&255]+z[o>>24&255]+z[255&t]+z[t>>8&255]+z[t>>16&255]+z[t>>24&255]+z[255&e]+z[e>>8&255]+z[e>>16&255]+z[e>>24&255]+z[255&n]+z[n>>8&255]+z[n>>16&255]+z[n>>24&255]}const q={get(o="normal"){return typeof o!="number"?this[o]||this.normal:o}
8217,highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function tt(o,t){const e=q.get(t.priority);for(let n=0;n<o.length;n++)if(q.get(o[n].priority)<e)return void o.splice(n,0,t);o.push(t)}const Dt="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class _ extends Error{constructor(t,e,n){super(function(i,r){const s=new WeakSet,a=(d,u)=>{if(typeof u=="object"&&u!==null){if(s.has(u))return`[object ${u.constructor.name}]`;s.add(u)}return u},c=r?` ${JSON.stringify(r,a)}`:"",l=ct(i);return i+c+l}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new _(t.message,e);throw n.stack=t.stack,n}}function U(o,t){console.warn(...bt(o,t))}function Q(o,t){console.error(...bt(o,t))}function ct(o){return` 8218Read more: ${Dt}#error-${o}`}function bt(o,t){const e=ct(o);return t?[o,t,e]:[o,e]}const Ct="41.4.2",wt=new Date(2024,4,17);if(globalThis.CKEDITOR_VERSION)throw new _("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=Ct;const Ut=Symbol("listeningTo"),le=Symbol("emitterId"),qt=Symbol("delegations"),Jn=rt(Object);function rt(o){return o?class extends o{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let i=!1;this.listenTo(this,t,(r,...s)=>{i||(i=!0,r.off(),e.call(this,r,...s))},n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,i={}){let r,s;this[Ut]||(this[Ut]={});const a=this[Ut];fr(t)||Na(t);const c=fr(t);(r=a[c])||(r=a[c]={emitter:t,callbacks:{}}),(s=r.callbacks[e])||(s=r.callbacks[e]=[]),s.push(n),function(l,d,u,h,g){d._addEventListener?d._addEventListener(u,h,g):l._addEventListener.call(d,u,h,g)}(this,t,e,n,i)}stopListening(t,e,n){const i=this[Ut];let r=t&&fr(t);const s=i&&r?i[r]:void 0,a=s&&e?s.callbacks[e]:void 0;if(!(!i||t&&!s||e&&!a))if(n)br(this,t,e,n),a.indexOf(n)!==-1&&(a.length===1?delete s.callbacks[e]:br(this,t,e,n));else if(a){for(;n=a.pop();)br(this,t,e,n);delete s.callbacks[e]}else if(s){for(e in s.callbacks)this.stopListening(t,e);delete i[r]}else{for(r in i)this.stopListening(i[r].emitter);delete this[Ut]}}fire(t,...e){try{const n=t instanceof P?t:new P(this,t),i=n.name;let r=Oa(this,i);if(n.path.push(this),r){const a=[n,...e];r=Array.from(r);for(let c=0;c<r.length&&(r[c].callback.apply(this,a),n.off.called&&(delete n.off.called,this._removeEventListener(i,r[c].callback)),!n.stop.called);c++);}const s=this[qt];if(s){const a=s.get(i),c=s.get("*");a&&La(a,n,e),c&&La(c,n,e)}return n.return}catch(n){_.rethrowUnexpectedError(n,this)}}delegate(...t){return{to:(e,n)=>{this[qt]||(this[qt]=new Map),t.forEach(i=>{const r=this[qt].get(i);r?r.set(e,n):this[qt].set(i,new Map([[e,n]]))})}}}stopDelegating(t,e){if(this[qt])if(t)if(e){const n=this[qt].get(t);n&&n.delete(e)}else this[qt].delete(t);else this[qt].clear()}_addEventListener(t,e,n){(function(s,a){const c=Pa(s);if(c[a])return;let l=a,d=null;const u=[];for(;l!==""&&!c[l];)c[l]={callbacks:[],childEvents:[]},u.push(c[l]),d&&c[l].childEvents.push(d),d=l,l=l.substr(0,l.lastIndexOf(":"));if(l!==""){for(const h of u)h.callbacks=c[l].callbacks.slice();c[l].childEvents.push(d)}})(this,t);const i=kr(this,t),r={callback:e,priority:q.get(n.priority)};for(const s of i)tt(s,r)}_removeEventListener(t,e){const n=kr(this,t);for(const i of n)for(let r=0;r<i.length;r++)i[r].callback==e&&(i.splice(r,1),r--)}}:Jn}function Na(o,t){o[le]||(o[le]=t||V())}function fr(o){return o[le]}function Pa(o){return o._events||Object.defineProperty(o,"_events",{value:{}}),o._events}function kr(o,t){const e=Pa(o)[t];if(!e)return[];let n=[e.callbacks];for(let i=0;i<e.childEvents.length;i++){const r=kr(o,e.childEvents[i]);n=n.concat(r)}return n}function Oa(o,t){let e;return o._events&&(e=o._events[t])&&e.callbacks.length?e.callbacks:t.indexOf(":")>-1?Oa(o,t.substr(0,t.lastIndexOf(":"))):null}function La(o,t,e){for(let[n,i]of o){i?typeof i=="function"&&(i=i(t.name)):i=t.name;const r=new P(t.source,i);r.path=[...t.path],n.fire(r,...e)}}function br(o,t,e,n){t._removeEventListener?t._removeEventListener(e,n):o._removeEventListener.call(t,e,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{rt[o]=Jn.prototype[o]});const pt=function(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")},Uo=Symbol("observableProperties"),qo=Symbol("boundObservables"),Go=Symbol("boundProperties"),bn=Symbol("decoratedMethods"),za=Symbol("decoratedOriginal"),Ra=lt(rt());function lt(o){return o?class extends o{set(t,e){if(pt(t))return void Object.keys(t).forEach(i=>
8218{this.set(i,t[i])},this);wr(this);const n=this[Uo];if(t in this&&!n.has(t))throw new _("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(i){const r=n.get(t);let s=this.fire(`set:${t}`,t,i,r);s===void 0&&(s=i),r===s&&n.has(t)||(n.set(t,s),this.fire(`change:${t}`,t,s,r))}}),this[t]=e}bind(...t){if(!t.length||!ja(t))throw new _("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new _("observable-bind-duplicate-properties",this);wr(this);const e=this[Go];t.forEach(i=>{if(e.has(i))throw new _("observable-bind-rebind",this)});const n=new Map;return t.forEach(i=>{const r={property:i,to:[]};e.set(i,r),n.set(i,r)}),{to:Lk,toMany:zk,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[Uo])return;const e=this[Go],n=this[qo];if(t.length){if(!ja(t))throw new _("observable-unbind-wrong-properties",this);t.forEach(i=>{const r=e.get(i);r&&(r.to.forEach(([s,a])=>{const c=n.get(s),l=c[a];l.delete(r),l.size||delete c[a],Object.keys(c).length||(n.delete(s),this.stopListening(s,"change"))}),e.delete(i))})}else n.forEach((i,r)=>{this.stopListening(r,"change")}),n.clear(),e.clear()}decorate(t){wr(this);const e=this[t];if(!e)throw new _("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,(n,i)=>{n.return=e.apply(this,i)}),this[t]=function(...n){return this.fire(t,n)},this[t][za]=e,this[bn]||(this[bn]=[]),this[bn].push(t)}stopListening(t,e,n){if(!t&&this[bn]){for(const i of this[bn])this[i]=this[i][za];delete this[bn]}super.stopListening(t,e,n)}}:Ra}function wr(o){o[Uo]||(Object.defineProperty(o,Uo,{value:new Map}),Object.defineProperty(o,qo,{value:new Map}),Object.defineProperty(o,Go,{value:new Map}))}function Lk(...o){const t=function(...r){if(!r.length)throw new _("observable-bind-to-parse-error",null);const s={to:[]};let a;return typeof r[r.length-1]=="function"&&(s.callback=r.pop()),r.forEach(c=>{if(typeof c=="string")a.properties.push(c);else{if(typeof c!="object")throw new _("observable-bind-to-parse-error",null);a={observable:c,properties:[]},s.to.push(a)}}),s}(...o),e=Array.from(this._bindings.keys()),n=e.length;if(!t.callback&&t.to.length>1)throw new _("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new _("observable-bind-to-extra-callback",this);var i;t.to.forEach(r=>{if(r.properties.length&&r.properties.length!==n)throw new _("observable-bind-to-properties-length",this);r.properties.length||(r.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(e[0]).callback=t.callback),i=this._observable,this._to.forEach(r=>{const s=i[qo];let a;s.get(r.observable)||i.listenTo(r.observable,"change",(c,l)=>{a=s.get(r.observable)[l],a&&a.forEach(d=>{Fa(i,d.property)})})}),function(r){let s;
8218r._bindings.forEach((a,c)=>{r._to.forEach(l=>{s=l.properties[a.callback?0:r._bindProperties.indexOf(c)],a.to.push([l.observable,s]),function(d,u,h,g){const m=d[qo],k=m.get(h),b=k||{};b[g]||(b[g]=new Set),b[g].add(u),k||m.set(h,b)}(r._observable,a,l.observable,s)})})}(this),this._bindProperties.forEach(r=>{Fa(this._observable,r)})}function zk(o,t,e){if(this._bindings.size>1)throw new _("observable-bind-to-many-not-one-binding",this);this.to(...function(n,i){const r=n.map(s=>[s,i]);return Array.prototype.concat.apply([],r)}(o,t),e)}function ja(o){return o.every(t=>typeof t=="string")}function Fa(o,t){const e=o[Go].get(t);let n;e.callback?n=e.callback.apply(o,e.to.map(i=>i[0][i[1]])):(n=e.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(o,t)?o[t]=n:o.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{lt[o]=Ra.prototype[o]});class Rk{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:e})=>{t.style.display="",e&&e.remove()}),this._replacedElements=[]}}function Ar(o){let t=0;for(const e of o)t++;return t}function Lt(o,t){const e=Math.min(o.length,t.length);for(let n=0;n<e;n++)if(o[n]!=t[n])return n;return o.length==t.length?"same":o.length<t.length?"prefix":"extension"}function Gt(o){return!(!o||!o[Symbol.iterator])}const Va=typeof gr=="object"&&gr&&gr.Object===Object&&gr;var jk=typeof self=="object"&&self&&self.Object===Object&&self;const de=Va||jk||Function("return this")(),_e=de.Symbol;var Ha=Object.prototype,Fk=Ha.hasOwnProperty,Vk=Ha.toString,Xn=_e?_e.toStringTag:void 0;const Hk=function(o){var t=Fk.call(o,Xn),e=o[Xn];try{o[Xn]=void 0;var n=!0}catch{}var i=Vk.call(o);return n&&(t?o[Xn]=e:delete o[Xn]),i};var Uk=Object.prototype.toString;const qk=function(o){return Uk.call(o)};var Ua=_e?_e.toStringTag:void 0;const je=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Ua&&Ua in Object(o)?Hk(o):qk(o)},Wt=Array.isArray,te=function(o){return o!=null&&typeof o=="object"},qa=function(o){return typeof o=="string"||!Wt(o)&&te(o)&&je(o)=="[object String]"};function ee(o,t,e={},n=[]){const i=e&&e.xmlns,r=i?o.createElementNS(i,t):o.createElement(t);for(const s in e)r.setAttribute(s,e[s]);!qa(n)&&Gt(n)||(n=[n]);for(let s of n)qa(s)&&(s=o.createTextNode(s)),r.appendChild(s);return r}const Ga=function(o,t){return function(e){return o(t(e))}},_r=Ga(Object.getPrototypeOf,Object);var Gk=Function.prototype,Wk=Object.prototype,Wa=Gk.toString,Kk=Wk.hasOwnProperty,$k=Wa.call(Object);const Kt=function(o){if(!te(o)||je(o)!="[object Object]")return!1;var t=_r(o);if(t===null)return!0;var e=Kk.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Wa.call(e)==$k},Yk=function(){this.__data__=[],this.size=0},to=function(o,t){return o===t||o!=o&&t!=t},Wo=function(o,t){for(var e=o.length;e--;)if(to(o[e][0],t))return e;return-1};var Qk=Array.prototype.splice;const Zk=function(o){var t=this.__data__,e=Wo(t,o);return!(e<0)&&(e==t.length-1?t.pop():Qk.call(t,e,1),--this.size,!0)},Jk=function(o){var t=this.__data__,e=Wo(t,o);return e<0?void 0:t[e][1]},Xk=function(o){return Wo(this.__data__,o)>-1},tb=function(o,t){var e=this.__data__,n=Wo(e,o);return n<0?(++this.size,e.push([o,t])):e[n][1]=t,this};function wn(o){var t=-1,e=o==null?0:o.length;for(this.clear();++t<e;){var n=o[t];this.set(n[0],n[1])}}wn.prototype.clear=Yk,wn.prototype.delete=Zk,wn.prototype.get=Jk,wn.prototype.has=Xk,wn.prototype.set=tb;const Ko=wn,eb=function(){this.__data__=new Ko,this.size=0},nb=function(o){var t=this.__data__,e=t.delete(o);return this.size=t.size,e},ob=function(o){return this.__data__.get(o)},ib=function(o){return this.__data__.has(o)},Ye=function(o){if(!pt(o))return!1;var t=je(o);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"}
8218,Cr=de["__core-js_shared__"];var Ka=function(){var o=/[^.]+$/.exec(Cr&&Cr.keys&&Cr.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();const rb=function(o){return!!Ka&&Ka in o};var sb=Function.prototype.toString;const Qe=function(o){if(o!=null){try{return sb.call(o)}catch{}try{return o+""}catch{}}return""};var ab=/^\[object .+?Constructor\]$/,cb=Function.prototype,lb=Object.prototype,db=cb.toString,ub=lb.hasOwnProperty,hb=RegExp("^"+db.call(ub).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const gb=function(o){return!(!pt(o)||rb(o))&&(Ye(o)?hb:ab).test(Qe(o))},mb=function(o,t){return o==null?void 0:o[t]},Ze=function(o,t){var e=mb(o,t);return gb(e)?e:void 0},eo=Ze(de,"Map"),no=Ze(Object,"create"),pb=function(){this.__data__=no?no(null):{},this.size=0},fb=function(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t};var kb=Object.prototype.hasOwnProperty;const bb=function(o){var t=this.__data__;if(no){var e=t[o];return e==="__lodash_hash_undefined__"?void 0:e}return kb.call(t,o)?t[o]:void 0};var wb=Object.prototype.hasOwnProperty;const Ab=function(o){var t=this.__data__;return no?t[o]!==void 0:wb.call(t,o)},_b=function(o,t){var e=this.__data__;return this.size+=this.has(o)?0:1,e[o]=no&&t===void 0?"__lodash_hash_undefined__":t,this};function An(o){var t=-1,e=o==null?0:o.length;for(this.clear();++t<e;){var n=o[t];this.set(n[0],n[1])}}An.prototype.clear=pb,An.prototype.delete=fb,An.prototype.get=bb,An.prototype.has=Ab,An.prototype.set=_b;const $a=An,Cb=function(){this.size=0,this.__data__={hash:new $a,map:new(eo||Ko),string:new $a}},vb=function(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null},$o=function(o,t){var e=o.__data__;return vb(t)?e[typeof t=="string"?"string":"hash"]:e.map},yb=function(o){var t=$o(this,o).delete(o);return this.size-=t?1:0,t},xb=function(o){return $o(this,o).get(o)},Eb=function(o){return $o(this,o).has(o)},Db=function(o,t){var e=$o(this,o),n=e.size;return e.set(o,t),this.size+=e.size==n?0:1,this};function _n(o){var t=-1,e=o==null?0:o.length;for(this.clear();++t<e;){var n=o[t];this.set(n[0],n[1])}}_n.prototype.clear=Cb,_n.prototype.delete=yb,_n.prototype.get=xb,_n.prototype.has=Eb,_n.prototype.set=Db;const Yo=_n,Ib=function(o,t){var e=this.__data__;if(e instanceof Ko){var n=e.__data__;if(!eo||n.length<199)return n.push([o,t]),this.size=++e.size,this;e=this.__data__=new Yo(n)}return e.set(o,t),this.size=e.size,this};function Cn(o){var t=this.__data__=new Ko(o);this.size=t.size}Cn.prototype.clear=eb,Cn.prototype.delete=nb,Cn.prototype.get=ob,Cn.prototype.has=ib,Cn.prototype.set=Ib;const vn=Cn,Tb=function(o,t){for(var e=-1,n=o==null?0:o.length;++e<n&&t(o[e],e,o)!==!1;);return o},Qo=function(){try{var o=Ze(Object,"defineProperty");return o({},"",{}),o}catch{}}(),Zo=function(o,t,e){t=="__proto__"&&Qo?Qo(o,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):o[t]=e};var Mb=Object.prototype.hasOwnProperty;const vr=function(o,t,e){var n=o[t];Mb.call(o,t)&&to(n,e)&&(e!==void 0||t in o)||Zo(o,t,e)},yn=function(o,t,e,n){var i=!e;e||(e={});for(var r=-1,s=t.length;++r<s;){var a=t[r],c=void 0;c===void 0&&(c=o[a]),i?Zo(e,a,c):vr(e,a,c)}return e},Sb=function(o,t){for(var e=-1,n=Array(o);++e<o;)n[e]=t(e);return n},Ya=function(o){return te(o)&&je(o)=="[object Arguments]"};var Qa=Object.prototype,Bb=Qa.hasOwnProperty,Nb=Qa.propertyIsEnumerable;const Jo=Ya(function(){return arguments}())?Ya:function(o){return te(o)&&Bb.call(o,"callee")&&!Nb.call(o,"callee")},Pb=function(){return!1};var Za=Ie&&!Ie.nodeType&&Ie,Ja=Za&&!0&&Ae&&!Ae.nodeType&&Ae,Xa=Ja&&Ja.exports===Za?de.Buffer:void 0;const oo=(Xa?Xa.isBuffer:void 0)||Pb;var Ob=/^(?:0|[1-9]\d*)$/;const Xo=function(o,t){var e=typeof o;return!!(t=t??9007199254740991)&&(e=="number"||e!="symbol"&&Ob.test(o))&&o>-1&&o%1==0&&o<t},yr=function(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=9007199254740991};var kt={};kt["[object Float32Array]"]=kt["[object Float64Array]"]=kt["[object Int8Array]"]=kt["[object Int16Array]"]=kt["[object Int32Array]"]=kt["[object Uint8Array]"]=kt["[object Uint8ClampedArray]"]=kt["[object Uint16Array]"]=kt["[object Uint32Array]"]=!0,kt["[object Arguments]"]=kt["[object Array]"]=kt["[object ArrayBuffer]"]=kt["[object Boolean]"]=kt["[object DataView]"]=kt["[object Date]"]=kt["[object Error]"]=kt["[object Function]"]=kt["[object Map]"]=kt["[object Number]"]=kt["[object Object]"]=kt["[object RegExp]"]=kt["[object Set]"]=kt["[object String]"]=kt["[object WeakMap]"]=!1;const Lb=function(o){return te(o)&&yr(o.length)&&!!kt[je(o)]},xr=function(o){return function(t){return o(t)}};var tc=Ie&&!Ie.nodeType&&Ie,io=tc&&!0&&Ae&&!Ae.nodeType&&Ae,Er=io&&io.exports===tc&&Va.process;const xn=function(){try{var o=io&&io.require&&io.require("util").t
8218ypes;return o||Er&&Er.binding&&Er.binding("util")}catch{}}();var ec=xn&&xn.isTypedArray;const Dr=ec?xr(ec):Lb;var zb=Object.prototype.hasOwnProperty;const nc=function(o,t){var e=Wt(o),n=!e&&Jo(o),i=!e&&!n&&oo(o),r=!e&&!n&&!i&&Dr(o),s=e||n||i||r,a=s?Sb(o.length,String):[],c=a.length;for(var l in o)!t&&!zb.call(o,l)||s&&(l=="length"||i&&(l=="offset"||l=="parent")||r&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Xo(l,c))||a.push(l);return a};var Rb=Object.prototype;const Ir=function(o){var t=o&&o.constructor;return o===(typeof t=="function"&&t.prototype||Rb)},jb=Ga(Object.keys,Object);var Fb=Object.prototype.hasOwnProperty;const Vb=function(o){if(!Ir(o))return jb(o);var t=[];for(var e in Object(o))Fb.call(o,e)&&e!="constructor"&&t.push(e);return t},ti=function(o){return o!=null&&yr(o.length)&&!Ye(o)},ro=function(o){return ti(o)?nc(o):Vb(o)},Hb=function(o,t){return o&&yn(t,ro(t),o)},Ub=function(o){var t=[];if(o!=null)for(var e in Object(o))t.push(e);return t};var qb=Object.prototype.hasOwnProperty;const Gb=function(o){if(!pt(o))return Ub(o);var t=Ir(o),e=[];for(var n in o)(n!="constructor"||!t&&qb.call(o,n))&&e.push(n);return e},En=function(o){return ti(o)?nc(o,!0):Gb(o)},Wb=function(o,t){return o&&yn(t,En(t),o)};var oc=Ie&&!Ie.nodeType&&Ie,ic=oc&&!0&&Ae&&!Ae.nodeType&&Ae,rc=ic&&ic.exports===oc?de.Buffer:void 0,sc=rc?rc.allocUnsafe:void 0;const ac=function(o,t){if(t)return o.slice();var e=o.length,n=sc?sc(e):new o.constructor(e);return o.copy(n),n},cc=function(o,t){var e=-1,n=o.length;for(t||(t=Array(n));++e<n;)t[e]=o[e];return t},Kb=function(o,t){for(var e=-1,n=o==null?0:o.length,i=0,r=[];++e<n;){var s=o[e];t(s,e,o)&&(r[i++]=s)}return r},lc=function(){return[]};var $b=Object.prototype.propertyIsEnumerable,dc=Object.getOwnPropertySymbols;const Tr=dc?function(o){return o==null?[]:(o=Object(o),Kb(dc(o),function(t){return $b.call(o,t)}))}:lc,Yb=function(o,t){return yn(o,Tr(o),t)},uc=function(o,t){for(var e=-1,n=t.length,i=o.length;++e<n;)o[i+e]=t[e];return o},hc=Object.getOwnPropertySymbols?function(o){for(var t=[];o;)uc(t,Tr(o)),o=_r(o);return t}:lc,Qb=function(o,t){return yn(o,hc(o),t)},gc=function(o,t,e){var n=t(o);return Wt(o)?n:uc(n,e(o))},Mr=function(o){return gc(o,ro,Tr)},Zb=function(o){return gc(o,En,hc)},Sr=Ze(de,"DataView"),Br=Ze(de,"Promise"),Nr=Ze(de,"Set"),Pr=Ze(de,"WeakMap");var mc="[object Map]",pc="[object Promise]",fc="[object Set]",kc="[object WeakMap]",bc="[object DataView]",Jb=Qe(Sr),Xb=Qe(eo),tw=Qe(Br),ew=Qe(Nr),nw=Qe(Pr),Je=je;(Sr&&Je(new Sr(new ArrayBuffer(1)))!=bc||eo&&Je(new eo)!=mc||Br&&Je(Br.resolve())!=pc||Nr&&Je(new Nr)!=fc||Pr&&Je(new Pr)!=kc)&&(Je=function(o){var t=je(o),e=t=="[object Object]"?o.constructor:void 0,n=e?Qe(e):"";if(n)switch(n){case Jb:return bc;case Xb:return mc;case tw:return pc;case ew:return fc;case nw:return kc}return t});const so=Je;var ow=Object.prototype.hasOwnProperty;const iw=function(o){var t=o.length,e=new o.constructor(t);return t&&typeof o[0]=="string"&&ow.call(o,"index")&&(e.index=o.index,e.input=o.input),e},ei=de.Uint8Array,Or=function(o){var t=new o.constructor(o.byteLength);return new ei(t).set(new ei(o)),t},rw=function(o,t){var e=t?Or(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.byteLength)};var sw=/\w*$/;const aw=function(o){var t=new o.constructor(o.source,sw.exec(o));return t.lastIndex=o.lastIndex,t};var wc=_e?_e.prototype:void 0,Ac=wc?wc.valueOf:void 0;const cw=function(o){return Ac?Object(Ac.call(o)):{}},_c=function(o,t){var e=t?Or(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.length)},lw=function(o,t,e){var n=o.constructor;switch(t){case"[object ArrayBuffer]":return Or(o);case"[object Boolean]":case"[object Date]":return new n(+o);case"[object DataView]":return rw(o,e);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 _c(o,e);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(o);case"[object RegExp]":return aw(o);case"[object Symbol]":return cw(o)}};var Cc=Object.create;const dw=function(){function o(){}return function(t){if(!pt(t))return{};if(Cc)return Cc(t);o.prototype=t;var e=new o;return o.prototype=void 0,e}}(),vc=function(o){return typeof o.constructor!="function"||Ir(o)?{}:dw(_r(o))},uw=function(o){return te(o)&&so(o)=="[object Map]"};var yc=xn&&xn.isMap;const hw=yc?xr(yc):uw,gw=function(o){return te(o)&&so(o)=="[object Set]"};var xc=xn&&xn.isSet;const mw=xc?xr(xc):gw;var Ec="[object Arguments]",Dc="[object Function]",Ic="[object Object]",ft={};
8218ft[Ec]=ft["[object Array]"]=ft["[object ArrayBuffer]"]=ft["[object DataView]"]=ft["[object Boolean]"]=ft["[object Date]"]=ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Map]"]=ft["[object Number]"]=ft[Ic]=ft["[object RegExp]"]=ft["[object Set]"]=ft["[object String]"]=ft["[object Symbol]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft["[object Error]"]=ft[Dc]=ft["[object WeakMap]"]=!1;const Lr=function o(t,e,n,i,r,s){var a,c=1&e,l=2&e,d=4&e;if(n&&(a=r?n(t,i,r,s):n(t)),a!==void 0)return a;if(!pt(t))return t;var u=Wt(t);if(u){if(a=iw(t),!c)return cc(t,a)}else{var h=so(t),g=h==Dc||h=="[object GeneratorFunction]";if(oo(t))return ac(t,c);if(h==Ic||h==Ec||g&&!r){if(a=l||g?{}:vc(t),!c)return l?Qb(t,Wb(a,t)):Yb(t,Hb(a,t))}else{if(!ft[h])return r?t:{};a=lw(t,h,c)}}s||(s=new vn);var m=s.get(t);if(m)return m;s.set(t,a),mw(t)?t.forEach(function(b){a.add(o(b,e,n,b,t,s))}):hw(t)&&t.forEach(function(b,A){a.set(A,o(b,e,n,A,t,s))});var k=u?void 0:(d?l?Zb:Mr:l?En:ro)(t);return Tb(k||t,function(b,A){k&&(b=t[A=b]),vr(a,A,o(b,e,n,A,t,s))}),a},zr=function(o,t){return Lr(o,5,t=typeof t=="function"?t:void 0)},Xe=function(o){return te(o)&&o.nodeType===1&&!Kt(o)};class Tc{constructor(t,e){this._config={},e&&this.define(Mc(e)),t&&this._setObjectToTarget(this._config,t)}set(t,e){this._setToTarget(this._config,t,e)}define(t,e){this._setToTarget(this._config,t,e,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,e,n,i=!1){if(Kt(e))return void this._setObjectToTarget(t,e,i);const r=e.split(".");e=r.pop();for(const s of r)Kt(t[s])||(t[s]={}),t=t[s];if(Kt(n))return Kt(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,i);i&&t[e]!==void 0||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const i of n){if(!Kt(t[i])){t=null;break}t=t[i]}return t?Mc(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach(i=>{this._setToTarget(t,i,e[i],n)})}}function Mc(o){return zr(o,pw)}function pw(o){return Xe(o)||typeof o=="function"?o:void 0}function Fe(o){if(o){if(o.defaultView)return o instanceof o.defaultView.Document;if(o.ownerDocument&&o.ownerDocument.defaultView)return o instanceof o.ownerDocument.defaultView.Node}return!1}function ni(o){const t=Object.prototype.toString.apply(o);return t=="[object Window]"||t=="[object global]"}const Sc=ne(rt());function ne(o){return o?class extends o{listenTo(t,e,n,i={}){if(Fe(t)||ni(t)){const r={capture:!!i.useCapture,passive:!!i.usePassive},s=this._getProxyEmitter(t,r)||new fw(t,r);this.listenTo(s,e,n,i)}else super.listenTo(t,e,n,i)}stopListening(t,e,n){if(Fe(t)||ni(t)){const i=this._getAllProxyEmitters(t);for(const r of i)this.stopListening(r,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return function(n,i){const r=n[Ut];return r&&r[i]?r[i].emitter:null}(this,Bc(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(e=>this._getProxyEmitter(t,e)).filter(e=>!!e)}}:Sc}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{ne[o]=Sc.prototype[o]});class fw extends rt(){constructor(t,e){super(),Na(this,Bc(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),rt().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){rt().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=n=>{this.fire(t,n)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function Bc(o,t){let e=function(n){return n["data-ck-expando"]||(n["data-ck-expando"]=V())}(o);for(const n of Object.keys(t).sort())t[n]&&(e+="-"+n);return e}function Nc(o){const t=o.ownerDocument.defaultView.getComputedStyle(o);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function vt(o){return Object.prototype.toString.call(o)=="[object Text]"}function oi(o){return Object.prototype.toString.apply(o)=="[object Range]"}function Pc(o){return o&&o.parentNode?o.offsetParent===v.document.body?null:o.offsetParent:null}const Oc=["top","right","bottom","left","width","height"];class J{constructor(t){const e=oi(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Rr(t)||e)if(e){const n=J.getDomRangeRects(t);
8218ii(this,J.getBoundingRect(n))}else ii(this,t.getBoundingClientRect());else if(ni(t)){const{innerWidth:n,innerHeight:i}=t;ii(this,{top:0,right:n,bottom:i,left:0,width:n,height:i})}else ii(this,t)}clone(){return new J(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const n=new J(e);return n._source=this._source,n}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(Lc(t))return e;let n,i=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!Lc(r);){const a=((s=r)instanceof HTMLElement?s.ownerDocument.defaultView.getComputedStyle(s).overflow:"visible")==="visible";i instanceof HTMLElement&&zc(i)==="absolute"&&(n=i);const c=zc(r);if(a||n&&(c==="relative"&&a||c!=="relative")){i=r,r=r.parentNode;continue}const l=new J(r),d=e.getIntersection(l);if(!d)return null;d.getArea()<e.getArea()&&(e=d),i=r,r=r.parentNode}var s;return e}isEqual(t){for(const e of Oc)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=v.window,n=this.clone().moveBy(t,e);if(Rr(n._source)){const i=Pc(n._source);i&&function(r,s){const a=new J(s),c=Nc(s);let l=0,d=0;l-=a.left,d-=a.top,l+=s.scrollLeft,d+=s.scrollTop,l-=c.left,d-=c.top,r.moveBy(l,d)}(n,i)}return n}excludeScrollbarsAndBorders(){const t=this._source;let e,n,i;if(ni(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,i=t.getComputedStyle(t.document.documentElement).direction;else{const r=Nc(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,n=t.offsetHeight-t.clientHeight-r.top-r.bottom,i=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,i==="ltr"?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const i of n)e.push(new J(i));else{let i=t.startContainer;vt(i)&&(i=i.parentNode);const r=new J(i.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let n=0;for(const i of t)n++,e.left=Math.min(e.left,i.left),e.top=Math.min(e.top,i.top),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom);return n==0?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new J(e))}}function ii(o,t){for(const e of Oc)o[e]=t[e]}function Lc(o){return!!Rr(o)&&o===o.ownerDocument.body}function Rr(o){return o!==null&&typeof o=="object"&&o.nodeType===1&&typeof o.getBoundingClientRect=="function"}function zc(o){return o instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).position:"static"}const yt=class{constructor(o,t){yt._observerInstance||yt._createObserver(),this._element=o,this._callback=t,yt._addElementCallback(o,t),yt._observerInstance.observe(o)}get element(){return this._element}destroy(){yt._deleteElementCallback(this._element,this._callback)}static _addElementCallback(o,t){yt._elementCallbacks||(yt._elementCallbacks=new Map);let e=yt._elementCallbacks.get(o);e||(e=new Set,yt._elementCallbacks.set(o,e)),e.add(t)}static _deleteElementCallback(o,t){const e=yt._getElementCallbacks(o);e&&(e.delete(t),e.size||(yt._elementCallbacks.delete(o),yt._observerInstance.unobserve(o))),yt._elementCallbacks&&!yt._elementCallbacks.size&&(yt._observerInstance=null,yt._elementCallbacks=null)}static _getElementCallbacks(o){return yt._elementCallbacks?yt._elementCallbacks.get(o):null}static _createObserver(){yt._observerInstance=new v.window.ResizeObserver(o=>{for(const t of o){const e=yt._getElementCallbacks(t.target);if(e)for(const n of e)n(t)}})}};let ao=yt;function Rc(o,t){o instanceof HTMLTextAreaElement&&(o.value=t),o.innerHTML=t}function Dn(o){return t=>t+o}function co(o){let t=0;for(;o.previousSibling;)o=o.previousSibling,t++;return t}function jc(o,t,e){o.insertBefore(e,o.childNodes[t]||null)}function lo(o){return o&&o.nodeType===Node.COMMENT_NODE}function tn(o){return!!(o&&o.getClientRects&&o.getClientRects().length)}ao._observerInstance=null,ao._elementCallbacks=null;var Fc=Math.pow;function ri({element:o,target:t,positions:e,limiter:n,fitInViewport:i,viewportOffsetConfig:r}){Ye(t)&&(t=t()),Ye(n)&&(n=n());const s=Pc(o),a=function(h){h=Object.assign({top:0,bottom:0,left:0,right:0},h);const g=new J(v.window);return g.top+=h.top,g.height-=h.top,g.bottom-=h.bottom,g.height-=h.bottom,g}(r),c=new J(o),l=Vc(t,a);let d;if(!l||!a.getIntersection(l))return null;const u={targetRect:l,elementRect:c,positionedElementAncestor:s,viewportRect:a};if(n||i){if(n){const h=Vc(n,a);h&&(u.limiterRect=h)}d=function(h,g){const{elementRect:m}=g,k=m.getArea(),b=h.map(M=>new Hc(M,g)).filter(M=>!!M.name);let A=0,x=null;for(const M of b){const{limiterIntersectionArea:N,viewportIntersectionArea:H}=M;if(N===k)return M;const W=Fc(H,2)+Fc(N,2);W>A&&(A=W,x=M)}return x}(e,u)}else d=new Hc(e[0],u);return d}function Vc(o,t){const e=new J(o).getVisible();return e?e.getIntersection(t):null}class Hc{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:i,top:r,name:s,config:a}=n;this.name=s,this.config=a,this._positioningFunctionCoordinates={left:i,top:r},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Uc(o){const t=o.parentNode;t&&t.removeChild(o)}
8218function kw({window:o,rect:t,alignToTop:e,forceScroll:n,viewportOffset:i}){const r=t.clone().moveBy(0,i.bottom),s=t.clone().moveBy(0,-i.top),a=new J(o).excludeScrollbarsAndBorders(),c=e&&n,l=[s,r].every(m=>a.contains(m));let{scrollX:d,scrollY:u}=o;const h=d,g=u;c?u-=a.top-t.top+i.top:l||(Gc(s,a)?u-=a.top-t.top+i.top:qc(r,a)&&(u+=e?t.top-a.top-i.top:t.bottom-a.bottom+i.bottom)),l||(Wc(t,a)?d-=a.left-t.left+i.left:Kc(t,a)&&(d+=t.right-a.right+i.right)),d==h&&u===g||o.scrollTo(d,u)}function bw({parent:o,getRect:t,alignToTop:e,forceScroll:n,ancestorOffset:i=0,limiterElement:r}){const s=jr(o),a=e&&n;let c,l,d;const u=r||s.document.body;for(;o!=u;)l=t(),c=new J(o).excludeScrollbarsAndBorders(),d=c.contains(l),a?o.scrollTop-=c.top-l.top+i:d||(Gc(l,c)?o.scrollTop-=c.top-l.top+i:qc(l,c)&&(o.scrollTop+=e?l.top-c.top-i:l.bottom-c.bottom+i)),d||(Wc(l,c)?o.scrollLeft-=c.left-l.left+i:Kc(l,c)&&(o.scrollLeft+=l.right-c.right+i)),o=o.parentNode}function qc(o,t){return o.bottom>t.bottom}function Gc(o,t){return o.top<t.top}function Wc(o,t){return o.left<t.left}function Kc(o,t){return o.right>t.right}function jr(o){return oi(o)?o.startContainer.ownerDocument.defaultView:o.ownerDocument.defaultView}function ww(o){if(oi(o)){let t=o.commonAncestorContainer;return vt(t)&&(t=t.parentNode),t}return o.parentNode}function $c(o,t){const e=jr(o),n=new J(o);if(e===t)return n;{let i=e;for(;i!=t;){const r=i.frameElement,s=new J(r).excludeScrollbarsAndBorders();n.moveBy(s.left,s.top),i=i.parent}}return n}const Aw={ctrl:"â",cmd:"â",alt:"â¥",shift:"â§"},_w={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Yc={37:"â",38:"â",39:"â",40:"â",9:"â¥",33:"Page Up",34:"Page Down"},X=function(){const o={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++)o[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)o[t-48]=t;for(let t=112;t<=123;t++)o["f"+(t-111)]=t;return Object.assign(o,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),o}(),Cw=Object.fromEntries(Object.entries(X).map(([o,t])=>{let e;return e=t in Yc?Yc[t]:o.charAt(0).toUpperCase()+o.slice(1),[t,e]}));function In(o){let t;if(typeof o=="string"){if(t=X[o.toLowerCase()],!t)throw new _("keyboard-unknown-key",null,{key:o})}else t=o.keyCode+(o.altKey?X.alt:0)+(o.ctrlKey?X.ctrl:0)+(o.shiftKey?X.shift:0)+(o.metaKey?X.cmd:0);return t}function uo(o){return typeof o=="string"&&(o=function(t){return t.split("+").map(e=>e.trim())}(o)),o.map(t=>typeof t=="string"?function(e){if(e.endsWith("!"))return In(e.slice(0,-1));const n=In(e);return(y.isMac||y.isiOS)&&n==X.ctrl?X.cmd:n}(t):t).reduce((t,e)=>e+t,0)}function si(o){let t=uo(o);return Object.entries(y.isMac||y.isiOS?Aw:_w).reduce((e,[n,i])=>(t&X[n]&&(t&=~X[n],e+=i),e),"")+(t?Cw[t]:"")}function Fr(o,t){const e=t==="ltr";switch(o){case X.arrowleft:return e?"left":"right";case X.arrowright:return e?"right":"left";case X.arrowup:return"up";case X.arrowdown:return"down"}}function gt(o){return Array.isArray(o)?o:[o]}const Vr=function(o,t,e){(e!==void 0&&!to(o[t],e)||e===void 0&&!(t in o))&&Zo(o,t,e)},Qc=function(o){return function(t,e,n){for(var i=-1,r=Object(t),s=n(t),a=s.length;a--;){var c=s[++i];if(e(r[c],c,r)===!1)break}return t}}(),vw=function(o){return te(o)&&ti(o)},Zc=function(o,t){if((t!=="constructor"||typeof o[t]!="function")&&t!="__proto__")return o[t]},yw=function(o){return yn(o,En(o))},xw=function(o,t,e,n,i,r,s){var a=Zc(o,e),c=Zc(t,e),l=s.get(c);if(l)Vr(o,e,l);else{var d=void 0,u=d===void 0;if(u){var h=Wt(c),g=!h&&oo(c),m=!h&&!g&&Dr(c);d=c,h||g||m?Wt(a)?d=a:vw(a)?d=cc(a):g?(u=!1,d=ac(c,!0)):m?(u=!1,d=_c(c,!0)):d=[]:Kt(c)||Jo(c)?(d=a,Jo(a)?d=yw(a):pt(a)&&!Ye(a)||(d=vc(c))):u=!1}u&&(s.set(c,d),i(d,c,n,r,s),s.delete(c)),Vr(o,e,d)}},Ew=function o(t,e,n,i,r){t!==e&&Qc(e,function(s,a){if(r||(r=new vn),pt(s))xw(t,e,a,n,o,i,r);else{var c=void 0;c===void 0&&(c=s),Vr(t,a,c)}},En)},Ve=function(o){return o},Dw=function(o,t,e){switch(e.length){case 0:return o.call(t);case 1:return o.call(t,e[0]);case 2:return o.call(t,e[0],e[1]);case 3:return o.call(t,e[0],e[1],e[2])}return o.apply(t,e)};var Jc=Math.max;const Iw=function(o,t,e){return t=Jc(t===void 0?o.length-1:t,0),function(){for(var n=arguments,i=-1,r=Jc(n.length-t,0),s=Array(r);++i<r;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=e(s),Dw(o,this,a)}},Tw=function(o){return function(){return o}},Mw=Qo?function(o,t){return Qo(o,"toString",{configurable:!0,enumerable:!1,value:Tw(t),writable:!0})}:Ve;var Sw=Date.now;const Bw=function(o){var t=0,e=0;return function(){var n=Sw(),i=16-(n-e);if(e=n,i>0){if(++t>=800)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}(Mw),Nw=function(o,t){return Bw(Iw(o,t,Ve),o+"")},Pw=function(o,t,e){if(!pt(e))return!1;var n=typeof t;return!!(n=="number"?ti(e)&&Xo(t,e.length):n=="string"&&t in e)&&to(e[t],o)},Xc=function(o){return Nw(function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(r=o.length>3&&typeof r=="function"?(i--,r):void 0,s&&Pw(e[0],e[1],s)&&(r=i<3?void 0:r,i=1),t=Object(t);++n<i;){var a=e[n];a&&o(t,a,n,r)}return t})},Hr=Xc(function(o,t,e){Ew(o,t,e)});function Ow(o,t,e=1,n){if(typeof e!="number")throw new _("translation-service-quantity-not-a-number",null,{quantity:e});const i=n||v.window.CKEDITOR_TRANSLATIONS,r=function(d){return Object.keys(d).length}(i);r===1&&(o=Object.keys(i)[0]);const s=t.id||t.string;if(r===0||!function(d,u,h){return!!h[d]&&!!h[d].dictionary[u]}(o,s,i))return e!==1?t.plural:t.string;const a=i[o].dictionary,c=i[o].getPluralForm||(d=>d===1?0:1),l=a[s];return typeof l=="string"?l:l[Number(c(e))]}v.window.CKEDITOR_TRANSLATIONS||(v.window.CKEDITOR_TRANSLATIONS={});const Lw=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function tl(o){return Lw.includes(o)?"rtl":"ltr"}class zw{constructor({uiLanguage:t="en",contentLanguage:e,translations:n}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=tl(this.uiLanguage),this.contentLanguageDirection=tl(this.contentLanguage),this.translations=function(i){return Array.isArray(i)?i.reduce((r,s)=>Hr(r,s)):i}(n),this.t=(i,r)=>this._t(i,r)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=gt(e),typeof t=="string"&&(t={string:t});const n=t.plural?e[0]:1;return function(i,r){return i.replace(/%(\d+)/g,(s,a)=>a<r.length?r[a]:s)}(Ow(this.uiLanguage,t,n,this.translations),e)}}class ue extends rt(){constructor(t={},e={}){super();const n=Gt(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const i of t)this._items.push(i),this._itemMap.set(this._getItemIdBeforeAdding(i),i)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}
8218addMany(t,e){if(e===void 0)e=this._items.length;else if(e>this._items.length||e<0)throw new _("collection-add-item-invalid-index",this);let n=0;for(const i of t){const r=this._getItemIdBeforeAdding(i),s=e+n;this._items.splice(s,0,i),this._itemMap.set(r,i),this.fire("add",i,s),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if(typeof t=="string")e=this._itemMap.get(t);else{if(typeof t!="number")throw new _("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if(typeof t=="string")return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e=typeof t=="string"?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new _("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:e=>{this._setUpBindToBinding(n=>new e(n))},using:e=>{typeof e=="function"?this._setUpBindToBinding(e):this._setUpBindToBinding(n=>n[e])}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(i,r,s)=>{const a=e._bindToCollection==this,c=e._bindToInternalToExternalMap.get(r);if(a&&c)this._bindToExternalToInternalMap.set(r,c),this._bindToInternalToExternalMap.set(c,r);else{const l=t(r);if(!l)return void this._skippedIndexesFromExternal.push(s);let d=s;for(const u of this._skippedIndexesFromExternal)s>u&&d--;for(const u of e._skippedIndexesFromExternal)d>=u&&d++;this._bindToExternalToInternalMap.set(r,l),this._bindToInternalToExternalMap.set(l,r),this.add(l,d);for(let u=0;u<e._skippedIndexesFromExternal.length;u++)d<=e._skippedIndexesFromExternal[u]&&e._skippedIndexesFromExternal[u]++}};for(const i of e)n(0,i,e.getIndex(i));this.listenTo(e,"add",n),this.listenTo(e,"remove",(i,r,s)=>{const a=this._bindToExternalToInternalMap.get(r);a&&this.remove(a),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,l)=>(s<l&&c.push(l-1),s>l&&c.push(l),c),[])})}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],typeof n!="string")throw new _("collection-add-invalid-id",this);if(this.get(n))throw new _("collection-add-item-already-exists",this)}else t[e]=n=V();return n}_remove(t){let e,n,i,r=!1;const s=this._idProperty;if(typeof t=="string"?(n=t,i=this._itemMap.get(n),r=!i,i&&(e=this._items.indexOf(i))):typeof t=="number"?(e=t,i=this._items[e],r=!i,i&&(n=i[s])):(i=t,n=i[s],e=this._items.indexOf(i),r=e==-1||!this._itemMap.get(n)),r)throw new _("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,e),[i,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function St(o){const t=o.next();return t.done?null:t.value}class Bt extends ne(lt()){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new _("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class zt{constructor(){this._listener=new(ne())}listenTo(t){this._listener.listenTo(t,"keydown",(e,n)=>{this._listener.fire("_keydown:"+In(n),n)})}set(t,e,n={}){const i=uo(t),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(s,a)=>{e(a,()=>{a.preventDefault(),a.stopPropagation(),s.stop()}),s.return=!0},{priority:r})}press(t){return!!this._listener.fire("_keydown:"+In(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function Ce(o){return Gt(o)?new Map(o):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(o)}function Ur(o,t){let e;function n(...i){n.cancel(),e=setTimeout(()=>
8218o(...i),t)}return n.cancel=()=>{clearTimeout(e)},n}function qr(o,t){return!!(e=o.charAt(t-1))&&e.length==1&&/[\ud800-\udbff]/.test(e)&&function(n){return!!n&&n.length==1&&/[\udc00-\udfff]/.test(n)}(o.charAt(t));var e}function Gr(o,t){return!!(e=o.charAt(t))&&e.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e);var e}const Rw=function(){const o=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,e="(?:"+o.map(n=>n.source).join("|")+")";return new RegExp(`${t}|${e}(?:â${e})*`,"ug")}();function el(o,t){const e=String(o).matchAll(Rw);return Array.from(e).some(n=>n.index<t&&t<n.index+n[0].length)}class oe extends ue{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",(e,n,i)=>{this._renderViewIntoCollectionParent(n,i)}),this.on("remove",(e,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(t=>t.destroy())}setParent(t){this._parentElement=t;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...t){if(!t.length||!t.every(e=>typeof e=="string"))throw new _("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const i of t)n.delegate(i).to(e);this.on("add",(n,i)=>{for(const r of t)i.delegate(r).to(e)}),this.on("remove",(n,i)=>{for(const r of t)i.stopDelegating(r,e)})}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}class he extends rt(){constructor(t){super(),Object.assign(this,rl(il(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new _("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)ci(n)?yield n:Wr(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,i)=>new jw({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i}),if:(n,i,r)=>new nl({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:r})}}static extend(t,e){if(t._isRendered)throw new _("template-extend-render",[this,t]);ll(t,rl(il(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new _("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),ai(this.text)?this._bindToObservable({schema:this.text,updater:Fw(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const i in this.attributes){const r=e.getAttribute(i),s=this.attributes[i];n&&(n.attributes[i]=r);const a=dl(s)?s[0].ns:null;if(ai(s)){const c=dl(s)?s[0].value:s;n&&ul(i)&&c.unshift(r),this._bindToObservable({schema:c,updater:Vw(e,i,a),data:t})}else if(i=="style"&&typeof s[0]!="string")this._renderStyleAttribute(s[0],t);else{n&&r&&ul(i)&&s.unshift(r);const c=s.map(l=>l&&l.value||l).reduce((l,d)=>l.concat(d),[]).reduce(al,"");Tn(c)||e.setAttributeNS(a,i,c)}}}_renderStyleAttribute(t,e){const n=e.node;for(const i in t){const r=t[i];ai(r)?this._bindToObservable({schema:[r],updater:Hw(n,i),data:e}):n.style[i]=r}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,i=t.isApplying;let r=0;
8218for(const s of this.children)if(Kr(s)){if(!i){s.setParent(e);for(const a of s)n.appendChild(a.element)}}else if(ci(s))i||(s.isRendered||s.render(),n.appendChild(s.element));else if(Fe(s))n.appendChild(s);else if(i){const a={children:[],bindings:[],attributes:{}};t.revertData.children.push(a),s._renderNode({intoFragment:!1,node:n.childNodes[r++],isApplying:!0,revertData:a})}else n.appendChild(s.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map(i=>{const[r,s]=e.split("@");return i.activateDomEventListener(r,s,t)});t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const i=n.revertData;ol(t,e,n);const r=t.filter(s=>!Tn(s)).filter(s=>s.observable).map(s=>s.activateAttributeListener(t,e,n));i&&i.bindings.push(r)}_revertTemplateFromNode(t,e){for(const i of e.bindings)for(const r of i)r();if(e.text)return void(t.textContent=e.text);const n=t;for(const i in e.attributes){const r=e.attributes[i];r===null?n.removeAttribute(i):n.setAttribute(i,r)}for(let i=0;i<e.children.length;++i)this._revertTemplateFromNode(n.childNodes[i],e.children[i])}}class ho{constructor(t){this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,n){const i=()=>ol(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class jw extends ho{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const i=(r,s)=>{e&&!s.target.matches(e)||(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(s):this.observable.fire(this.eventNameOrFunction,s))};return this.emitter.listenTo(n.node,t,i),()=>{this.emitter.stopListening(n.node,t,i)}}}class nl extends ho{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!Tn(super.getValue(t))&&(this.valueIfTrue||!0)}}function ai(o){return!!o&&(o.value&&(o=o.value),Array.isArray(o)?o.some(ai):o instanceof ho)}function ol(o,t,{node:e}){const n=function(r,s){return r.map(a=>a instanceof ho?a.getValue(s):a)}(o,e);let i;i=o.length==1&&o[0]instanceof nl?n[0]:n.reduce(al,""),Tn(i)?t.remove():t.set(i)}function Fw(o){return{set(t){o.textContent=t},remove(){o.textContent=""}}}function Vw(o,t,e){return{set(n){o.setAttributeNS(e,t,n)},remove(){o.removeAttributeNS(e,t)}}}function Hw(o,t){return{set(e){o.style[t]=e},remove(){o.style[t]=null}}}function il(o){return zr(o,t=>{if(t&&(t instanceof ho||Wr(t)||ci(t)||Kr(t)))return t})}function rl(o){if(typeof o=="string"?o=function(t){return{text:[t]}}(o):o.text&&function(t){t.text=gt(t.text)}(o),o.on&&(o.eventListeners=function(t){for(const e in t)sl(t,e);return t}(o.on),delete o.on),!o.text){o.attributes&&function(e){for(const n in e)e[n].value&&(e[n].value=gt(e[n].value)),sl(e,n)}(o.attributes);const t=[];if(o.children)if(Kr(o.children))t.push(o.children);else for(const e of o.children)Wr(e)||ci(e)||Fe(e)?t.push(e):t.push(new he(e));o.children=t}return o}function sl(o,t){o[t]=gt(o[t])}function al(o,t){return Tn(t)?o:Tn(o)?t:`${o} ${t}`}function cl(o,t){for(const e in t)o[e]?o[e].push(...t[e]):o[e]=t[e]}function ll(o,t){if(t.attributes&&(o.attributes||(o.attributes={}),cl(o.attributes,t.attributes)),t.eventListeners&&(o.eventListeners||(o.eventListeners={}),cl(o.eventListeners,t.eventListeners)),t.text&&o.text.push(...t.text),t.children&&t.children.length){if(o.children.length!=t.children.length)throw new _("ui-template-extend-children-mismatch",o);let e=0;for(const n of t.children)ll(o.children[e++],n)}}function Tn(o){return!o&&o!==0}function ci(o){return o instanceof G}function Wr(o){return o instanceof he}function Kr(o){return o instanceof oe}function dl(o){return pt(o[0])&&o[0].ns}function ul(o){return o=="class"||o=="style"}var Uw=R(2591),j=R.n(Uw),hl=R(7676),qw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(hl.A,qw),hl.A.locals;class G extends ne(lt()){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new ue,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(e,n)=>{n.locale=t,n.t=t&&t.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=he.bind(this,this)}createCollection(t){const e=new oe(t);return this._viewCollections.add(e),e}registerChild(t){Gt(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){Gt(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new he(t)}extendTemplate(t){he.extend(this.template,t)}
8218render(){if(this.isRendered)throw new _("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(t=>t.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}function li({emitter:o,activator:t,callback:e,contextElements:n}){o.listenTo(document,"mousedown",(i,r)=>{if(!t())return;const s=typeof r.composedPath=="function"?r.composedPath():[],a=typeof n=="function"?n():n;for(const c of a)if(c.contains(r.target)||s.includes(c))return;e()})}function $r(o){return class extends o{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...t){super(...t),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function di({view:o}){o.listenTo(o.element,"submit",(t,e)=>{e.preventDefault(),o.fire("submit")},{useCapture:!0})}function Gw({keystrokeHandler:o,focusTracker:t,gridItems:e,numberOfColumns:n,uiLanguageDirection:i}){const r=typeof n=="number"?()=>n:n;function s(l){return d=>{const u=e.find(m=>m.element===t.focusedElement),h=e.getIndex(u),g=l(h,e);e.get(g).focus(),d.stopPropagation(),d.preventDefault()}}function a(l,d){return l===d-1?0:l+1}function c(l,d){return l===0?d-1:l-1}o.set("arrowright",s((l,d)=>i==="rtl"?c(l,d.length):a(l,d.length))),o.set("arrowleft",s((l,d)=>i==="rtl"?a(l,d.length):c(l,d.length))),o.set("arrowup",s((l,d)=>{let u=l-r();return u<0&&(u=l+r()*Math.floor(d.length/r()),u>d.length-1&&(u-=r())),u})),o.set("arrowdown",s((l,d)=>{let u=l+r();return u>d.length-1&&(u=l%r()),u}))}class L extends lt(){constructor(t){super(),this._disableStack=new Set,this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),this._disableStack.size==1&&(this.on("set:isEnabled",gl,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",gl),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function gl(o){o.return=!1,o.stop()}class Z extends lt(){constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(t,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",e=>{if(!this.affectsData)return;const n=t.model.document.selection,i=n.getFirstPosition().root.rootName!="$graveyard"&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!i)&&(e.return=!1,e.stop())},{priority:"highest"}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),this._disableStack.size==1&&(this.on("set:isEnabled",ml,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",ml),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function ml(o){o.return=!1,o.stop()}class pl extends Z{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){tt(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return t&&t.command}}class fl extends rt(){constructor(t,e=[],n=[]){super(),this._plugins=new Map,this._context=t,this._availablePlugins=new Map;for(const i of e)i.pluginName&&this._availablePlugins.set(i.pluginName,i);this._contextPlugins=new Map;for(const[i,r]of n)this._contextPlugins.set(i,r),this._contextPlugins.set(r,i),i.pluginName&&this._availablePlugins.set(i.pluginName,i)}*[Symbol.iterator](){for(const t of this._plugins)typeof t[0]=="function"&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let n=t;throw typeof t=="function"&&(n=t.pluginName||t.name),new _("plugincollection-
8218plugin-not-loaded",this._context,{plugin:n})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const i=this,r=this._context;(function m(k,b=new Set){k.forEach(A=>{c(A)&&(b.has(A)||(b.add(A),A.pluginName&&!i._availablePlugins.has(A.pluginName)&&i._availablePlugins.set(A.pluginName,A),A.requires&&m(A.requires,b)))})})(t),h(t);const s=[...function m(k,b=new Set){return k.map(A=>c(A)?A:i._availablePlugins.get(A)).reduce((A,x)=>b.has(x)?A:(b.add(x),x.requires&&(h(x.requires,x),m(x.requires,b).forEach(M=>A.add(M))),A.add(x)),new Set)}(t.filter(m=>!d(m,e)))];(function(m,k){for(const b of k){if(typeof b!="function")throw new _("plugincollection-replace-plugin-invalid-type",null,{pluginItem:b});const A=b.pluginName;if(!A)throw new _("plugincollection-replace-plugin-missing-name",null,{pluginItem:b});if(b.requires&&b.requires.length)throw new _("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:A});const x=i._availablePlugins.get(A);if(!x)throw new _("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:A});const M=m.indexOf(x);if(M===-1){if(i._contextPlugins.has(x))return;throw new _("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:A})}if(x.requires&&x.requires.length)throw new _("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:A});m.splice(M,1,b),i._availablePlugins.set(A,b)}})(s,n);const a=s.map(m=>{let k=i._contextPlugins.get(m);return k=k||new m(r),i._add(m,k),k});return g(a,"init").then(()=>g(a,"afterInit")).then(()=>a);function c(m){return typeof m=="function"}function l(m){return c(m)&&!!m.isContextPlugin}function d(m,k){return k.some(b=>b===m||u(m)===b||u(b)===m)}function u(m){return c(m)?m.pluginName||m.name:m}function h(m,k=null){m.map(b=>c(b)?b:i._availablePlugins.get(b)||b).forEach(b=>{(function(A,x){if(!c(A))throw x?new _("plugincollection-soft-required",r,{missingPlugin:A,requiredBy:u(x)}):new _("plugincollection-plugin-not-found",r,{plugin:A})})(b,k),function(A,x){if(l(x)&&!l(A))throw new _("plugincollection-context-required",r,{plugin:u(A),requiredBy:u(x)})}(b,k),function(A,x){if(x&&d(A,e))throw new _("plugincollection-required",r,{plugin:u(A),requiredBy:u(x)})}(b,k)})}function g(m,k){return m.reduce((b,A)=>A[k]?i._contextPlugins.has(A)?b:b.then(A[k].bind(A)):b,Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)typeof e.destroy!="function"||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new _("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}var kl=Object.getOwnPropertySymbols,Ww=Object.prototype.hasOwnProperty,Kw=Object.prototype.propertyIsEnumerable;class bl{constructor(t){this._contextOwner=null;const e=t||{},{translations:n}=e,i=((a,c)=>{var l={};for(var d in a)Ww.call(a,d)&&c.indexOf(d)<0&&(l[d]=a[d]);if(a!=null&&kl)for(var d of kl(a))c.indexOf(d)<0&&Kw.call(a,d)&&(l[d]=a[d]);return l})(e,["translations"]);this.config=new Tc(i,this.constructor.defaultConfig);const r=this.constructor.builtinPlugins;this.config.define("plugins",r),this.plugins=new fl(this,r);const s=this.config.get("language")||{};this.locale=new zw({uiLanguage:typeof s=="string"?s:s.ui,contentLanguage:this.config.get("language.content"),translations:n}),this.t=this.locale.t,this.editors=new ue}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if(typeof n!="function")throw new _("context-initplugins-constructor-only",null,{Plugin:n});if(n.isContextPlugin!==!0)throw new _("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,t=>t.destroy())).then(()=>this.plugins.destroy())}_addEditor(t,e){if(this._contextOwner)throw new _("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise(e=>{const n=new this(t);e(n.initPlugins().then(()=>n))})}}class ui extends lt(){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class $w extends zt{constructor(t){super(),this.editor=t}set(t,e,n={}){if(typeof e=="string"){const i=e;e=(r,s)=>{this.editor.execute(i),s()}}super.set(t,e,n)}}var wl=R(4098),Yw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(wl.A,Yw),wl.A.locals;const hi=new WeakMap;let Al=!1;function _l({view:o,element:t,text:e,isDirectHost:n=!0,keepOnFocus:i=!1}){const r=o.document;function s(a){hi.get(r).set(t,{text:a,isDirectHost:n,keepOnFocus:i,hostElement:n?t:null}),o.change(c=>Yr(r,c))}hi.has(r)||(hi.set(r,new Map),r.registerPostFixer(a=>Yr(r,a)),r.on("change:isComposing",()=>{o.change(a=>Yr(r,a))},{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",(a,c,l)=>{s(l)}),t.placeholder?s(t.placeholder):e&&s(e),e&&function(){Al||U("enableplaceholder-deprecated-text-option"),Al=!0}()}function Qw(o,t){return!t.hasClass("ck-placeholder")&&(o.addClass("ck-placeholder",t),!0)}function Zw(o,t){return!!t.hasClass("ck-placeholder")&&(o.removeClass("ck-placeholder",t),!0)}function Jw(o,t){if(!o.isAttached()||Array.from(o.getChildren()).some(i=>!i.is("uiElement")))return!1;const e=o.document,n=e.selection.anchor;return(!e.isComposing||!n||n.parent!==o)&&(!!t||!e.isFocused||!!n&&n.parent!==o)}function Yr(o,t){const e=hi.get(o),n=[];let i=!1;for(const[r,s]of e)s.isDirectHost&&(n.push(r),Cl(t,r,s)&&(i=!0));for(const[r,s]of e){if(s.isDirectHost)continue;const a=Xw(r);a&&(n.includes(a)||(s.hostElement=a,Cl(t,r,s)&&(i=!0)))}return i}function Cl(o,t,e){const{text:n,isDirectHost:i,hostElement:r}=e;let s=!1;return r.getAttribute("data-placeholder")!==n&&(o.setAttribute("data-placeholder",n,r),s=!0),(i||t.childCount==1)&&Jw(r,e.keepOnFocus)?Qw(o,r)&&(s=!0):Zw(o,r)&&(s=!0),s}
8218function Xw(o){if(o.childCount){const t=o.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class en{is(){throw new Error("is() method is abstract")}}const vl=function(o){return Lr(o,4)};class nn extends rt(en){constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if((t=this.parent.getChildIndex(this))==-1)throw new _("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return t!==null&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return t!==null&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return r===0?null:n[r-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=Lt(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}isAfter(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire(`change:${t}`,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=vl(this);return delete t.parent,t}}nn.prototype.is=function(o){return o==="node"||o==="view:node"};class dt extends nn{constructor(t,e){super(t),this._textData=e}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof dt&&(this===t||this.data===t.data)}_clone(){return new dt(this.document,this.data)}}dt.prototype.is=function(o){return o==="$text"||o==="view:$text"||o==="text"||o==="view:text"||o==="node"||o==="view:node"};class ve extends en{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new _("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new _("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;n!==null;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}ve.prototype.is=function(o){return o==="$textProxy"||o==="view:$textProxy"||o==="textProxy"||o==="view:textProxy"};class ye{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)(typeof e=="string"||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const n of this._patterns){const i=yl(e,n);if(i)return{element:e,pattern:n,match:i}}return null}matchAll(...t){const e=[];for(const n of t)for(const i of this._patterns){const r=yl(n,i);r&&e.push({element:n,pattern:i,match:r})}return e.length>0?e:null}getElementName(){if(this._patterns.length!==1)return null;const t=this._patterns[0],e=t.name;return typeof t=="function"||!e||e instanceof RegExp?null:e}}function yl(o,t){if(typeof t=="function")return t(o);const e={};return t.name&&(e.name=function(n,i){return n instanceof RegExp?!!i.match(n):n===i}(t.name,o.name),!e.name)||t.attributes&&(e.attributes=function(n,i){const r=new Set(i.getAttributeKeys());return Kt(n)?(n.style!==void 0&&U("matcher-pattern-deprecated-attributes-style-key",n),n.class!==void 0&&U("matcher-pattern-deprecated-attributes-class-key",n)):(r.delete("style"),r.delete("class")),Qr(n,r,s=>i.getAttribute(s))}(t.attributes,o),!e.attributes)||t.classes&&(e.classes=function(n,i){return Qr(n,i.getClassNames(),()=>{})}(t.classes,o),!e.classes)||t.styles&&(e.styles=function(n,i){return Qr(n,i.getStyleNames(!0),r=>i.getStyle(r))}(t.styles,o),!e.styles)?null:e}function Qr(o,t,e){const n=function(s){return Array.isArray(s)?s.map(a=>Kt(a)?(a.key!==void 0&&a.value!==void 0||U("matcher-pattern-missing-key-or-value",a),[a.key,a.value]):[a,!0]):Kt(s)?Object.entries(s):[[s,!0]]}(o),i=Array.from(t),r=[];if(n.forEach(([s,a])=>
8218{i.forEach(c=>{(function(l,d){return l===!0||l===d||l instanceof RegExp&&d.match(l)})(s,c)&&function(l,d,u){if(l===!0)return!0;const h=u(d);return l===h||l instanceof RegExp&&!!String(h).match(l)}(a,c,e)&&r.push(c)})}),n.length&&!(r.length<n.length))return r}const gi=function(o){return typeof o=="symbol"||te(o)&&je(o)=="[object Symbol]"};var tA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eA=/^\w*$/;const Zr=function(o,t){if(Wt(o))return!1;var e=typeof o;return!(e!="number"&&e!="symbol"&&e!="boolean"&&o!=null&&!gi(o))||eA.test(o)||!tA.test(o)||t!=null&&o in Object(t)};function Jr(o,t){if(typeof o!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var e=function(){var n=arguments,i=t?t.apply(this,n):n[0],r=e.cache;if(r.has(i))return r.get(i);var s=o.apply(this,n);return e.cache=r.set(i,s)||r,s};return e.cache=new(Jr.Cache||Yo),e}Jr.Cache=Yo;const nA=Jr,oA=function(o){var t=nA(o,function(n){return e.size===500&&e.clear(),n}),e=t.cache;return t};var iA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rA=/\\(\\)?/g,sA=oA(function(o){var t=[];
8218return o.charCodeAt(0)===46&&t.push(""),o.replace(iA,function(e,n,i,r){t.push(i?r.replace(rA,"$1"):n||e)}),t});const aA=sA,cA=function(o,t){for(var e=-1,n=o==null?0:o.length,i=Array(n);++e<n;)i[e]=t(o[e],e,o);return i};var xl=_e?_e.prototype:void 0,El=xl?xl.toString:void 0;const lA=function o(t){if(typeof t=="string")return t;if(Wt(t))return cA(t,o)+"";if(gi(t))return El?El.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e},Xr=function(o){return o==null?"":lA(o)},mi=function(o,t){return Wt(o)?o:Zr(o,t)?[o]:aA(Xr(o))},dA=function(o){var t=o==null?0:o.length;return t?o[t-1]:void 0},Mn=function(o){if(typeof o=="string"||gi(o))return o;var t=o+"";return t=="0"&&1/o==-1/0?"-0":t},ts=function(o,t){for(var e=0,n=(t=mi(t,o)).length;o!=null&&e<n;)o=o[Mn(t[e++])];return e&&e==n?o:void 0},Dl=function(o,t,e){var n=-1,i=o.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var r=Array(i);++n<i;)r[n]=o[n+t];return r},uA=function(o,t){return t.length<2?o:ts(o,Dl(t,0,-1))},hA=function(o,t){return t=mi(t,o),(o=uA(o,t))==null||delete o[Mn(dA(t))]},gA=function(o,t){return o==null||hA(o,t)},go=function(o,t,e){var n=o==null?void 0:ts(o,t);return n===void 0?e:n},mA=function(o,t,e,n){if(!pt(o))return o;for(var i=-1,r=(t=mi(t,o)).length,s=r-1,a=o;a!=null&&++i<r;){var c=Mn(t[i]),l=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return o;if(i!=s){var d=a[c];(l=void 0)==void 0&&(l=pt(d)?d:Xo(t[i+1])?[]:{})}vr(a,c,l),a=a[c]}return o},pA=function(o,t,e){return o==null?o:mA(o,t,e)};class es{constructor(t){this._styles={},this._styleProcessor=t}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(t){this.clear();const e=function(n){let i=null,r=0,s=0,a=null;const c=new Map;if(n==="")return c;n.charAt(n.length-1)!=";"&&(n+=";");for(let l=0;l<n.length;l++){const d=n.charAt(l);if(i===null)switch(d){case":":a||(a=n.substr(r,l-r),s=l+1);break;case'"':case"'":i=d;break;case";":{const u=n.substr(s,l-s);a&&c.set(a.trim(),u.trim()),a=null,r=l+1;break}}else d===i&&(i=null)}return c}(t);for(const[n,i]of e)this._styleProcessor.toNormalizedForm(n,i,this._styles)}has(t){if(this.isEmpty)return!1;const e=this._styleProcessor.getReducedForm(t,this._styles).find(([n])=>n===t);return Array.isArray(e)}set(t,e){if(pt(t))for(const[n,i]of Object.entries(t))this._styleProcessor.toNormalizedForm(n,i,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=ns(t);gA(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this.getStylesEntries().map(t=>t.join(":")).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!pt(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find(([n])=>n===t);return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this.getStylesEntries().map(([e])=>e)}clear(){this._styles={}}getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),i=go(this._styles,n);i&&!Object.keys(i).length&&this.remove(n)}}class fA{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(pt(e))os(n,ns(t),e);else if(this._normalizers.has(t)){const i=this._normalizers.get(t),{path:r,value:s}=i(e);os(n,r,s)}else os(n,t,e)}getNormalized(t,e){if(!t)return Hr({},e);if(e[t]!==void 0)return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if(typeof n=="string")return go(e,n);const i=n(t,e);if(i)return i}return go(e,ns(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);return n===void 0?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter(i=>{const r=this.getNormalized(i,t);return r&&typeof r=="object"?Object.keys(r).length:r}),n=new Set([...e,...Object.keys(t)]);return Array.from(n)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function ns(o){return o.replace("-",".")}function os(o,t,e){let n=e;pt(e)&&(n=Hr({},go(o,t),e)),pA(o,t,n)}class $t extends nn{constructor(t,e,n,i){if(super(t),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=e,this._attrs=function(r){const s=Ce(r);for(const[a,c]of s)c===null?s.delete(a):typeof c!="string"&&s.set(a,String(c));return s}(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const r=this._attrs.get("class");Il(this._classes,r),this._attrs.delete("class")}this._styles=new es(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 this._children.length===0}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>
82180&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if(t=="class")return this._classes.size>0?[...this._classes].join(" "):void 0;if(t=="style"){const e=this._styles.toString();return e==""?void 0:e}return this._attrs.get(t)}hasAttribute(t){return t=="class"?this._classes.size>0:t=="style"?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof $t))return!1;if(this===t)return!0;if(this.name!=t.name||this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new ye(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map(i=>`${i[0]}="${i[1]}"`).sort().join(" ");return this.name+(t==""?"":` class="${t}"`)+(e?` style="${e}"`:"")+(n==""?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const i of this.getChildren())e.push(i._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=function(r,s){return typeof s=="string"?[new dt(r,s)]:(Gt(s)||(s=[s]),Array.from(s).map(a=>typeof a=="string"?new dt(r,a):a instanceof ve?new dt(r,a.data):a))}(this.document,e);for(const r of i)r.parent!==null&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(t,0,r),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_setAttribute(t,e){const n=String(e);this._fireChange("attributes",this),t=="class"?Il(this._classes,n):t=="style"?this._styles.setTo(n):this._attrs.set(t,n)}_removeAttribute(t){return this._fireChange("attributes",this),t=="class"?this._classes.size>0&&(this._classes.clear(),!0):t=="style"?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of gt(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of gt(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),typeof t!="string"?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of gt(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function Il(o,t){const e=t.split(/\s+/);o.clear(),e.forEach(n=>o.add(n))}$t.prototype.is=function(o,t){return t?t===this.name&&(o==="element"||o==="view:element"):o==="element"||o==="view:element"||o==="node"||o==="view:node"};class mo extends $t{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=kA}}function kA(){const o=[...this.getChildren()],t=o[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const e of o)if(!e.is("uiElement"))return null;return this.childCount}mo.prototype.is=function(o,t){return t?t===this.name&&(o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"):o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class pi extends lt(mo){constructor(t,e,n,i){super(t,e,n,i),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",r=>r&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}destroy(){this.stopListening()}}pi.prototype.is=function(o,t){return t?t===this.name&&(o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"):o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};const Tl=Symbol("rootName");class Ml extends pi{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(Tl)}set rootName(t){this._setCustomProperty(Tl,t)}set _name(t){this.name=t}}Ml.prototype.is=function(o,t){return t?t===this.name&&(o==="rootElement"||o==="view:rootElement"||o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"):o==="rootElement"||o==="view:rootElement"||o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class on{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new _("view-tree-walker-no-start-position",null);if(t.direction&&t.direction!="forward"&&t.direction!="backward")throw new _("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=F._createAt(t.startPosition):this._position=F._createAt(t.boundaries[t.direction=="backward"?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.
8218ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do n=this.position,e=this.next();while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(n.parent===null&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let i;if(n instanceof dt){if(t.isAtEnd)return this._position=F._createAfter(n),this._next();i=n.data[t.offset]}else i=n.getChild(t.offset);if(i instanceof $t){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new F(i,0);return this._position=t,this._formatReturnValue("elementStart",i,e,t,1)}if(i instanceof dt){if(this.singleCharacters)return t=new F(i,0),this._position=t,this._next();let r,s=i.data.length;return i==this._boundaryEndParent?(s=this.boundaries.end.offset,r=new ve(i,0,s),t=F._createAfter(r)):(r=new ve(i,0,i.data.length),t.offset++),this._position=t,this._formatReturnValue("text",r,e,t,s)}if(typeof i=="string"){let r;this.singleCharacters?r=1:r=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;const s=new ve(n,t.offset,r);return t.offset+=r,this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=F._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(n.parent===null&&t.offset===0)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let i;if(n instanceof dt){if(t.isAtStart)return this._position=F._createBefore(n),this._previous();i=n.data[t.offset-1]}else i=n.getChild(t.offset-1);if(i instanceof $t)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",i,e,t,1)):(t=new F(i,i.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,e,t));if(i instanceof dt){if(this.singleCharacters)return t=new F(i,i.data.length),this._position=t,this._previous();let r,s=i.data.length;if(i==this._boundaryStartParent){const a=this.boundaries.start.offset;r=new ve(i,a,i.data.length-a),s=r.data.length,t=F._createBefore(r)}else r=new ve(i,0,i.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",r,e,t,s)}if(typeof i=="string"){let r;if(this.singleCharacters)r=1;else{const a=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=t.offset-a}t.offset-=r;const s=new ve(n,t.offset,r);return this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=F._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,i,r){return e instanceof ve&&(e.offsetInText+e.data.length==e.textNode.data.length&&(this.direction!="forward"||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=F._createAfter(e.textNode):(i=F._createAfter(e.textNode),this._position=i)),e.offsetInText===0&&(this.direction!="backward"||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=F._createBefore(e.textNode):(i=F._createBefore(e.textNode),this._position=i))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}}class F extends en{constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return this.offset===0}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof pi);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=F._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new on(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]==n[i]&&e[i];)i++;return i===0?null:e[i-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return this.compareWith(t)=="before"}isAfter(t){return this.compareWith(t)=="after"}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const i=Lt(e,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return e[i]<n[i]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new on(t)}clone(){return new F(this.parent,this.offset)}static _createAt(t,e){if(t instanceof F)return new this(t.parent,t.offset);{const n=t;if(e=="end")e=n.is("$text")?n.data.length:n.childCount;else{if(e=="before")return this._createBefore(n);if(e=="after")return this._createAfter(n);if(e!==0&&!e)throw new _("view-createpositionat-offset-required",n)}return new F(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new F(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new _("view-position-after-root",t,{root:t});return new F(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new F(t.textNode,t.offsetInText);if(!t.parent)throw new _("view-position-before-root",t,{root:t});return new F(t.parent,t.index)}}F.prototype.is=function(o){return o==="position"||o==="view:position"};class K extends en{constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new on({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let t=this.start.getLastMatchingPosition(fi,{direction:"backward"}),e=this.end.getLastMatchingPosition(fi);return t.parent.is("$text")&&t.isAtStart&&(t=F._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=F._createAfter(e.parent)),new K(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(fi);if(t.isAfter(this.end)||t.isEqual(this.end))return new K(t,t);let e=this.end.getLastMatchingPosition(fi,{direction:"backward"});const n=t.nodeAfter,i=e.nodeBefore;return n&&n.is("$text")&&(t=new F(n,0)),i&&i.is("$text")&&(e=new F(i,i.data.length)),new K(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end
8218)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new K(this.start,t.start)),this.containsPosition(t.end)&&e.push(new K(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new K(e,n)}return null}getWalker(t={}){return t.boundaries=this,new on(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}clone(){return new K(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new on(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new on(t);yield e.position;for(const n of e)yield n.nextPosition}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}static _createFromParentsAndOffsets(t,e,n,i){return new this(new F(t,e),new F(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(F._createBefore(t),e)}}function fi(o){return!(!o.item.is("attributeElement")&&!o.item.is("uiElement"))}K.prototype.is=function(o){return o==="range"||o==="view:range"};class ge extends rt(en){constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return this.rangeCount===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake||this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel||this.rangeCount!=t.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=Ar(this.getRanges());if(e!=Ar(t.getRanges()))return!1;if(e==0)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let i=!1;for(let r of t.getRanges())if(r=r.getTrimmed(),n.start.isEqual(r.start)&&n.end.isEqual(r.end)){i=!0;break}if(!i)return!1}return!0}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,i]=t;if(typeof n=="object"&&(i=n,n=void 0),e===null)this._setRanges([]),this._setFakeOptions(i);else if(e instanceof ge||e instanceof is)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof K)this._setRanges([e],i&&i.backward),this._setFakeOptions(i);else if(e instanceof F)this._setRanges([new K(e)]),this._setFakeOptions(i);else if(e instanceof nn){const r=!!i&&!!i.backward;let s;if(n===void 0)throw new _("view-selection-setto-required-second-parameter",this);s=n=="in"?K._createIn(e):n=="on"?K._createOn(e):new K(F._createAt(e,n)),this._setRanges([s],r),this._setFakeOptions(i)}else{if(!Gt(e))throw new _("view-selection-setto-not-selectable",this);this._setRanges(e,i&&i.backward),this._setFakeOptions(i)}this.fire("change")}setFocus(t,e){if(this.anchor===null)throw new _("view-selection-setfocus-no-ranges",this);const n=F._createAt(t,e);if(n.compareWith(this.focus)=="same")return;const i=this.anchor;this._ranges.pop(),n.compareWith(i)=="before"?this._addRange(new K(n,i),!0):this._addRange(new K(i,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const n of t)this._addRange(n);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof K))throw new _("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new _("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new K(t.start,t.end))}}ge.prototype.is=function(o){return o==="selection"||o==="view:selection"};class is extends rt(en){constructor(...t){super(),this._selection=new ge,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}is.prototype.is=function(o){return o==="selection"||o=="documentSelection"||o=="view:selection"||o=="view:documentSelection"};class Sn extends P{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const rs=Symbol("bubbling contexts");function ss(o){return class extends o{fire(t,...e){try{const n=t instanceof P?t:new P(this,t),i=as(this);if(!i.size)return;if(po(n,"capturing",this),Bn(i,"$capture",n,...e))return n.return;const r=n.startRange||this.selection.getFirstRange(),s=r?r.getContainedElement():null,a=!!s&&!!Sl(i,s);let c=s||function(l){if(!l)return null;const d=l.start.parent,u=l.end.parent,h=d.getPath(),g=u.getPath();return h.length>g.length?d:u}(r);if(po(n,"atTarget",c),!a){if(Bn(i,"$text",n,...e))return n.return;po(n,"bubbling",c)}for(;c;){if(c.is("rootElement")){if(Bn(i,"$root",n,...e))return n.return}else if(c.is("element")&&Bn(i,c.name,n,...e))return n.return;if(Bn(i,c,n,...e))return n.return;c=c.parent,po(n,"bubbling",c)}return po(n,"bubbling",this),Bn(i,"$document",n,...e),n.return}catch(n){_.rethrowUnexpectedError(n,this)}}_addEventListener(t,e,n){const i=gt(n.context||"$document"),r=as(this);for(const s of i){let a=r.get(s);a||(a=new(rt()),r.set(s,a)),this.listenTo(a,t,e,n)}}_removeEventListener(t,e){const n=as(this);for(const i of n.values())this.stopListening(i,t,e)}}}{const o=ss(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{ss[t]=o.prototype[t]})}function po(o,t,e){o instanceof Sn&&(o._eventPhase=t,o._currentTarget=e)}function Bn(o,t,e,...n){const i=typeof t=="string"?o.get(t):Sl(o,t);return!!i&&(i.fire(e,...n),e.stop.called)}function Sl(o,t){for(const[e,n]of o)if(typeof e=="function"&&e(t))return n;return null}function as(o){return o[rs]||(o[rs]=new Map),o[rs]}class ki extends ss(lt()){constructor(t){super(),this._postFixers=new Set,this.selection=new is,this.roots=new ue({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}
8218destroy(){this.roots.forEach(t=>t.destroy()),this.stopListening()}_callPostFixers(t){let e=!1;do for(const n of this._postFixers)if(e=n(t),e)break;while(e)}}class rn extends $t{constructor(t,e,n,i){super(t,e,n,i),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=bA}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new _("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return this.id!==null||t.id!==null?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function bA(){if(cs(this))return null;let o=this.parent;for(;o&&o.is("attributeElement");){if(cs(o)>1)return null;o=o.parent}return!o||cs(o)>1?null:this.childCount}function cs(o){return Array.from(o.getChildren()).filter(t=>!t.is("uiElement")).length}rn.DEFAULT_PRIORITY=10,rn.prototype.is=function(o,t){return t?t===this.name&&(o==="attributeElement"||o==="view:attributeElement"||o==="element"||o==="view:element"):o==="attributeElement"||o==="view:attributeElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class ls extends $t{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=wA}_insertChild(t,e){if(e&&(e instanceof nn||Array.from(e).length>0))throw new _("view-emptyelement-cannot-add",[this,e]);return 0}}function wA(){return null}ls.prototype.is=function(o,t){return t?t===this.name&&(o==="emptyElement"||o==="view:emptyElement"||o==="element"||o==="view:element"):o==="emptyElement"||o==="view:emptyElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class bi extends $t{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=_A}_insertChild(t,e){if(e&&(e instanceof nn||Array.from(e).length>0))throw new _("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const n of this.getAttributeKeys())e.setAttribute(n,this.getAttribute(n));return e}}function AA(o){o.document.on("arrowKey",(t,e)=>function(n,i,r){if(i.keyCode==X.arrowright){const s=i.domTarget.ownerDocument.defaultView.getSelection(),a=s.rangeCount==1&&s.getRangeAt(0).collapsed;if(a||i.shiftKey){const c=s.focusNode,l=s.focusOffset,d=r.domPositionToView(c,l);if(d===null)return;let u=!1;const h=d.getLastMatchingPosition(g=>(g.item.is("uiElement")&&(u=!0),!(!g.item.is("uiElement")&&!g.item.is("attributeElement"))));if(u){const g=r.viewPositionToDom(h);a?s.collapse(g.parent,g.offset):s.extend(g.parent,g.offset)}}}}(0,e,o.domConverter),{priority:"low"})}function _A(){return null}bi.prototype.is=function(o,t){return t?t===this.name&&(o==="uiElement"||o==="view:uiElement"||o==="element"||o==="view:element"):o==="uiElement"||o==="view:uiElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class ds extends $t{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=CA}_insertChild(t,e){if(e&&(e instanceof nn||Array.from(e).length>0))throw new _("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function CA(){return null}ds.prototype.is=function(o,t){return t?t===this.name&&(o==="rawElement"||o==="view:rawElement"||o==="element"||o==="view:element"):o==="rawElement"||o==="view:rawElement"||o===this.name||o==="view:"+this.name||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class sn extends rt(en){constructor(t,e){super(),this._children=[],this._customProperties=new Map,this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=function(r,s){return typeof s=="string"?[new dt(r,s)]:(Gt(s)||(s=[s]),Array.from(s).map(a=>
8218typeof a=="string"?new dt(r,a):a instanceof ve?new dt(r,a.data):a))}(this.document,e);for(const r of i)r.parent!==null&&r._remove(),r.parent=this,this._children.splice(t,0,r),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_fireChange(t,e){this.fire("change:"+t,e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}sn.prototype.is=function(o){return o==="documentFragment"||o==="view:documentFragment"};class Bl{constructor(t){this._cloneGroups=new Map,this._slotFactory=null,this.document=t}setSelection(...t){this.document.selection._setTo(...t)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createDocumentFragment(t){return new sn(this.document,t)}createText(t){return new dt(this.document,t)}createAttributeElement(t,e,n={}){const i=new rn(this.document,t,e);return typeof n.priority=="number"&&(i._priority=n.priority),n.id&&(i._id=n.id),n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createContainerElement(t,e,n={},i={}){let r=null;Kt(n)?i=n:r=n;const s=new mo(this.document,t,e,r);return i.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),s}createEditableElement(t,e,n={}){const i=new pi(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(t,e,n={}){const i=new ls(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(t,e,n){const i=new bi(this.document,t,e);return n&&(i.render=n),i}createRawElement(t,e,n,i={}){const r=new ds(this.document,t,e);return n&&(r.render=n),i.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),r}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Kt(t)&&n===void 0?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof F?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new _("view-writer-break-non-container-element",this.document);if(!e.parent)throw new _("view-writer-break-root",this.document);if(t.isAtStart)return F._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(F._createAfter(e),n);const i=new K(t,F._createAt(e,"end")),r=new F(n,0);this.move(i,r)}return F._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&n.childCount===0){const s=n.parent,a=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new F(s,a))}const i=n.getChild(e-1),r=n.getChild(e);if(!i||!r)return t;if(i.is("$text")&&r.is("$text"))return Pl(i,r);if(i.is("attributeElement")&&r.is("attributeElement")&&i.isSimilar(r)){const s=i.childCount;return i._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new F(i,s))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new _("view-writer-merge-containers-invalid-position",this.document);const i=e.getChild(e.childCount-1),r=i instanceof dt?F._createAt(i,"end"):F._createAt(e,"end");return this.move(K._createIn(n),F._createAt(e,"end")),this.remove(K._createOn(n)),r}insert(t,e){Ol(e=Gt(e)?[...e]:[e],this.document);const n=e.reduce((s,a)=>{const c=s[s.length-1],l=!a.is("uiElement");return c&&c.breakAttributes==l?c.nodes.push(a):s.push({breakAttributes:l,nodes:[a]}),s},[]);let i=null,r=t;for(const{nodes:s,breakAttributes:a}of n){const c=this._insertNodes(r,s,a);i||(i=c.start),r=c.end}return i?new K(i,r):new K(t)}remove(t){const e=t instanceof K?t:K._createOn(t);if(fo(e,this.document),e.isCollapsed)return new sn(this.document);const{start:n,end:i}=this._breakAttributesRange(e,!0),r=n.parent,s=i.offset-n.offset,a=r._removeChildren(n.offset,s);for(const l of a)this._removeFromClonedElementsGroup(l);const c=this.mergeAttributes(n);return e.start=c,e.end=c.clone(),new sn(this.document,a)}clear(t,e){fo(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const i of n){const r=i.item;let s;if(r.is("element")&&e.isSimilar(r))s=K._createOn(r);else if(!i.nextPosition.isAfter(t.start)&&r.is("$textProxy")){const a=r.getAncestors().find(c=>c.is("element")&&e.isSimilar(c));a&&(s=K._createIn(a))}
8218s&&(s.end.isAfter(t.end)&&(s.end=t.end),s.start.isBefore(t.start)&&(s.start=t.start),this.remove(s))}}move(t,e){let n;if(e.isAfter(t.end)){const i=(e=this._breakAttributes(e,!0)).parent,r=i.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=i.childCount-r}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof rn))throw new _("view-writer-wrap-invalid-attribute",this.document);if(fo(t,this.document),t.isCollapsed){let i=t.start;i.parent.is("element")&&(n=i.parent,!Array.from(n.getChildren()).some(s=>!s.is("uiElement")))&&(i=i.getLastMatchingPosition(s=>s.item.is("uiElement"))),i=this._wrapPosition(i,e);const r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(t.start)&&this.setSelection(i),new K(i)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof rn))throw new _("view-writer-unwrap-invalid-attribute",this.document);if(fo(t,this.document),t.isCollapsed)return t;const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,s=this._unwrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new K(a,c)}rename(t,e){const n=new mo(this.document,t,e.getAttributes());return this.insert(F._createAfter(e),n),this.move(K._createIn(e),F._createAt(n,0)),this.remove(K._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return F._createAt(t,e)}createPositionAfter(t){return F._createAfter(t)}createPositionBefore(t){return F._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new ge(...t)}createSlot(t="children"){if(!this._slotFactory)throw new _("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let i,r;if(i=n?us(t):t.parent.is("$text")?t.parent.parent:t.parent,!i)throw new _("view-writer-invalid-position-container",this.document);r=n?this._breakAttributes(t,!0):t.parent.is("$text")?hs(t):t;const s=i._insertChild(r.offset,e);for(const d of e)this._addToClonedElementsGroup(d);const a=r.getShiftedBy(s),c=this.mergeAttributes(r);c.isEqual(r)||a.offset--;const l=this.mergeAttributes(a);return new K(c,l)}_wrapChildren(t,e,n,i){let r=e;const s=[];for(;r<n;){const c=t.getChild(r),l=c.is("$text"),d=c.is("attributeElement");if(d&&this._wrapAttributeElement(i,c))s.push(new F(t,r));else if(l||!d||vA(i,c)){const u=i._clone();c._remove(),u._appendChild(c),t._insertChild(r,u),this._addToClonedElementsGroup(u),s.push(new F(t,r))}else this._wrapChildren(c,0,c.childCount,i);r++}let a=0;for(const c of s)c.offset-=a,c.offset!=e&&(this.mergeAttributes(c).isEqual(c)||(a++,n--));return K._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,i){let r=e;const s=[];for(;r<n;){const c=t.getChild(r);if(c.is("attributeElement"))if(c.isSimilar(i)){const l=c.getChildren(),d=c.childCount;c._remove(),t._insertChild(r,l),this._removeFromClonedElementsGroup(c),s.push(new F(t,r),new F(t,r+d)),r+=d,n+=d-1}else this._unwrapAttributeElement(i,c)?(s.push(new F(t,r),new F(t,r+1)),r++):(this._unwrapChildren(c,0,c.childCount,i),r++);else r++}let a=0;for(const c of s)c.offset-=a,!(c.offset==e||c.offset==n)&&(this.mergeAttributes(c).isEqual(c)||(a++,n--));return K._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,s=this._wrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new K(a,c)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return Nl(t.clone());t.parent.is("$text")&&(t=hs(t));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const i=new K(t,t.getShiftedBy(1));this.wrap(i,e);const r=new F(n.parent,n.index);n._remove();const s=r.nodeBefore,a=r.nodeAfter;return s instanceof dt&&a instanceof dt?Pl(s,a):Nl(r)}_wrapAttributeElement(t,e){if(!Ll(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if(n!=="class"&&n!=="style"&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())n!=="class"&&n!=="style"&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Ll(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if(n!=="class"&&n!=="style"&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())n!=="class"&&n!=="style"&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,i=t.end;if(fo(t,this.document),t.isCollapsed){const c=this._breakAttributes(t.start,e);return new K(c,c)}const r=this._breakAttributes(i,e),s=r.parent.childCount,a=this._breakAttributes(n,e);return r.offset+=r.parent.childCount-s,new K(a,r)}_breakAttributes(t,e=!1){const n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new _("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new _("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new _("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&gs(i.parent)||gs(i))return t.clone();if(i.is("$text"))return this._breakAttributes(hs(t),e);if(n==i.childCount){const r=new F(i.parent,i.index+1);return this._breakAttributes(r,e)}if(n===0){const r=new F(i.parent,i.index);return this._breakAttributes(r,e)}{const r=i.index+1,s=i._clone();i.parent._insertChild(r,s),this._addToClonedElementsGroup(s);const a=i.childCount-n,c=i._removeChildren(n,a);s._appendChild(c);const l=new F(i.parent,r);return this._breakAttributes(l,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const i of t.getChildren())this._addToClonedElementsGroup(i);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const i of t.getChildren())this._removeFromClonedElementsGroup(i);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}
8218function us(o){let t=o.parent;for(;!gs(t);){if(!t)return;t=t.parent}return t}function vA(o,t){return o.priority<t.priority||!(o.priority>t.priority)&&o.getIdentity()<t.getIdentity()}function Nl(o){const t=o.nodeBefore;if(t&&t.is("$text"))return new F(t,t.data.length);const e=o.nodeAfter;return e&&e.is("$text")?new F(e,0):o}function hs(o){if(o.offset==o.parent.data.length)return new F(o.parent.parent,o.parent.index+1);if(o.offset===0)return new F(o.parent.parent,o.parent.index);const t=o.parent.data.slice(o.offset);return o.parent._data=o.parent.data.slice(0,o.offset),o.parent.parent._insertChild(o.parent.index+1,new dt(o.root.document,t)),new F(o.parent.parent,o.parent.index+1)}function Pl(o,t){const e=o.data.length;return o._data+=t.data,t._remove(),new F(o,e)}const yA=[dt,rn,mo,ls,ds,bi];function Ol(o,t){for(const e of o){if(!yA.some(n=>e instanceof n))throw new _("view-writer-insert-invalid-node-type",t);e.is("$text")||Ol(e.getChildren(),t)}}function gs(o){return o&&(o.is("containerElement")||o.is("documentFragment"))}function fo(o,t){const e=us(o.start),n=us(o.end);if(!e||!n||e!==n)throw new _("view-writer-invalid-range-container",t)}function Ll(o,t){return o.id===null&&t.id===null}const zl=o=>o.createTextNode("Â "),Rl=o=>{const t=o.createElement("span");return t.dataset.ckeFiller="true",t.innerText="Â ",t},jl=o=>{const t=o.createElement("br");return t.dataset.ckeFiller="true",t},me=7,ko="â ".repeat(me);function Yt(o){return typeof o=="string"?o.substr(0,me)===ko:vt(o)&&o.data.substr(0,me)===ko}function Nn(o){return o.data.length==me&&Yt(o)}function Fl(o){const t=typeof o=="string"?o:o.data;return Yt(o)?t.slice(me):t}function xA(o,t){if(t.keyCode==X.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(e.rangeCount==1&&e.getRangeAt(0).collapsed){const n=e.getRangeAt(0).startContainer,i=e.getRangeAt(0).startOffset;Yt(n)&&i<=me&&e.collapse(n,0)}}}var Vl=R(8264),EA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Vl.A,EA),Vl.A.locals;class DA extends lt(){constructor(t,e){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),y.isBlink&&!y.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(t,e){if(t==="text")this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if(t==="attributes")this.markedAttributes.add(e);else{if(t!=="children")throw new _("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}render(){if(this.isComposing&&!y.isAndroid)return;let t=null;const e=!(y.isBlink&&!y.isAndroid)||!this.isSelecting;for(const n of this.markedChildren)this._updateChildrenMappings(n);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=F._createBefore(t.parent)));for(const n of this.markedAttributes)this._updateAttrs(n);for(const n of this.markedChildren)this._updateChildren(n,{inlineFillerPosition:t});for(const n of this.markedTexts)!this.markedChildren.has(n.parent)&&this.domConverter.mapViewToDom(n.parent)&&this._updateText(n,{inlineFillerPosition:t});if(e)if(t){const n=this.domConverter.viewPositionToDom(t),i=n.parent.ownerDocument;Yt(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=Hl(i,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.childNodes),i=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),r=this._diffNodeLists(n,i),s=this._findUpdateActions(r,n,i,IA);if(s.indexOf("update")!==-1){const a={equal:0,insert:0,delete:0};for(const c of s)if(c==="update"){const l=a.equal+a.insert,d=a.equal+a.delete,u=t.getChild(l);!u||u.is("uiElement")||u.is("rawElement")||this._updateElementMappings(u,n[d]),Uc(i[l]),a.equal++}else a[c]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.b
8218indElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?F._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&vt(e.parent)&&Yt(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Yt(t))throw new _("view-renderer-filler-was-lost",this);Nn(t)?t.remove():t.data=t.data.substr(me),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root)||!e.is("element")||!function(s){if(s.getAttribute("contenteditable")=="false")return!1;const a=s.findAncestor(c=>c.hasAttribute("contenteditable"));return!a||a.getAttribute("contenteditable")=="true"}(e))return!1;const i=t.nodeBefore,r=t.nodeAfter;return!(i instanceof dt||r instanceof dt)&&!!(n!==e.getFillerOffset()||i&&i.is("element","br"))&&(!y.isAndroid||!i&&!r)}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let i=this.domConverter.viewToDom(t).data;const r=e.inlineFillerPosition;r&&r.parent==t.parent&&r.offset==t.index&&(i=ko+i),Ul(n,i)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map(r=>r.name),i=t.getAttributeKeys();for(const r of i)this.domConverter.setDomElementAttribute(e,r,t.getAttribute(r),t);for(const r of n)t.hasAttribute(r)||this.domConverter.removeDomElementAttribute(e,r)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(y.isAndroid){let u=null;for(const h of Array.from(n.childNodes)){if(u&&vt(u)&&vt(h)){n.normalize();break}u=h}}const i=e.inlineFillerPosition,r=n.childNodes,s=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));i&&i.parent===t&&Hl(n.ownerDocument,s,i.offset);const a=this._diffNodeLists(r,s),c=this._findUpdateActions(a,r,s,TA);let l=0;const d=new Set;for(const u of c)u==="delete"?(d.add(r[l]),Uc(r[l])):u!=="equal"&&u!=="update"||l++;l=0;for(const u of c)u==="insert"?(jc(n,l,s[l]),l++):u==="update"?(Ul(r[l],s[l].data),l++):u==="equal"&&(this._markDescendantTextToSync(this.domConverter.domToView(s[l])),l++);for(const u of d)u.parentNode||this.domConverter.unbindDomElement(u)}_diffNodeLists(t,e){return t=function(n,i){const r=Array.from(n);return r.length==0||!i||r[r.length-1]==i&&r.pop(),r}(t,this._fakeSelectionContainer),T(t,e,MA.bind(null,this.domConverter))}_findUpdateActions(t,e,n,i){if(t.indexOf("insert")===-1||t.indexOf("delete")===-1)return t;let r=[],s=[],a=[];const c={equal:0,insert:0,delete:0};for(const l of t)l==="insert"?a.push(n[c.equal+c.insert]):l==="delete"?s.push(e[c.equal+c.delete]):(r=r.concat(T(s,a,i).map(d=>d==="equal"?"update":d)),r.push("equal"),s=[],a=[]),c[l]++;return r.concat(T(s,a,i).map(l=>l==="equal"?"update":l))}_markDescendantTextToSync(t){if(t){if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}}_updateSelection(){if(y.isBlink&&!y.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this.selection.rangeCount===0)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&y.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(s){const a=s.createElement("div");return a.className="ck-fake-selection-container",Object.assign(a.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),a.textContent="Â ",a}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"Â ";const i=e.getSelection(),r=e.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,i.parent,i.offset),y.isGecko&&function(r,s){let a=r.parent,c=r.offset;if(vt(a)&&Nn(a)&&(c=co(a)+1,a=a.parentNode),a.nodeType!=Node.ELEMENT_NODE||c!=a.childNodes.length-1)return;const l=a.childNodes[c];l&&l.tagName=="BR"&&s.addRange(s.getRangeAt(0))}(i,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,i=this.domConverter.mapDomToView(n);n&&i&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function Hl(o,t,e){const n=t instanceof Array?t:t.childNodes,i=n[e];if(vt(i))return i.data=ko+i.data,i;{const r=o.createTextNode(ko);return Array.isArray(t)?n.splice(e,0,r):jc(t,e,r),r}}function IA(o,t){return Fe(o)&&Fe(t)&&!vt(o)&&!vt(t)&&!lo(o)&&!lo(t)&&o.tagName.toLowerCase()===t.tagName.toLowerCase()}function TA(o,t){return Fe(o)&&Fe(t)&&vt(o)&&vt(t)}function MA(o,t,e){return t===e||(vt(t)&&vt(e)?t.data===e.data:!(!o.isBlockFiller(t)||!o.isBlockFiller(e)))}function Ul(o,t){const e=o.data;if(e==t)return;const n=f(e,t);for(const i of n)i.type==="insert"?o.insertData(i.index,i.values.join("")):o.deleteData(i.index,i.howMany)}const SA=jl(v.document),BA=zl(v.document),NA=Rl(v.document),wi="data-ck-unsafe-attribute-",ql="data-ck-unsafe-element";class Ai{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ye,this._inlineObjectElementMatcher=new ye,this._elementsWithTemporaryCustomProperties=new Set,this.document=t,this.renderingMode=n,this.blockFillerMode=e||(n==="editing"?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument=this.renderingMode==="editing"?v.document:v.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new ge(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const n of Array.from(t.children))this.unbindDomElement(n)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return this.renderingMode==="data"||!(t=t.toLowerCase()).startsWith("on")&&(t!=="srcdoc"||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&(n==="img"&&(t==="src"||t==="srcset")||n==="source"&&t==="srcset"||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(t,e){if(this.renderingMode==="data")return void(t.innerHTML=e);const n=new DOMParser().parseFromString(e,"text/html"),i=n.createDocumentFragment(),r=n.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);const s=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT),a=[];let c;for(;c=s.nextNode();)a.push(c);for(const l of a){for(const u of l.getAttributeNames())this.setDomElementAttribute(l,u,l.getAttribute(u));const d=l.tagName.toLowerCase();this._shouldRenameElement(d)&&(Kl(d),l.replaceWith(this._createReplacementDomElement(d,l)))}for(;t.firstChild;)t.firstChild.remove();t.append(i)}viewToDom(t,e={}){if(t.is("$text")){const n=this._processDataFromViewText(t);return this._domDocument.createTextNode(n)}{const n=t;if(this.mapViewToDom(n)){if(!n.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(n);this._elementsWithTemporaryCustomProperties.add(n)}let i;if(n.is("documentFragment"))i=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(i,n);else{if(n.is("uiElement"))return i=n.name==="$comment"?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),e.bind&&this.bindElements(i,n),i;this._shouldRenameElement(n.name)?(Kl(n.name),i=this._createReplacementDomElement(n.name)):i=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(i,this),e.bind&&this.bindElements(i,n);for(const r of n.getAttributeKeys())this.setDomElementAttribute(i,r,n.getAttribute(r),n)}if(e.withChildren!==!1)for(const r of this.viewChildrenToDom(n,e))i instanceof HTMLTemplateElement?i.content.appendChild(r):i.appendChild(r);return i}}setDomElementAttribute(t,e,n,i){const r=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);r||U("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),function(s){try{v.document.createAttribute(s)}catch{return!1}return!0}(e)?(t.hasAttribute(e)&&!r?t.removeAttribute(e):t.hasAttribute(wi+e)&&r&&t.removeAttribute(wi+e),t.setAttribute(r?e:wi+e,n)):U("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=ql&&(t.removeAttribute(e),t.removeAttribute(wi+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let i=0;for(const r of t.getChildren()){n===i&&(yield this._getBlockFiller());const s=r.is("element")&&!!r.getCustomProperty("dataPipeline:transparentRendering")&&!St(r.getAttributes());s&&this.renderingMode=="data"?yield*this.viewChildrenToDom(r,e):(s&&U("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:r}),yield this.viewToDom(r,e)),i++}n===i&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),i=this._domDocument.createRange();return i.setStart(e.parent,e.offset),i.setEnd(n.parent,n.offset),i}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let i=t.offset;return Yt(n)&&(i+=me),{parent:n,offset:i}}{let n,i,r;if(t.offset===0){if(n=this.mapViewToDom(e),!n)return null;r=n.childNodes[0]}else{const s=t.nodeBefore;if(i=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(s),!i)return null;n=i.parentNode,r=i.nextSibling}return vt(r)&&Yt(r)?{parent:r,offset:me}:{parent:n,offset:i?co(i)+1:0}}}domToView(t,e={}){const n=[],i=this._domToView(t,e,n),r=i.next().value;return r?(i.next(),this._processDomInlineNodes(null,n,e),r.is("$text")&&r.data.length==0?null:r):null}*domChildrenToView(t,e={},n=[]){let i=[];i=t instanceof HTMLTemplateElement?[...t.content.childNodes]:[...t.childNodes];for(let r=0;r<i.length;r++){const s=i[r],a=this._domToView(s,e,n),c=a.next().value;c!==null&&(this._isBlockViewElement(c)&&this._processDomInlineNodes(t,n,e),yield c,a.next())}this._processDomInlineNodes(t,n,e)}
8218domSelectionToView(t){if(function(i){if(!y.isGecko||!i.rangeCount)return!1;const r=i.getRangeAt(0).startContainer;try{Object.prototype.toString.call(r)}catch{return!0}return!1}(t))return new ge([]);if(t.rangeCount===1){let i=t.getRangeAt(0).startContainer;vt(i)&&(i=i.parentNode);const r=this.fakeSelectionToView(i);if(r)return r}const e=this.isDomSelectionBackward(t),n=[];for(let i=0;i<t.rangeCount;i++){const r=t.getRangeAt(i),s=this.domRangeToView(r);s&&n.push(s)}return new ge(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new K(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,co(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return F._createBefore(n);if(vt(t)){if(Nn(t))return this.domPositionToView(t.parentNode,co(t));const i=this.findCorrespondingViewText(t);let r=e;return i?(Yt(t)&&(r-=me,r=r<0?0:r),new F(i,r)):null}if(e===0){const i=this.mapDomToView(t);if(i)return new F(i,0)}else{const i=t.childNodes[e-1];if(vt(i)&&Nn(i)||i&&this.isBlockFiller(i))return this.domPositionToView(i.parentNode,co(i));const r=vt(i)?this.findCorrespondingViewText(i):this.mapDomToView(i);if(r&&r.parent)return new F(r.parent,r.index+1)}return null}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(Nn(t))return null;const e=this.getHostViewElement(t);if(e)return e;const n=t.previousSibling;if(n){if(!this.isElement(n))return null;const i=this.mapDomToView(n);if(i){const r=i.nextSibling;return r instanceof dt?r:null}}else{const i=this.mapDomToView(t.parentNode);if(i){const r=i.getChild(0);return r instanceof dt?r:null}}return null}mapViewToDom(t){return this._viewToDomMapping.get(t)}findCorrespondingDomText(t){const e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}focus(t){const e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){const{scrollX:n,scrollY:i}=v.window,r=[];Gl(e,s=>{const{scrollLeft:a,scrollTop:c}=s;r.push([a,c])}),e.focus(),Gl(e,s=>{const[a,c]=r.shift();s.scrollLeft=a,s.scrollTop=c}),v.window.scrollTo(n,i)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return this.blockFillerMode=="br"?t.isEqualNode(SA):!(t.tagName!=="BR"||!Wl(t,this.blockElements)||t.parentNode.childNodes.length!==1)||t.isEqualNode(NA)||function(e,n){return e.isEqualNode(BA)&&Wl(e,n)&&e.parentNode.childNodes.length===1}(t,this.blockElements)}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch{return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=function(n){const i=[];let r=n;for(;r&&r.nodeType!=Node.DOCUMENT_NODE;)i.unshift(r),r=r.parentNode;return i}(t);for(e.pop();e.length;){const n=e.pop(),i=this._domToViewMapping.get(n);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_clearTemporaryCustomProperties(){for(const t of this._elementsWithTemporaryCustomProperties)t._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return zl(this._domDocument);case"markedNbsp":return Rl(this._domDocument);case"br":return jl(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(vt(t)&&Yt(t)&&e<me||this.isElement(t)&&Yt(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}*_domToView(t,e,n){if(this.isBlockFiller(t))return null;const i=this.getHostViewElement(t);if(i)return i;if(lo(t)&&e.skipComments)return null;if(vt(t)){if(Nn(t))return null;{const r=t.data;if(r==="")return null;const s=new dt(this.document,r);return n.push(s),s}}{let r=this.mapDomToView(t);if(r)return this._isInlineObjectElement(r)&&n.push(r),r;if(this.isDocumentFragment(t))r=new sn(this.document),e.bind&&this.bindDocumentFragments(t,r);else{r=this._createViewElement(t,e),e.bind&&this.bindElements(t,r);const a=t.attributes;if(a)for(let c=a.length,l=0;l<c;l++)r._setAttribute(a[l].name,a[l].value);if(this._isViewElementWithRawContent(r,e))return r._setCustomProperty("$rawContent",t.innerHTML),this._isBlockViewElement(r)||n.push(r),r;if(lo(t))return r._setCustomProperty("$rawContent",t.data),r}yield r;const s=[];if(e.withChildren!==!1)for(const a of this.domChildrenToView(t,e,s))r._appendChild(a);if(this._isInlineObjectElement(r))n.push(r);else for(const a of s)n.push(a)}}_processDomInlineNodes(t,e,n){if(!e.length||t&&!this.isDocumentFragment(t)&&!this._isBlockDomElement(t))return;let i=!1;for(let r=0;r<e.length;r++){const s=e[r];if(!s.is("$text")){i=!1;continue}let a,c=!1;if(PA(s,this.preElements))a=Fl(s.data);
8218else{a=s.data.replace(/[ \n\t\r]{1,}/g," "),c=/[^\S\u00A0]/.test(a.charAt(a.length-1));const l=r>0?e[r-1]:null,d=r+1<e.length?e[r+1]:null,u=!l||l.is("element")&&l.name=="br"||i,h=!d&&!Yt(s.data);n.withChildren!==!1&&(u&&(a=a.replace(/^ /,"")),h&&(a=a.replace(/ $/,""))),a=Fl(a),a=a.replace(/ \u00A0/g," ");const g=d&&d.is("element")&&d.name!="br",m=d&&d.is("$text")&&d.data.charAt(0)==" ";(/[ \u00A0]\u00A0$/.test(a)||!d||g||m)&&(a=a.replace(/\u00A0$/," ")),(u||l&&l.is("element")&&l.name!="br")&&(a=a.replace(/^\u00A0/," "))}a.length==0&&s.parent?(s._remove(),e.splice(r,1),r--):(s._data=a,i=c)}e.length=0}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return e;if(e.charAt(0)==" "){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e="Â "+e.substr(1))}if(e.charAt(e.length-1)==" "){const n=this._getTouchingInlineViewNode(t,!0),i=n&&n.is("$textProxy")&&n.data.charAt(0)==" ";e.charAt(e.length-2)!=" "&&n&&!i||(e=e.substr(0,e.length-1)+"Â ")}return e.replace(/ {2}/g," Â ")}_nodeEndsWithSpace(t){if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return!1;const e=this._processDataFromViewText(t);return e.charAt(e.length-1)==" "}_getTouchingInlineViewNode(t,e){const n=new on({startPosition:e?F._createAfter(t):F._createBefore(t),direction:e?"forward":"backward"});for(const i of n){if(i.item.is("element","br"))return null;if(this._isInlineObjectElement(i.item))return i.item;if(i.item.is("containerElement"))return null;if(i.item.is("$textProxy"))return i.item}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&(t.name=="br"||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(lo(t))return new bi(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new $t(this.document,n)}_isViewElementWithRawContent(t,e){return e.withChildren!==!1&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return this.renderingMode==="editing"&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(ql,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const i of e.getAttributeNames())n.setAttribute(i,e.getAttribute(i))}return n}}function PA(o,t){return o.getAncestors().some(e=>e.is("element")&&t.includes(e.name))}function Gl(o,t){let e=o;for(;e;)t(e),e=e.parentElement}function Wl(o,t){const e=o.parentNode;return!!e&&!!e.tagName&&t.includes(e.tagName.toLowerCase())}function Kl(o){o==="script"&&U("domconverter-unsafe-script-element-detected"),o==="style"&&U("domconverter-unsafe-style-element-detected")}class xe extends ne(){constructor(t){super(),this._isEnabled=!1,this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&t.nodeType===3&&(t=t.parentNode),!(!t||t.nodeType!==1)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const $l=Xc(function(o,t){yn(t,En(t),o)});class Pn{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,$l(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class He extends xe{constructor(){super(...arguments),this.useCapture=!1}observe(t){(typeof this.domEventType=="string"?[this.domEventType]:this.domEventType).forEach(e=>{this.listenTo(t,e,(n,i)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(i.target)&&this.onDomEvent(i)},{useCapture:this.useCapture})})}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new Pn(this.view,e,n))}}class OA extends He{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(t){const e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return In(this)}};this.fire(t.type,t,e)}}const ms=function(){return de.Date.now()};var LA=/\s/;const zA=function(o){for(var t=o.length;t--&&LA.test(o.charAt(t)););return t};var RA=/^\s+/;const jA=function(o){return o&&o.slice(0,zA(o)+1).replace(RA,"")};var FA=/^[-+]0x[0-9a-f]+$/i,VA=/^0b[01]+$/i,HA=/^0o[0-7]+$/i,UA=parseInt;
8218const Yl=function(o){if(typeof o=="number")return o;if(gi(o))return NaN;if(pt(o)){var t=typeof o.valueOf=="function"?o.valueOf():o;o=pt(t)?t+"":t}if(typeof o!="string")return o===0?o:+o;o=jA(o);var e=VA.test(o);return e||HA.test(o)?UA(o.slice(2),e?2:8):FA.test(o)?NaN:+o};var qA=Math.max,GA=Math.min;const On=function(o,t,e){var n,i,r,s,a,c,l=0,d=!1,u=!1,h=!0;if(typeof o!="function")throw new TypeError("Expected a function");function g(x){var M=n,N=i;return n=i=void 0,l=x,s=o.apply(N,M)}function m(x){var M=x-c;return c===void 0||M>=t||M<0||u&&x-l>=r}function k(){var x=ms();if(m(x))return b(x);a=setTimeout(k,function(M){var N=t-(M-c);return u?GA(N,r-(M-l)):N}(x))}function b(x){return a=void 0,h&&n?g(x):(n=i=void 0,s)}function A(){var x=ms(),M=m(x);if(n=arguments,i=this,c=x,M){if(a===void 0)return function(N){return l=N,a=setTimeout(k,t),d?g(N):s}(c);if(u)return clearTimeout(a),a=setTimeout(k,t),g(c)}return a===void 0&&(a=setTimeout(k,t)),s}return t=Yl(t)||0,pt(e)&&(d=!!e.leading,r=(u="maxWait"in e)?qA(Yl(e.maxWait)||0,t):r,h="trailing"in e?!!e.trailing:h),A.cancel=function(){a!==void 0&&clearTimeout(a),l=0,n=c=i=a=void 0},A.flush=function(){return a===void 0?s:b(ms())},A};class WA extends xe{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=On(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){const t=this.document;t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:"$capture"}),t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new ge(e.getRanges(),{backward:e.isBackward,fake:!1});t!=X.arrowleft&&t!=X.arrowup||n.setTo(n.getFirstPosition()),t!=X.arrowright&&t!=X.arrowdown||n.setTo(n.getLastPosition());const i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}const KA=function(o){return this.__data__.set(o,"__lodash_hash_undefined__"),this},$A=function(o){return this.__data__.has(o)};function _i(o){var t=-1,e=o==null?0:o.length;for(this.__data__=new Yo;++t<e;)this.add(o[t])}_i.prototype.add=_i.prototype.push=KA,_i.prototype.has=$A;const YA=_i,QA=function(o,t){for(var e=-1,n=o==null?0:o.length;++e<n;)if(t(o[e],e,o))return!0;return!1},ZA=function(o,t){return o.has(t)},Ql=function(o,t,e,n,i,r){var s=1&e,a=o.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=r.get(o),d=r.get(t);if(l&&d)return l==t&&d==o;var u=-1,h=!0,g=2&e?new YA:void 0;for(r.set(o,t),r.set(t,o);++u<a;){var m=o[u],k=t[u];if(n)var b=s?n(k,m,u,t,o,r):n(m,k,u,o,t,r);if(b!==void 0){if(b)continue;h=!1;break}if(g){if(!QA(t,function(A,x){if(!ZA(g,x)&&(m===A||i(m,A,e,n,r)))return g.push(x)})){h=!1;break}}else if(m!==k&&!i(m,k,e,n,r)){h=!1;break}}return r.delete(o),r.delete(t),h},JA=function(o){var t=-1,e=Array(o.size);return o.forEach(function(n,i){e[++t]=[i,n]}),e},XA=function(o){var t=-1,e=Array(o.size);return o.forEach(function(n){e[++t]=n}),e};var Zl=_e?_e.prototype:void 0,ps=Zl?Zl.valueOf:void 0;const t0=function(o,t,e,n,i,r,s){switch(e){case"[object DataView]":if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(o.byteLength!=t.byteLength||!r(new ei(o),new ei(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return to(+o,+t);case"[object Error]":return o.name==t.name&&o.message==t.message;case"[object RegExp]":case"[object String]":return o==t+"";case"[object Map]":var a=JA;case"[object Set]":var c=1&n;if(a||(a=XA),o.size!=t.size&&!c)return!1;var l=s.get(o);if(l)return l==t;n|=2,s.set(o,t);var d=Ql(a(o),a(t),n,i,r,s);return s.delete(o),d;case"[object Symbol]":if(ps)return ps.call(o)==ps.call(t)}return!1};var e0=Object.prototype.hasOwnProperty;const n0=function(o,t,e,n,i,r){var s=1&e,a=Mr(o),c=a.length;if(c!=Mr(t).length&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in t:e0.call(t,d)))return!1}var u=r.get(o),h=r.get(t);if(u&&h)return u==t&&h==o;var g=!0;r.set(o,t),r.set(t,o);for(var m=s;++l<c;){var k=o[d=a[l]],b=t[d];if(n)var A=s?n(b,k,d,t,o,r):n(k,b,d,o,t,r);if(!(A===void 0?k===b||i(k,b,e,n,r):A)){g=!1;break}m||(m=d=="constructor")}if(g&&!m){var x=o.constructor,M=t.constructor;x==M||!("constructor"in o)||!("constructor"in t)||typeof x=="function"&&x instanceof x&&typeof M=="function"&&M instanceof M||(g=!1)}return r.delete(o),r.delete(t),g};var Jl="[object Arguments]",Xl="[object Array]",Ci="[object Object]",td=Object.prototype.hasOwnProperty;const o0=function(o,t,e,n,i,r){var s=Wt(o),a=Wt(t),c=s?Xl:so(o),l=a?Xl:so(t),d=(c=c==Jl?Ci:c)==Ci,u=(l=l==Jl?Ci:l)==Ci,h=c==l;if(h&&oo(o)){if(!oo(t))return!1;s=!0,d=!1}if(h&&!d)return r||(r=new vn),s||Dr(o)?Ql(o,t,e,n,i,r):t0(o,t,c,e,n,i,r);if(!(1&e)){var g=d&&td.call(o,"__wrapped__"),m=u&&td.call(t,"__wrapped__");
8218if(g||m){var k=g?o.value():o,b=m?t.value():t;return r||(r=new vn),i(k,b,e,n,r)}}return!!h&&(r||(r=new vn),n0(o,t,e,n,i,r))},vi=function o(t,e,n,i,r){return t===e||(t==null||e==null||!te(t)&&!te(e)?t!=t&&e!=e:o0(t,e,n,i,o,r))},i0=function(o,t,e){var n=(e=typeof e=="function"?e:void 0)?e(o,t):void 0;return n===void 0?vi(o,t,void 0,e):!!n};class ed extends xe{constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this.renderer=t._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(t.length===0)return;const e=this.domConverter,n=new Set,i=new Set;for(const s of t){const a=e.mapDomToView(s.target);a&&(a.is("uiElement")||a.is("rawElement")||s.type!=="childList"||this._isBogusBrMutation(s)||i.add(a))}for(const s of t){const a=e.mapDomToView(s.target);if((!a||!a.is("uiElement")&&!a.is("rawElement"))&&s.type==="characterData"){const c=e.findCorrespondingViewText(s.target);c&&!i.has(c.parent)?n.add(c):!c&&Yt(s.target)&&i.add(e.mapDomToView(s.target.parentNode))}}let r=!1;for(const s of n)r=!0,this.renderer.markToSync("text",s);for(const s of i){const a=e.mapViewToDom(s),c=Array.from(s.getChildren()),l=Array.from(e.domChildrenToView(a,{withChildren:!1}));i0(c,l,r0)||(r=!0,this.renderer.markToSync("children",s))}r&&this.view.forceRender()}_isBogusBrMutation(t){let e=null;return t.nextSibling===null&&t.removedNodes.length===0&&t.addedNodes.length==1&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}function r0(o,t){if(!Array.isArray(o))return o===t||!(!o.is("$text")||!t.is("$text"))&&o.data===t.data}class yi extends He{constructor(t){super(t),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),t.change(()=>{})},50)}),e.on("blur",(n,i)=>{const r=e.selection.editableElement;r!==null&&r!==i.target||(e.isFocused=!1,this._isFocusChanging=!1,t.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class s0 extends xe{constructor(t){super(t),this.mutationObserver=t.getObserver(ed),this.focusObserver=t.getObserver(yi),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=On(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=On(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(i,r)=>{this.document.isComposing&&!y.isAndroid||(this._handleSelectionChange(r,e),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();
8218if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const i=this.domConverter.domSelectionToView(n);if(i.rangeCount!=0){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(i)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(i))this.view.forceRender();else{const r={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class a0 extends He{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",()=>{e.isComposing=!0},{priority:"low"}),e.on("compositionend",()=>{e.isComposing=!1},{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class nd{constructor(t,e={}){this._files=e.cacheFiles?od(t):null,this._native=t}get files(){return this._files||(this._files=od(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return this._native.dropEffect=="none"||!!this._native.mozUserCancelled}}function od(o){const t=Array.from(o.files||[]),e=Array.from(o.items||[]);return t.length?t:e.filter(n=>n.kind==="file").map(n=>n.getAsFile())}class c0 extends He{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(t){const e=t.getTargetRanges(),n=this.view,i=n.document;let r=null,s=null,a=[];if(t.dataTransfer&&(r=new nd(t.dataTransfer)),t.data!==null?s=t.data:r&&(s=r.getData("text/plain")),i.selection.isFake)a=Array.from(i.selection.getRanges());else if(e.length)a=e.map(c=>{const l=n.domConverter.domPositionToView(c.startContainer,c.startOffset),d=n.domConverter.domPositionToView(c.endContainer,c.endOffset);return l?n.createRange(l,d):d?n.createRange(d):void 0}).filter(c=>!!c);else if(y.isAndroid){const c=t.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(c).getRanges())}if(y.isAndroid&&t.inputType=="insertCompositionText"&&s&&s.endsWith(` 8219`))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});else if(t.inputType=="insertText"&&s&&s.includes(` 8220`)){const c=s.split(/\n{1,2}/g);let l=a;for(let d=0;d<c.length;d++){const u=c[d];u!=""&&(this.fire(t.type,t,{data:u,dataTransfer:r,targetRanges:l,inputType:t.inputType,isComposing:t.isComposing}),l=[i.selection.getFirstRange()]),d+1<c.length&&(this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:l}),l=[i.selection.getFirstRange()])}}else this.fire(t.type,t,{data:s,dataTransfer:r,targetRanges:a,inputType:t.inputType,isComposing:t.isComposing})}}class l0 extends xe{constructor(t){super(t),this.document.on("keydown",(e,n)=>{if(this.isEnabled&&((i=n.keyCode)==X.arrowright||i==X.arrowleft||i==X.arrowup||i==X.arrowdown)){const r=new Sn(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(r,n),r.stop.called&&e.stop()}var i})}observe(){}stopObserving(){}}class d0 extends xe{constructor(t){super(t);const e=this.document;e.on("keydown",(n,i)=>{if(!this.isEnabled||i.keyCode!=X.tab||i.ctrlKey)return;const r=new Sn(e,"tab",e.selection.getFirstRange());e.fire(r,i),r.stop.called&&n.stop()})}observe(){}stopObserving(){}}const pe=function(o){return Lr(o,5)};class u0 extends lt(){constructor(t){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new ki(t),this.domConverter=new Ai(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new DA(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Bl(this.document),this.addObserver(ed),this.addObserver(yi),this.addObserver(s0),this.addObserver(OA),this.addObserver(WA),this.addObserver(a0),this.addObserver(l0),this.addObserver(c0),this.addObserver(d0),this.document.on("arrowKey",xA,{priority:"low"}),AA(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}),y.isiOS&&this.listenTo(this.document,"blur",(e,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const i={};for(const{name:s,value:a}of Array.from(t.attributes))i[s]=a,s==="class"?this._writer.addClass(a.split(" "),n):this._writer.setAttribute(s,a,n);this._initialDomRootAttributes.set(t,i);const r=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};
8220r(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",(s,a)=>this._renderer.markToSync("children",a)),n.on("change:attributes",(s,a)=>this._renderer.markToSync("attributes",a)),n.on("change:text",(s,a)=>this._renderer.markToSync("text",a)),n.on("change:isReadOnly",()=>this.change(r)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const s of this._observers.values())s.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach(({name:i})=>e.removeAttribute(i));const n=this._initialDomRootAttributes.get(e);for(const i in n)e.setAttribute(i,n[i]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const i of this._observers.values())i.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[n,i]of this.domRoots)e.observe(i,n);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:i=20}={}){const r=this.document.selection.getFirstRange();if(!r)return;const s=pe({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:i});typeof n=="number"&&(n={top:n,bottom:n,left:n,right:n});const a={target:this.domConverter.viewRangeToDom(r),viewportOffset:n,ancestorOffset:i,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",a,s),function({target:c,viewportOffset:l=0,ancestorOffset:d=0,alignToTop:u,forceScroll:h}){const g=jr(c);let m=g,k=null;for(l=function(b){return typeof b=="number"?{top:b,bottom:b,left:b,right:b}:b}(l);m;){let b;b=ww(m==g?c:k),bw({parent:b,getRect:()=>$c(c,m),alignToTop:u,ancestorOffset:d,forceScroll:h});const A=$c(c,m);if(kw({window:m,rect:A,viewportOffset:l,alignToTop:u,forceScroll:h}),m.parent!=m){if(k=m.frameElement,m=m.parent,!k)return}else m=null}}(a)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new _("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(e){_.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(yi).flush(),this.change(()=>{})}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return F._createAt(t,e)}createPositionAfter(t){return F._createAfter(t)}createPositionBefore(t){return F._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new ge(...t)}_disableRendering(t){this._renderingDisabled=t,t==0&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Ue{is(){throw new Error("is() method is abstract")}}class an extends Ue{constructor(t){super(),this.parent=null,this._attrs=Ce(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if((t=this.parent.getChildIndex(this))===null)throw new _("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if((t=this.parent.getChildStartOffset(this))===null)throw new _("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return t!==null&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return t!==null&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.parent!==null&&this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return r===0?null:n[r-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=Lt(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}isAfter(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}hasAttribute(t){return this._attrs.has(t)}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce((e,n)=>(e[n[0]]=n[1],e),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=Ce(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}an.prototype.is=function(o){return o==="node"||o==="model:node"};class bo{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return e==-1?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return e===null?null:this._nodes.slice(0,e).reduce((n,i)=>n+i.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];
8220if(!e)throw new _("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new _("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const n of e)if(!(n instanceof an))throw new _("model-nodelist-insertnodes-not-node",this);this._nodes=function(n,i,r,s){if(Math.max(i.length,n.length)>1e4)return n.slice(0,r).concat(i).concat(n.slice(r+s,n.length));{const a=Array.from(n);return a.splice(r,s,...i),a}}(this._nodes,Array.from(e),t,0)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map(t=>t.toJSON())}}class ut extends an{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new ut(this.data,this.getAttributes())}static fromJSON(t){return new ut(t.data,t.attributes)}}ut.prototype.is=function(o){return o==="$text"||o==="model:$text"||o==="text"||o==="model:text"||o==="node"||o==="model:node"};class fe extends Ue{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new _("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new _("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return this.textNode.startOffset!==null?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return this.startOffset!==null?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}fe.prototype.is=function(o){return o==="$textProxy"||o==="model:$textProxy"||o==="textProxy"||o==="model:textProxy"};class st extends an{constructor(t,e,n){super(e),this._children=new bo,this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(n=>n._clone(!0)):void 0;return new st(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(i){return typeof i=="string"?[new ut(i)]:(Gt(i)||(i=[i]),Array.from(i).map(r=>typeof r=="string"?new ut(r):r instanceof fe?new ut(r.data,r.getAttributes()):r))}(e);for(const i of n)i.parent!==null&&i._remove(),i.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const i of n)i.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)n.name?e.push(st.fromJSON(n)):e.push(ut.fromJSON(n))}return new st(t.name,t.attributes,e)}}st.prototype.is=function(o,t){return t?t===this.name&&(o==="element"||o==="model:element"):o==="element"||o==="model:element"||o==="node"||o==="model:node"};
8220class Te{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new _("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if(e!="forward"&&e!="backward")throw new _("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this._position=t.startPosition.clone():this._position=O._createAt(this.boundaries[this.direction=="backward"?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,i,r;do i=this.position,r=this._visitedParent,{done:e,value:n}=this.next();while(!e&&t(n));e||(this._position=i,this._visitedParent=r)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(n.parent===null&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const i=wo(e,n),r=i||id(e,n,i);if(r instanceof st){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e.path.push(0),this._visitedParent=r;return this._position=e,cn("elementStart",r,t,e,1)}if(r instanceof ut){let s;if(this.singleCharacters)s=1;else{let l=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<l&&(l=this.boundaries.end.offset),s=l-e.offset}const a=e.offset-r.startOffset,c=new fe(r,a,s);return e.offset+=s,this._position=e,cn("text",c,t,e,s)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():cn("elementEnd",n,t,e)}_previous(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(n.parent===null&&e.offset===0)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const i=e.parent,r=wo(e,i),s=r||rd(e,i,r);if(s instanceof st)return e.offset--,this.shallow?(this._position=e,cn("elementStart",s,t,e,1)):(e.path.push(s.maxOffset),this._position=e,this._visitedParent=s,this.ignoreElementEnd?this._previous():cn("elementEnd",s,t,e));if(s instanceof ut){let a;if(this.singleCharacters)a=1;else{let d=s.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>d&&(d=this.boundaries.start.offset),a=e.offset-d}const c=e.offset-s.startOffset,l=new fe(s,c-a,a);return e.offset-=a,this._position=e,cn("text",l,t,e,a)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,cn("elementStart",n,t,e,1)}}function cn(o,t,e,n,i){return{done:!1,value:{type:o,item:t,previousPosition:e,nextPosition:n,length:i}}}class O extends Ue{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new _("model-position-root-invalid",t);if(!(e instanceof Array)||e.length===0)throw new _("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChild(t.offsetToIndex(this.path[e])),!t)throw new _("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new _("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return wo(this,this.parent)}get nodeAfter(){const t=this.parent;return id(this,t,wo(this,t))}get nodeBefore(){const t=this.parent;return rd(this,t,wo(this,t))}get isAtStart(){return this.offset===0}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=Lt(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}
8220getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Te(e);return n.skip(t),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}findAncestor(t){const e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}getCommonPath(t){if(this.root!=t.root)return[];const e=Lt(this.path,t.path),n=typeof e=="string"?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]==n[i]&&e[i];)i++;return i===0?null:e[i-1]}getShiftedBy(t){const e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}isAfter(t){return this.compareWith(t)=="after"}isBefore(t){return this.compareWith(t)=="before"}isEqual(t){return this.compareWith(t)=="same"}isTouching(t){if(this.root!==t.root)return!1;const e=Math.min(this.path.length,t.path.length);for(let n=0;n<e;n++){const i=this.path[n]-t.path[n];if(i<-1||i>1)return!1;if(i===1)return sd(t,this,n);if(i===-1)return sd(this,t,n)}return this.path.length===t.path.length||(this.path.length>t.path.length?fs(this.path,e):fs(t.path,e))}hasSameParentAs(t){return this.root!==t.root?!1:Lt(this.getParentPath(),t.getParentPath())=="same"}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=O._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&this.stickiness=="toNext"?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?O._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=O._createAt(this);if(this.root!=t.root)return n;if(Lt(t.getParentPath(),this.getParentPath())=="same"){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if(Lt(t.getParentPath(),this.getParentPath())=="prefix"){const i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+e>this.path[i])return null;n.path[i]-=e}}return n}_getTransformedByInsertion(t,e){const n=O._createAt(this);if(this.root!=t.root)return n;if(Lt(t.getParentPath(),this.getParentPath())=="same")(t.offset<this.offset||t.offset==this.offset&&this.stickiness!="toPrevious")&&(n.offset+=e);else if(Lt(t.getParentPath(),this.getParentPath())=="prefix"){const i=t.path.length-1;t.offset<=this.path[i]&&(n.path[i]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return O._createAt(this);const i=this._getTransformedByDeletion(t,n);return i===null||t.isEqual(this)&&this.stickiness=="toNext"||t.getShiftedBy(n).isEqual(this)&&this.stickiness=="toPrevious"?this._getCombined(t,e):i._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,i=O._createAt(e);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[n]-t.offset,i.path=[...i.path,...this.path.slice(n+1)],i}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(t,e,n="toNone"){if(t instanceof O)return new O(t.root,t.path,t.stickiness);{const i=t;if(e=="end")e=i.maxOffset;else{if(e=="before")return this._createBefore(i,n);if(e=="after")return this._createAfter(i,n);if(e!==0&&!e)throw new _("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new _("model-position-parent-incorrect",[this,t]);const r=i.getPath();return r.push(e),new this(i.root,r,n)}}static _createAfter(t,e){if(!t.parent)throw new _("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}static _createBefore(t,e){if(!t.parent)throw new _("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}static fromJSON(t,e){if(t.root==="$graveyard"){const n=new O(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new _("model-position-fromjson-no-root",e,{rootName:t.root});return new O(e.getRoot(t.root),t.path,t.stickiness)}}function wo(o,t){const e=t.getChild(t.offsetToIndex(o.offset));return e&&e.is("$text")&&e.startOffset<o.offset?e:null}function id(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset))}function rd(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset)-1)}function sd(o,t,e){return e+1!==o.path.length&&!!fs(t.path,e+1)&&!!function(n,i){let r=n.parent,s=n.path.length-1,a=0;for(;s>=i;){if(n.path[s]+a!==r.maxOffset)return!1;a=1,s--,r=r.parent}return!0}(o,e+1)}function fs(o,t){for(;t<o.length;){if(o[t]!==0)return!1;t++}return!0}O.prototype.is=function(o){return o==="position"||o==="model:position"};class B extends Ue{constructor(t,e){super(),this.start=O._createAt(t),this.end=e?O._createAt(e):O._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}
vendor: 7,160 bytes, line 8220
8220*[Symbol.iterator](){yield*new Te({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return Lt(this.start.getParentPath(),this.end.getParentPath())=="same"}get root(){return this.start.root}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}containsItem(t){const e=O._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new B(this.start,t.start)),this.containsPosition(t.end)&&e.push(new B(t.end,this.end))):e.push(new B(this.start,this.end)),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new B(e,n)}return null}getJoined(t,e=!1){let n=this.isIntersecting(t);if(n||(n=this.start.isBefore(t.start)?e?this.end.isTouching(t.start):this.end.isEqual(t.start):e?t.end.isTouching(this.start):t.end.isEqual(this.start)),!n)return null;let i=this.start,r=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(r)&&(r=t.end),new B(i,r)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=O._createAt(this.start);let i=n.parent;for(;n.path.length>e+1;){const r=i.maxOffset-n.offset;r!==0&&t.push(new B(n,n.getShiftedBy(r))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){const r=this.end.path[n.path.length-1],s=r-n.offset;s!==0&&t.push(new B(n,n.getShiftedBy(s))),n.offset=r,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Te(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Te(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new Te(t);yield e.position;for(const n of e)yield n.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new B(this.start,this.end)]}getTransformedByOperations(t){const e=[new B(this.start,this.end)];for(const n of t)for(let i=0;i<e.length;i++){const r=e[i].getTransformedByOperation(n);e.splice(i,1,...r),i+=r.length-1}for(let n=0;n<e.length;n++){const i=e[n];for(let r=n+1;r<e.length;r++){const s=e[r];(i.containsRange(s)||s.containsRange(i)||i.isEqual(s))&&e.splice(r,1)}}return e}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(t,e=!1){return this._getTransformedByInsertion(t.position,t.howMany,e)}_getTransformedByMoveOperation(t,e=!1){const n=t.sourcePosition,i=t.howMany,r=t.targetPosition;return this._getTransformedByMove(n,r,i,e)}_getTransformedBySplitOperation(t){const e=this.start._getTransformedBySplitOperation(t);let n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new B(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new B(this.start);let e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=O._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new B(e,n)):new B(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new B(this.start,t),new B(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const i=new B(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,e),i.end=i.end._getTransformedByInsertion(t,e),[i]}}_getTransformedByMove(t,e,n,i=!1){if(this.isCollapsed){const u=this.start._getTransformedByMove(t,e,n);return[new B(u)]}const r=B._createFromPositionAndShift(t,n),s=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!i&&(r.containsPosition(this.start)||r.containsPosition(this.end))){const u=this.start._getTransformedByMove(t,e,n),h=this.end._getTransformedByMove(t,e,n);return[new B(u,h)]}let a;const c=this.getDifference(r);let l=null;const d=this.getIntersection(r);if(c.length==1?l=new B(c[0].start._getTransformedByDeletion(t,n),c[0].end._getTransformedByDeletion(t,n)):c.length==2&&(l=new B(this.start,this.end._getTransformedByDeletion(t,n))),a=l?l._getTransformedByInsertion(s,n,d!==null||i):[],d){const u=new B(d.start._getCombined(r.start,s),d.end._getCombined(r.start,s));a.length==2?a.splice(1,0,u):a.push(u)}return a}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),i=this.end._getTransformedByDeletion(t,e);return n==null&&i==null?null:(n==null&&(n=t),i==null&&(i=t),new B(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return new this(O._createAt(t,0),O._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(O._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(t.length===0)throw new _("range-create-from-ranges-empty-array",null);if(t.length==1)return t[0].clone();const e=t[0];t.sort((r,s)=>r.start.isAfter(s.start)?1:-1);const n=t.indexOf(e),i=new this(e.start,e.end);if(n>0)for(let r=n-1;t[r].end.isEqual(i.start);r++)i.start=O._createAt(t[r].start);for(let r=n+1;r<t.length&&t[r].start.isEqual(i.end);r++)i.end=O._createAt(t[r].end);return i}static fromJSON(t,e){return new this(O.fromJSON(t.start,e),O.fromJSON(t.end,e))}}B.prototype.is=function(o){return o==="range"||o==="model:range"};class ad extends rt(){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new _("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),i=this._viewToModelMapping.get(n),r=this._toModelOff
8220set(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=O._createAt(i,r)},{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const i of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(i);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const i=this._elementToMarkerNames.get(t)||new Set;i.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,i)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),n.size==0&&this._markerNameToElements.delete(e));const i=this._elementToMarkerNames.get(t);i&&(i.delete(e),i.size==0&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new B(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new K(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const i of e)if(i.is("attributeElement"))for(const r of i.getElementsWithSameId())n.add(r);else n.add(i);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t)return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);if(t.is("$text"))return e;let i=0;for(let r=0;r<e;r++)i+=this.getModelLength(t.getChild(r));return i}getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name))return this._viewToModelLengthCallbacks.get(t.name)(t);if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;{let e=0;for(const n of t.getChildren())e+=this.getModelLength(n);return e}}findPositionIn(t,e){let n,i=0,r=0,s=0;if(t.is("$text"))return new F(t,e);for(;r<e;)n=t.getChild(s),i=this.getModelLength(n),r+=i,s++;return r==e?this._moveViewPositionToTextNode(new F(t,s)):this.findPositionIn(n,e-(r-i))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof dt?new F(e,e.data.length):n instanceof dt?new F(n,0):t}}class h0{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=xi(e),t instanceof fe&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}consume(t,e){return e=xi(e),t instanceof fe&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=xi(e),t instanceof fe&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(n===void 0)return null;const i=n.get(e);return i===void 0?null:i}revert(t,e){e=xi(e),t instanceof fe&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return n===!1?(this._consumable.get(t).set(e,!0),!0):n!==!0&&null}verifyAllConsumed(t){const e=[];for(const[n,i]of this._consumable)for(const[r,s]of i){const a=r.split(":")[0];s&&t==a&&e.push({event:r,item:n.name||n.description})}if(e.length)throw new _("conversion-model-consumable-not-consumed",null,{items:e})}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const i=n.get(t.endOffset);i&&(e=i.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}_addSymbolForTextProxy(t){const e=t.startOffset,n=t.endOffset,i=t.parent,r=Symbol("$textProxy:"+t.data);let s,a;return s=this._textProxyRegistry.get(e),s||(s=new Map,this._textProxyRegistry.set(e,s)),a=s.get(n),a||(a=new Map,s.set(n,a)),a.set(i,r),r}}function xi(o){const t=o.split(":");return t[0]=="insert"?t[0]:t[0]=="addMarker"||t[0]=="removeMarker"?o:t.length>1?t[0]+":"+t[1]:t[0]}var g0=Object.defineProperty,m0=Object.defineProperties,p0=Object.getOwnPropertyDescriptors,cd=Object.getOwnPropertySymbols,f0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable,ld=(o,t,e)=>t in o?g0(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,ks=(o,t)=>{for(var e in t||(t={}))f0.call(t,e)&&ld(o,e,t[e]);if(cd)for(var e of cd(t))k0.call(t,e)&&ld(o,e,t[e]);return o},dd=(o,t)=>m0(o,p0(t));class ud extends rt(){constructor(t){super(),this._conversionApi=ks({dispatcher:this},t),this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const i=this._createConversionApi(n,t.getRefreshedItems());for(const s of t.getMarkersToRemove())this._convertMarkerRemove(s.name,s.range,i);const r=this._reduceChanges(t.getChanges());for(const s of r)s.type==="insert"?this._convertInsert(B._createFromPositionAndShift(s.position,s.length),i):s.type==="reinsert"?this._convertReinsert(B._createFromPositionAndShift(s.position,s.length),i):s.type==="remove"?this._convertRemove(s.position,s.length,s.name,i):this._convertAttribute(s.range,s.attributeKey,s.attributeOldValue,s.attributeNewValue,i);i.mapper.flushDeferredBindings();for(const s of i.mapper.flushUnboundMarkerNames()){const a=e.get(s).getRange();this._convertMarkerRemove(s,a,i),this._convertMarkerAdd(s,a,i)}for(const s of t.getMarkersToAdd())this._convertMarkerAdd(s.name,s.range,i);i.consumable.verifyAllConsumed("insert")}convert(t,e,n,i={}){const r=this._createConversionApi(n,void 0,i);this._convertInsert(t,r);for(const[s,a]of e)this._convertMarkerAdd(s,a,r);r.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const i=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},i);const r=t.getFirstPosition().root;if(!i.mapper.toViewElement(r))return;const s=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(i.consumable,t,s),this.fire("selection",{selection:t},i),t.isCollapsed){for(const a of s)if(i.consumable.test(t,"addMarker:"+
8220a.name)){const c=a.getRange();if(!b0(t.getFirstPosition(),a,i.mapper))continue;const l={item:t,markerName:a.name,markerRange:c};this.fire(`addMarker:${a.name}`,l,i)}for(const a of t.getAttributeKeys())if(i.consumable.test(t,"attribute:"+a)){const c={item:t,range:t.getFirstRange(),attributeKey:a,attributeOldValue:null,attributeNewValue:t.getAttribute(a)};this.fire(`attribute:${a}:$text`,c,i)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const i of Array.from(t.getWalker({shallow:!0})).map(hd))this._testAndFire("insert",i,e)}_convertRemove(t,e,n,i){this.fire(`remove:${n}`,{position:t,length:e},i)}_convertAttribute(t,e,n,i,r){this._addConsumablesForRange(r.consumable,t,`attribute:${e}`);for(const s of t){const a={item:s.item,range:B._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:e,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${e}`,a,r)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const i of n.map(hd))this._testAndFire("insert",dd(ks({},i),{reconversion:!0}),e)}_convertMarkerAdd(t,e,n){if(e.root.rootName=="$graveyard")return;const i=`addMarker:${t}`;if(n.consumable.add(e,i),this.fire(i,{markerName:t,markerRange:e},n),n.consumable.consume(e,i)){this._addConsumablesForRange(n.consumable,e,i);for(const r of e.getItems()){if(!n.consumable.test(r,i))continue;const s={item:r,range:B._createOn(r),markerName:t,markerRange:e};this.fire(i,s,n)}}}_convertMarkerRemove(t,e,n){e.root.rootName!="$graveyard"&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const i=n.item;if(t.test(i,"insert")===null){t.add(i,"insert");for(const r of i.getAttributeKeys())t.add(i,"attribute:"+r)}}return t}_addConsumablesForRange(t,e,n){for(const i of e.getItems())t.add(i,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const i of n)t.add(e,"addMarker:"+i.name);for(const i of e.getAttributeKeys())t.add(e,"attribute:"+i);return t}_testAndFire(t,e,n){const i=function(c,l){const d=l.item.is("element")?l.item.name:"$text";return`${c}:${d}`}(t,e),r=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,s=this._firedEventsMap.get(n),a=s.get(r);if(a){if(a.has(i))return;a.add(i)}else s.set(r,new Set([i]));this.fire(i,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:B._createOn(t)};for(const i of n.item.getAttributeKeys())n.attributeKey=i,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(i),this._testAndFire(`attribute:${i}`,n,e)}_createConversionApi(t,e=new Set,n={}){const i=dd(ks({},this._conversionApi),{consumable:new h0,writer:t,options:n,convertItem:r=>this._convertInsert(B._createOn(r),i),convertChildren:r=>this._convertInsert(B._createIn(r),i,{doNotAddConsumables:!0}),convertAttributes:r=>this._testAndFireAddAttributes(r,i),canReuseView:r=>!e.has(i.mapper.toModelElement(r))});return this._firedEventsMap.set(i,new Map),i}}function b0(o,t,e){const n=t.getRange(),i=Array.from(o.getAncestors());return i.shift(),i.reverse(),!i.some(r=>{if(n.containsItem(r))return!!e.toViewElement(r).getCustomProperty("addHighlight")})}function hd(o){return{item:o.item,range:B._createFromPositionAndShift(o.previousPosition,o.length)}}class Qt extends rt(Ue){constructor(...t){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return this._ranges.length===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(this.rangeCount===0)return!0;
8220if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new B(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new B(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new B(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,i]=t;if(typeof n=="object"&&(i=n,n=void 0),e===null)this._setRanges([]);else if(e instanceof Qt)this._setRanges(e.getRanges(),e.isBackward);else if(e&&typeof e.getRanges=="function")this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof B)this._setRanges([e],!!i&&!!i.backward);else if(e instanceof O)this._setRanges([new B(e)]);else if(e instanceof an){const r=!!i&&!!i.backward;let s;if(n=="in")s=B._createIn(e);else if(n=="on")s=B._createOn(e);else{if(n===void 0)throw new _("model-selection-setto-required-second-parameter",[this,e]);s=new B(O._createAt(e,n))}this._setRanges([s],r)}else{if(!Gt(e))throw new _("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,i&&!!i.backward)}}_setRanges(t,e=!1){const n=Array.from(t),i=n.some(r=>{if(!(r instanceof B))throw new _("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every(s=>!s.isEqual(r))});(n.length!==this._ranges.length||i)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(this.anchor===null)throw new _("model-selection-setfocus-no-ranges",[this,t]);const n=O._createAt(t,e);if(n.compareWith(this.focus)=="same")return;const i=this.anchor;this._ranges.length&&this._popRange(),n.compareWith(i)=="before"?(this._pushRange(new B(n,i)),this._lastRangeBackward=!0):(this._pushRange(new B(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=md(e.start,t);A0(n,e)&&(yield n);for(const r of e.getWalker()){const s=r.item;r.type=="elementEnd"&&w0(s,t,e)&&(yield s)}const i=md(e.end,t);_0(i,e)&&(yield i)}}containsEntireContent(t=this.anchor.root){const e=O._createAt(t,0),n=O._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new B(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new _("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}_replaceAllRanges(t){this._removeAllRanges();for(const e of t)this._pushRange(e)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function gd(o,t){return!t.has(o)&&(t.add(o),o.root.document.model.schema.isBlock(o)&&!!o.parent)}function w0(o,t,e){return gd(o,t)&&bs(o,e)}function md(o,t){const e=o.parent.root.document.model.schema,n=o.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const r=n.find(s=>!i&&(i=e.isLimit(s),!i&&gd(s,t)));return n.forEach(s=>t.add(s)),r}function bs(o,t){const e=function(n){const i=n.root.document.model.schema;let r=n.parent;for(;r;){if(i.isBlock(r))return r;r=r.parent}}(o);return e?!t.containsRange(B._createOn(e),!0):!0}function A0(o,t){return!!o&&(!(!t.isCollapsed&&!o.isEmpty)||!t.start.isTouching(O._createAt(o,o.maxOffset))&&bs(o,t))}function _0(o,t){return!!o&&(!(!t.isCollapsed&&!o.isEmpty)||!t.end.isTouching(O._createAt(o,0))&&bs(o,t))}Qt.prototype.is=function(o){return o==="selection"||o==="model:selection"};class Zt extends rt(B){constructor(t,e){super(t,e),C0.call(this)}detach(){this.stopListening()}toRange(){return new B(this.start,this.end)}static fromRange(t){return new Zt(t.start,t.end)}}function C0(){this.listenTo(this.root.document.model,"applyOperation",(o,t)=>{const e=t[0];e.isDocumentOperation&&v0.call(this,e)},{priority:"low"})}function v0(o){const t=this.getTransformedByOperation(o),e=B._createFromRanges(t),n=!e.isEqual(this),i=function(s,a){switch(a.type){case"insert":return s.containsPosition(a.position);case"move":case"remove":case"reinsert":case"merge":return s.containsPosition(a.sourcePosition)||s.start.isEqual(a.sourcePosition)||s.containsPosition(a.targetPosition);case"split":return s.containsPosition(a.splitPosition)||s.containsPosition(a.insertionPosition)}return!1}(this,o);let r=null;if(n){e.root.rootName=="$graveyard"&&(r=o.type=="remove"?o.sourcePosition:o.deleti
8220onPosition);const s=this.toRange();this.start=e.start,this.end=e.end,this.fire("change:range",s,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}Zt.prototype.is=function(o){return o==="liveRange"||o==="model:liveRange"||o=="range"||o==="model:range"};const Ei="selection:";class ke extends rt(Ue){constructor(t){super(),this._selection=new y0(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return Ei+t}static _isStoreAttributeKey(t){return t.startsWith(Ei)}}ke.prototype.is=function(o){return o==="selection"||o=="model:selection"||o=="documentSelection"||o=="model:documentSelection"};class y0 extends Qt{constructor(t){super(),this.markers=new ue({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",(e,n)=>{const i=n[0];i.isDocumentOperation&&i.type!="marker"&&i.type!="rename"&&i.type!="noop"&&(this._ranges.length==0&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,n,i,r)=>{this._updateMarker(n,r)}),this.listenTo(this._document,"change",(e,n)=>{(function(i,r){const s=i.document.differ;for(const a of s.getChanges()){if(a.type!="insert")continue;const c=a.position.parent;a.length===c.maxOffset&&i.enqueueChange(r,l=>{const d=Array.from(c.getAttributeKeys()).filter(u=>u.startsWith(Ei));for(const u of d)l.removeAttribute(u,c)})}})(this._model,n)})}get isCollapsed(){return this._ranges.length===0?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...t){super.setTo(...t),this._updateAttributes(!0),this.updateMarkers()}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0),this.updateMarkers()}setAttribute(t,e){if(this._setAttribute(t,e)){const n=[t];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=V();return this._overriddenGravityRegister.add(t),this._overriddenGravityRegister.size===1&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new _("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers()}
8220_replaceAllRanges(t){this._validateSelectionRanges(t),super._replaceAllRanges(t)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_validateSelectionRanges(t){for(const e of t)if(!this._document._validateSelectionRange(e))throw new _("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=Zt.fromRange(t);return e.on("change:range",(n,i,r)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;const s=this._ranges.indexOf(e);this._ranges.splice(s,1),e.detach()}}),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const i of this._model.markers){const r=i.name.split(":",1)[0];if(!this._observedMarkers.has(r))continue;const s=i.getRange();for(const a of this.getRanges())s.containsRange(a,!a.isCollapsed)&&t.push(i)}const n=Array.from(this.markers);for(const i of t)this.markers.has(i)||(this.markers.add(i),e=!0);for(const i of Array.from(this.markers))t.includes(i)||(this.markers.remove(i),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let i=!1;const r=Array.from(this.markers),s=this.markers.has(t);if(e){let a=!1;for(const c of this.getRanges())if(e.containsRange(c,!c.isCollapsed)){a=!0;break}a&&!s?(this.markers.add(t),i=!0):!a&&s&&(this.markers.remove(t),i=!0)}else s&&(this.markers.remove(t),i=!0);i&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(t){const e=Ce(this._getSurroundingAttributes()),n=Ce(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[r,s]of this._attributePriority)s=="low"&&(this._attrs.delete(r),this._attributePriority.delete(r));this._setAttributesTo(e);const i=[];for(const[r,s]of this.getAttributes())n.has(r)&&n.get(r)===s||i.push(r);for(const[r]of n)this.hasAttribute(r)||i.push(r);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(t,e,n=!0){const i=n?"normal":"low";return i=="low"&&this._attributePriority.get(t)=="normal"?!1:super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,i),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return(n!="low"||this._attributePriority.get(t)!="normal")&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[n,i]of this.getAttributes())t.get(n)!==i&&this._removeAttribute(n,!1);for(const[n,i]of t)this._setAttribute(n,i,!1)&&e.add(n);return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())e.startsWith(Ei)&&(yield[e.substr(10),t.getAttribute(e)])}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if(t.root.rootName=="$graveyard")return null;let n=null;if(this.isCollapsed){const i=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=Ao(i,e)),n||(n=Ao(r,e)),!this.isGravityOverridden&&!n){let s=i;for(;s&&!n;)s=s.previousSibling,n=Ao(s,e)}if(!n){let s=r;for(;s&&!n;)s=s.nextSibling,n=Ao(s,e)}n||(n=this.getStoredAttributes())}else{const i=this.getFirstRange();for(const r of i){if(r.item.is("element")&&e.isObject(r.item)){n=Ao(r.item,e);break}if(r.type=="text"){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function Ao(o,t){if(!o)return null;if(o instanceof fe||o instanceof ut)return o.getAttributes();if(!t.isInline(o))return null;if(!t.isObject(o))return[];const e=[];for(const[n,i]of o.getAttributes())t.checkAttribute("$text",n)&&t.getAttributeProperties(n).copyFromObject!==!1&&e.push([n,i]);return e}class pd{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class x0 extends pd{elementToElement(t){return this.add(function(e){const n=bd(e.model),i=_o(e.view,"container");return n.attributes.length&&(n.children=!0),r=>{r.on(`insert:${n.name}`,D0(i,Cd(n)),{priority:e.converterPriority||"normal"}),(n.children||n.attributes.length)&&r.on("reduceChanges",_d(n),{priority:"low"})}}(t))}
8220elementToStructure(t){return this.add(function(e){const n=bd(e.model),i=_o(e.view,"container");return n.children=!0,r=>{if(r._conversionApi.schema.checkChild(n.name,"$text"))throw new _("conversion-element-to-structure-disallowed-text",r,{elementName:n.name});var s,a;r.on(`insert:${n.name}`,(s=i,a=Cd(n),(c,l,d)=>{if(!a(l.item,d.consumable,{preflight:!0}))return;const u=new Map;d.writer._registerSlotFactory(function(m,k,b){return(A,x)=>{const M=A.createContainerElement("$slot");let N=null;if(x==="children")N=Array.from(m.getChildren());else{if(typeof x!="function")throw new _("conversion-slot-mode-unknown",b.dispatcher,{modeOrFilter:x});N=Array.from(m.getChildren()).filter(H=>x(H))}return k.set(M,N),M}}(l.item,u,d));const h=s(l.item,d,l);if(d.writer._clearSlotFactory(),!h)return;(function(m,k,b){const A=Array.from(k.values()).flat(),x=new Set(A);if(x.size!=A.length)throw new _("conversion-slot-filter-overlap",b.dispatcher,{element:m});if(x.size!=m.childCount)throw new _("conversion-slot-filter-incomplete",b.dispatcher,{element:m})})(l.item,u,d),a(l.item,d.consumable);const g=d.mapper.toViewPosition(l.range.start);d.mapper.bindElements(l.item,h),d.writer.insert(g,h),d.convertAttributes(l.item),function(m,k,b,A){b.mapper.on("modelToViewPosition",N,{priority:"highest"});let x=null,M=null;for([x,M]of k)vd(m,M,b,A),b.writer.move(b.writer.createRangeIn(x),b.writer.createPositionBefore(x)),b.writer.remove(x);function N(H,W){const Y=W.modelPosition.nodeAfter,mt=M.indexOf(Y);mt<0||(W.viewPosition=W.mapper.findPositionIn(x,mt))}b.mapper.off("modelToViewPosition",N)}(h,u,d,{reconversion:l.reconversion})}),{priority:e.converterPriority||"normal"}),r.on("reduceChanges",_d(n),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(e){e=pe(e);let n=e.model;typeof n=="string"&&(n={key:n});let i=`attribute:${n.key}`;if(n.name&&(i+=":"+n.name),n.values)for(const s of n.values)e.view[s]=_o(e.view[s],"attribute");else e.view=_o(e.view,"attribute");const r=wd(e);return s=>{s.on(i,E0(r),{priority:e.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(e){e=pe(e);let n=e.model;typeof n=="string"&&(n={key:n});let i=`attribute:${n.key}`;if(n.name&&(i+=":"+n.name),n.values)for(const s of n.values)e.view[s]=Ad(e.view[s]);else e.view=Ad(e.view);const r=wd(e);return s=>{var a;s.on(i,(a=r,(c,l,d)=>{if(!d.consumable.test(l.item,c.name))return;const u=a(l.attributeOldValue,d,l),h=a(l.attributeNewValue,d,l);if(!u&&!h)return;d.consumable.consume(l.item,c.name);const g=d.mapper.toViewElement(l.item),m=d.writer;if(!g)throw new _("conversion-attribute-to-attribute-on-text",d.dispatcher,l);if(l.attributeOldValue!==null&&u)if(u.key=="class"){const k=typeof u.value=="string"?u.value.split(/\s+/):u.value;for(const b of k)m.removeClass(b,g)}else if(u.key=="style")if(typeof u.value=="string"){const k=new es(m.document.stylesProcessor);k.setTo(u.value);for(const[b]of k.getStylesEntries())m.removeStyle(b,g)}else{const k=Object.keys(u.value);for(const b of k)m.removeStyle(b,g)}else m.removeAttribute(u.key,g);if(l.attributeNewValue!==null&&h)if(h.key=="class"){const k=typeof h.value=="string"?h.value.split(/\s+/):h.value;for(const b of k)m.addClass(b,g)}else if(h.key=="style")if(typeof h.value=="string"){const k=new es(m.document.stylesProcessor);k.setTo(h.value);for(const[b,A]of k.getStylesEntries())m.setStyle(b,A,g)}else{const k=Object.keys(h.value);for(const b of k)m.setStyle(b,h.value[b],g)}else m.setAttribute(h.key,h.value,g)}),{priority:e.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(e){const n=_o(e.view,"ui");return i=>{i.on(`addMarker:${e.model}`,I0(n),{priority:e.converterPriority||"normal"}),i.on(`removeMarker:${e.model}`,(r,s,a)=>{const c=a.mapper.markerNameToElements(s.markerName);if(c){for(const l of c)a.mapper.unbindElementFromMarkerName(l,s.markerName),a.writer.clear(a.writer.createRangeOn(l),l);a.writer.clearClonedElementsGroup(s.markerName),r.stop()}},{priority:e.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(e){return n=>{var i;n.on(`addMarker:${e.model}`,(i=e.view,(r,s,a)=>
8220{if(!s.item||!(s.item instanceof Qt||s.item instanceof ke||s.item.is("$textProxy")))return;const c=ws(i,s,a);if(!c||!a.consumable.consume(s.item,r.name))return;const l=a.writer,d=fd(l,c),u=l.document.selection;if(s.item instanceof Qt||s.item instanceof ke)l.wrap(u.getFirstRange(),d);else{const h=a.mapper.toViewRange(s.range),g=l.wrap(h,d);for(const m of g.getItems())if(m.is("attributeElement")&&m.isSimilar(d)){a.mapper.bindElementToMarker(m,s.markerName);break}}}),{priority:e.converterPriority||"normal"}),n.on(`addMarker:${e.model}`,function(r){return(s,a,c)=>{if(!a.item||!(a.item instanceof st))return;const l=ws(r,a,c);if(!l||!c.consumable.test(a.item,s.name))return;const d=c.mapper.toViewElement(a.item);if(d&&d.getCustomProperty("addHighlight")){c.consumable.consume(a.item,s.name);for(const u of B._createIn(a.item))c.consumable.consume(u.item,s.name);d.getCustomProperty("addHighlight")(d,l,c.writer),c.mapper.bindElementToMarker(d,a.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),n.on(`removeMarker:${e.model}`,function(r){return(s,a,c)=>{if(a.markerRange.isCollapsed)return;const l=ws(r,a,c);if(!l)return;const d=fd(c.writer,l),u=c.mapper.markerNameToElements(a.markerName);if(u){for(const h of u)c.mapper.unbindElementFromMarkerName(h,a.markerName),h.is("attributeElement")?c.writer.unwrap(c.writer.createRangeOn(h),d):h.getCustomProperty("removeHighlight")(h,l.id,c.writer);c.writer.clearClonedElementsGroup(a.markerName),s.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(e){e=pe(e);const n=e.model;let i=e.view;return i||(i=r=>({group:n,name:r.substr(e.model.length+1)})),r=>{var s;r.on(`addMarker:${n}`,(s=i,(a,c,l)=>{const d=s(c.markerName,l);if(!d)return;const u=c.markerRange;l.consumable.consume(u,a.name)&&(kd(u,!1,l,c,d),kd(u,!0,l,c,d),a.stop())}),{priority:e.converterPriority||"normal"}),r.on(`removeMarker:${n}`,function(a){return(c,l,d)=>{const u=a(l.markerName,d);if(!u)return;const h=d.mapper.markerNameToElements(l.markerName);if(h){for(const m of h)d.mapper.unbindElementFromMarkerName(m,l.markerName),m.is("containerElement")?(g(`data-${u.group}-start-before`,m),g(`data-${u.group}-start-after`,m),g(`data-${u.group}-end-before`,m),g(`data-${u.group}-end-after`,m)):d.writer.clear(d.writer.createRangeOn(m),m);d.writer.clearClonedElementsGroup(l.markerName),c.stop()}function g(m,k){if(k.hasAttribute(m)){const b=new Set(k.getAttribute(m).split(","));b.delete(u.name),b.size==0?d.writer.removeAttribute(m,k):d.writer.setAttribute(m,Array.from(b).join(","),k)}}}}(i),{priority:e.converterPriority||"normal"})}}(t))}}function fd(o,t){const e=o.createAttributeElement("span",t.attributes);return t.classes&&e._addClass(t.classes),typeof t.priority=="number"&&(e._priority=t.priority),e._id=t.id,e}function E0(o){return(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const i=o(e.attributeOldValue,n,e),r=o(e.attributeNewValue,n,e);if(!i&&!r)return;n.consumable.consume(e.item,t.name);const s=n.writer,a=s.document.selection;if(e.item instanceof Qt||e.item instanceof ke)s.wrap(a.getFirstRange(),r);else{let c=n.mapper.toViewRange(e.range);e.attributeOldValue!==null&&i&&(c=s.unwrap(c,i)),e.attributeNewValue!==null&&r&&s.wrap(c,r)}}}function D0(o,t=M0){return(e,n,i)=>{if(!t(n.item,i.consumable,{preflight:!0}))return;const r=o(n.item,i,n);if(!r)return;t(n.item,i.consumable);const s=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(n.item,r),i.writer.insert(s,r),i.convertAttributes(n.item),vd(r,n.item.getChildren(),i,{reconversion:n.reconversion})}}function I0(o){return(t,e,n)=>{e.isOpening=!0;const i=o(e,n);e.isOpening=!1;const r=o(e,n);if(!i||!r)return;const s=e.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,t.name))return;for(const l of s)if(!n.consumable.consume(l.item,t.name))return;const a=n.mapper,c=n.writer;c.insert(a.toViewPosition(s.start),i),n.mapper.bindElementToMarker(i,e.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,e.markerName)),t.stop()}}function kd(o,t,e,n,i){const r=t?o.start:o.end,s=r.nodeAfter&&r.n
8220odeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let c,l;t&&s||!t&&!a?(c=s,l=!0):(c=a,l=!1);const d=e.mapper.toViewElement(c);if(d)return void function(u,h,g,m,k,b){const A=`data-${b.group}-${h?"start":"end"}-${g?"before":"after"}`,x=u.hasAttribute(A)?u.getAttribute(A).split(","):[];x.unshift(b.name),m.writer.setAttribute(A,x.join(","),u),m.mapper.bindElementToMarker(u,k.markerName)}(d,t,l,e,n,i)}(function(c,l,d,u,h){const g=`${h.group}-${l?"start":"end"}`,m=h.name?{name:h.name}:null,k=d.writer.createUIElement(g,m);d.writer.insert(c,k),d.mapper.bindElementToMarker(k,u.markerName)})(e.mapper.toViewPosition(r),t,e,n,i)}function bd(o){return typeof o=="string"&&(o={name:o}),{name:o.name,attributes:o.attributes?gt(o.attributes):[],children:!!o.children}}function _o(o,t){return typeof o=="function"?o:(e,n)=>function(i,r,s){typeof i=="string"&&(i={name:i});let a;const c=r.writer,l=Object.assign({},i.attributes);if(s=="container")a=c.createContainerElement(i.name,l);else if(s=="attribute"){const d={priority:i.priority||rn.DEFAULT_PRIORITY};a=c.createAttributeElement(i.name,l,d)}else a=c.createUIElement(i.name,l);if(i.styles){const d=Object.keys(i.styles);for(const u of d)c.setStyle(u,i.styles[u],a)}if(i.classes){const d=i.classes;if(typeof d=="string")c.addClass(d,a);else for(const u of d)c.addClass(u,a)}return a}(o,n,t)}function wd(o){return o.model.values?(t,e,n)=>{const i=o.view[t];return i?i(t,e,n):null}:o.view}function Ad(o){return typeof o=="string"?t=>({key:o,value:t}):typeof o=="object"?o.value?()=>o:t=>({key:o.key,value:t}):o}function ws(o,t,e){const n=typeof o=="function"?o(t,e):o;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function _d(o){const t=function(e){return(n,i)=>{if(!n.is("element",e.name))return!1;if(i.type=="attribute"){if(e.attributes.includes(i.attributeKey))return!0}else if(e.children)return!0;return!1}}(o);return(e,n)=>{const i=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const r of n.changes){const s=r.type=="attribute"?r.range.start.nodeAfter:r.position.parent;if(s&&t(s,r)){if(!n.reconvertedElements.has(s)){n.reconvertedElements.add(s);const a=O._createBefore(s);let c=i.length;for(let l=i.length-1;l>=0;l--){const d=i[l],u=(d.type=="attribute"?d.range.start:d.position).compareWith(a);if(u=="before"||d.type=="remove"&&u=="same")break;c=l}i.splice(c,0,{type:"remove",name:s.name,position:a,length:1},{type:"reinsert",name:s.name,position:a,length:1})}}else i.push(r)}n.changes=i}}function Cd(o){return(t,e,n={})=>{const i=["insert"];for(const r of o.attributes)t.hasAttribute(r)&&i.push(`attribute:${r}`);return!!i.every(r=>e.test(t,r))&&(n.preflight||i.forEach(r=>e.consume(t,r)),!0)}}function vd(o,t,e,n){for(const i of t)T0(o.root,i,e,n)||e.convertItem(i)}function T0(o,t,e,n){const{writer:i,mapper:r}=e;if(!n.reconversion)return!1;const s=r.toViewElement(t);return!(!s||s.root==o)&&!!e.canReuseView(s)&&(i.move(i.createRangeOn(s),r.toViewPosition(O._createBefore(t))),!0)}function M0(o,t,{preflight:e}={}){return e?t.test(o,"insert"):t.consume(o,"insert")}function yd(o){const{schema:t,document:e}=o.model;for(const n of e.getRoots())if(n.isEmpty&&!t.checkChild(n,"$text")&&t.checkChild(n,"paragraph"))return o.insertElement("paragraph",n),!0;return!1}function xd(o,t,e){const n=e.createContext(o);return!!e.checkChild(n,"paragraph")&&!!e.checkChild(n.push("paragraph"),t)}function Ed(o,t){const e=t.createElement("paragraph");return t.insert(e,o),t.createPositionAt(e,0)}var S0=Object.defineProperty,B0=Object.defineProperties,N0=Object.getOwnPropertyDescriptors,Dd=Object.getOwnPropertySymbols,P0=Object.prototype.hasOwnProperty,O0=Object.prototype.propertyIsEnumerable,Id=(o,t,e)=>t in o?S0(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class L0 extends pd{elementToElement(t){return this.add(Td(t))}elementToAttribute(t){return this.add(function(e){e=pe(e),Md(e);const n=Sd(e,!1),i=As(e.view),r=i?`element:${i}`:"element";return s=>{s.on(r,n,{priority:e.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(e){e=pe(e);let n=null;(typeof e.view=="string"||e.view.key)&&(n=function(r){typeof r.view=="string"&&(r.view={key:r.view});const s=r.view.key,a=r.view.value===void 0?/[\s\S]*/:r.view.value;
8220let c;return s=="class"||s=="style"?c={[s=="class"?"classes":"styles"]:a}:c={attributes:{[s]:a}},r.view.name&&(c.name=r.view.name),r.view=c,s}(e)),Md(e,n);const i=Sd(e,!0);return r=>{r.on("element",i,{priority:e.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(e){const n=function(s){return(a,c)=>{const l=typeof s=="string"?s:s(a,c);return c.writer.createElement("$marker",{"data-name":l})}}(e.model);return Td((i=((s,a)=>{for(var c in a||(a={}))P0.call(a,c)&&Id(s,c,a[c]);if(Dd)for(var c of Dd(a))O0.call(a,c)&&Id(s,c,a[c]);return s})({},e),r={model:n},B0(i,N0(r))));var i,r}(t))}dataToMarker(t){return this.add(function(e){e=pe(e),e.model||(e.model=s=>s?e.view+":"+s:e.view);const n={view:e.view,model:e.model},i=_s(Bd(n,"start")),r=_s(Bd(n,"end"));return s=>{s.on(`element:${e.view}-start`,i,{priority:e.converterPriority||"normal"}),s.on(`element:${e.view}-end`,r,{priority:e.converterPriority||"normal"});const a=q.low,c=q.highest,l=q.get(e.converterPriority)/c;s.on("element",function(d){return(u,h,g)=>{const m=`data-${d.view}`;function k(b,A){for(const x of A){const M=d.model(x,g),N=g.writer.createElement("$marker",{"data-name":M});g.writer.insert(N,b),h.modelCursor.isEqual(b)?h.modelCursor=h.modelCursor.getShiftedBy(1):h.modelCursor=h.modelCursor._getTransformedByInsertion(b,1),h.modelRange=h.modelRange._getTransformedByInsertion(b,1)[0]}}(g.consumable.test(h.viewItem,{attributes:m+"-end-after"})||g.consumable.test(h.viewItem,{attributes:m+"-start-after"})||g.consumable.test(h.viewItem,{attributes:m+"-end-before"})||g.consumable.test(h.viewItem,{attributes:m+"-start-before"}))&&(h.modelRange||Object.assign(h,g.convertChildren(h.viewItem,h.modelCursor)),g.consumable.consume(h.viewItem,{attributes:m+"-end-after"})&&k(h.modelRange.end,h.viewItem.getAttribute(m+"-end-after").split(",")),g.consumable.consume(h.viewItem,{attributes:m+"-start-after"})&&k(h.modelRange.end,h.viewItem.getAttribute(m+"-start-after").split(",")),g.consumable.consume(h.viewItem,{attributes:m+"-end-before"})&&k(h.modelRange.start,h.viewItem.getAttribute(m+"-end-before").split(",")),g.consumable.consume(h.viewItem,{attributes:m+"-start-before"})&&k(h.modelRange.start,h.viewItem.getAttribute(m+"-start-before").split(",")))}}(n),{priority:a+l})}}(t))}}function Td(o){const t=_s(o=pe(o)),e=As(o.view),n=e?`element:${e}`:"element";return i=>{i.on(n,t,{priority:o.converterPriority||"normal"})}}function As(o){return typeof o=="string"?o:typeof o=="object"&&typeof o.name=="string"?o.name:null}function _s(o){const t=new ye(o.view);return(e,n,i)=>{const r=t.match(n.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!i.consumable.test(n.viewItem,s))return;const a=function(c,l,d){return c instanceof Function?c(l,d):d.writer.createElement(c)}(o.model,n.viewItem,i);a&&i.safeInsert(a,n.modelCursor)&&(i.consumable.consume(n.viewItem,s),i.convertChildren(n.viewItem,a),i.updateConversionResult(a,n))}}function Md(o,t=null){const e=t===null||(r=>r.getAttribute(t)),n=typeof o.model!="object"?o.model:o.model.key,i=typeof o.model!="object"||o.model.value===void 0?e:o.model.value;o.model={key:n,value:i}}function Sd(o,t){const e=new ye(o.view);return(n,i,r)=>{if(!i.modelRange&&t)return;const s=e.match(i.viewItem);if(!s||(function(d,u){const h=typeof d=="function"?d(u):d;return typeof h=="object"&&!As(h)?!1:!h.classes&&!h.attributes&&!h.styles}(o.view,i.viewItem)?s.match.name=!0:delete s.match.name,!r.consumable.test(i.viewItem,s.match)))return;const a=o.model.key,c=typeof o.model.value=="function"?o.model.value(i.viewItem,r):o.model.value;if(c===null)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor)),function(d,u,h,g){let m=!1;for(const k of Array.from(d.getItems({shallow:h})))g.schema.checkAttribute(k,u.key)&&(m=!0,k.hasAttribute(u.key)||g.writer.setAttribute(u.key,u.value,k));return m}(i.modelRange,{key:a,value:c},t,r)&&(r.consumable.test(i.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(i.viewItem,s.match))}}function Bd(o,t){return{view:`${o.view}-${t}`,model:(e,n)=>{const i=e.getAttribute("name"),r=o.model(i,n);return n.writer.createElement("$marker",{"data-name":r})}}}function z0(o){o.document.registerPostFixer(t=>function(e,n){const i=n.document.selection,r=n.schema,s=[];let a=!1;for(const c of i.getRanges()){const l=Nd(c,r);l&&!l.isEqual(c)?(s.push(l),a=!0):s.push(c)}return a&&e.setSelection(function(c){const l=[...c],d=new Set;let u=1;for(;u<l.length;){const h=l[u],g=l.slice(0,u);for(const[m,k]of g.entries())if(!d.has(m)){if(h.isEqual(k))d.add(m);else if(h.isIntersecting(k)){d.add(m),d.add(u);const b=h.getJoined(k);l.push(b)}}u++}return l.filter((h,g)=>!d.has(g))}(s),{backward:i.isBackward}),!1}(t,o))}function Nd(o,t){return o.isCollapsed?function(e,n){const i=e.start,r=n.getNearestSelectionRange(i);if(!r){const a=i.getAncestors().reverse().find(c=>n.isObject(c));return a?B._createOn(a):null}if(!r.isCollapsed)return r;const s=r.start;return i.isEqual(s)?null:new B(s)}(o,t):function(e,n){const{start:i,end:r}=e,s=n.checkChild(i,"$text"),a=n.checkChild(r,"$text"),c=n.getLimitElement(i),l=n.getLimitElement(r);if(c===l){if(s&&a)return null;if(function(h,g,m){const k=h.nodeAfter&&!m.isLimit(h.nodeAfter)||m.checkChild(h,"$text"),b=g.nodeBefore&&!m.isLimit(g.nodeBefore)||m.checkChild(g,"$text");return k||b}(i,r,n)){const h=i.nodeAfter&&n.isSelectable(i.nodeAfter)?null:n.getNearestSelectionRange(i,"forward"),g=r.nodeBefore&&n.isSelectable(r.nodeBefore)?null:n.getNearestSelectionRange(r,"backward"),m=h?h.start:i,k=g?g.end:r;return new B(m,k)}}const d=c&&!c.is("rootElement"),u=l&&!l.is("rootElement");
8220if(d||u){const h=i.nodeAfter&&r.nodeBefore&&i.nodeAfter.parent===r.nodeBefore.parent,g=d&&(!h||!Od(i.nodeAfter,n)),m=u&&(!h||!Od(r.nodeBefore,n));let k=i,b=r;return g&&(k=O._createBefore(Pd(c,n))),m&&(b=O._createAfter(Pd(l,n))),new B(k,b)}return null}(o,t)}function Pd(o,t){let e=o,n=e;for(;t.isLimit(n)&&n.parent;)e=n,n=n.parent;return e}function Od(o,t){return o&&t.isSelectable(o)}class R0 extends lt(){constructor(t,e){super(),this.model=t,this.view=new u0(e),this.mapper=new ad,this.downcastDispatcher=new ud({mapper:this.mapper,schema:t.schema});const n=this.model.document,i=n.selection,r=this.model.markers;var s,a,c;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(l=>{this.downcastDispatcher.convertChanges(n.differ,r,l),this.downcastDispatcher.convertSelection(i,r,l)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(l,d){return(u,h)=>{const g=h.newSelection,m=[];for(const b of g.getRanges())m.push(d.toModelRange(b));const k=l.createSelection(m,{backward:g.isBackward});k.isEqual(l.document.selection)||l.change(b=>{b.setSelection(k)})}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(s=this.mapper,a=this.model.schema,c=this.view,(l,d)=>{if(!c.document.isComposing||y.isAndroid)for(let u=0;u<d.targetRanges.length;u++){const h=d.targetRanges[u],g=s.toModelRange(h),m=Nd(g,a);m&&!m.isEqual(g)&&(d.targetRanges[u]=s.toViewRange(m))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",(l,d,u)=>{if(!u.consumable.consume(d.item,l.name))return;const h=u.writer,g=u.mapper.toViewPosition(d.range.start),m=h.createText(d.item.data);h.insert(g,m)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(l,d,u)=>{u.convertAttributes(d.item),d.reconversion||!d.item.is("element")||d.item.isEmpty||u.convertChildren(d.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(l,d,u)=>{const h=u.mapper.toViewPosition(d.position),g=d.position.getShiftedBy(d.length),m=u.mapper.toViewPosition(g,{isPhantom:!0}),k=u.writer.createRange(h,m),b=u.writer.remove(k.getTrimmed());for(const A of u.writer.createRangeIn(b).getItems())u.mapper.unbindViewElement(A,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(l,d,u)=>{const h=u.writer,g=h.document.selection;for(const m of g.getRanges())m.isCollapsed&&m.end.parent.isAttached()&&u.writer.mergeAttributes(m.start);h.setSelection(null)}),this.downcastDispatcher.on("selection",(l,d,u)=>{const h=d.selection;if(h.isCollapsed||!u.consumable.consume(h,"selection"))return;const g=[];for(const m of h.getRanges())g.push(u.mapper.toViewRange(m));u.writer.setSelection(g,{backward:h.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(l,d,u)=>{const h=d.selection;if(!h.isCollapsed||!u.consumable.consume(h,"selection"))return;const g=u.writer,m=h.getFirstPosition(),k=u.mapper.toViewPosition(m),b=g.breakAttributes(k);g.setSelection(b)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(l=>{if(l.rootName=="$graveyard")return null;const d=new Ml(this.view.document,l.name);return d.rootName=l.rootName,this.mapper.bindElements(l,d),d})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e=typeof t=="string"?t:t.name,n=this.model.markers.get(e);if(!n)throw new _("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(t){this.model.change(()=>{this.model.document.differ._refreshItem(t)})}}class Co{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new j0(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return n===void 0?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);n!==void 0&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const s of n)s!="style"&&s!="class"&&e.attributes.push(s);const i=t.getClassNames();for(const s of i)e.classes.push(s);const r=t.getStyleNames();for(const s of r)e.styles.push(s);return e}static createFrom(t,e){if(e||(e=new Co),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Co.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Co.createFrom(n,e);return e}}const Di=["attributes","classes","styles"];class j0{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of Di)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Di)if(e in t){const n=this._test(e,t[e]);if(n!==!0)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of Di)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Di)e in t&&this._revert(e,t[e])}_add(t,e){const n=gt(e),i=this._consumables[t];for(const r of n){if(t==="attributes"&&(r==="class"||r==="style"))throw new _("viewconsumable-invalid-attribute",this);if(i.set(r,!0),t==="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(s,!0)}}_test(t,e){const n=gt(e),i=this._consumables[t];for(const r of n)if(t!=="attributes"||r!=="class"&&r!=="style"){const s=i.get(r);if(s===void 0)return null;if(!s)return!1}else{const s=r=="class"?"classes":"styles",a=this._test(s,[...this._consumables[s].keys()]);if(a!==!0)return a}return!0}_consume(t,e){const n=gt(e),i=this._consumables[t];for(const r of n)if(t!=="attributes"||r!=="class"&&r!=="style"){if(i.set(r,!1),t=="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(s,!1)}else{const s=r=="class"?"classes":"styles";this._consume(s,[...this._consumables[s].keys()])}}_revert(t,e){const n=gt(e),i=this._consumables[t];for(const r of n)if(t!=="attributes"||r!=="class"&&r!=="style")i.get(r)===!1&&i.set(r,!0);else{const s=r=="class"?"classes":"styles";this._revert(s,[...this._consumables[s].keys()])}}}class F0 extends lt(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(t,e)=>{e[0]=new ln(e[0])},{priority:"highest"}),this.on("checkChild",(t,e)=>{e[0]=new ln(e[0]),e[1]=this.getDefinition(e[1])},{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new _("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new _("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e=typeof t=="string"?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof O){const n=t.nodeBefore,i=t.nodeAfter;if(!(n instanceof st))throw new _("schema-check-merge-no-element-before",this);if(!(i instanceof st))throw new _("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",(e,[n,i])=>{if(!i)return;const r=t(n,i);typeof r=="boolean"&&(e.stop(),e.return=r)},{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",(e,[n,i])=>{const r=t(n,i);typeof r=="boolean"&&(e.stop(),e.return=r)},{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;for(t instanceof O?e=t.parent:e=(t instanceof B?[t]:Array.from(t.getRanges())).reduce((n,i)=>{const r=i.getCommonAncestor();return n?n.getCommonAncestor(r,{includeSelf:!0}):r},null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new ut("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const i of n)for(const r of i)if(this.checkAttribute(r.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(n){for(const i of n)yield*i.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if(t.root.rootName=="$graveyard")return null;if(this.checkChild(t,"$text"))return new B(t);let n,i;const r=t.getAncestors().reverse().find(s=>this.isLimit(s))||t.root;
8220e!="both"&&e!="backward"||(n=new Te({boundaries:B._createIn(r),startPosition:t,direction:"backward"})),e!="both"&&e!="forward"||(i=new Te({boundaries:B._createIn(r),startPosition:t}));for(const s of function*(a,c){let l=!1;for(;!l;){if(l=!0,a){const d=a.next();d.done||(l=!1,yield{walker:a,value:d.value})}if(c){const d=c.next();d.done||(l=!1,yield{walker:c,value:d.value})}}}(n,i)){const a=s.walker==n?"elementEnd":"elementStart",c=s.value;if(c.type==a&&this.isObject(c.item))return B._createOn(c.item);if(this.checkChild(c.nextPosition,"$text"))return new B(c.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const i=n.model;for(const[r,s]of Object.entries(e))i.schema.checkAttribute(t,r)&&n.setAttribute(r,s,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))Ld(this,n,e);else{const i=B._createIn(n).getPositions();for(const r of i)Ld(this,r.nodeBefore||r.parent,e)}}getAttributesWithProperty(t,e,n){const i={};for(const[r,s]of t.getAttributes()){const a=this.getAttributeProperties(r);a[e]!==void 0&&(n!==void 0&&n!==a[e]||(i[r]=s))}return i}createContext(t){return new ln(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const i of n)t[i]=V0(e[i],i);for(const i of n)H0(t,i);for(const i of n)U0(t,i);for(const i of n)q0(t,i);for(const i of n)G0(t,i),W0(t,i);for(const i of n)K0(t,i),$0(t,i),Y0(t,i);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const i=e.getItem(n);if(t.allowIn.includes(i.name)){if(n==0)return!0;{const r=this.getDefinition(i);return this._checkContextMatch(r,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,i=t.start;for(const r of t.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(B._createIn(r),e)),this.checkAttribute(r,e)||(n.isEqual(i)||(yield new B(n,i)),n=O._createAfter(r)),i=O._createAfter(r);n.isEqual(i)||(yield new B(n,i))}findOptimalInsertionRange(t,e){const n=t.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return e=="before"||e=="after"?new B(O._createAt(n,e)):B._createOn(n);const i=St(t.getSelectedBlocks());if(!i)return new B(t.focus);if(i.isEmpty)return new B(O._createAt(i,0));const r=O._createAfter(i);return t.focus.isTouching(r)?new B(r):new B(O._createBefore(i))}}class ln{constructor(t){if(t instanceof ln)return t;let e;e=typeof t=="string"?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(Z0)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new ln([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map(t=>t.name)}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function V0(o,t){const e={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(n,i){for(const r of n){const s=Object.keys(r).filter(a=>a.startsWith("is"));for(const a of s)i[a]=!!r[a]}}(o,e),dn(o,e,"allowIn"),dn(o,e,"allowContentOf"),dn(o,e,"allowWhere"),dn(o,e,"allowAttributes"),dn(o,e,"allowAttributesOf"),dn(o,e,"allowChildren"),dn(o,e,"inheritTypesFrom"),function(n,i){for(const r of n){const s=r.inheritAllFrom;s&&(i.allowContentOf.push(s),i.allowWhere.push(s),i.allowAttributesOf.push(s),i.inheritTypesFrom.push(s))}}(o,e),e}function H0(o,t){const e=o[t];for(const n of e.allowChildren){const i=o[n];i&&i.allowIn.push(t)}e.allowChildren.length=0}function U0(o,t){for(const e of o[t].allowContentOf)o[e]&&Q0(o,e).forEach(n=>{n.allowIn.push(t)});delete o[t].allowContentOf}function q0(o,t){for(const e of o[t].allowWhere){const n=o[e];if(n){const i=n.allowIn;o[t].allowIn.push(...i)}}delete o[t].allowWhere}function G0(o,t){for(const e of o[t].allowAttributesOf){const n=o[e];if(n){const i=n.allowAttributes;o[t].allowAttributes.push(...i)}}delete o[t].allowAttributesOf}function W0(o,t){const e=o[t];for(const n of e.inheritTypesFrom){const i=o[n];if(i){const r=Object.keys(i).filter(s=>s.startsWith("is"));for(const s of r)s in e||(e[s]=i[s])}}delete e.inheritTypesFrom}function K0(o,t){const e=o[t],n=e.allowIn.filter(i=>o[i]);e.allowIn=Array.from(new Set(n))}function $0(o,t){const e=o[t];for(const n of e.allowIn)o[n].allowChildren.push(t)}function Y0(o,t){const e=o[t];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function dn(o,t,e){for(const n of o){const i=n[e];typeof i=="string"?t[e].push(i):Array.isArray(i)&&t[e].push(...i)}}function Q0(o,t){const e=o[t];return(n=o,Object.keys(n).map(i=>n[i])).filter(i=>i.allowIn.includes(e.name));var n}
8220function Z0(o){return typeof o=="string"||o.is("documentFragment")?{name:typeof o=="string"?o:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:o.is("element")?o.name:"$text",*getAttributeKeys(){yield*o.getAttributeKeys()},getAttribute:t=>o.getAttribute(t)}}function Ld(o,t,e){for(const n of t.getAttributeKeys())o.checkAttribute(t,n)||e.removeAttribute(n,t)}var J0=Object.defineProperty,X0=Object.defineProperties,t_=Object.getOwnPropertyDescriptors,zd=Object.getOwnPropertySymbols,e_=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable,Rd=(o,t,e)=>t in o?J0(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class o_ extends rt(){constructor(t){var e;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(e=((n,i)=>{for(var r in i||(i={}))e_.call(i,r)&&Rd(n,r,i[r]);if(zd)for(var r of zd(i))n_.call(i,r)&&Rd(n,r,i[r]);return n})({},t),X0(e,t_({consumable:null,writer:null,store:null,convertItem:(n,i)=>this._convertItem(n,i),convertChildren:(n,i)=>this._convertChildren(n,i),safeInsert:(n,i)=>this._safeInsert(n,i),updateConversionResult:(n,i)=>this._updateConversionResult(n,i),splitToAllowedParent:(n,i)=>this._splitToAllowedParent(n,i),getSplitParts:n=>this._getSplitParts(n),keepEmptyElement:n=>this._keepEmptyElement(n)})))}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(s,a){let c;for(const l of new ln(s)){const d={};for(const h of l.getAttributeKeys())d[h]=l.getAttribute(h);const u=a.createElement(l.name,d);c&&a.insert(u,c),c=O._createAt(u,0)}return c}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Co.createFrom(t),this.conversionApi.store={};const{modelRange:i}=this._convertItem(t,this._modelCursor),r=e.createDocumentFragment();if(i){this._removeEmptyElements();for(const s of Array.from(this._modelCursor.parent.getChildren()))e.append(s,r);r.markers=function(s,a){const c=new Set,l=new Map,d=B._createIn(s).getItems();for(const u of d)u.is("element","$marker")&&c.add(u);for(const u of c){const h=u.getAttribute("data-name"),g=a.createPositionBefore(u);l.has(h)?l.get(h).end=g.clone():l.set(h,new B(g.clone())),a.remove(u)}return l}(r,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof B))throw new _("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:O._createAt(e,0);const i=new B(n);for(const r of Array.from(t.getChildren())){const s=this._convertItem(r,n);s.modelRange instanceof B&&(i.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:i,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),i=this.conversionApi.writer;e.modelRange||(e.modelRange=i.createRange(i.createPositionBefore(t),i.createPositionAfter(n[n.length-1])));const r=this._cursorParents.get(t);e.modelCursor=r?i.createPositionAt(r,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:i}=this.conversionApi;let r=n.findAllowedParent(e,t);if(r){if(r===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return xd(e,t,n)?{position:Ed(e,i)}:null;const s=this.conversionApi.writer.split(e,r),a=[];for(const l of s.range.getWalker())if(l.type=="elementEnd")a.push(l.item);else{const d=a.pop(),u=l.item;this._registerSplitPair(d,u)}const c=s.range.end.parent;return this._cursorParents.set(t,c),{position:s.position,cursorParent:c}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;
8220for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class i_{getHtml(t){const e=v.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class r_{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Ai(t,{renderingMode:"data"}),this.htmlWriter=new i_}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode=t=="marked"?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class s_ extends rt(){constructor(t,e){super(),this.model=t,this.mapper=new ad,this.downcastDispatcher=new ud({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(n,i,r)=>{if(!r.consumable.consume(i.item,n.name))return;const s=r.writer,a=r.mapper.toViewPosition(i.range.start),c=s.createText(i.item.data);s.insert(a,c)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(n,i,r)=>{r.convertAttributes(i.item),i.reconversion||!i.item.is("element")||i.item.isEmpty||r.convertChildren(i.item)},{priority:"lowest"}),this.upcastDispatcher=new o_({schema:t.schema}),this.viewDocument=new ki(e),this.stylesProcessor=e,this.htmlProcessor=new r_(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Bl(this.viewDocument),this.upcastDispatcher.on("text",(n,i,{schema:r,consumable:s,writer:a})=>{let c=i.modelCursor;if(!s.test(i.viewItem))return;if(!r.checkChild(c,"$text")){if(!xd(c,"$text",r)||i.viewItem.data.trim().length==0)return;const d=c.nodeBefore;c=Ed(c,a),d&&d.is("element","$marker")&&(a.move(a.createRangeOn(d),c),c=a.createPositionAfter(d))}s.consume(i.viewItem);const l=a.createText(i.viewItem.data);a.insert(l,c),i.modelRange=a.createRange(c,c.getShiftedBy(l.offsetSize)),i.modelCursor=i.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(n,i,r)=>{if(!i.modelRange&&r.consumable.consume(i.viewItem,{name:!0})){const{modelRange:s,modelCursor:a}=r.convertChildren(i.viewItem,i.modelCursor);i.modelRange=s,i.modelCursor=a}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(n,i,r)=>{if(!i.modelRange&&r.consumable.consume(i.viewItem,{name:!0})){const{modelRange:s,modelCursor:a}=r.convertChildren(i.viewItem,i.modelCursor);i.modelRange=s,i.modelCursor=a}},{priority:"lowest"}),lt().prototype.decorate.call(this,"init"),lt().prototype.decorate.call(this,"set"),lt().prototype.decorate.call(this,"get"),lt().prototype.decorate.call(this,"toView"),lt().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},yd)},{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new _("datacontroller-get-non-existent-root",this);const i=this.model.document.getRoot(e);return i.isAttached()||U("datacontroller-get-detached-root",this),n!=="empty"||this.model.hasContent(i,{ignoreWhitespaces:!0})?this.stringify(i,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();const r=B._createIn(t),s=new sn(n);this.mapper.bindElements(t,s);const a=t.is("documentFragment")?t.markers:function(c){const l=[],d=c.root.document;if(!d)return new Map;const u=B._createIn(c);for(const h of d.model.markers){const g=h.getRange(),m=g.isCollapsed,k=g.start.isEqual(u.start)||g.end.isEqual(u.end);if(m&&k)l.push([h.name,g]);else{const b=u.getIntersection(g);b&&l.push([h.name,b])}}return l.sort(([h,g],[m,k])=>{if(g.end.compareWith(k.start)!=="after")return 1;if(g.start.compareWith(k.end)!=="before")return-1;switch(g.start.compareWith(k.start)){case"before":return 1;case"after":return-1;default:switch(g.end.compareWith(k.end)){case"before":return 1;case"after":return-1;default:return m.localeCompare(h)}}}),new Map(l)}(t);return this.downcastDispatcher.convert(r,a,i,e),s}init(t){if(this.model.document.version)throw new _("datacontroller-init-document-not-empty",this);let e={};if(typeof t=="string"?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new _("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},n=>{for(const i of Object.keys(e)){const r=this.model.document.getRoot(i);n.insert(this.parse(e[i],r),r,0)}}),Promise.resolve()}set(t,e={}){let n={};if(typeof t=="string"?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new _("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},i=>{i.setSelection(null),i.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const r of Object.keys(n)){const s=this.model.document.getRoot(r);i.remove(i.createRangeIn(s)),i.insert(this.parse(n[r],s),s,0)}})}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change(n=>this.upcastDispatcher.convert(t,n,e))}
vendor: 16,384 bytes, line 8220
8220addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class a_{constructor(t,e){this._helpers=new Map,this._downcast=gt(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=gt(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new _("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new _("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Cs(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Cs(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Cs(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new _("conversion-group-exists",this);const i=n?new x0(e):new L0(e);this._helpers.set(t,i)}}function*Cs(o){if(o.model.values)for(const t of o.model.values){const e={key:o.model.key,value:t},n=o.view[t],i=o.upcastAlso?o.upcastAlso[t]:void 0;yield*jd(e,n,i)}else yield*jd(o.model,o.view,o.upcastAlso)}function*jd(o,t,e){if(yield{model:o,view:t},e)for(const n of gt(e))yield{model:o,view:n}}class Jt{constructor(t){this.baseVersion=t,this.isDocumentOperation=this.baseVersion!==null,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function vs(o,t){const e=Vd(t),n=e.reduce((s,a)=>s+a.offsetSize,0),i=o.parent;xo(o);const r=o.index;return i._insertChild(r,e),yo(i,r+e.length),yo(i,r),new B(o,o.getShiftedBy(n))}function Fd(o){if(!o.isFlat)throw new _("operation-utils-remove-range-not-flat",this);const t=o.start.parent;xo(o.start),xo(o.end);const e=t._removeChildren(o.start.index,o.end.index-o.start.index);return yo(t,o.start.index),e}function vo(o,t){if(!o.isFlat)throw new _("operation-utils-move-range-not-flat",this);const e=Fd(o);return vs(t=t._getTransformedByDeletion(o.start,o.end.offset-o.start.offset),e)}function Vd(o){const t=[];(function e(n){if(typeof n=="string")t.push(new ut(n));else if(n instanceof fe)t.push(new ut(n.data,n.getAttributes()));else if(n instanceof an)t.push(n);else if(Gt(n))for(const i of n)e(i)})(o);for(let e=1;e<t.length;e++){const n=t[e],i=t[e-1];n instanceof ut&&i instanceof ut&&Hd(n,i)&&(t.splice(e-1,2,new ut(i.data+n.data,i.getAttributes())),e--)}return t}function yo(o,t){const e=o.getChild(t-1),n=o.getChild(t);if(e&&n&&e.is("$text")&&n.is("$text")&&Hd(e,n)){const i=new ut(e.data+n.data,e.getAttributes());o._removeChildren(t-1,2),o._insertChild(t-1,i)}}function xo(o){const t=o.textNode,e=o.parent;if(t){const n=o.offset-t.startOffset,i=t.index;e._removeChildren(i,1);const r=new ut(t.data.substr(0,n),t.getAttributes()),s=new ut(t.data.substr(n),t.getAttributes());e._insertChild(i,[r,s])}}function Hd(o,t){const e=o.getAttributes(),n=t.getAttributes();for(const i of e){if(i[1]!==t.getAttribute(i[0]))return!1;n.next()}return n.next().done}class nt extends Jt{constructor(t,e,n,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return this.targetPosition.root.rootName=="$graveyard"?"remove":this.sourcePosition.root.rootName=="$graveyard"?"reinsert":"move"}get affectedSelectable(){return[B._createFromPositionAndShift(this.sourcePosition,this.howMany),B._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new nt(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new nt(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new _("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new _("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&Lt(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())=="prefix"){const r=this.sourcePosition.path.length-1;if(this.targetPosition.path[r]>=n&&this.targetPosition.path[r]<n+this.howMany)throw new _("move-operation-node-into-itself",this)}}_execute(){vo(B._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}static get className(){return"MoveOperation"}static fromJSON(t,e){const n=O.fromJSON(t.sourcePosition,e),i=O.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}class Nt extends Jt{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new bo(Vd(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new bo([...this.nodes].map(n=>n._clone(!0))),e=new Nt(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new O(t,[0]);return new nt(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new _("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new bo([...t].map(e=>e._clone(!0))),vs(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const r of t.nodes)r.name?n.push(st.fromJSON(r)):n.push(ut.fromJSON(r));const i=new Nt(O.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}class ht extends Jt{constructor(t,e,n,i,r){super(r),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=i?i.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new O(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new B(this.splitPosition,t)}get affectedSelectable(){const t=[B._createFromPositionAndShift(this.splitPosition,0),B._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(B._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new ht(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new O(t,[0]);return new At(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new _("split-operation-position-invalid",this);if(!t.parent)throw new _("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new _("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new _("split-operation-graveyard-position-invalid",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)vo(B._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();vs(this.insertionPosition,e)}vo(new B(O._createAt(t,this.splitPosition.offset),O._createAt(t,t.maxOffset)),this.moveTargetPosition)}toJSON(){const t=super.toJSON();return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}static get className(){return"SplitOperation"}static getInsertionPosition(t){const e=t.path.slice(0,-1);return e[e.length-1]++,new O(t.root,e,"toPrevious")}static fromJSON(t,e){const n=O.fromJSON(t.splitPosition,e),i=O.fromJSON(t.insertionPosition,e),r=t.graveyardPosition?O.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,r,t.baseVersion)}}class At extends Jt{constructor(t,e,n,i,r){super(r),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=i.clone()}get type(){return"merge"}get deletionPosition(){return new O(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new B(this.sourcePosition,t)}get affectedSelectable(){const t=this.sourcePosition.parent;return[B._createOn(t),B._createFromPositionAndShift(this.targetPosition,0),B._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new At(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new O(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new ht(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new _("merge-operation-source-position-invalid",this);if(!e.parent)throw new _("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new _("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;vo(B._createIn(t),this.targetPosition),vo(B._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=O.fromJSON(t.sourcePosition,e),i=O.fromJSON(t.targetPosition,e),r=O.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,r,t.baseVersion)}}class Rt extends Jt{constructor(t,e,n,i,r,s){super(s),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=r,this._markers=i}get type(){return"marker"}get affectedSelectable(){const t=[];return this.oldRange&&t.push(this.oldRange.clone()),this.newRange&&(this.oldRange?t.push(...this.newRange.getDifference(this.oldRange)):t.push(this.newRange.clone())),t}clone(){return new Rt(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Rt(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new Rt(t.name,t.oldRange?B.fromJSON(t.oldRange,e):null,t.newRange?B.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}const Ud=function(o,t){return vi(o,t)};class xt extends Jt{constructor(t,e,n,i,r){super(r),this.range=t.clone(),this.key=e,this.oldValue=n===void 0?null:n,this.newValue=i===void 0?null:i}get type(){return this.oldValue===null?"addAttribute":this.newValue===null?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new xt(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new xt(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new _("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(this.oldValue!==null&&!Ud(t.getAttribute(this.key),this.oldValue))throw new _("attribute-operation-wrong-old-value",this,{item:t,key:this.key,value:this.oldValue});if(this.oldValue===null&&this.newValue!==null&&t.hasAttribute(this.key))throw new _("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Ud(this.oldValue,this.newValue)||function(t,e,n){xo(t.start),xo(t.end);for(const i of t.getItems({shallow:!0})){const r=i.is("$textProxy")?i.textNode:i;n!==null?r._setAttribute(e,n):r._removeAttribute(e),yo(r.parent,r.index)}yo(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new xt(B.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class It extends Jt{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new It(this.baseVersion)}getReversed(){return new It(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class jt extends Jt{constructor(t,e,n,i){super(i),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new jt(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new jt(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof st))throw new _("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new _("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new jt(O.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Me extends Jt{constructor(t,e,n,i,r){super(r),this.root=t,this.key=e,this.oldValue=n===void 0?null:n,this.newValue=i===void 0?null:i}get type(){return this.oldValue===null?"addRootAttribute":this.newValue===null?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new Me(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Me(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new _("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(this.oldValue!==null&&this.root.getAttribute(this.key)!==this.oldValue)throw new _("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(this.oldValue===null&&this.newValue!==null&&this.root.hasAttribute(this.key))throw new _("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){this.newValue!==null?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new _("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Me(e.getRoot(t.root),t.key,t.oldValue,t.new
8220Value,t.baseVersion)}}class Ee extends Jt{constructor(t,e,n,i,r){super(r),this.rootName=t,this.elementName=e,this.isAdd=n,this._document=i,!this._document.getRoot(this.rootName)&&(this._document.createRoot(this.elementName,this.rootName)._isAttached=!1)}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new Ee(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Ee(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const t=super.toJSON();return delete t._document,t}static get className(){return"RootOperation"}static fromJSON(t,e){return new Ee(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const ie={};ie[xt.className]=xt,ie[Nt.className]=Nt,ie[Rt.className]=Rt,ie[nt.className]=nt,ie[It.className]=It,ie[Jt.className]=Jt,ie[jt.className]=jt,ie[Me.className]=Me,ie[Ee.className]=Ee,ie[ht.className]=ht,ie[At.className]=At;class c_{static fromJSON(t,e){return ie[t.__className].fromJSON(t,e)}}const ys=new Map;function et(o,t,e){let n=ys.get(o);n||(n=new Map,ys.set(o,n)),n.set(t,e)}function l_(o){return[o]}function qd(o,t,e={}){const n=function(i,r){const s=ys.get(i);return s&&s.has(r)?s.get(r):l_}(o.constructor,t.constructor);try{return n(o=o.clone(),t,e)}catch(i){throw i}}function d_(o,t,e){o=o.slice(),t=t.slice();const n=new u_(e.document,e.useRelations,e.forceWeakRemove);n.setOriginalOperations(o),n.setOriginalOperations(t);const i=n.originalOperations;if(o.length==0||t.length==0)return{operationsA:o,operationsB:t,originalOperations:i};const r=new WeakMap;for(const c of o)r.set(c,0);const s={nextBaseVersionA:o[o.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:o.length,originalOperationsBCount:t.length};let a=0;for(;a<o.length;){const c=o[a],l=r.get(c);if(l==t.length){a++;continue}const d=t[l],u=qd(c,d,n.getContext(c,d,!0)),h=qd(d,c,n.getContext(d,c,!1));n.updateRelation(c,d),n.setOriginalOperations(u,c),n.setOriginalOperations(h,d);for(const g of u)r.set(g,l+h.length);o.splice(a,1,...u),t.splice(l,1,...h)}return Gd(o,s.nextBaseVersionB),Gd(t,s.nextBaseVersionA),{operationsA:o,operationsB:t,originalOperations:i}}class u_{constructor(t,e,n=!1){this.originalOperations=new Map,this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(t,e=null){const n=e?this.originalOperations.get(e):null;for(const i of t)this.originalOperations.set(i,n||i)}updateRelation(t,e){if(t instanceof nt)e instanceof At?t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter"):e instanceof nt&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof ht){if(e instanceof At)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof nt)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=B._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){const i=n.end.offset-t.splitPosition.offset,r=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:i,offset:r})}}}else if(t instanceof At)e instanceof At?(t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement")):e instanceof ht?t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource"):e instanceof nt&&e.howMany>0&&(t.sourcePosition.isEqual(e.sourcePosition.getShiftedBy(e.howMany))&&this._setRelation(t,e,"mergeSourceAffected"),t.targetPosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeTargetWasBefore"));else if(t instanceof Rt){const n=t.newRange;if(!n)return;if(e instanceof nt){const i=B._createFromPositionAndShift(e.sourcePosition,e.howMany),r=i.containsPosition(n.start)||i.start.isEqual(n.start),s=i.containsPosition(n.end)||i.end.isEqual(n.end);!r&&!s||i.containsRange(n)||this._setRelation(t,e,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()})}else if(e instanceof At){const i=n.start.isEqual(e.targetPosition),r=n.start.isEqual(e.deletionPosition),s=n.end.isEqual(e.deletionPosition),a=n.end.isEqual(e.sourcePosition);(i||r||s||a)&&this._setRelation(t,e,{wasInLeftElement:i,wasStartBeforeMergedElement:r,wasEndBeforeMergedElement:s,wasInRightElement:a})}}}getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(t){const e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}_getRelation(t,e){const n=this.originalOperations.get(e),i=this._history.getUndoneOperation(n);if(!i)return null;const r=this.originalOperations.get(t),s=this._relations.get(r);return s&&s.get(i)||null}_setRelation(t,e,n){const i=this.originalOperations.get(t),r=this.originalOperations.get(e);let s=this._relations.get(i);s||(s=new Map,this._relations.set(i,s)),s.set(r,n)}}function Gd(o,t){for(const e of o)e.baseVersion=t++}function Wd(o,t,e){const n=o.nodes.getNode(0).getAttribute(t);if(n==e)return null;const i=new B(o.position,o.position.getShiftedBy(o.howMany));return new xt(i,t,n,e,0)}function Kd(o,t){return o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)===null}function Ln(o,t){const e=[];for(let n=0;n<o.length;n++){const i=o[n],r=new nt(i.start,i.end.offset-i.start.offset,t,0);e.push(r);for(let s=n+1;s<o.length;s++)o[s]=o[s]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return e}et(xt,xt,(o,t,e)=>{if(o.key===t.key&&o.range.start.hasSameParentAs(t.range.start)){const n=o.range.getDifference(t.range).map(r=>new xt(r,o.key,o.oldValue,o.newValue,0)),i=o.range.getIntersection(t.range);return i&&e.aIsStrong&&n.push(new xt(i,t.key,t.newValue,o.newValue,0)),n.length==0?[new It(0)]:n}return[o]}),et(xt,Nt,(o,t)=>{if(o.range.start.hasSameParentAs(t.position)&&o.range.containsPosition(t.position)){const e=o.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(n=>new xt(n,o.key,o.oldValue,o.newValue,o.baseVersion));if(t.shouldReceiveAttributes){const n=Wd(t,o.key,o.oldValue);n&&e.unshift(n)}return e}return o.range=o.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[o]}),et(xt,At,(o,t)=>{const e=[];o.range.start.hasSameParentAs(t.deletionPosition)&&(o.range.containsPosition(t.deletionPosition)||o.range.start.isEqual(t.deletionPosition))&&e.push(B._createFromPositionAndShift(t.graveyardPosition,1));const n=o.range._getTransformedByMergeOperation(t);return n.isCollapsed||e.push(n),e.map(i=>new xt(i,o.key,o.oldValue,o.newValue,o.baseVersion))}),et(xt,nt,(o,t)=>function(n,i){const r=B._createFromPositionAndShift(i.sourcePosition,i.howMany);let s=null,a=[];r.containsRange(n,!0)?s=n:n.start.hasSameParentAs(r.start)?(a=n.getDifference(r),s=n.getIntersection(r)):a=[n];const c=[];for(let l of a){l=l._getTransformedByDeletion(i.sourcePosition,i.howMany);const d=i.getMovedRangeStart(),u=l.start.hasSameParentAs(d),h=l._getTransformedByInsertion(d,i.howMany,u);c.push(...h)}return s&&c.push(s._getTransformedByMove(i.sourcePosition,i.targetPosition,i.howMany,!1)[0]),c}(o.range,t).map(n=>new xt(n,o.key,o.oldValue,o.newValue,o.baseVersion))),et(xt,ht,(o,t)=>{if(o.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||o.range.end.offset++,[o];if(o.range.start.hasSameParentAs(t.splitPosition)&&o.range.containsPosition(t.splitPosition)){const e=o.clone();return e.range=new B(t.moveTargetPosition.clone(),o.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),o.range.end=t.splitPosition.clone(),o.range.end.stickiness="toPrevious",[o,e]}return o.range=o.range._getTransformedBySplitOperation(t),[o]}),et(Nt,xt,(o,t)=>{const e=[o];if(o.shouldReceiveAttributes&&o.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(o.position)){const n=Wd(o,t.key,t.newValue);n&&e.push(n)}return e}),et(Nt,Nt,(o,t,e)=>(o.position.isEqual(t.position)&&e.aIsStrong||(o.position=o.position._getTransformedByInsertOperation(t)),[o])),et(Nt,nt,(o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o])),et(Nt,ht,(o,t)=>(o.position=o.position._getTransformedBySplitOperation(t),[o])),et(Nt,At,(o,t)=>(o.position=o.position._getTransformedByMergeOperation(t),[o])),et(Rt,Nt,(o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByInsertOperation(t)[0]),o.newRange&&(o.newRange=o.newRange._getTransformedByInsertOperation(t)[0]),[o])),et(Rt,Rt,(o,t,e)=>{if(o.name==t.name){if(!e.aIsStrong)return[new It(0)];o.oldRange=t.newRange?t.newRange.clone():null}return[o]}),et(Rt,At,(o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByMergeOperation(t)),o.newRange&&(o.newRange=o.newRange._getTransformedByMergeOperation(t)),[o])),et(Rt,nt,(o,t,e)=>{if(o.oldRange&&(o.oldRange=B._createFromRanges(o.oldRange._getTransformedByMoveOperation(t))),o.newRange){if(e.abRelation){const n=B._createFromRanges(o.newRange._getTransformedByMoveOperation(t));if(e.abRelation.side=="left"&&t.targetPosition.isEqual(o.newRange.start))return o.newRange.end=n.end,o.newRange.start.path=e.abRelation.path,[o];if(e.abRelation.side=="right"&&t.targetPosition.isEqual(o.newRange.end))return o.newRange.start=n.start,o.newRange.end.path=e.abRelation.path,[o]}o.newRange=B._createFromRanges(o.newRange._getTransformedByMoveOperation(t))}return[o]}),et(Rt,ht,(o,t,e)=>{if(o.oldRange&&(o.oldRange=o.oldRange._getTransformedBySplitOperation(t)),o.newRange){if(e.abRelation){const n=o.newRange._getTransformedBySplitOperation(t);return o.newRange.start.isEqual(t.splitPosition)&&e.abRelation.wasStartBeforeMergedElement?o.newRange.start=O._createAt(t.insertionPosition):o.newRange.start.isEqual(t.splitPosition)&&!e.abRelation.wasInLeftElement&&(o.newRange.start=O._createAt(t.moveTargetPosition)),o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasInRightElement?o.newRange.end=O._createAt(t.moveTargetPosition):o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?o.newRange.end=O._createAt(t.insertionPosition):o.newRange.end=n.end,[o]}o.newRange=o.newRange._getTransformedBySplitOperation(t)}return[o]}),et(At,Nt,(o,t)=>(o.sourcePosition.hasSameParentAs(t.position)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByInsertOperation(t),o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t),[o])),et(At,At,(o,t,e)=>{if(o.sourcePosition.isEqual(t.sourcePosition)&&o.targetPosition.isEqual(t.targetPosition)){if
8220(e.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),o.sourcePosition=new O(t.graveyardPosition.root,n),o.howMany=0,[o]}return[new It(0)]}if(o.sourcePosition.isEqual(t.sourcePosition)&&!o.targetPosition.isEqual(t.targetPosition)&&!e.bWasUndone&&e.abRelation!="splitAtSource"){const n=o.targetPosition.root.rootName=="$graveyard",i=t.targetPosition.root.rootName=="$graveyard";if(i&&!n||!(n&&!i)&&e.aIsStrong){const r=t.targetPosition._getTransformedByMergeOperation(t),s=o.targetPosition._getTransformedByMergeOperation(t);return[new nt(r,o.howMany,s,0)]}return[new It(0)]}return o.sourcePosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByMergeOperation(t),o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),o.graveyardPosition.isEqual(t.graveyardPosition)&&e.aIsStrong||(o.graveyardPosition=o.graveyardPosition._getTransformedByMergeOperation(t)),[o]}),et(At,nt,(o,t,e)=>{const n=B._createFromPositionAndShift(t.sourcePosition,t.howMany);return t.type=="remove"&&!e.bWasUndone&&!e.forceWeakRemove&&o.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(o.sourcePosition)?[new It(0)]:(t.sourcePosition.getShiftedBy(t.howMany).isEqual(o.sourcePosition)?o.sourcePosition.stickiness="toNone":t.targetPosition.isEqual(o.sourcePosition)&&e.abRelation=="mergeSourceAffected"?o.sourcePosition.stickiness="toNext":t.sourcePosition.isEqual(o.targetPosition)?(o.targetPosition.stickiness="toNone",o.howMany-=t.howMany):t.targetPosition.isEqual(o.targetPosition)&&e.abRelation=="mergeTargetWasBefore"?(o.targetPosition.stickiness="toPrevious",o.howMany+=t.howMany):(o.sourcePosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.sourcePosition.hasSameParentAs(t.sourcePosition)&&(o.howMany-=t.howMany)),o.sourcePosition=o.sourcePosition._getTransformedByMoveOperation(t),o.targetPosition=o.targetPosition._getTransformedByMoveOperation(t),o.sourcePosition.stickiness="toPrevious",o.targetPosition.stickiness="toNext",o.graveyardPosition.isEqual(t.targetPosition)||(o.graveyardPosition=o.graveyardPosition._getTransformedByMoveOperation(t)),[o])}),et(At,ht,(o,t,e)=>{if(t.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),o.deletionPosition.isEqual(t.graveyardPosition)&&(o.howMany=t.howMany)),o.targetPosition.isEqual(t.splitPosition)){const n=t.howMany!=0,i=t.graveyardPosition&&o.deletionPosition.isEqual(t.graveyardPosition);if(n||i||e.abRelation=="mergeTargetNotMoved")return o.sourcePosition=o.sourcePosition._getTransformedBySplitOperation(t),[o]}if(o.sourcePosition.isEqual(t.splitPosition)){if(e.abRelation=="mergeSourceNotMoved")return o.howMany=0,o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o];if(e.abRelation=="mergeSameElement"||o.sourcePosition.offset>0)return o.sourcePosition=t.moveTargetPosition.clone(),o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o]}return o.sourcePosition.hasSameParentAs(t.splitPosition)&&(o.howMany=t.splitPosition.offset),o.sourcePosition=o.sourcePosition._getTransformedBySplitOperation(t),o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o]}),et(nt,Nt,(o,t)=>{const e=B._createFromPositionAndShift(o.sourcePosition,o.howMany)._getTransformedByInsertOperation(t,!1)[0];return o.sourcePosition=e.start,o.howMany=e.end.offset-e.start.offset,o.targetPosition.isEqual(t.position)||(o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t)),[o]}),et(nt,nt,(o,t,e)=>{const n=B._createFromPositionAndShift(o.sourcePosition,o.howMany),i=B._createFromPositionAndShift(t.sourcePosition,t.howMany);let r,s=e.aIsStrong,a=!e.aIsStrong;if(e.abRelation=="insertBefore"||e.baRelation=="insertAfter"?a=!0:e.abRelation!="insertAfter"&&e.baRelation!="insertBefore"||(a=!1),r=o.targetPosition.isEqual(t.targetPosition)&&a?o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):o.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Kd(o,t)&&Kd(t,o))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(i,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ln([n],r);if(i.containsPosition(o.targetPosition)&&i.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Ln([n],r);const c=Lt(o.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if(c=="prefix"||c=="extension")return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ln([n],r);o.type!="remove"||t.type=="remove"||e.aWasUndone||e.forceWeakRemove?o.type=="remove"||t.type!="remove"||e.bWasUndone||e.forceWeakRemove||(s=!1):s=!0;const l=[],d=n.getDifference(i);for(const h of d){h.start=h.start._getTransformedByDeletion(t.sourcePosition,t.howMany),h.end=h.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const g=Lt(h.start.getParentPath(),t.getMovedRangeStart().getParentPath())=="same",m=h._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,g);l.push(...m)}const u=n.getIntersection(i);return u!==null&&s&&(u.start=u.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.end=u.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),l.length===0?l.push(u):l.length==1?i.start.isBefore(n.start)||i.start.isEqual(n.start)?l.unshift(u):l.push(u):l.splice(1,0,u)),l.length===0?[new It(o.baseVersion)]:Ln(l,r)}),et(nt,ht,(o,t,e)=>{let n=o.targetPosition.clone();o.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&e.abRelation!="moveTargetAfter"||(n=o.targetPosition._getTransformedBySplitOperation(t));const i=B._createFromPositionAndShift(o.sourcePosition,o.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||o.howMany++,o.targetPosition=n,[o];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){let s=new B(t.splitPosition,i.end);return s=s._getTransformedBySplitOperation(t),Ln([new B(i.start,t.splitPosition),s],n)}o.targetPosition.isEqual(t.splitPosition)&&e.abRelation=="insertAtSource"&&(n=t.moveTargetPosition),o.targetPosition.isEqual(t.insertionPosition)&&e.abRelation=="insertBetween"&&(n=o.targetPosition);const r=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);o.howMany>
82201&&s&&!e.aWasUndone&&r.push(B._createFromPositionAndShift(t.insertionPosition,1))}return Ln(r,n)}),et(nt,At,(o,t,e)=>{const n=B._createFromPositionAndShift(o.sourcePosition,o.howMany);if(t.deletionPosition.hasSameParentAs(o.sourcePosition)&&n.containsPosition(t.sourcePosition)){if(o.type!="remove"||e.forceWeakRemove){if(o.howMany==1)return e.bWasUndone?(o.sourcePosition=t.graveyardPosition.clone(),o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),[o]):[new It(0)]}else if(!e.aWasUndone){const r=[];let s=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);o.howMany>1&&(r.push(new nt(o.sourcePosition,o.howMany-1,o.targetPosition,0)),s=s._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany-1),a=a._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany-1));const c=t.deletionPosition._getCombined(o.sourcePosition,o.targetPosition),l=new nt(s,1,c,0),d=l.getMovedRangeStart().path.slice();d.push(0);const u=new O(l.targetPosition.root,d);a=a._getTransformedByMove(s,c,1);const h=new nt(a,t.howMany,u,0);return r.push(l),r.push(h),r}}const i=B._createFromPositionAndShift(o.sourcePosition,o.howMany)._getTransformedByMergeOperation(t);return o.sourcePosition=i.start,o.howMany=i.end.offset-i.start.offset,o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),[o]}),et(jt,Nt,(o,t)=>(o.position=o.position._getTransformedByInsertOperation(t),[o])),et(jt,At,(o,t)=>o.position.isEqual(t.deletionPosition)?(o.position=t.graveyardPosition.clone(),o.position.stickiness="toNext",[o]):(o.position=o.position._getTransformedByMergeOperation(t),[o])),et(jt,nt,(o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o])),et(jt,jt,(o,t,e)=>{if(o.position.isEqual(t.position)){if(!e.aIsStrong)return[new It(0)];o.oldName=t.newName}return[o]}),et(jt,ht,(o,t)=>{if(Lt(o.position.path,t.splitPosition.getParentPath())=="same"&&!t.graveyardPosition){const e=new jt(o.position.getShiftedBy(1),o.oldName,o.newName,0);return[o,e]}return o.position=o.position._getTransformedBySplitOperation(t),[o]}),et(Me,Me,(o,t,e)=>{if(o.root===t.root&&o.key===t.key){if(!e.aIsStrong||o.newValue===t.newValue)return[new It(0)];o.oldValue=t.newValue}return[o]}),et(Ee,Ee,(o,t)=>o.rootName===t.rootName&&o.isAdd===t.isAdd?[new It(0)]:[o]),et(ht,Nt,(o,t)=>(o.splitPosition.hasSameParentAs(t.position)&&o.splitPosition.offset<t.position.offset&&(o.howMany+=t.howMany),o.splitPosition=o.splitPosition._getTransformedByInsertOperation(t),o.insertionPosition=o.insertionPosition._getTransformedByInsertOperation(t),[o])),et(ht,At,(o,t,e)=>{if(!o.graveyardPosition&&!e.bWasUndone&&o.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const i=new O(t.graveyardPosition.root,n),r=ht.getInsertionPosition(new O(t.graveyardPosition.root,n)),s=new ht(i,0,r,null,0);return o.splitPosition=o.splitPosition._getTransformedByMergeOperation(t),o.insertionPosition=ht.getInsertionPosition(o.splitPosition),o.graveyardPosition=s.insertionPosition.clone(),o.graveyardPosition.stickiness="toNext",[s,o]}return o.splitPosition.hasSameParentAs(t.deletionPosition)&&!o.splitPosition.isAfter(t.deletionPosition)&&o.howMany--,o.splitPosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.splitPosition=o.splitPosition._getTransformedByMergeOperation(t),o.insertionPosition=ht.getInsertionPosition(o.splitPosition),o.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedByMergeOperation(t)),[o]}),et(ht,nt,(o,t,e)=>{const n=B._createFromPositionAndShift(t.sourcePosition,t.howMany);if(o.graveyardPosition){const r=n.start.isEqual(o.graveyardPosition)||n.containsPosition(o.graveyardPosition);if(!e.bWasUndone&&r){const s=o.splitPosition._getTransformedByMoveOperation(t),a=o.graveyardPosition._getTransformedByMoveOperation(t),c=a.path.slice();c.push(0);const l=new O(a.root,c);return[new nt(s,o.howMany,l,0)]}o.graveyardPosition=o.graveyardPosition._getTransformedByMoveOperation(t)}const i=o.splitPosition.isEqual(t.targetPosition);if(i&&(e.baRelation=="insertAtSource"||e.abRelation=="splitBefore"))return o.howMany+=t.howMany,o.splitPosition=o.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),o.insertionPosition=ht.getInsertionPosition(o.splitPosition),[o];if(i&&e.abRelation&&e.abRelation.howMany){const{howMany:r,offset:s}=e.abRelation;return o.howMany+=r,o.splitPosition=o.splitPosition.getShiftedBy(s),[o]}if(o.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(o.splitPosition)){const r=t.howMany-(o.splitPosition.offset-t.sourcePosition.offset);return o.howMany-=r,o.splitPosition.hasSameParentAs(t.targetPosition)&&o.splitPosition.offset<t.targetPosition.offset&&(o.howMany+=t.howMany),o.splitPosition=t.sourcePosition.clone(),o.insertionPosition=ht.getInsertionPosition(o.splitPosition),[o]}return t.sourcePosition.isEqual(t.targetPosition)||(o.splitPosition.hasSameParentAs(t.sourcePosition)&&o.splitPosition.offset<=t.sourcePosition.offset&&(o.howMany-=t.howMany),o.splitPosition.hasSameParentAs(t.targetPosition)&&o.splitPosition.offset<t.targetPosition.offset&&(o.howMany+=t.howMany)),o.splitPosition.stickiness="toNone",o.splitPosition=o.splitPosition._getTransformedByMoveOperation(t),o.splitPosition.stickiness="toNext",o.graveyardPosition?o.insertionPosition=o.insertionPosition._getTransformedByMoveOperation(t):o.insertionPosition=ht.getInsertionPosition(o.splitPosition),[o]}),et(ht,ht,(o,t,e)=>
8220{if(o.splitPosition.isEqual(t.splitPosition)){if(!o.graveyardPosition&&!t.graveyardPosition)return[new It(0)];if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition))return[new It(0)];if(e.abRelation=="splitBefore")return o.howMany=0,o.graveyardPosition=o.graveyardPosition._getTransformedBySplitOperation(t),[o]}if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition)){const n=o.splitPosition.root.rootName=="$graveyard",i=t.splitPosition.root.rootName=="$graveyard";if(i&&!n||!(n&&!i)&&e.aIsStrong){const r=[];return t.howMany&&r.push(new nt(t.moveTargetPosition,t.howMany,t.splitPosition,0)),o.howMany&&r.push(new nt(o.splitPosition,o.howMany,o.moveTargetPosition,0)),r}return[new It(0)]}if(o.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedBySplitOperation(t)),o.splitPosition.isEqual(t.insertionPosition)&&e.abRelation=="splitBefore")return o.howMany++,[o];if(t.splitPosition.isEqual(o.insertionPosition)&&e.baRelation=="splitBefore"){const n=t.insertionPosition.path.slice();n.push(0);const i=new O(t.insertionPosition.root,n);return[o,new nt(o.insertionPosition,1,i,0)]}return o.splitPosition.hasSameParentAs(t.splitPosition)&&o.splitPosition.offset<t.splitPosition.offset&&(o.howMany-=t.howMany),o.splitPosition=o.splitPosition._getTransformedBySplitOperation(t),o.insertionPosition=ht.getInsertionPosition(o.splitPosition),[o]});class Pt extends rt(O){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new _("model-liveposition-root-not-rootelement",t);h_.call(this)}detach(){this.stopListening()}toPosition(){return new O(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function h_(){this.listenTo(this.root.document.model,"applyOperation",(o,t)=>{const e=t[0];e.isDocumentOperation&&g_.call(this,e)},{priority:"low"})}function g_(o){const t=this.getTransformedByOperation(o);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}Pt.prototype.is=function(o){return o==="livePosition"||o==="model:livePosition"||o=="position"||o==="model:position"};class zn{constructor(t={}){typeof t=="string"&&(t=t==="transparent"?{isUndoable:!1}:{},U("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:i=!1,isTyping:r=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=i,this.isTyping=r}get type(){return U("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(t.baseVersion!==null)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}var m_=Object.defineProperty,p_=Object.defineProperties,f_=Object.getOwnPropertyDescriptors,$d=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,b_=Object.prototype.propertyIsEnumerable,Yd=(o,t,e)=>t in o?m_(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Qd=(o,t)=>{for(var e in t||(t={}))k_.call(t,e)&&Yd(o,e,t[e]);if($d)for(var e of $d(t))b_.call(t,e)&&Yd(o,e,t[e]);return o};class w_{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0&&this._changedRoots.size==0}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const n of e.range.getItems({shallow:!0}))this._isInInsertedElement(n.parent)||this._markAttribute(n);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const n=this._isInInsertedElement(e.sourcePosition.parent),i=this._isInInsertedElement(e.targetPosition.parent);n||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),i||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const n=B._createFromPositionAndShift(e.position,1);for(const i of this._markerCollection.getMarkersIntersectingRange(n)){const r=i.getData();this.bufferMarkerChange(i.name,r,r)}break}case"split":{const n=e.splitPosition.parent;this._isInInsertedElement(n)||this._markRemove(n,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const n=e.sourcePosition.parent;this._isInInsertedElement(n.parent)||this._markRemove(n.parent,n.startOffset,1);const i=e.graveyardPosition.parent;this._markInsert(i,e.graveyardPosition.offset,1);const r=e.targetPosition.parent;this._isInInsertedElement(r)||this._markInsert(r,e.targetPosition.offset,n.maxOffset);break}case"detachRoot":case"addRoot":{const n=e.affectedSelectable;if(!n._isLoaded||n.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const n=e.root.rootName;this._bufferRootAttributeChange(n,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let i=this._changedMarkers.get(t);i?i.newMarkerData=n:(i={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,i)),i.oldMarkerData.range==null&&n.range==null&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)n.oldMarkerData.range!=null&&t.push({name:e,range:n.oldMarkerData.range});return t}
8220getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)n.newMarkerData.range!=null&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map(([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}}))}hasDataChanges(){if(this.getChanges().length||this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,i=!t.range&&e.range,r=t.range&&e.range&&!t.range.isEqual(e.range);if(n||i||r)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const n of this._changesInElement.keys()){const i=this._changesInElement.get(n).sort((d,u)=>d.offset===u.offset?d.type!=u.type?d.type=="remove"?-1:1:0:d.offset<u.offset?-1:1),r=this._elementSnapshots.get(n),s=Zd(n.getChildren()),a=A_(r.length,i);let c=0,l=0;for(const d of a)if(d==="i")e.push(this._getInsertDiff(n,c,s[c])),c++;else if(d==="r")e.push(this._getRemoveDiff(n,c,r[l])),l++;else if(d==="a"){const u=s[c].attributes,h=r[l].attributes;let g;if(s[c].name=="$text")g=new B(O._createAt(n,c),O._createAt(n,c+1));else{const m=n.offsetToIndex(c);g=new B(O._createAt(n,c),O._createAt(n.getChild(m),0))}e.push(...this._getAttributesDiff(g,h,u)),c++,l++}else c++,l++}e.sort((n,i)=>n.position.root!=i.position.root?n.position.root.rootName<i.position.root.rootName?-1:1:n.position.isEqual(i.position)?n.changeCount-i.changeCount:n.position.isBefore(i.position)?-1:1);for(let n=1,i=0;n<e.length;n++){const r=e[i],s=e[n],a=r.type=="remove"&&s.type=="remove"&&r.name=="$text"&&s.name=="$text"&&r.position.isEqual(s.position),c=r.type=="insert"&&s.type=="insert"&&r.name=="$text"&&s.name=="$text"&&r.position.parent==s.position.parent&&r.position.offset+r.length==s.position.offset,l=r.type=="attribute"&&s.type=="attribute"&&r.position.parent==s.position.parent&&r.range.isFlat&&s.range.isFlat&&r.position.offset+r.length==s.position.offset&&r.attributeKey==s.attributeKey&&r.attributeOldValue==s.attributeOldValue&&r.attributeNewValue==s.attributeNewValue;a||c||l?(r.length++,l&&(r.range.end=r.range.end.getShiftedBy(1)),e[n]=null):i=n}e=e.filter(n=>n);for(const n of e)delete n.changeCount,n.type=="attribute"&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(__),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}
8220getChangedRoots(){return Array.from(this._changedRoots.values()).map(t=>{const e=Qd({},t);return e.state!==void 0&&delete e.attributes,e})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const n=this._changedRoots.get(t);n.state!==void 0?(delete n.state,n.attributes===void 0&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,i){const r=this._changedRoots.get(t)||{name:t},s=r.attributes||{};if(s[e]){const a=s[e];i===a.oldValue?delete s[e]:a.newValue=i}else s[e]={oldValue:n,newValue:i};Object.entries(s).length===0?(delete r.attributes,r.state===void 0&&this._changedRoots.delete(t)):(r.attributes=s,this._changedRoots.set(t,r))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=B._createOn(t);for(const n of this._markerCollection.getMarkersIntersectingRange(e)){const i=n.getData();this.bufferMarkerChange(n.name,i,i)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const n of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,n,null,t.getAttribute(n));for(const n of this._markerCollection)if(n.getRange().root==t){const i=n.getData();this.bufferMarkerChange(n.name,(e=Qd({},i),p_(e,f_({range:null}))),i)}var e}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,Zd(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const i=t.offset+t.howMany,r=n.offset+n.howMany;if(t.type=="insert"&&(n.type=="insert"&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<r&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),n.type=="remove"&&t.offset<n.offset&&(n.offset+=t.howMany),n.type=="attribute")){if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<r){const s=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:i,howMany:s-n.howMany,count:this._changeCount++})}}if(t.type=="remove"){if(n.type=="insert"){if(i<=n.offset)n.offset-=t.howMany;else if(i<=r)if(t.offset<n.offset){const s=i-n.offset;n.offset=t.offset,n.howMany-=s,t.nodesToHandle-=s}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<r){const s=r-t.offset;n.howMany-=s,t.nodesToHandle-=s}}if(n.type=="remove"&&(i<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),n.type=="attribute"){if(i<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const s=i-n.offset;n.offset=t.offset,n.howMany-=s}else if(t.offset<r)if(i<=r){const s=n.howMany;n.howMany=t.offset-n.offset;const a=s-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:a,count:this._changeCount++})}else n.howMany-=r-t.offset}}if(t.type=="attribute"){if(n.type=="insert")if(t.offset<n.offset&&i>n.offset){if(i>r){const s={type:"attribute",offset:r,howMany:i-r,count:this._changeCount++};this._handleChange(s,e),e.push(s)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<r&&(i>r?(t.nodesToHandle=i-r,t.offset=r):t.nodesToHandle=0);if(n.type=="remove"&&t.offset<n.offset&&i>n.offset){const s={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(s,e),e.push(s),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}n.type=="attribute"&&(t.offset>=n.offset&&i<=r?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&i>=r&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:O._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++,_element:n.element}}_getRemoveDiff(t,e,n){return{type:"remove",position:O._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++,_element:n.element}}_getAttributesDiff(t,e,n){const i=[];n=new Map(n);for(const[r,s]of e){const a=n.has(r)?n.get(r):null;a!==s&&i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:s,attributeNewValue:a,changeCount:this._changeCount++}),n.delete(r)}for(const[r,s]of n)i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:null,attributeNewValue:s,changeCount:this._changeCount++});return i}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),i=t.startOffset;if(n){for(const r of n)if(r.type=="insert"&&i>=r.offset&&i<r.offset+r.howMany)return!0}return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const i=new B(O._createAt(t,e),O._createAt(t,e+n));for(const r of i.getItems({shallow:!0}))r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}function Zd(o){const t=[];for(const e of o)if(e.is("$text"))for(let n=0;n<e.data.length;n++)t.push({name:"$text",attributes:new Map(e.getAttributes())});else t.push({name:e.name,attributes:new Map(e.getAttributes()),element:e});return t}function A_(o,t){const e=[];let n=0,i=0;for(const r of t){if(r.offset>n){for(let s=0;s<r.offset-n;s++)e.push("e");i+=r.offset-n}if(r.type=="insert"){for(let s=0;s<r.howMany;s++)e.push("i");n=r.offset+r.howMany}else if(r.type=="remove"){for(let s=0;s<r.howMany;s++)e.push("r");n=r.offset,i+=r.howMany}else e.push(..."a".repeat(r.howMany).split("")),n=r.offset+r.howMany,i+=r.howMany}if(i<o)for(let r=0;r<o-i-n;r++)e.push("e");return e}function __(o){const t="position"in o&&o.position.root.rootName=="$graveyard",e="range"in o&&o.range.root.rootName=="$graveyard";return!t&&!e}
8220class C_{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(t){this._operations.length&&t>this._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new _("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];t===void 0&&(t=n.baseVersion);let i=e-1;for(const[a,c]of this._gaps)t>a&&t<c&&(t=c),i>a&&i<c&&(i=a-1);if(i<n.baseVersion||t>this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(t);r===void 0&&(r=0);let s=this._baseVersionToOperationIndex.get(i);return s===void 0&&(s=this._operations.length-1),this._operations.slice(r,s+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(e!==void 0)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Ii extends st{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Ii.prototype.is=function(o,t){return t?t===this.name&&(o==="rootElement"||o==="model:rootElement"||o==="element"||o==="model:element"):o==="rootElement"||o==="model:rootElement"||o==="element"||o==="model:element"||o==="node"||o==="model:node"};var v_=Object.defineProperty,y_=Object.defineProperties,x_=Object.getOwnPropertyDescriptors,Jd=Object.getOwnPropertySymbols,E_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,Xd=(o,t,e)=>t in o?v_(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,tu=(o,t)=>{for(var e in t||(t={}))E_.call(t,e)&&Xd(o,e,t[e]);if(Jd)for(var e of Jd(t))D_.call(t,e)&&Xd(o,e,t[e]);return o},eu=(o,t)=>y_(o,x_(t));const nu="$graveyard";class I_ extends rt(){constructor(t){super(),this.model=t,this.history=new C_,this.selection=new ke(this),this.roots=new ue({idProperty:"rootName"}),this.differ=new w_(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",nu),this.listenTo(t,"applyOperation",(e,n)=>{const i=n[0];i.isDocumentOperation&&this.differ.bufferOperation(i)},{priority:"high"}),this.listenTo(t,"applyOperation",(e,n)=>{const i=n[0];i.isDocumentOperation&&this.history.addOperation(i)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(t.markers,"update",(e,n,i,r,s)=>{const a=eu(tu({},n.getData()),{range:r});this.differ.bufferMarkerChange(n.name,s,a),i===null&&n.on("change",(c,l)=>{const d=n.getData();this.differ.bufferMarkerChange(n.name,eu(tu({},d),{range:l}),d)})}),this.registerPostFixer(e=>{let n=!1;for(const i of this.roots)i.isAttached()||i.isEmpty||(e.remove(e.createRangeIn(i)),n=!0);for(const i of this.model.markers)i.getRange().root.isAttached()||(e.removeMarker(i),n=!0);return n})}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(nu)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new _("model-document-createroot-name-exists",this,{name:e});const n=new Ii(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map(e=>e.rootName)}getRoots(t=!1){return this.roots.filter(e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=vl(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}
8220_validateSelectionRange(t){return ou(t.start)&&ou(t.end)}_callPostFixers(t){let e=!1;do for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break;while(e)}}function ou(o){const t=o.textNode;if(t){const e=t.data,n=o.offset-t.startOffset;return!qr(e,n)&&!Gr(e,n)}return!0}var T_=Object.defineProperty,M_=Object.defineProperties,S_=Object.getOwnPropertyDescriptors,iu=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable,ru=(o,t,e)=>t in o?T_(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class P_ extends rt(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof Rn?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,i=!1){const r=t instanceof Rn?t.name:t;if(r.includes(","))throw new _("markercollection-incorrect-marker-name",this);const s=this._markers.get(r);if(s){const d=s.getData(),u=s.getRange();let h=!1;return u.isEqual(e)||(s._attachLiveRange(Zt.fromRange(e)),h=!0),n!=s.managedUsingOperations&&(s._managedUsingOperations=n,h=!0),typeof i=="boolean"&&i!=s.affectsData&&(s._affectsData=i,h=!0),h&&this.fire(`update:${r}`,s,u,e,d),s}const a=Zt.fromRange(e),c=new Rn(r,a,n,i);var l;return this._markers.set(r,c),this.fire(`update:${r}`,c,null,e,(l=((d,u)=>{for(var h in u||(u={}))B_.call(u,h)&&ru(d,h,u[h]);if(iu)for(var h of iu(u))N_.call(u,h)&&ru(d,h,u[h]);return d})({},c.getData()),M_(l,S_({range:null})))),c}_remove(t){const e=t instanceof Rn?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof Rn?t.name:t,n=this._markers.get(e);if(!n)throw new _("markercollection-refresh-marker-not-exists",this);const i=n.getRange();this.fire(`update:${e}`,n,i,i,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)e.getRange().getIntersection(t)!==null&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class Rn extends rt(Ue){constructor(t,e,n,i){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=i}get managedUsingOperations(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Rn.prototype.is=function(o){return o==="marker"||o==="model:marker"};class O_ extends Jt{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new _("detach-operation-on-document-node",this)}_execute(){Fd(B._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Se extends Ue{constructor(t){super(),this.markers=new Map,this._children=new bo,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(st.fromJSON(n)):e.push(ut.fromJSON(n));return new Se(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(i){return typeof i=="string"?[new ut(i)]:(Gt(i)||(i=[i]),Array.from(i).map(r=>typeof r=="string"?new ut(r):r instanceof fe?new ut(r.data,r.getAttributes()):r))}(e);for(const i of n)i.parent!==null&&i._remove(),i.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const i of n)i.parent=null;return n}}Se.prototype.is=function(o){return o==="documentFragment"||o==="model:documentFragment"};class L_{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new ut(t,e)}createElement(t,e){return new st(t,e)}createDocumentFragment(){return new Se}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof ut&&t.data=="")return;const i=O._createAt(e,n);if(t.parent){if(cu(t.root,i.root))return void this.move(B._createOn(t),i);
vendor: 4,636 bytes, line 8220
8220if(t.root.document)throw new _("model-writer-insert-forbidden-move",this);this.remove(t)}const r=i.root.document?i.root.document.version:null,s=new Nt(i,t,r);if(t instanceof ut&&(s.shouldReceiveAttributes=!0),this.batch.addOperation(s),this.model.applyOperation(s),t instanceof Se)for(const[a,c]of t.markers){const l=O._createAt(c.root,0),d={range:new B(c.start._getCombined(l,i),c.end._getCombined(l,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(a)?this.updateMarker(a,d):this.addMarker(a,d)}}insertText(t,e,n,i){e instanceof Se||e instanceof st||e instanceof O?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}insertElement(t,e,n,i){e instanceof Se||e instanceof st||e instanceof O?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,i)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Se||e instanceof st?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Se||e instanceof st?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof B){const i=n.getMinimalFlatRanges();for(const r of i)su(this,t,e,r)}else au(this,t,e,n)}setAttributes(t,e){for(const[n,i]of Ce(t))this.setAttribute(n,i,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof B){const n=e.getMinimalFlatRanges();for(const i of n)su(this,t,null,i)}else au(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=n=>{for(const i of n.getAttributeKeys())this.removeAttribute(i,n)};if(t instanceof B)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof B))throw new _("writer-move-invalid-range",this);if(!t.isFlat)throw new _("writer-move-range-not-flat",this);const i=O._createAt(e,n);if(i.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!cu(t.root,i.root))throw new _("writer-move-different-document",this);const r=t.root.document?t.root.document.version:null,s=new nt(t.start,t.end.offset-t.start.offset,i,r);this.batch.addOperation(s),this.model.applyOperation(s)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof B?t:B._createOn(t)).getMinimalFlatRanges().reverse();for(const n of e)this._addOperationForAffectedMarkers("move",n),z_(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof st))throw new _("writer-merge-no-element-before",this);if(!(n instanceof st))throw new _("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(B._createIn(n),O._createAt(e,"end")),this.remove(n)}_merge(t){const e=O._createAt(t.nodeBefore,"end"),n=O._createAt(t.nodeAfter,0),i=t.root.document.graveyard,r=new O(i,[0]),s=t.root.document.version,a=new At(n,t.nodeAfter.maxOffset,e,r,s);this.batch.addOperation(a),this.model.applyOperation(a)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof st))throw new _("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,i=new jt(O._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(t,e){this._assertWriterUsedCorrectly();let n,i,r=t.parent;if(!r.parent)throw new _("writer-split-element-no-parent",this);if(e||(e=r.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new _("writer-split-invalid-limit-element",this);do{const s=r.root.document?r.root.document.version:null,a=r.maxOffset-t.offset,c=ht.getInsertionPosition(t),l=new ht(t,a,c,null,s);this.batch.addOperation(l),this.model.applyOperation(l),n||i||(n=r,i=t.parent.nextSibling),r=(t=this.createPositionAfter(t.parent)).parent}while(r!==e);return{position:t,range:new B(O._createAt(n,"end"),O._createAt(i,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new _("writer-wrap-range-not-flat",this);const n=e instanceof st?e:new st(e);
8220if(n.childCount>0)throw new _("writer-wrap-element-not-empty",this);if(n.parent!==null)throw new _("writer-wrap-element-attached",this);this.insert(n,t.start);const i=new B(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,O._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),t.parent===null)throw new _("writer-unwrap-element-no-parent",this);this.move(B._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||typeof e.usingOperation!="boolean")throw new _("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,i=e.range,r=e.affectsData!==void 0&&e.affectsData;if(this.model.markers.has(t))throw new _("writer-addmarker-marker-exists",this);if(!i)throw new _("writer-addmarker-no-range",this);return n?(Eo(this,t,null,i,r),this.model.markers.get(t)):this.model.markers._set(t,i,n,r)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n=typeof t=="string"?t:t.name,i=this.model.markers.get(n);if(!i)throw new _("writer-updatemarker-marker-not-exists",this);if(!e)return U("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(i);const r=typeof e.usingOperation=="boolean",s=typeof e.affectsData=="boolean",a=s?e.affectsData:i.affectsData;if(!r&&!e.range&&!s)throw new _("writer-updatemarker-wrong-options",this);const c=i.getRange(),l=e.range?e.range:c;r&&e.usingOperation!==i.managedUsingOperations?e.usingOperation?Eo(this,n,null,l,a):(Eo(this,n,c,null,a),this.model.markers._set(n,l,void 0,a)):i.managedUsingOperations?Eo(this,n,c,l,a):this.model.markers._set(n,l,void 0,a)}removeMarker(t){this._assertWriterUsedCorrectly();const e=typeof t=="string"?t:t.name;if(!this.model.markers.has(e))throw new _("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);Eo(this,e,n.getRange(),null,n.affectsData)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new _("writer-addroot-root-exists",this);const i=this.model.document,r=new Ee(t,e,!0,i,i.version);return this.batch.addOperation(r),this.model.applyOperation(r),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e=typeof t=="string"?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new _("writer-detachroot-no-root",this);for(const r of this.model.markers)r.getRange().root===e&&this.removeMarker(r);for(const r of e.getAttributeKeys())this.removeAttribute(r,e);this.remove(this.createRangeIn(e));const n=this.model.document,i=new Ee(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(i),this.model.applyOperation(i)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),typeof t=="string")this._setSelectionAttribute(t,e);else for(const[n,i]of Ce(t))this._setSelectionAttribute(n,i)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),typeof t=="string")this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const i=ke._getStoreAttributeKey(t);this.setAttribute(i,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=ke._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new _("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const i=n.getRange();let r=!1;if(t==="move"){const s=e;r=s.containsPosition(i.start)||s.start.isEqual(i.start)||s.containsPosition(i.end)||s.end.isEqual(i.end)}else{const s=e,a=s.nodeBefore,c=s.nodeAfter,l=i.start.parent==a&&i.start.isAtEnd,d=i.end.parent==c&&i.end.offset==0,u=i.end.nodeAfter==c,h=i.start.nodeAfter==c;r=l||d||u||h}r&&this.updateMarker(n.name,{range:i})}}}function su(o,t,e,n){const i=o.model,r=i.document;let s,a,c,l=n.start;for(const u of n.getWalker({shallow:!0}))c=u.item.getAttribute(t),s&&a!=c&&(a!=e&&d(),l=s),s=u.nextPosition,a=c;function d(){const u=new B(l,s),h=u.root.document?r.version:null,g=new xt(u,t,a,e,h);o.batch.addOperation(g),i.applyOperation(g)}s instanceof O&&s!=l&&a!=e&&d()}function au(o,t,e,n){const i=o.model,r=i.document,s=n.getAttribute(t);let a,c;if(s!=e){if(n.root===n){const l=n.document?r.version:null;c=new Me(n,t,s,e,l)}else{a=new B(O._createBefore(n),o.createPositionAfter(n));const l=a.root.document?r.version:null;c=new xt(a,t,s,e,l)}o.batch.addOperation(c),i.applyOperation(c)}}function Eo(o,t,e,n,i){const r=o.model,s=r.document,a=new Rt(t,e,n,r.markers,!!i,s.version);o.batch.addOperation(a),r.applyOperation(a)}function z_(o,t,e,n){let i;if(o.root.document){const r=n.document,s=new O(r.graveyard,[0]);i=new nt(o,t,s,r.version)}else i=new O_(o,t);e.addOperation(i),n.applyOperation(i)}function cu(o,t){return o===t||o instanceof Ii&&t instanceof Ii}function R_(o,t,e={}){if(t.isCollapsed)return;const n=t.getFirstRange();if(n.root.rootName=="$graveyard")return;const i=o.schema;o.change(r=>{if(!e.doNotResetEntireContent&&function(l,d){const u=l.getLimitElement(d);if(!d.containsEntireContent(u))return!1;const h=d.getFirstRange();return h.start.parent==h.end.parent?!1:l.checkChild(u,"paragraph")}(i,t))return void function(l,d){const u=l.model.schema.getLimitElement(d);l.remove(l.createRangeIn(u)),uu(l,l.createPositionAt(u,0),d)}(r,t);const s={};if(!e.doNotAutoparagraph){const l=t.getSelectedElement();l&&Object.assign(s,i.getAttributesWithProperty(l,"copyOnReplace",!0))}const[a,c]=function(l){const d=l.root.document.model,u=l.start;let h=l.end;if(d.hasContent(l,{ignoreMarkers:!0})){const g=function(m){const k=m.parent,b=k.root.document.model.schema,A=k.getAncestors({parentFirst:!0,includeSelf:!0});for(const x of A){if(b.isLimit(x))return null;if(b.isBlock(x))return x}}(h);if(g&&h.isTouching(d.createPositionAt(g,0))){const m=d.createSelection(l);d.modifySelection(m,{direction:"backward"});const k=m.getLastPosition(),b=d.createRange(k,h);d.hasContent(b,{ignoreMarkers:!0})||(h=k)}}return[Pt.fromPosition(u,"toPrevious"),Pt.fromPosition(h,"toNext")]}(n);a.isTouching(c)||r.remove(r.createRange(a,c)),e.leaveUnmerged||(function(l,d,u){const h=l.model;if(!xs(l.model.schema,d,u))return;const[g,m]=function(k,b){const A=k.getAncestors(),x=b.getAncestors();let M=0;for(;A[M]&&A[M]==x[M];)M++;return[A[M],x[M]]}(d,u);!g||!m||(!h.hasContent(g,{ignoreMarkers:!0})&&h.hasContent(m,{ignoreMarkers:!0})?du(l,d,u,g.parent):lu(l,d,u,g.parent))}(r,a,c),i.removeDisallowedAttributes(a.parent.getChildren(),r)),hu(r,t,a),!e.doNotAutoparagraph&&function(l,d){const u=l.checkChild(d,"$text"),h=l.checkChild(d,"paragraph");return!u&&h}(i,a)&&uu(r,a,t,s),a.detach(),c.detach()})}function lu(o,t,e,n){const i=t.parent,r=e.parent;if(i!=n&&r!=n){for(t=o.createPositionAfter(i),(e=o.createPositionBefore(r)).isEqual(t)||o.insert(r,t),o.merge(t);e.parent.isEmpty;){const s=e.parent;e=o.createPositionBefore(s),o.remove(s)}xs(o.model.schema,t,e)&&lu(o,t,e,n)}}function du(o,t,e,n){const i=t.parent,r=e.parent;if(i!=n&&r!=n){for(t=o.createPositionAfter(i),(e=o.createPositionBefore(r)).isEqual(t)||o.insert(i,e);t.parent.isEmpty;){const s=t.parent;t=o.createPositionBefore(s),o.remove(s)}e=o.createPositionBefore(r),function(s,a){const c=a.nodeBefore,l=a.nodeAfter;c.name!=l.name&&s.rename(c,l.name),s.clearAttributes(c),s.setAttributes(Object.fromEntries(l.getAttributes()),c),s.merge(a)}(o,e),xs(o.model.schema,t,e)&&du(o,t,e,n)}}function xs(o,t,e){const n=t.parent,i=e.parent;
vendor: 4,650 bytes, line 8220
8220return n!=i&&!o.isLimit(n)&&!o.isLimit(i)&&function(r,s,a){const c=new B(r,s);for(const l of c.getWalker())if(a.isLimit(l.item))return!1;return!0}(t,e,o)}function uu(o,t,e,n={}){const i=o.createElement("paragraph");o.model.schema.setAllowedAttributes(i,n,o),o.insert(i,t),hu(o,e,o.createPositionAt(i,0))}function hu(o,t,e){t instanceof ke?o.setSelection(e):t.setTo(e)}function gu(o,t){const e=[];Array.from(o.getItems({direction:"backward"})).map(n=>t.createRangeOn(n)).filter(n=>(n.start.isAfter(o.start)||n.start.isEqual(o.start))&&(n.end.isBefore(o.end)||n.end.isEqual(o.end))).forEach(n=>{e.push(n.start.parent),t.remove(n)}),e.forEach(n=>{let i=n;for(;i.parent&&i.isEmpty;){const r=t.createRangeOn(i);i=i.parent,t.remove(r)}})}class j_{constructor(t,e,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new _("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?B._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new B(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=Pt.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new _("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=Pt.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Pt.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof st)||!this._canMergeLeft(t))return;const e=Pt._createBefore(t);e.stickiness="toNext";const n=Pt.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Pt._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Pt._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof st)||!this._canMergeRight(t))return;
8220const e=Pt._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new _("insertcontent-invalid-insertion-position",this);this.position=O._createAt(e.nodeBefore,"end");const n=Pt.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Pt._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Pt._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof st&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof st&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const n=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=n,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function F_(o,t,e,n={}){if(!o.schema.isObject(t))throw new _("insertobject-element-not-an-object",o,{object:t});const i=e||o.document.selection;let r=i;n.findOptimalPosition&&o.schema.isBlock(t)&&(r=o.createSelection(o.schema.findOptimalInsertionRange(i,n.findOptimalPosition)));const s=St(i.getSelectedBlocks()),a={};return s&&Object.assign(a,o.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),o.change(c=>{r.isCollapsed||o.deleteContent(r,{doNotAutoparagraph:!0});let l=t;const d=r.anchor.parent;!o.schema.checkChild(d,t)&&o.schema.checkChild(d,"paragraph")&&o.schema.checkChild("paragraph",t)&&(l=c.createElement("paragraph"),c.insert(t,l)),o.schema.setAllowedAttributes(l,a,c);const u=o.insertContent(l,r);return u.isCollapsed||n.setSelection&&function(h,g,m,k){const b=h.model;if(m=="on")return void h.setSelection(g,"on");if(m!="after")throw new _("insertobject-invalid-place-parameter-value",b);let A=g.nextSibling;if(b.schema.isInline(g))return void h.setSelection(g,"after");!(A&&b.schema.checkChild(A,"$text"))&&b.schema.checkChild(g.parent,"paragraph")&&(A=h.createElement("paragraph"),b.schema.setAllowedAttributes(A,k,h),b.insertContent(A,h.createPositionAfter(g))),A&&h.setSelection(A,0)}(c,t,n.setSelection,a),u})}const V_=' ,.?!:;"-()';function H_(o,t){const{isForward:e,walker:n,unit:i,schema:r,treatEmojiAsSingleUnit:s}=o,{type:a,item:c,nextPosition:l}=t;if(a=="text")return o.unit==="word"?function(d,u){let h=d.position.textNode;for(h||(h=u?d.position.nodeAfter:d.position.nodeBefore);h&&h.is("$text");){const g=d.position.offset-h.startOffset;if(G_(h,g,u))h=u?d.position.nodeAfter:d.position.nodeBefore;else{if(q_(h.data,g,u))break;d.next()}}return d.position}(n,e):function(d,u,h){const g=d.position.textNode;if(g){const m=g.data;let k=d.position.offset-g.startOffset;for(;qr(m,k)||u=="character"&&Gr(m,k)||h&&el(m,k);)d.next(),k=d.position.offset-g.startOffset}return d.position}(n,i,s);if(a==(e?"elementStart":"elementEnd")){if(r.isSelectable(c))return O._createAt(c,e?"after":"before");if(r.checkChild(l,"$text"))return l}else{if(r.isLimit(c))return void n.skip(()=>!0);if(r.checkChild(l,"$text"))return l}}function U_(o,t){const e=o.root,n=O._createAt(e,t?"end":0);return t?new B(o,n):new B(n,o)}
8220function q_(o,t,e){const n=t+(e?0:-1);return V_.includes(o.charAt(n))}function G_(o,t,e){return t===(e?o.offsetSize:0)}class W_ extends lt(){constructor(){super(),this.markers=new P_,this.document=new I_(this),this.schema=new F0,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(t=>this.decorate(t)),this.on("applyOperation",(t,e)=>{e[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((t,e)=>{if(e.name==="$marker")return!0}),z0(this),this.document.registerPostFixer(yd),this.on("insertContent",(t,[e,n])=>{t.return=function(i,r,s){return i.change(a=>{const c=s||i.document.selection;c.isCollapsed||i.deleteContent(c,{doNotAutoparagraph:!0});const l=new j_(i,a,c.anchor),d=[];let u;if(r.is("documentFragment")){if(r.markers.size){const m=[];for(const[k,b]of r.markers){const{start:A,end:x}=b,M=A.isEqual(x);m.push({position:A,name:k,isCollapsed:M},{position:x,name:k,isCollapsed:M})}m.sort(({position:k},{position:b})=>k.isBefore(b)?1:-1);for(const{position:k,name:b,isCollapsed:A}of m){let x=null,M=null;const N=k.parent===r&&k.isAtStart,H=k.parent===r&&k.isAtEnd;N||H?A&&(M=N?"start":"end"):(x=a.createElement("$marker"),a.insert(x,k)),d.push({name:b,element:x,collapsed:M})}}u=r.getChildren()}else u=[r];l.handleNodes(u);let h=l.getSelectionRange();if(r.is("documentFragment")&&d.length){const m=h?Zt.fromRange(h):null,k={};for(let b=d.length-1;b>=0;b--){const{name:A,element:x,collapsed:M}=d[b],N=!k[A];if(N&&(k[A]=[]),x){const H=a.createPositionAt(x,"before");k[A].push(H),a.remove(x)}else{const H=l.getAffectedRange();if(!H){M&&k[A].push(l.position);continue}M?k[A].push(H[M]):k[A].push(N?H.start:H.end)}}for(const[b,[A,x]]of Object.entries(k))A&&x&&A.root===x.root&&A.root.document&&!a.model.markers.has(b)&&a.addMarker(b,{usingOperation:!0,affectsData:!0,range:new B(A,x)});m&&(h=m.toRange(),m.detach())}h&&(c instanceof ke?a.setSelection(h):c.setTo(h));const g=l.getAffectedRange()||i.createRange(c.anchor);return l.destroy(),g})}(this,e,n)}),this.on("insertObject",(t,[e,n,i])=>{t.return=F_(this,e,n,i)}),this.on("canEditAt",t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()})}change(t){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new zn,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(e){_.rethrowUnexpectedError(e,this)}}enqueueChange(t,e){try{t?typeof t=="function"?(e=t,t=new zn):t instanceof zn||(t=new zn(t)):t=new zn,this._pendingChanges.push({batch:t,callback:e}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(n){_.rethrowUnexpectedError(n,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...i){const r=Es(e,n);return this.fire("insertContent",[t,r,n,...i])}insertObject(t,e,n,i,...r){const s=Es(e,n);return this.fire("insertObject",[t,s,i,i,...r])}deleteContent(t,e){R_(this,t,e)}modifySelection(t,e){(function(n,i,r={}){const s=n.schema,a=r.direction!="backward",c=r.unit?r.unit:"character",l=!!r.treatEmojiAsSingleUnit,d=i.focus,u=new Te({boundaries:U_(d,a),singleCharacters:!0,direction:a?"forward":"backward"}),h={walker:u,schema:s,isForward:a,unit:c,treatEmojiAsSingleUnit:l};let g;for(;g=u.next();){if(g.done)return;const m=H_(h,g.value);if(m)return void(i instanceof ke?n.change(k=>{k.setSelectionFocus(m)}):i.setFocus(m))}})(this,t,e)}getSelectedContent(t){return function(e,n){return e.change(i=>{const r=i.createDocumentFragment(),s=n.getFirstRange();if(!s||s.isCollapsed)return r;const a=s.start.root,c=s.start.getCommonPath(s.end),l=a.getNodeByPath(c);let d;d=s.start.parent==s.end.parent?s:i.createRange(i.createPositionAt(l,s.start.path[c.length]),i.createPositionAt(l,s.end.path[c.length]+1));const u=d.end.offset-d.start.offset;for(const h of d.getItems({shallow:!0}))h.is("$textProxy")?i.appendText(h.data,h.getAttributes(),r):i.append(i.cloneElement(h,!0),r);if(d!=s){const h=s._getTransformedByMove(d.start,i.createPositionAt(r,0),u)[0],g=i.createRange(i.createPositionAt(r,0),h.start);gu(i.createRange(h.end,i.createPositionAt(r,"end")),i),gu(g,i)}return r})}(this,t)}hasContent(t,e={}){const n=t instanceof B?t:B._createIn(t);if(n.isCollapsed)return!1;
8220const{ignoreWhitespaces:i=!1,ignoreMarkers:r=!1}=e;if(!r){for(const s of this.markers.getMarkersIntersectingRange(n))if(s.affectsData)return!0}for(const s of n.getItems())if(this.schema.isContent(s)&&(!s.is("$textProxy")||!i||s.data.search(/\S/)!==-1))return!0;return!1}canEditAt(t){const e=Es(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new O(t,e,n)}createPositionAt(t,e){return O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new B(t,e)}createRangeIn(t){return B._createIn(t)}createRangeOn(t){return B._createOn(t)}createSelection(...t){return new Qt(...t)}createBatch(t){return new zn(t)}createOperationFromJSON(t){return c_.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new L_(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}
vendor: 4,125 bytes, line 8220
8220return t}}function Es(o,t){if(o)return o instanceof Qt||o instanceof ke?o:o instanceof an?t||t===0?new Qt(o,t):o.is("rootElement")?new Qt(o,"in"):new Qt(o,"on"):new Qt(o)}class K_ extends He{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class Ds extends He{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class Be{constructor(t){this.document=t}createDocumentFragment(t){return new sn(this.document,t)}createElement(t,e,n){return new $t(this.document,t,e,n)}createText(t){return new dt(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const i=n.getChildIndex(t);return this.removeChildren(i,1,n),this.insertChild(i,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new $t(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Kt(t)&&n===void 0?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return F._createAt(t,e)}createPositionAfter(t){return F._createAfter(t)}createPositionBefore(t){return F._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new ge(...t)}}class $_{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new _("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}var Y_=Object.defineProperty,mu=Object.getOwnPropertySymbols,Q_=Object.prototype.hasOwnProperty,Z_=Object.prototype.propertyIsEnumerable,pu=(o,t,e)=>t in o?Y_(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;const Is="contentEditing",fu="common";class J_{constructor(t){this.keystrokeInfos=new Map,this._editor=t;const e=t.config.get("menuBar.isVisible"),n=t.locale.t;this.addKeystrokeInfoCategory({id:Is,label:n("Content editing keystrokes"),description:n("These keyboard shortcuts allow for quick access to content editing features.")});const 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"]]}];e&&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:t,label:e,description:n,groups:i}){this.keystrokeInfos.set(t,{id:t,label:e,description:n,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:t,id:fu}
8220),i&&i.forEach(r=>{this.addKeystrokeInfoGroup(((s,a)=>{for(var c in a||(a={}))Q_.call(a,c)&&pu(s,c,a[c]);if(mu)for(var c of mu(a))Z_.call(a,c)&&pu(s,c,a[c]);return s})({categoryId:t},r))})}addKeystrokeInfoGroup({categoryId:t=Is,id:e,label:n,keystrokes:i}){const r=this.keystrokeInfos.get(t);if(!r)throw new _("accessibility-unknown-keystroke-info-category",this._editor,{groupId:e,categoryId:t});r.groups.set(e,{id:e,label:n,keystrokes:i||[]})}addKeystrokeInfos({categoryId:t=Is,groupId:e=fu,keystrokes:n}){if(!this.keystrokeInfos.has(t))throw new _("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:t,keystrokes:n});const i=this.keystrokeInfos.get(t);if(!i.groups.has(e))throw new _("accessibility-unknown-keystroke-info-group",this._editor,{groupId:e,categoryId:t,keystrokes:n});i.groups.get(e).keystrokes.push(...n)}}var ku=Object.getOwnPropertySymbols,X_=Object.prototype.hasOwnProperty,tC=Object.prototype.propertyIsEnumerable,bu=(o,t)=>{var e={};for(var n in o)X_.call(o,n)&&t.indexOf(n)<0&&(e[n]=o[n]);if(o!=null&&ku)for(var n of ku(o))t.indexOf(n)<0&&tC.call(o,n)&&(e[n]=o[n]);return e};class eC extends lt(){constructor(t={}){super();const e=this.constructor,n=e.defaultConfig||{},{translations:i}=n,r=bu(n,["translations"]),s=t,{translations:a=i}=s,c=bu(s,["translations"]),l=t.language||r.language;this._context=t.context||new bl({language:l,translations:a}),this._context._addEditor(this,!t.context);const d=Array.from(e.builtinPlugins||[]);this.config=new Tc(c,r),this.config.define("plugins",d),this.config.define(this._context._getEditorConfig()),this.plugins=new fl(this,d,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new $_,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new W_,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const u=new fA;this.data=new s_(this.model,u),this.editing=new R0(this.model,u),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new a_([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 $w(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new J_(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new _("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if(typeof t!="string"&&typeof t!="symbol")throw new _("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),this._readOnlyLocks.size===1&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if(typeof t!="string"&&typeof t!="symbol")throw new _("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),this._readOnlyLocks.size===0&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}setData(t){this.data.set(t)}getData(t){return this.data.get(t)}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],i=t.get("extraPlugins")||[],r=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(i),n,r)}destroy(){let t=Promise.resolve();return this.state=="initializing"&&(t=new Promise(e=>this.once("ready",e))),t.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(n){_.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function Ts(o){return class extends o{updateSourceElement(t){if(!this.sourceElement)throw new _("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void Rc(this.sourceElement,"");const i=typeof t=="string"?t:this.data.get();Rc(this.sourceElement,i)}}}Ts.updateSourceElement=Ts(Object).prototype.updateSourceElement;class wu extends ui{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new ue({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if(typeof t!="string")throw new _("pendingactions-add-invalid-message",this);const e=new(lt());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const $
vendor: 31,092 bytes, line 8220
8220={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',colorPalette:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.401 5.401 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023c.449.131.887.32 1.307.573l.058.033c.046.028.09.057.135.086V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.118 2.118 0 0 0-.438 1.158 2.14 2.14 0 0 0 1.277 2.096 2.132 2.132 0 0 0 2.645-3.11 2.13 2.13 0 0 0-1.873-.978Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.647.647 0 0 0-.096.492.664.664 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.741 1.741 0 0 1 2.478-.463 1.869 1.869 0 0 1 .476 2.55.637.637 0 0 0-.071.5.646.646 0 0 0 .309.396.627.627 0 0 0 .869-.19l.027-.041a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.78-.044.066a3.228 3.228 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.626.626 0 0 0 .092-.475.638.638 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.741 1.741 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.838-.19-1.067-.346-.23-.82-.124-1.059.236l-1.268 1.907c-.239.36-.153.838.192 1.067.345.23.818.123 1.057-.236l1.268-1.907Z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeCustom:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" viewBox="0 0 20 20"><path d="M.95 1.43a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h.75v6.3H.95a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-.65h1.932l1.539-1.5H5v-.95a.95.95 0 0 0-.95-.95H3.2v-6.3h.85A.95.95 0 0 0 5 5.48v-.55h10v.55a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-3.1a.95.95 0 0 0-.95-.95h-3.1a.95.95 0 0 0-.95.95v1.05H5V2.38a.95.95 0 0 0-.95-.95H.95zm.55 3.5v-2h2v2h-2zm0 9.3v2h2v-2h-2zm15-11.3v2h2v-2h-2z"/><path d="M8.139 20.004v-2.388l7.045-7.048 2.391 2.391-7.046 7.046h-2.39zm11.421-9.101a.64.64 0 0 1-.138.206l-1.165 1.168-2.391-2.391 1.167-1.163a.63.63 0 0 1 .206-.138.635.635 0 0 1 .243-.049.63.63 0 0 1 .449.187l1.491 1.488c.059.059.108.129.138.206s.049.16.049.243a.6.6 0 0 1-.049.243z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M13 5.5H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2ZM13 7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 2 7h11Z"/></svg>',objectSizeSmall:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M7 9.5H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2ZM7 11a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4A.5.5 0 0 1 2 11h5Z"/></svg>',objectSizeMedium:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M10 7.5H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2ZM10 9a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6A.5.5 0 0 1 2 9h8Z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',todoList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',codeBlock:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>',horizontalLine:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',html:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'
8220};var Au=R(7801),nC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Au.A,nC),Au.A.locals;class Ti extends G{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${V()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}class oC extends G{constructor(t,e){super(t);const n=t.t,i=new Ti;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:[ee(document,"p",{},n("Below, you can find a list of keyboard shortcuts that can be used in the editor.")),...this._createCategories(Array.from(e.values())
8220),i]})}focus(){this.element.focus()}_createCategories(t){return t.map(e=>{const n=[ee(document,"h3",{},e.label),...Array.from(e.groups.values()).map(i=>this._createGroup(i)).flat()];return e.description&&n.splice(1,0,ee(document,"p",{},e.description)),ee(document,"section",{},n)})}_createGroup(t){const e=t.keystrokes.sort((i,r)=>i.label.localeCompare(r.label)).map(i=>this._createGroupRow(i)).flat(),n=[ee(document,"dl",{},e)];return t.label&&n.unshift(ee(document,"h4",{},t.label)),n}_createGroupRow(t){const e=this.locale.t,n=ee(document,"dt"),i=ee(document,"dd"),r=function(a){return typeof a=="string"?[[a]]:typeof a[0]=="string"?[a]:a}(t.keystroke),s=[];for(const a of r)s.push(a.map(iC).join(""));return n.innerHTML=t.label,i.innerHTML=s.join(", ")+(t.mayRequireFn&&y.isMac?` ${e("(may require <kbd>Fn</kbd>)")}`:""),[n,i]}}function iC(o){return si(o).split("+").map(t=>`<kbd>${t}</kbd>`).join("+")}const _u='<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 Cu=R(8527),rC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Cu.A,rC),Cu.A.locals;class sC extends L{constructor(){super(...arguments),this.contentView=null}static get requires(){return[Oe]}static get pluginName(){return"AccessibilityHelp"}init(){const t=this.editor,e=t.locale.t;t.ui.componentFactory.add("accessibilityHelp",()=>{const n=this._createButton(ot);return n.set({tooltip:!0,withText:!1,label:e("Accessibility help")}),n}),t.ui.componentFactory.add("menuBar:accessibilityHelp",()=>{const n=this._createButton(Xt);return n.label=e("Accessibility"),n}),t.keystrokes.set("Alt+0",(n,i)=>{this._showDialog(),i()}),this._setupRootLabels()}_createButton(t){const e=new t(this.editor.locale);return e.set({keystroke:"Alt+0",icon:_u}),e.on("execute",()=>this._showDialog()),e}_setupRootLabels(){const t=this.editor,e=t.editing.view,n=t.t;function i(r,s){const a=`${s.getAttribute("aria-label")}. ${n("Press %0 for help.",[si("Alt+0")])}`;r.setAttribute("aria-label",a,s)}t.ui.on("ready",()=>{e.change(r=>{for(const s of e.document.roots)i(r,s)}),t.on("addRoot",(r,s)=>{const a=t.editing.view.document.getRoot(s.rootName);e.change(c=>i(c,a))},{priority:"low"})})}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.locale.t;this.contentView||(this.contentView=new oC(t.locale,t.accessibility.keystrokeInfos)),e.show({id:"accessibilityHelp",className:"ck-accessibility-help-dialog",title:n("Accessibility help"),icon:_u,hasCloseButton:!0,content:this.contentView})}}class aC extends oe{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new he({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=ee(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&t.childElementCount==0&&t.remove()}}var vu=R(7621),cC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(vu.A,cC),vu.A.locals;const yu=class extends G{constructor(){super();const o=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",o.if("isVisible","ck-hidden",t=>!t),"ck-reset_all-excluded",o.if("isColorInherited","ck-icon_inherit-color")],viewBox:o.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const o=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=o.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:e,value:n}of Array.from(o.attributes))yu.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;o.childNodes.length>0;)this.element.appendChild(o.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(o=>{o.style.fill=this.fillColor})}};let Ne=yu;Ne.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
8220-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class lC extends G{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var xu=R(9715),dC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(xu.A,dC),xu.A.locals;class ot extends G{constructor(t,e=new lC){super(t),this._focusDelayed=null;const n=this.bindTemplate,i=V();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${i}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new Ne,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const r={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",s=>!s),n.if("isVisible","ck-hidden",s=>!s),n.to("isOn",s=>s?"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",s=>s||"button"),tabindex:n.to("tabindex"),"aria-checked":n.to("ariaChecked"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,s=>!s),"aria-pressed":n.to("isOn",s=>!!this.isToggleable&&String(!!s)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(s=>{this.isEnabled?this.fire("execute"):s.preventDefault()})}};y.isSafari&&(this._focusDelayed||(this._focusDelayed=Ur(()=>this.focus(),0)),r.on.mousedown=n.to(()=>{this._focusDelayed()}),r.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(r)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new G;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>si(e))}]}),t}_getTooltipString(t,e,n){return t?typeof t=="string"?t:(n&&(n=si(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var Eu=R(4391),uC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Eu.A,uC),Eu.A.locals;class Mi extends ot{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new G;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}class Du extends ot{constructor(t){super(t),this.buttonView=this,this._fileInputView=new hC(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class hC extends G{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const Si='<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 Iu=R(25),gC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Iu.A,gC),Iu.A.locals;class mC extends G{constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.i
8220d}focus(){this.buttonView.focus()}_createButtonView(){const t=new ot(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Si}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",n=>!n),t.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),t}}var Tu=R(7317),pC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Tu.A,pC),Tu.A.locals,R(6931),R(9047);var Mu=R(4962),fC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Mu.A,fC),Mu.A.locals;class Bi extends G{constructor(t,e){super(t);const n=`ck-labeled-field-view-${V()}`,i=`ck-labeled-field-view-status-${V()}`;this.fieldView=e(this,n,i),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(i),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(s,a)=>s||a);const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",s=>!s),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new Ti(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new G(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",i=>!i)],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class kC extends G{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("tabIndex",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.set("ariaLabel",void 0),this.focusTracker=new Bt,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),tabindex:e.to("tabIndex"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById"),"aria-label":e.to("ariaLabel")},on:{input:e.to((...n)=>{this.fire("input",...n),this._updateIsEmpty()}),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||t===0?t:""}}var Su=R(253),bC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Su.A,bC),Su.A.locals;class wC extends kC{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class AC extends wC{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Bu=R(1671),_C={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Bu.A,_C),Bu.A.locals;class CC extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",n=>`ck-dropdown__panel_${n}`),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to(n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()})}})}focus(){if(this.children.length){const t=this.children.first;typeof t.focus=="function"?t.focus():U("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;typeof t.focusLast=="function"?t.focusLast():t.focus()}}}var Nu=R(8149),vC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Nu.A,vC),Nu.A.locals;const Ms=class extends G{constructor(o,t,e){super(o);const n=this.bindTemplate;this.buttonView=t,this.panelView=e,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new zt,this.focusTracker=new Bt,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",i=>!i)],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[t,e]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.on("change:isOpen",(t,e,n)=>{if(n)if(this.panelPosition==="auto"){const i=Ms._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=i?i.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const o=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",(t,e)=>
8220{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())}),this.keystrokes.set("arrowright",(t,e)=>{this.isOpen&&e()}),this.keystrokes.set("arrowleft",o),this.keystrokes.set("esc",o)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:o,north:t,southEast:e,southWest:n,northEast:i,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=Ms.defaultPanelPositions;return this.locale.uiLanguageDirection!=="rtl"?[e,n,s,a,o,i,r,c,l,t]:[n,e,a,s,o,r,i,l,c,t]}};let Ss=Ms;Ss.defaultPanelPositions={south:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)/2,name:"s"}),southEast:o=>({top:o.bottom,left:o.left,name:"se"}),southWest:(o,t)=>({top:o.bottom,left:o.left-t.width+o.width,name:"sw"}),southMiddleEast:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)/4,name:"sme"}),southMiddleWest:(o,t)=>({top:o.bottom,left:o.left-3*(t.width-o.width)/4,name:"smw"}),north:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)/2,name:"n"}),northEast:(o,t)=>({top:o.top-t.height,left:o.left,name:"ne"}),northWest:(o,t)=>({top:o.top-t.height,left:o.left-t.width+o.width,name:"nw"}),northMiddleEast:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)/4,name:"nme"}),northMiddleWest:(o,t)=>({top:o.top-t.height,left:o.left-3*(t.width-o.width)/4,name:"nmw"})},Ss._getOptimalPosition=ri;class yC extends ot{constructor(t){super(t),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(){const t=new Ne;return t.content=Si,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class re extends rt(){constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];typeof n=="string"&&(n=[n]);for(const i of n)t.keystrokeHandler.set(i,(r,s)=>{this[e](),s()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Bs)||null}get last(){return this.focusables.filter(Bs).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let t=null;return this.focusTracker.focusedElement===null?null:(this.focusables.find((e,n)=>{const i=e.element===this.focusTracker.focusedElement;return i&&(t=n),i}),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||t===this.first?this.fire("forwardCycle"):this._focus(t,1)}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||t===this.last?this.fire("backwardCycle"):this._focus(t,-1)}_focus(t,e){t&&this.focusTracker.focusedElement!==t.element&&t.focus(e)}_getDomFocusableItem(t){const e=this.focusables.length;if(!e)return null;const n=this.current;if(n===null)return this[t===1?"first":"last"];let i=this.focusables.get(n),r=(n+e+t)%e;do{const s=this.focusables.get(r);if(Bs(s)){i=s;break}r=(r+e+t)%e}while(r!==n);return i}}function Bs(o){return Do(o)&&tn(o.element)}function Do(o){return!(!("focus"in o)||typeof o.focus!="function")}class Pu extends G{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class xC extends G{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var EC=Object.defineProperty,Ou=Object.getOwnPropertySymbols,DC=Object.prototype.hasOwnProperty,IC=Object.prototype.propertyIsEnumerable,Lu=(o,t,e)=>t in o?EC(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,zu=(o,t)=>{for(var e in t||(t={}))DC.call(t,e)&&Lu(o,e,t[e]);if(Ou)for(var e of Ou(t))IC.call(t,e)&&Lu(o,e,t[e]);return o};function Ru(o){if(Array.isArray(o))return{items:o,removeItems:[]};const t={items:[],removeItems:[]};return o?zu(zu({},t),o):t}var ju=R(9677),TC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(ju.A,TC),ju.A.locals;const MC={alignLeft:$.alignLeft,bold:$.bold,importExport:$.importExport,paragraph:$.paragraph,plus:$.plus,text:$.text,threeVerticalDots:$.threeVerticalDots,pilcrow:$.pilcrow,dragIndicator:$.dragIndicator};class Ns extends G{constructor(t,e){super(t);const n=this.bindTemplate,i=this.t;this.options=e||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Bt,this.keystrokes=new zt,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new SC(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r=t.uiLanguageDirection==="rtl";this._focusCycler=new re({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});const s=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var a;this.options.shouldGroupWhenFull&&this.options.isFloating&&s.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(a=this,a.bindTemplate.to(c=>{c.target===a.element&&c.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new NC(this):new BC(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const i=Ru(t),r=n||i.removeItems;return this._cleanItemsConfiguration(i.items,e,r).map(s=>pt(s)?this._createNestedToolbarDropdown(s,e,r):s==="|"?new Pu:s==="-"?new xC:e.create(s)).filter(s=>!!s)}_cleanItemsConfiguration(t,e,n){const i=t.filter((r,s,a)=>r==="|"||n.indexOf(r)===-1&&(r==="-"?!this.options.shouldGroupWhenFull||(U("toolbarview-line-break-ignored-when-grouping-items",a),!1):!(!pt(r)&&!e.has(r))||(U("toolbarview-item-unavailable",{item:r}),!1)));return this._cleanSeparatorsAndLineBreaks(i)}_cleanSeparatorsAndLineBreaks(t){const e=s=>s!=="-"&&s!=="|",n=t.length,i=t.findIndex(e);if(i===-1)return[];const r=n-t.slice().reverse().findIndex(e);return t.slice(i,r).filter((s,a,c)=>e(s)?!0:!(a>0&&c[a-1]===s))}_createNestedToolbarDropdown(t,e,n){let{label:i,icon:r,items:s,tooltip:a=!0,withText:c=!1}=t;if(s=this._cleanItemsConfiguration(s,e,n),!s.length)return null;const l=Pe(this.locale);return i||U("toolbarview-nested-toolbar-dropdown-missing-label",t),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:i,tooltip:a,withText:!!c}),r!==!1?l.buttonView.icon=MC[r]||r||$.threeVerticalDots:l.buttonView.withText=!0,Ls(l,()=>l.toolbarView._buildItemsFromConfig(s,e,n)),l}}class SC extends G{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class BC{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using(n=>n),t.focusables.bindTo(t.items).using(n=>Do(n)?n:null),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class NC{constructor(t){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("change",this._updateFocusCyclableItems.bind(this)),t.children.on("change",this._updateFocusCyclableItems.bind(this)),t.items.on("change",(e,n)=>{const i=n.index,r=Array.from(n.added);for(const s of n.removed)i>=this.ungroupedItems.length?this.groupedItems.remove(s):this.ungroupedItems.remove(s);for(let s=i;s<i+r.length;s++){const a=r[s-i];s>this.ungroupedItems.length?this.groupedItems.add(a,s-this.ungroupedItems.length):this.ungroupedItems.add(a,s)}this._updateGrouping()}),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}
8220destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!tn(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new J(t.lastChild),i=new J(t);if(!this.cachedPadding){const r=v.window.getComputedStyle(t),s=e==="ltr"?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(r[s])}return e==="ltr"?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}_enableGroupingOnResize(){let t;this.resizeObserver=new ao(this.viewElement,e=>{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Pu),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=Pe(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition=t.uiLanguageDirection==="ltr"?"sw":"se",Ls(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:t.uiLanguageDirection==="rtl"?"se":"sw",icon:$.threeVerticalDots}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(t=>{Do(t)&&this.viewFocusables.add(t)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class jn extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",n=>!n)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Ps extends G{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Ni extends G{constructor(t,e=new Ti){super(t);const n=this.bindTemplate,i=new Os(t);this.set({label:"",isVisible:!0}),this.labelView=e,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,i]),i.set({role:"group",ariaLabelledBy:e.id}),i.focusTracker.destroy(),i.keystrokes.destroy(),this.items=i.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",r=>!r)]},children:this.children})}focus(){if(this.items){const t=this.items.find(e=>!(e instanceof Ps));t&&t.focus()}}}var Fu=R(5199),PC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Fu.A,PC),Fu.A.locals;class Os extends G{constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new oe,this.items=this.createCollection(),this.focusTracker=new Bt,this.keystrokes=new zt,this._focusCycler=new re({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const t of this.items)t instanceof Ni?this._registerFocusableItemsGroup(t):t instanceof jn&&this._registerFocusableListItem(t);this.items.on("change",(t,e)=>{for(const n of e.removed)n instanceof Ni?this._deregisterFocusableItemsGroup(n):n instanceof jn&&this._deregisterFocusableListItem(n);for(const n of Array.from(e.added).reverse())n instanceof Ni?this._registerFocusableItemsGroup(n,e.index):this._registerFocusableListItem(n,e.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(t,e){this.focusTracker.add(t.element),this.focusables.add(t,e)}_deregisterFocusableListItem(t){this.focusTracker.remove(t.element),this.focusables.remove(t)}_getOnGroupItemsChangeCallback(t){return(e,n)=>{for(const i of n.removed)this._deregisterFocusableListItem(i);for(const i of Array.from(n.added).reverse())this._registerFocusableListItem(i,this.items.getIndex(t)+n.index)}}
8220_registerFocusableItemsGroup(t,e){Array.from(t.items).forEach((i,r)=>{const s=e!==void 0?e+r:void 0;this._registerFocusableListItem(i,s)});const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var Vu=R(1792),OC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Vu.A,OC),Vu.A.locals;class Pi extends G{constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new zt,this.focusTracker=new Bt,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",i=>!i),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())}),this.keystrokes.set("arrowleft",(t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new ot;return t||e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const t=new ot,e=t.bindTemplate;return t.icon=Si,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var Hu=R(1666),LC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Hu.A,LC),Hu.A.locals;var Uu=R(3629),zC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Uu.A,zC),Uu.A.locals;function Pe(o,t=yC){const e=typeof t=="function"?new t(o):t,n=new CC(o),i=new Ss(o,e,n);return e.bind("isEnabled").to(i),e instanceof Pi?e.arrowView.bind("isOn").to(i,"isOpen"):e.bind("isOn").to(i,"isOpen"),function(r){(function(s){s.on("render",()=>{li({emitter:s,activator:()=>s.isOpen,callback:()=>{s.isOpen=!1},contextElements:()=>[s.element,...s.focusTracker._elements]})})})(r),function(s){s.on("execute",a=>{a.source instanceof Mi||(s.isOpen=!1)})}(r),function(s){s.focusTracker.on("change:isFocused",(a,c,l)=>{s.isOpen&&!l&&(s.isOpen=!1)})}(r),function(s){s.keystrokes.set("arrowdown",(a,c)=>{s.isOpen&&(s.panelView.focus(),c())}),s.keystrokes.set("arrowup",(a,c)=>{s.isOpen&&(s.panelView.focusLast(),c())})}(r),function(s){s.on("change:isOpen",(a,c,l)=>{if(l)return;const d=s.panelView.element;d&&d.contains(v.document.activeElement)&&s.buttonView.focus()})}(r),function(s){s.on("change:isOpen",(a,c,l)=>{l&&s.panelView.focus()},{priority:"low"})}(r)}(i),i}function Ls(o,t,e={}){o.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),o.isOpen?qu(o,t,e):o.once("change:isOpen",()=>qu(o,t,e),{priority:"highest"}),e.enableActiveItemFocusOnDropdownOpen&&Ku(o,()=>o.toolbarView.items.find(n=>n.isOn))}function qu(o,t,e){const n=o.locale,i=n.t,r=o.toolbarView=new Ns(n),s=typeof t=="function"?t():t;r.ariaLabel=e.ariaLabel||i("Dropdown toolbar"),e.maxWidth&&(r.maxWidth=e.maxWidth),e.class&&(r.class=e.class),e.isCompact&&(r.isCompact=e.isCompact),e.isVertical&&(r.isVertical=!0),s instanceof oe?r.items.bindTo(s).using(a=>a):r.items.addMany(s),o.panelView.children.add(r),r.items.delegate("execute").to(o)}function Gu(o,t,e={}){o.isOpen?Wu(o,t,e):o.once("change:isOpen",()=>Wu(o,t,e),{priority:"highest"}),Ku(o,()=>o.listView.items.find(n=>n instanceof jn&&n.children.first.isOn))}function Wu(o,t,e){const n=o.locale,i=o.listView=new Os(n),r=typeof t=="function"?t():t;i.ariaLabel=e.ariaLabel,i.role=e.role,$u(o,i.items,r,n),o.panelView.children.add(i),i.items.delegate("execute").to(o)}function Ku(o,t){o.on("change:isOpen",()=>{if(!o.isOpen)return;const e=t();e&&(typeof e.focus=="function"?e.focus():U("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))},{priority:q.low-10})}function $u(o,t,e,n){t.bindTo(e).using(i=>{if(i.type==="separator")return new Ps(n);if(i.type==="group"){const r=new Ni(n);return r.set({label:i.label}),$u(o,r.items,i.items,n),r.items.delegate("execute").to(o),r}if(i.type==="button"||i.type==="switchbutton"){const r=new jn(n);let s;return i.type==="button"?(s=new ot(n),s.bind("ariaChecked").to(s,"isOn")):s=new Mi(n),s.bind(...Object.keys(i.model)).to(i.model),s.delegate("execute").to(r),r.children.add(s),r}return null})}const Oi=(o,t,e)=>{const n=new AC(o.locale);return n.set({id:t,ariaDescribedById:e}),n.bind("isReadOnly").to(o,"isEnabled",i=>!i),n.bind("hasError").to(o,"errorText",i=>!!i),n.on("input",()=>{o.errorText=null}),o.bind("isEmpty","isFocused","placeholder").to(n),n};var Yu=R(1905),RC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Yu.A,RC),Yu.A.locals;var Qu=R(6309),jC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Qu.A,jC),Qu.A.locals;class FC{constructor(t){this._components=new Map,this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(zs(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new _("componentfactory-item-missing",this,{name:t});return this._components.get(zs(t)).callback(this.editor.locale)}has(t){return this._components.has(zs(t))}}function zs(o){return String(o).toLowerCase()}var Zu=R(7913),VC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Zu.A,VC),Zu.A.locals;class HC extends G{constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("label",e.label||""),this.set("class",e.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children}),e.icon&&(this.iconView=new Ne,this.iconView.content=e.icon,this.children.add(this.iconView));const i=new G(t);i.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:n.to("label")}]}),this.children.add(i)}}var Ju=R(9822),UC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ju.A,UC),Ju.A.locals;class qC extends G{constructor(t){super(t),this.children=this.createCollection(),this.keystrokes=new zt,this._focusTracker=new Bt,this._focusables=new oe,this.focusCycler=new re({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(t){for(const e of t){const n=new ot(this.locale);let i;for(i in n.on("execute",()=>e.onExecute()),e.onCreate&&e.onCreate(n),e)i!="onExecute"&&i!="onCreate"&&n.set(i,e[i]);this.children.add(n)}this._updateFocusCyclableItems()}focus(t){t===-1?this.focusCycler.focusLast():this.focusCycler.focusFirst()}
8220_updateFocusCyclableItems(){Array.from(this.children).forEach(t=>{this._focusables.add(t),this._focusTracker.add(t.element)})}}class GC extends G{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var Xu=R(9819),WC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Xu.A,WC),Xu.A.locals;const Li="screen-center",th="editor-center",KC="editor-top-side",$C="editor-top-center",YC="editor-bottom-center",QC="editor-above-center",ZC="editor-below-center",eh=Dn("px"),nh=class extends function(o){return class extends o{constructor(...t){super(...t),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(v.document,"mouseup",this._onDragEndBound),this.listenTo(v.document,"touchend",this._onDragEndBound),this.listenTo(v.document,"mousemove",this._onDragBound),this.listenTo(v.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(v.document,"mouseup",this._onDragEndBound),this.stopListening(v.document,"touchend",this._onDragEndBound),this.stopListening(v.document,"mousemove",this._onDragBound),this.stopListening(v.document,"touchmove",this._onDragBound)}_onDragStart(t,e){if(!this._isHandleElementPressed(e))return;this._attachDragListeners();let n=0,i=0;e instanceof MouseEvent?(n=e.clientX,i=e.clientY):(n=e.touches[0].clientX,i=e.touches[0].clientY),this._lastDraggingCoordinates={x:n,y:i},this.isDragging=!0}_onDrag(t,e){if(!this.isDragging)return void this._detachDragListeners();let n=0,i=0;e instanceof MouseEvent?(n=e.clientX,i=e.clientY):(n=e.touches[0].clientX,i=e.touches[0].clientY),e.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(t){return!!this.dragHandleElement&&(this.dragHandleElement===t.target||t.target instanceof HTMLElement&&this.dragHandleElement.contains(t.target))}}}(G){constructor(o,{getCurrentDomRoot:t,getViewportOffset:e}){super(o),this.wasMoved=!1;const n=this.bindTemplate,i=o.t;this.set("className",""),this.set("ariaLabel",i("Editor dialog")),this.set("isModal",!1),this.set("position",Li),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=t,this._getViewportOffset=e,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new zt,this.focusTracker=new Bt,this._focusables=new oe,this._focusCycler=new re({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",n.if("isModal","ck-dialog-overlay__transparent",r=>!r),n.if("_isVisible","ck-hidden",r=>!r)],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",n.to("className")],role:"dialog","aria-label":n.to("ariaLabel"),style:{top:n.to("_top",r=>eh(r)),left:n.to("_left",r=>eh(r)),visibility:n.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",(o,t)=>{this.fire("close",{source:"escKeyPress"}),t()}),this.on("drag",(o,{deltaX:t,deltaY:e})=>{this.wasMoved=!0,this.moveBy(t,e)}),this.listenTo(v.window,"resize",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.listenTo(v.document,"scroll",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.on("change:_isVisible",(o,t,e)=>{e&&(this._isTransparent=!0,setTimeout(()=>{this.updatePosition(),this._isTransparent=!1,this.focus()},10))}),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView?this.headerView.element:null}setupParts({icon:o,title:t,hasCloseButton:e=!0,content:n,actionButtons:i}){t&&(this.headerView=new HC(this.locale,{icon:o}),e&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=t,this.ariaLabel=t,this.parts.add(this.headerView,0)),n&&(n instanceof G&&(n=[n]),this.contentView=new GC(this.locale),this.contentView.children.addMany(n),this.parts.add(this.contentView)),i&&(this.actionsView=new qC(this.locale),this.actionsView.setButtons(i),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(o,t){const e=this._getViewportRect(),n=this._getDialogRect
8220();o+n.width>e.right&&(o=e.right-n.width),o<e.left&&(o=e.left),t<e.top&&(t=e.top),this._moveTo(o,t)}_moveTo(o,t){this._left=o,this._top=t}moveBy(o,t){this.moveTo(this._left+o,this._top+t)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const o=this._getViewportRect();let t,e=this.position;this._getCurrentDomRoot()?t=this._getVisibleDomRootRect(o):e=Li;const n=nh.defaultOffset,i=this._getDialogRect();switch(e){case KC:if(t){const r=this.locale.contentLanguageDirection==="ltr"?t.right-i.width-n:t.left+n;this.moveTo(r,t.top+n)}else this._moveOffScreen();break;case th:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),Math.round(t.top+t.height/2-i.height/2)):this._moveOffScreen();break;case Li:this.moveTo(Math.round((o.width-i.width)/2),Math.round((o.height-i.height)/2));break;case $C:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.top+n):this._moveOffScreen();break;case YC:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.bottom-i.height-n):this._moveOffScreen();break;case QC:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.top-i.height-n):this._moveOffScreen();break;case ZC:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.bottom+n):this._moveOffScreen()}}_getVisibleDomRootRect(o){let t=new J(this._getCurrentDomRoot()).getVisible();return t?(t=o.getIntersection(t),t||null):null}_getDialogRect(){return new J(this.element.firstElementChild)}_getViewportRect(){return function(o){o=Object.assign({top:0,bottom:0,left:0,right:0},o);const t=new J(v.window);return t.top+=o.top,t.height-=o.top,t.bottom-=o.bottom,t.height-=o.bottom,t.left+=o.left,t.right-=o.right,t.width-=o.left+o.right,t}(this._getViewportOffset())}_updateFocusCyclableItems(){const o=[];if(this.contentView)for(const t of this.contentView.children)Do(t)&&o.push(t);this.actionsView&&o.push(this.actionsView),this.closeButtonView&&o.push(this.closeButtonView),o.forEach(t=>{var e;this._focusables.add(t),this.focusTracker.add(t.element),Do(e=t)&&"focu
8220sCycler"in e&&e.focusCycler instanceof re&&(this.listenTo(t.focusCycler,"forwardCycle",n=>{this._focusCycler.focusNext(),this._focusCycler.next!==this._focusCycler.focusables.get(this._focusCycler.current)&&n.stop()}),this.listenTo(t.focusCycler,"backwardCycle",n=>{this._focusCycler.focusPrevious(),this._focusCycler.previous!==this._focusCycler.focusables.get(this._focusCycler.current)&&n.stop()}))})}_createCloseButton(){const o=new ot(this.locale),t=this.locale.t;return o.set({label:t("Close"),tooltip:!0,icon:$.cancel}),o.on("execute",()=>this.fire("close",{source:"closeButton"})),o}};let zi=nh;zi.defaultOffset=15;class Oe extends L{constructor(t){super(t);const e=t.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set("id",null),t.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:e("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}static get pluginName(){return"Dialog"}_initShowHideListeners(){this.on("show",(t,e)=>{this._show(e)}),this.on("show",(t,e)=>{e.onShow&&e.onShow(this)},{priority:"low"}),this.on("hide",()=>{Oe._visibleDialogPlugin&&Oe._visibleDialogPlugin._hide()}),this.on("hide",()=>{this._onHide&&(this._onHide(this),this._onHide=void 0)},{priority:"low"})}_initFocusToggler(){const t=this.editor;t.keystrokes.set("Ctrl+F6",(e,n)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?t.editing.view.focus():this.view.focus(),n())})}_initMultiRootIntegration(){const t=this.editor.model;t.document.on("change:data",()=>{if(!this.view)return;const e=t.document.differ.getChangedRoots();for(const n of e)n.state&&this.view.updatePosition()})}show(t){this.hide(),this.fire(`show:${t.id}`,t)}_show({id:t,icon:e,title:n,hasCloseButton:i=!0,content:r,actionButtons:s,className:a,isModal:c,position:l,onHide:d}){const u=this.editor;this.view=new zi(u.locale,{getCurrentDomRoot:()=>u.editing.view.getDomRoot(u.model.document.selection.anchor.root.rootName),getViewportOffset:()=>u.ui.viewportOffset});const h=this.view;h.on("close",()=>{this.hide()}),u.ui.view.body.add(h),u.ui.focusTracker.add(h.element),u.keystrokes.listenTo(h.element),l||(l=c?Li:th),h.set({position:l,_isVisible:!0,className:a,isModal:c}),h.setupParts({icon:e,title:n,hasCloseButton:i,content:r,actionButtons:s}),this.id=t,d&&(this._onHide=d),this.isOpen=!0,Oe._visibleDialogPlugin=this}hide(){Oe._visibleDialogPlugin&&Oe._visibleDialogPlugin.fire(`hide:${Oe._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const t=this.editor,e=this.view;e.contentView&&e.contentView.reset(),t.ui.view.body.remove(e),t.ui.focusTracker.remove(e.element),t.keystrokes.stopListening(e.element),e.destroy(),t.editing.view.focus(),this.id=null,this.isOpen=!1,Oe._visibleDialogPlugin=null}}var oh=R(3710),JC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(oh.A,JC),oh.A.locals;var XC=Object.defineProperty,ih=Object.getOwnPropertySymbols,tv=Object.prototype.hasOwnProperty,ev=Object.prototype.propertyIsEnumerable,rh=(o,t,e)=>t in o?XC(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,it=(o,t)=>{for(var e in t||(t={}))tv.call(t,e)&&rh(o,e,t[e]);if(ih)for(var e of ih(t))ev.call(t,e)&&rh(o,e,t[e]);return o};const sh=Dn("px"),ah=v.document.body,nv={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},Rs=class extends G{constructor(o){super(o);const 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.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",sh),left:t.to("left",sh)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(o){this.show();const t=Rs.defaultPositions,e=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:ah,fitInViewport:!0},o),n=Rs._getOptimalPosition(e)||nv,i=parseInt(n.left),r=parseInt(n.top),s=n.name,a=n.config||{},{withArrow:c=!0}=a;this.top=r,this.left=i,this.position=s,this.withArrow=c}pin(o){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(o):this._stopPinning()},this._startPinning(o),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(o){this.attachTo(o);const t=js(o.target),e=o.limiter?js(o.limiter):ah;this.listenTo(v.document,"scroll",(n,i)=>{const r=i.target,s=t&&r.contains(t),a=e&&r.contains(e);!s&&!a&&t&&e||this.attachTo(o)},{useCapture:!0}),this.listenTo(v.window,"resize",()=>{this.attachTo(o)})}_stopPinning(){this.stopListening(v.document,"scroll"),this.stopListening(v.window,"resize")}};let Ft=Rs;function js(o){return Xe(o)?o:oi(o)?o.commonAncestorContainer:typeof o=="function"?js(o()):null}function ch(o={}){const{sideOffset:t=Ft.arrowSideOffset,heightOffset:e=Ft.arrowHeightOffset,stickyVerticalOffset:n=Ft.stickyVerticalOffset,config:i}=o;return{northWestArrowSouthWest:(a,c)=>
8220it({top:r(a,c),left:a.left-t,name:"arrow_sw"},i&&{config:i}),northWestArrowSouthMiddleWest:(a,c)=>it({top:r(a,c),left:a.left-.25*c.width-t,name:"arrow_smw"},i&&{config:i}),northWestArrowSouth:(a,c)=>it({top:r(a,c),left:a.left-c.width/2,name:"arrow_s"},i&&{config:i}),northWestArrowSouthMiddleEast:(a,c)=>it({top:r(a,c),left:a.left-.75*c.width+t,name:"arrow_sme"},i&&{config:i}),northWestArrowSouthEast:(a,c)=>it({top:r(a,c),left:a.left-c.width+t,name:"arrow_se"},i&&{config:i}),northArrowSouthWest:(a,c)=>it({top:r(a,c),left:a.left+a.width/2-t,name:"arrow_sw"},i&&{config:i}),northArrowSouthMiddleWest:(a,c)=>it({top:r(a,c),left:a.left+a.width/2-.25*c.width-t,name:"arrow_smw"},i&&{config:i}),northArrowSouth:(a,c)=>it({top:r(a,c),left:a.left+a.width/2-c.width/2,name:"arrow_s"},i&&{config:i}),northArrowSouthMiddleEast:(a,c)=>it({top:r(a,c),left:a.left+a.width/2-.75*c.width+t,name:"arrow_sme"},i&&{config:i}),northArrowSouthEast:(a,c)=>it({top:r(a,c),left:a.left+a.width/2-c.width+t,name:"arrow_se"},i&&{config:i}),northEastArrowSouthWest:(a,c)=>it({top:r(a,c),left:a.right-t,name:"arrow_sw"},i&&{config:i}),northEastArrowSouthMiddleWest:(a,c)=>it({top:r(a,c),left:a.right-.25*c.width-t,name:"arrow_smw"},i&&{config:i}),northEastArrowSouth:(a,c)=>it({top:r(a,c),left:a.right-c.width/2,name:"arrow_s"},i&&{config:i}),northEastArrowSouthMiddleEast:(a,c)=>it({top:r(a,c),left:a.right-.75*c.width+t,name:"arrow_sme"},i&&{config:i}),northEastArrowSouthEast:(a,c)=>it({top:r(a,c),left:a.right-c.width+t,name:"arrow_se"},i&&{config:i}),southWestArrowNorthWest:a=>it({top:s(a),left:a.left-t,name:"arrow_nw"},i&&{config:i}),southWestArrowNorthMiddleWest:(a,c)=>it({top:s(a),left:a.left-.25*c.width-t,name:"arrow_nmw"},i&&{config:i}),southWestArrowNorth:(a,c)=>it({top:s(a),left:a.left-c.width/2,name:"arrow_n"},i&&{config:i}),southWestArrowNorthMiddleEast:(a,c)=>it({top:s(a),left:a.left-.75*c.width+t,name:"arrow_nme"},i&&{config:i}),southWestArrowNorthEast:(a,c)=>it({top:s(a),left:a.left-c.width+t,name:"arrow_ne"},i&&{config:i}),southArrowNorthWest:a=>it({top:s(a),left:a.left+a.width/2-t,name:"arrow_nw"},i&&{config:i}),southArrowNorthMiddleWest:(a,c)=>it({top:s(a),left:a.left+a.width/2-.25*c.width-t,name:"arrow_nmw"},i&&{config:i}),southArrowNorth:(a,c)=>it({top:s(a),left:a.left+a.width/2-c.width/2,name:"arrow_n"},i&&{config:i}),southArrowNorthMiddleEast:(a,c)=>it({top:s(a),left:a.left+a.width/2-.75*c.width+t,name:"arrow_nme"},i&&{config:i}),southArrowNorthEast:(a,c)=>it({top:s(a),left:a.left+a.width/2-c.width+t,name:"arrow_ne"},i&&{config:i}),southEastArrowNorthWest:a=>it({top:s(a),left:a.right-t,name:"arrow_nw"},i&&{config:i}),southEastArrowNorthMiddleWest:(a,c)=>it({top:s(a),left:a.right-.25*c.width-t,name:"arrow_nmw"},i&&{config:i}),southEastArrowNorth:(a,c)=>it({top:s(a),left:a.right-c.width/2,name:"arrow_n"},i&&{config:i}),southEastArrowNorthMiddleEast:(a,c)=>it({top:s(a),left:a.right-.75*c.width+t,name:"arrow_nme"},i&&{config:i}),southEastArrowNorthEast:(a,c)=>it({top:s(a),left:a.right-c.width+t,name:"arrow_ne"},i&&{config:i}),westArrowEast:(a,c)=>it({top:a.top+a.height/2-c.height/2,left:a.left-c.width-e,name:"arrow_e"},i&&{config:i}),eastArrowWest:(a,c)=>it({top:a.top+a.height/2-c.height/2,left:a.right+e,name:"arrow_w"},i&&{config:i}),viewportStickyNorth:(a,c,l,d)=>{const u=d||l;return a.getIntersection(u)?u.height-a.height>n?null:{top:u.top+n,left:a.left+a.width/2-c.width/2,name:"arrowless",config:it({withArrow:!1},i)}:null}};function r(a,c){return a.top-c.height-e}function s(a){return a.bottom+e}}Ft.arrowSideOffset=25,Ft.arrowHeightOffset=10,Ft.stickyVerticalOffset=20,Ft._getOptimalPosition=ri,Ft.defaultPositions=ch();var lh=R(9205),ov={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(lh.A,ov),lh.A.locals;const dh="ck-tooltip",Vt=class extends ne(){constructor(o){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,this._mutationObserver=null,Vt._editors.add(o),Vt._instance)return Vt._instance;Vt._instance=this,this.tooltipTextView=new G(o.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 Ft(o.locale),this.balloonPanelView.class=dh,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=function(t){const e=new MutationObserver(()=>{t()});return{attach(n){e.observe(n,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){e.disconnect()}}}(()=>{this._updateTooltipPosition()}),this._pinTooltipDebounced=On(this._pinTooltip,600),this._unpinTooltipDebounced=On(this._unpinTooltip,400),this.listenTo(v.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(v.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(v.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(v.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(v.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(v.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(o){const t=o.ui.view&&o.ui.view.body;Vt._editors.delete(o),this.stopListening(o.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),Vt._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Vt._instance=null)}static getPositioningFunctions(o){const t=Vt.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[o]}_onKeyDown(o,t){t.key==="Escape"&&this._currentElementWithTooltip&&(this._unpinTooltip(),t.stopPropagation())}_onEnterOrFocus(o,{target:t}){const e=Fs(t);e?e!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(e,uh(e))):o.name==="focus"&&this._unpinTooltip()}_onLeaveOrBlur(o,{target:t,relatedTarget:e}){if(o.name==="mouseleave"){if(!Xe(t))return;const n=this.balloonPanelView.element,i=n&&(n===e||n.contains(e)),r=!i&&t===n;if(i)return void this._unpinTooltipDebounced.cancel();if(!r&&this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const s=Fs(t),a=Fs(e);(r||s&&s!==a)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(o,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(o,{text:t,position:e,cssClass:n}){this._unpinTooltip();const i=St(Vt._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:o,positions:Vt.getPositioningFunctions(e)}),this._resizeObserver=new ao(o,()=>{tn(o)||this._unpinTooltip()}),this._mutationObserver.attach(o),this.balloonPanelView.class=[dh,n].filter(r=>r).join(" ");for(const r of Vt._editors)this.listenTo(r.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=o,this._currentTooltipPosition=e}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const o of Vt._editors)this.stopListening(o.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._resizeObserver&&this._resizeObserver.destroy(),this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;const o=uh(this._currentElementWithTooltip);tn(this._currentElementWithTooltip)&&o.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Vt.getPositioningFunctions(o.position)}):this._unpinTooltip()}};let Ri=Vt;function Fs(o){return Xe(o)?o.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function uh(o){return{text:o.dataset.ckeTooltipText,position:o.dataset.ckeTooltipPosition||"s",cssClass:o.dataset.ckeTooltipClass||""}}Ri.defaultBalloonPositions=ch({heightOffset:5,sideOffset:13}),Ri._editors=new Set,Ri._instance=null;const ji=function(o,t,e){var n=!0,i=!0;if(typeof o!="function")throw new TypeError("Expected a function");return pt(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),On(o,t,{leading:n,maxWait:t,trailing:i})};var iv=Object.defineProperty,hh=Object.getOwnPropertySymbols,rv=Object.prototype.hasOwnProperty,sv=Object.prototype.propertyIsEnumerable,gh=(o,t,e)=>t in o?iv(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,av=(o,t)=>{for(var e in t||(t={}))rv.call(t,e)&&gh(o,e,t[e]);if(hh)for(var e of hh(t))sv.call(t,e)&&gh(o,e,t[e]);return o};const cv=50,lv=350,dv="Powered by";class uv extends ne(){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=ji(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;(t.config.get("ui.poweredBy.forceVisible")||function(e){function n(g){return g.length>=40&&g.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let i="";try{i=atob(e)}catch{return"INVALID"}const r=i.split("-"),s=r[0],a=r[1];if(!a)return n(e);try{atob(a)}catch{try{if(atob(s),!atob(s).length)return n(e)}catch{return n(e)}}if(s.length<40||s.length>255)return"INVALID";let c="";try{atob(s),c=atob(a)}catch{return"INVALID"}if(c.length!==8)return"INVALID";const l=Number(c.substring(0,4)),d=Number(c.substring(4,6))-1,u=Number(c.substring(6,8)),h=new Date(l,d,u);return h<wt||isNaN(Number(h))?"INVALID":"VALID"}(t.config.get("licenseKey"))!=="VALID")&&t.ui.view&&(t.ui.focusTracker.on("change:isFocused",(e,n,i)=>{this._updateLastFocusedEditableElement(),i?this._showBalloon():this._hideBalloon()}),t.ui.focusTracker.on("change:focusedElement",(e,n,i)=>{this._updateLastFocusedEditableElement(),i&&this._showBalloon()}),t.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const t=this.editor,e=this._balloonView=new Ft,n=ph(t),i=new hv(t.locale,n.label);e.content.add(i),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(e,n){const i=ph(e),r=i.side==="right"?function(s,a){return mh(s,a,(c,l)=>c.left+c.width-l.width-a.horizontalOffset)}(n,i):function(s,a){return mh(s,a,c=>c.left+a.horizontalOffset)}(n,i);return{target:n,positions:[r]}}(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,e=t.ui.focusTracker.isFocused,n=t.ui.focusTracker.focusedElement;if(!e||!n)return void(this._lastFocusedEditableElement=null);const i=Array.from(t.ui.getEditableElementsNames()).map(r=>t.ui.getEditableElement(r));i.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=i[0]}}class hv extends G{constructor(t,e){super(t);const n=new Ne,i=this.bindTemplate;n.set({content:`
vendor: 5,961 bytes, line 8220
8220<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>
8220 8221`,isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:i.to(r=>r.preventDefault())}}]})}}function mh(o,t,e){return(n,i)=>{const r=new J(o);if(r.width<lv||r.height<cv)return null;let s;s=t.position==="inside"?r.bottom-i.height:r.bottom-i.height/2,s-=t.verticalOffset;const a=e(r,i),c=n.clone().moveTo(a,s).getIntersection(i.clone().moveTo(a,s)).getVisible();return!c||c.getArea()<i.getArea()?null:{top:s,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function ph(o){const t=o.config.get("ui.poweredBy"),e=t&&t.position||"border";return av({position:e,label:dv,verticalOffset:e==="inside"?5:0,horizontalOffset:5,side:o.locale.contentLanguageDirection==="ltr"?"right":"left"},t)}var fh=R(1801),gv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(fh.A,gv),fh.A.locals;const kh={POLITE:"polite",ASSERTIVE:"assertive"};class mv{constructor(t){this.editor=t,t.once("ready",()=>{for(const e of Object.values(kh))this.announce("",e)})}announce(t,e=kh.POLITE){const n=this.editor;if(!n.ui.view)return;this.view||(this.view=new pv(n.locale),n.ui.view.body.add(this.view));const{politeness:i,isUnsafeHTML:r}=typeof e=="string"?{politeness:e}:e;let s=this.view.regionViews.find(a=>a.politeness===i);s||(s=new fv(n,i),this.view.regionViews.add(s)),s.announce({announcement:t,isUnsafeHTML:r})}}class pv extends G{constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class fv extends G{constructor(t,e){super(t.locale),this.setTemplate({tag:"div",attributes:{role:"region","aria-live":e,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),t.on("destroy",()=>{this._pruneAnnouncementsInterval!==null&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)}),this.politeness=e,this._domConverter=t.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval(()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()},5e3)}announce({announcement:t,isUnsafeHTML:e}){if(!t.trim().length)return;const n=document.createElement("li");e?this._domConverter.setContentOf(n,t):n.innerText=t,this._listElement.appendChild(n)}get _listElement(){return this.element.querySelector("ul")}}var kv=Object.defineProperty,bh=Object.getOwnPropertySymbols,bv=Object.prototype.hasOwnProperty,wv=Object.prototype.propertyIsEnumerable,wh=(o,t,e)=>t in o?kv(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class Av extends lt(){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new FC(t),this.focusTracker=new Bt,this.tooltipManager=new Ri(t),this.poweredBy=new uv(t),this.ariaLiveAnnouncer=new mv(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}
vendor: 5,113 bytes, line 8221
8221get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)}),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor,e=t.editing.view;let n,i;t.keystrokes.set("Alt+F10",(r,s)=>{const a=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(a)&&!Array.from(e.domRoots.values()).includes(a)&&(n=a);const c=this._getCurrentFocusedToolbarDefinition();c&&i||(i=this._getFocusableCandidateToolbarDefinitions());for(let l=0;l<i.length;l++){const d=i.shift();if(i.push(d),d!==c&&this._focusFocusableCandidateToolbar(d)){c&&c.options.afterBlur&&c.options.afterBlur();break}}s()}),t.keystrokes.set("Esc",(r,s)=>{const a=this._getCurrentFocusedToolbarDefinition();a&&(n?(n.focus(),n=null):t.editing.view.focus(),a.options.afterBlur&&a.options.afterBlur(),s())})}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:i}=e;(tn(n.element)||i.beforeFocus)&&t.push(e)}return t.sort((e,n)=>Ah(e)-Ah(n)),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),!!tn(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n=((i,r)=>{for(var s in r||(r={}))bv.call(r,s)&&wh(i,s,r[s]);if(bh)for(var s of bh(r))wv.call(r,s)&&wh(i,s,r[s]);return i})({top:0,bottom:0,left:0,right:0},this.viewportOffset);e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}}function Ah(o){const{toolbarView:t,options:e}=o;let n=10;return tn(t.element)&&n--,e.isContextual&&n--,n}var _h=R(1185),_v={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(_h.A,_v),_h.A.locals;class Cv extends G{constructor(t){super(t),this.body=new aC(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class vv extends Cv{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new Ti;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class yv extends G{constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>
8221this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(n){t.change(i=>{const r=t.document.getRoot(n.name);i.addClass(n.isFocused?"ck-focused":"ck-blurred",r),i.removeClass(n.isFocused?"ck-blurred":"ck-focused",r)})}t.isRenderingInProgress?function n(i){t.once("change:isRenderingInProgress",(r,s,a)=>{a?n(i):e(i)})}(this):e(this)}}class xv extends yv{constructor(t,e,n,i={}){super(t,e,n);const r=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=i.label||(()=>r("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change(e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)})}}class Vs extends ui{static get pluginName(){return"Notification"}init(){this.on("show:warning",(t,e)=>{window.alert(e.message)},{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`;this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class Ch extends lt(){constructor(t,e){super(),e&&$l(this,e),t&&this.set(t)}}var vh=R(991),Ev={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(vh.A,Ev),vh.A.locals;var yh=R(5380),Dv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(yh.A,Dv),yh.A.locals;const Fi=Dn("px");class Vi extends L{constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const e=this.editor.editing.view,n=e.document.selection.editableElement;return n?e.domConverter.mapViewToDom(n.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new _("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new _("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(e.size===1?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),e.size===1?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new _("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new Ft(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find(e=>e[1]===t)[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new Iv(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(n,i)=>!i&&n>1),t.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(n,i)=>{if(i<2)return"";const r=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[r,i])}),t.buttonNextView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),t.buttonPrevView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),t}_createFakePanelsView(){const t=new Tv(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,n)=>!n&&e>=2?Math.min(e-1,2):0),t.listenTo(this.view,"change:top",()=>t.updatePosition()),t.listenTo(this.view,"change:left",()=>t.updatePosition()),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class Iv extends G{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Bt,this.buttonPrevView=this._createButtonView(e("Previous"),$.previousArrow),this.buttonNextView=this._createButtonView(e("Next"),$.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",i=>i?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new ot(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class Tv extends G{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",i=>
8221i?"":"ck-hidden")],style:{top:n.to("top",Fi),left:n.to("left",Fi),width:n.to("width",Fi),height:n.to("height",Fi)}},children:this.content}),this.on("change:numberOfPanels",(i,r,s,a)=>{s>a?this._addPanels(s-a):this._removePanels(a-s),this.updatePosition()})}_addPanels(t){for(;t--;){const e=new G;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(t){for(;t--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:i}=new J(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:i})}}}var xh=R(8298),Mv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(xh.A,Mv),xh.A.locals;const Fn=Dn("px");class Sv extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new he({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",n=>n?"block":"none"),height:e.to("isSticky",n=>n?Fn(this._contentPanelRect.height):null)}}}).render(),this.contentPanelElement=new he({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",n=>n?Fn(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:e.to("_stickyTopOffset",n=>n&&Fn(n)),bottom:e.to("_stickyBottomOffset",n=>n&&Fn(n)),marginLeft:e.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(v.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const t=new J(this.limiterElement);let e=t.getVisible();if(e){const n=new J(v.window);n.top+=this.viewportTopOffset,n.height-=this.viewportTopOffset,e=e.getIntersection(n)}if(e&&t.top<e.top){const n=e.top;if(n+this._contentPanelRect.height+this.limiterBottomOffset>e.bottom){const i=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-i>t.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(i):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<t.height?this._stickToTopOfAncestors(n):this._unstick()}else this._unstick()}_stickToTopOfAncestors(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=t,this._stickyBottomOffset=null,this._marginLeft=Fn(-v.window.scrollX)}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=Fn(-v.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new J(this.contentPanelElement)}}class Bv extends Bi{constructor(t,e){const n=t.t,i=Object.assign({},{showResetButton:!0,showIcon:!0,creator:Oi},e);super(t,i.creator),this.label=e.label,this._viewConfig=i,this._viewConfig.showIcon&&(this.iconView=new Ne,this.iconView.content=$.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new ot(t),this.resetButtonView.set({label:n("Clear"),icon:$.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",r=>!r),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 Nv extends G{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",t.if("isVisible","ck-hidden",e=>!e)],tabindex:-1},children:[{tag:"span",children:[{text:[t.to("primaryText")]}]},{tag:"span",children:[{text:[t.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class Pv extends G{constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new Bt,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new re({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Eh=/[\\^$.*+?()[\]{}|]/g,Ov=RegExp(Eh.source);const Dh=function(o){return(o=Xr(o))&&Ov.test(o)?o.replace(Eh,"\\$&"):o};var Ih=R(8107),Lv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ih.A,Lv),Ih.A.locals;var zv=Object.defineProperty,Th=Object.getOwnPropertySymbols,Rv=Object.prototype.hasOwnProperty,jv=Object.prototype.propertyIsEnumerable,Mh=(o,t,e)=>t in o?zv(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class Fv extends G{constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Bt,this.keystrokes=new zt,this.resultsView=new Pv(t),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),e.infoView&&e.infoView.instance?this.infoView=e.infoView.instance:(this.infoView=new Nv,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new re({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(n,{resultsCount:i,totalItemsCount:r})=>{this.resultsCount=i,this.totalItemsCount=r}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",e.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(t){const e=t?new RegExp(Dh(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",((i,r)=>{for(var s in r||(r={}))Rv.call(r,s)&&Mh(i,s,r[s]);if(Th)for(var s of Th(r))jv.call(r,s)&&Mh(i,s,r[s]);return i})({query:t},n))}_createSearchTextQueryView(){const t=new Bv(this.locale,this._config.queryView);return this.listenTo(t.fieldView,"input",()=>{this.search(t.fieldView.element.value)}),t.on("reset",()=>this.reset()),t.bind("isEnabled").to(this),t}_enableDefaultInfoViewBehavior(){const t=this.locale.t,e=this.infoView;function n(i,{query:r,resultsCount:s,totalItemsCount:a}){return typeof i=="function"?i(r,s,a):i}this.on("search",(i,r)=>{if(r.resultsCount)e.set({isVisible:!1});else{const s=this._config.infoView&&this._config.infoView.text;let a,c;r.totalItemsCount?s&&s.notFound?(a=s.notFound.primary,c=s.notFound.secondary):(a=t("No results found"),c=""):s&&s.noSearchableItems?(a=s.noSearchableItems.primary,c=s.noSearchableItems.secondary):(a=t("No searchable items"),c=""),e.set({primaryText:n(a,r),secondaryText:n(c,r),isVisible:!0})}})}}var Sh=R(5727),Vv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Sh.A,Vv),Sh.A.locals;const Hs=class extends Fv{constructor(o,t){super(o,t),this._config=t;const e=Dn("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const 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",i=>!i),n.to("_position",i=>`ck-search__results_${i}`)],style:{width:n.to("_width",e)}}}),this.focusTracker.on("change:isFocused",(i,r,s)=>{this._updateResultsVisibility(),s?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(i,r)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,r())}),this.listenTo(v.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(i,{value:r})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=r,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new J(this.queryView.fieldView.element).width;const o=Hs._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Hs.defaultResultsPositions});this.resultsView._position=o?o.name:"s"}_updateResultsVisibility(){const o=this._config.queryMinChars===void 0?0:this._config.queryMinChars,t=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&t>=o}};let Bh=Hs;Bh.defaultResultsPositions=[o=>
8221({top:o.bottom,left:o.left,name:"s"}),(o,t)=>({top:o.top-t.height,left:o.left,name:"n"})],Bh._getOptimalPosition=ri;var Nh=R(9529),Hv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Nh.A,Hv),Nh.A.locals;var Ph=R(109),Uv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ph.A,Uv),Ph.A.locals;var Oh=R(2710),qv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Oh.A,qv),Oh.A.locals;var Lh=R(3344),Gv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Lh.A,Gv),Lh.A.locals;class Wv extends ot{constructor(t){super(t);const e=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",n=>String(n)),"data-cke-tooltip-disabled":e.to("isOn")},on:{mouseenter:e.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new Ne;return t.content=Si,t.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),t}}var zh=R(9481),Kv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(zh.A,Kv),zh.A.locals;class Us extends jn{constructor(t,e){super(t);const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:n.to("mouseenter")}}),this.delegate("mouseenter").to(e)}}var $v=Object.defineProperty,Rh=Object.getOwnPropertySymbols,Yv=Object.prototype.hasOwnProperty,Qv=Object.prototype.propertyIsEnumerable,jh=(o,t,e)=>t in o?$v(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Fh=(o,t)=>{for(var e in t||(t={}))Yv.call(t,e)&&jh(o,e,t[e]);if(Rh)for(var e of Rh(t))Qv.call(t,e)&&jh(o,e,t[e]);return o};const Io={toggleMenusAndFocusItemsOnHover(o){o.on("menu:mouseenter",t=>{if(o.isOpen){for(const e of o.menus){const n=t.path[0],i=n instanceof Us&&n.children.first===e;e.isOpen=(t.path.includes(e)||i)&&e.isEnabled}t.source.focus()}})},focusCycleMenusOnArrows(o){const t=o.locale.uiLanguageDirection==="rtl";function e(n,i){const r=o.children.getIndex(n),s=n.isOpen,a=o.children.length,c=o.children.get((r+a+i)%a);n.isOpen=!1,s&&(c.isOpen=!0),c.buttonView.focus()}o.on("menu:arrowright",n=>{e(n.source,t?-1:1)}),o.on("menu:arrowleft",n=>{e(n.source,t?1:-1)})},closeMenusWhenTheBarCloses(o){o.on("change:isOpen",()=>{o.isOpen||o.menus.forEach(t=>{t.isOpen=!1})})},closeMenuWhenAnotherOnTheSameLevelOpens(o){o.on("menu:change:isOpen",(t,e,n)=>{n&&o.menus.filter(i=>t.source.parentMenuView===i.parentMenuView&&t.source!==i&&i.isOpen).forEach(i=>{i.isOpen=!1})})},closeOnClickOutside(o){li({emitter:o,activator:()=>o.isOpen,callback:()=>o.close(),contextElements:()=>o.children.map(t=>t.element)})}},un={openAndFocusPanelOnArrowDownKey(o){o.keystrokes.set("arrowdown",(t,e)=>{o.focusTracker.focusedElement===o.buttonView.element&&(o.isOpen||(o.isOpen=!0),o.panelView.focus(),e())})},openOnArrowRightKey(o){const t=o.locale.uiLanguageDirection==="rtl"?"arrowleft":"arrowright";o.keystrokes.set(t,(e,n)=>{o.focusTracker.focusedElement===o.buttonView.element&&o.isEnabled&&(o.isOpen||(o.isOpen=!0),o.panelView.focus(),n())})},openOnButtonClick(o){o.buttonView.on("execute",()=>{o.isOpen=!0,o.panelView.focus()})},toggleOnButtonClick(o){o.buttonView.on("execute",()=>{o.isOpen=!o.isOpen,o.isOpen&&o.panelView.focus()})},closeOnArrowLeftKey(o){const t=o.locale.uiLanguageDirection==="rtl"?"arrowright":"arrowleft";o.keystrokes.set(t,(e,n)=>{o.isOpen&&(o.isOpen=!1,o.focus(),n())})},closeOnEscKey(o){o.keystrokes.set("esc",(t,e)=>{o.isOpen&&(o.isOpen=!1,o.focus(),e())})},closeOnParentClose(o){o.parentMenuView.on("change:isOpen",(t,e,n)=>{n||t.source!==o.parentMenuView||(o.isOpen=!1)})}},Zv={southEast:o=>
vendor: 2,208 bytes, line 8221
8221({top:o.bottom,left:o.left,name:"se"}),southWest:(o,t)=>({top:o.bottom,left:o.left-t.width+o.width,name:"sw"}),northEast:(o,t)=>({top:o.top-t.height,left:o.left,name:"ne"}),northWest:(o,t)=>({top:o.top-t.height,left:o.left-t.width+o.width,name:"nw"}),eastSouth:o=>({top:o.top,left:o.right-5,name:"es"}),eastNorth:(o,t)=>({top:o.top-t.height,left:o.right-5,name:"en"}),westSouth:(o,t)=>({top:o.top,left:o.left-t.width+5,name:"ws"}),westNorth:(o,t)=>({top:o.top-t.height,left:o.left-t.width+5,name:"wn"})},Jv=[{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:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:uploadImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment"]},{groupId:"insertMinorWidgets",items:["menuBar:insertTemplate","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]},{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroun
8221dColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","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 Xv({normalizedConfig:o,locale:t,componentFactory:e}){const n=pe(o);return function(i,r){const s=r.removeItems,a=[];r.items=r.items.filter(({menuId:c})=>!s.includes(c)||(a.push(c),!1)),Vn(r.items,c=>{c.groups=c.groups.filter(({groupId:l})=>!s.includes(l)||(a.push(l),!1));for(const l of c.groups)l.items=l.items.filter(d=>{const u=Uh(d);return!s.includes(u)||(a.push(u),!1)})});for(const c of s)a.includes(c)||U("menu-bar-item-could-not-be-removed",{menuBarConfig:i,itemName:c})}(o,n),function(i,r){const s=r.addItems,a=[];for(const c of s){const l=n1(c.position),d=o1(c.position);if(t1(c))if(d){const u=r.items.findIndex(h=>h.menuId===d);u!=-1?l==="before"?(r.items.splice(u,0,c.menu),a.push(c)):l==="after"&&(r.items.splice(u+1,0,c.menu),a.push(c)):Vh(r,c.menu,d,l)&&a.push(c)}else l==="start"?(r.items.unshift(c.menu),a.push(c)):l==="end"&&(r.items.push(c.menu),a.push(c));else e1(c)?Vn(r.items,u=>{if(u.menuId===d)l==="start"?(u.groups.unshift(c.group),a.push(c)):l==="end"&&(u.groups.push(c.group),a.push(c));else{const h=u.groups.findIndex(g=>g.groupId===d);h!==-1&&(l==="before"?(u.groups.splice(h,0,c.group),a.push(c)):l==="after"&&(u.groups.splice(h+1,0,c.group),a.push(c)))}}):Vh(r,c.item,d,l)&&a.push(c)}for(const c of s)a.includes(c)||U("menu-bar-item-could-not-be-added",{menuBarConfig:i,addedItemConfig:c})}(o,n),function(i,r,s){Vn(r.items,a=>{for(const c of a.groups)c.items=c.items.filter(l=>{const d=typeof l=="string"&&!s.has(l);return d&&!r.isUsingDefaultConfig&&U("menu-bar-item-unavailable",{menuBarConfig:i,parentMenuConfig:pe(a),componentName:l}),!d})})}(o,n,e),Hh(o,n),function(i,r){const s=r.t,a={File:s({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:s({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:s({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:s({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:s({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:s({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:s({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:s({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:s({string:"Font",id:"MENU_BAR_MENU_FONT"})};Vn(i.items,c=>{c.label in a&&(c.label=a[c.label])})}(n,t),n}function Vh(o,t,e,n){let i=!1;return Vn(o.items,r=>{for(const{groupId:s,items:a}of r.groups){if(i)return;if(s===e)n==="start"?(a.unshift(t),i=!0):n==="end"&&(a.push(t),i=!0);else{const c=a.findIndex(l=>Uh(l)===e);c!==-1&&(n==="before"?(a.splice(c,0,t),i=!0):n==="after"&&(a.splice(c+1,0,t),i=!0))}}}),i}function Hh(o,t){const e=t.isUsingDefaultConfig;let n=!1;t.items=t.items.filter(i=>!!i.groups.length||(qs(o,i,e),!1)),t.items.length?(Vn(t.items,i=>{i.groups=i.groups.filter(r=>!!r.items.length||(n=!0,!1));for(const r of i.groups)r.items=r.items.filter(s=>!(qh(s)&&!s.groups.length)||(qs(o,s,e),n=!0,!1))}),n&&Hh(o,t)):qs(o,o,e)}function qs(o,t,e){e||U("menu-bar-menu-empty",{menuBarConfig:o,emptyMenuConfig:t})}function Vn(o,t){if(Array.isArray(o))for(const n of o)e(n);function e(n){t(n);for(const i of n.groups)for(const r of i.items)qh(r)&&e(r)}}function t1(o){return typeof o=="object"&&"menu"in o}function e1(o){return typeof o=="object"&&"group"in o}function n1(o){return o.startsWith("start")?"start":o.startsWith("end")?"end":o.startsWith("after")?"after":"before"}function o1(o){const t=o.match(/^[^:]+:(.+)/);return t?t[1]:null}function Uh(o){return typeof o=="string"?o:o.menuId}function qh(o){return typeof o=="object"&&"menuId"in o}function i1(o,t){const e=t.element;o.ui.focusTracker.add(e),o.keystrokes.listenTo(e);const n=function(i){let r;return r="items"in i&&i.items?Fh({items:i.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1},i):Fh({items:pe(Jv),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0},i),r}(o.config.get("menuBar")||{});t.fillFromConfig(n,o.ui.componentFactory),o.keystrokes.set("Esc",(i,r)=>{e.contains(o.ui.focusTracker.focusedElement)&&(o.editing.view.focus(),r())}),o.keystrokes.set("Alt+F9",(i,r)=>{e.contains(o.ui.focusTracker.focusedElement)||(t.focus(),r())})}var Gh=R(9108),r1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Gh.A,r1),Gh.A.locals;class s1 extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-menu-bar__menu__panel",e.to("position",n=>`ck-menu-bar__menu__panel_position_${n}`),e.if("isVisible","ck-hidden",n=>!n)],tabindex:"-1"},children:this.children,on:{selectstart:e.to(n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()})}})}focus(t=1){this.children.length&&(t===1?this.children.first.focus():this.children.last.focus())}}var Wh=R(4),a1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Wh.A,a1),Wh.A.locals;const Kh=class extends G{constructor(o){super(o);const t=this.bindTemplate;this.buttonView=new Wv(o),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new s1(o),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new zt,this.focusTracker=new Bt,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),un.closeOnEscKey(this),this._repositionPanelOnOpen()}
8221_attachBehaviors(){this.parentMenuView?(un.openOnButtonClick(this),un.openOnArrowRightKey(this),un.closeOnArrowLeftKey(this),un.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),un.openAndFocusPanelOnArrowDownKey(this),un.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",(o,t)=>{this.fire("arrowright"),t()}),this.keystrokes.set("arrowleft",(o,t)=>{this.fire("arrowleft"),t()})}_repositionPanelOnOpen(){this.on("change:isOpen",(o,t,e)=>{if(!e)return;const n=Kh._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=n?n.name:this._panelPositions[0].name})}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:o,southWest:t,northEast:e,northWest:n,westSouth:i,eastSouth:r,westNorth:s,eastNorth:a}=Zv;return this.locale.uiLanguageDirection==="ltr"?this.parentMenuView?[r,a,i,s]:[o,t,e,n]:this.parentMenuView?[i,s,r,a]:[t,o,n,e]}};let Hn=Kh;Hn._getOptimalPosition=ri;class Gs extends Os{constructor(t){super(t),this.role="menu"}}var $h=R(977),c1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()($h.A,c1),$h.A.locals;class Xt extends ot{constructor(t){super(t),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}class Yh extends Du{constructor(t){super(t),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var Qh=R(497),l1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Qh.A,l1),Qh.A.locals;const Zh=["mouseenter","arrowleft","arrowright","change:isOpen"];class d1 extends G{constructor(t){super(t),this.menus=[];const e=t.t;this.set("isOpen",!1),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar"],"aria-label":e("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(t,e){const n=Xv({normalizedConfig:t,locale:this.locale,componentFactory:e}).items.map(i=>this._createMenu({componentFactory:e,menuDefinition:i}));this.children.addMany(n)}render(){super.render(),Io.toggleMenusAndFocusItemsOnHover(this),Io.closeMenusWhenTheBarCloses(this),Io.closeMenuWhenAnotherOnTheSameLevelOpens(this),Io.focusCycleMenusOnArrows(this),Io.closeOnClickOutside(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const t of this.children)t.isOpen=!1}registerMenu(t,e=null){e?(t.delegate(...Zh).to(e),t.parentMenuView=e):t.delegate(...Zh).to(this,n=>"menu:"+n),t._attachBehaviors(),this.menus.push(t)}_createMenu({componentFactory:t,menuDefinition:e,parentMenuView:n}){const i=this.locale,r=new Hn(i);return this.registerMenu(r,n),r.buttonView.set({label:e.label}),r.once("change:isOpen",()=>{const s=new Gs(i);s.ariaLabel=e.label,r.panelView.children.add(s),s.items.addMany(this._createMenuItems({menuDefinition:e,parentMenuView:r,componentFactory:t}))}),r}_createMenuItems({menuDefinition:t,parentMenuView:e,componentFactory:n}){const i=this.locale,r=[];for(const s of t.groups){for(const a of s.items){const c=new Us(i,e);if(pt(a))c.children.add(this._createMenu({componentFactory:n,menuDefinition:a,parentMenuView:e}));else{const l=this._createMenuItemContentFromFactory({componentName:a,componentFactory:n,parentMenuView:e});if(!l)continue;c.children.add(l)}r.push(c)}s!==t.groups[t.groups.length-1]&&r.push(new Ps(i))}return r}_createMenuItemContentFromFactory({componentName:t,parentMenuView:e,componentFactory:n}){const i=n.create(t);return i instanceof Hn||i instanceof Xt||i instanceof Yh?(this._registerMenuTree(i,e),i.on("execute",()=>{this.close()}),i):(U("menu-bar-component-unsupported",{componentName:t,componentView:i}),null)}_registerMenuTree(t,e){if(!(t instanceof Hn))return void t.delegate("mouseenter").to(e);this.registerMenu(t,e);const n=t.panelView.children.filter(r=>r instanceof Gs)[0];if(!n)return void t.delegate("mouseenter").to(e);const i=n.items.filter(r=>r instanceof jn);for(const r of i)this._registerMenuTree(r.children.get(0),t)}_setupIsOpenUpdater(){let t;this.on("menu:change:isOpen",(e,n,i)=>{clearTimeout(t),i?this.isOpen=!0:t=setTimeout(()=>{this.isOpen=Array.from(this.children).some(r=>r.isOpen)},0)})}}class u1 extends Av{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Ru(t.config.get("toolbar")),this._elementReplacer=new Rk,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}
8221get element(){return this.view.element}init(t){const e=this.editor,n=this.view,i=e.editing.view,r=n.editable,s=i.document.getRoot();r.name=s.rootName,n.render();const a=r.element;this.setEditableElement(r.name,a),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(a),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),n.menuBarView&&i1(e,n.menuBarView),this._initDialogPluginIntegration(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.sourceElement;let r;const s=t.config.get("placeholder");s&&(r=typeof s=="string"?s:s[this.view.editable.name]),!r&&i&&i.tagName.toLowerCase()==="textarea"&&(r=i.getAttribute("placeholder")),r&&(n.placeholder=r),_l({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const i=this.view.stickyPanel;if(i.isSticky){const r=new J(i.element).height;e.viewportOffset.top+=r}else{const r=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(i,"change:isSticky",r),setTimeout(()=>{this.stopListening(i,"change:isSticky",r)},20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has("Dialog"))return;const t=this.view.stickyPanel,e=this.editor.plugins.get("Dialog");e.on("show",()=>{const n=e.view;n.on("moveTo",(i,r)=>{if(!t.isSticky||n.wasMoved)return;const s=new J(t.contentPanelElement);r[1]<s.bottom+zi.defaultOffset&&(r[1]=s.bottom+zi.defaultOffset)},{priority:"high"})},{priority:"low"})}}var Jh=R(7388),h1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Jh.A,h1),Jh.A.locals;class g1 extends vv{constructor(t,e,n={}){super(t),this.stickyPanel=new Sv(t),this.toolbar=new Ns(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),n.useMenuBar&&(this.menuBarView=new d1(t)),this.editable=new xv(t,e)}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 Xh{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit=typeof t.crashNumberLimit=="number"?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod=typeof t.minimumNonErrorTimePeriod=="number"?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const n="error"in e?e.error:e.reason;n instanceof Error&&this._handleError(n,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter(n=>n!==e)}_fire(t,...e){const n=this._listeners[t]||[];for(const i of n)i.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&t.context!==void 0&&t.context!==null&&this.state==="ready"&&this._isErrorComingFromThisItem(t)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit?!0:(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Ws(o,t=new Set){const e=[o],n=new Set;let i=0;for(;e.length>i;){const r=e[i++];if(!n.has(r)&&m1(r)&&!t.has(r))if(n.add(r),Symbol.iterator in r)try{for(const s of r)e.push(s)}catch{}else for(const s in r)s!=="defaultValue"&&e.push(r[s])}return n}function m1(o){const t=Object.prototype.toString.call(o),e=typeof o;return!(e==="number"||e==="boolean"||e==="string"||e==="symbol"||e==="function"||t==="[object Date]"||t==="[object RegExp]"||t==="[object Module]"||o==null||o._watchdogExcluded||o instanceof EventTarget||o instanceof Event)}function tg(o,t,e=new Set){if(o===t&&typeof(n=o)=="object"&&n!==null)return!0;var n;const i=Ws(o,e),r=Ws(t,e);for(const s of i)if(r.has(s))return!0;return!1}var p1=Object.defineProperty,f1=Object.defineProperties,k1=Object.getOwnPropertyDescriptors,Hi=Object.getOwnPropertySymbols,eg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable,og=(o,t,e)=>t in o?p1(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Ks=(o,t)=>{for(var e in t||(t={}))eg.call(t,e)&&og(o,e,t[e]);if(Hi)for(var e of Hi(t))ng.call(t,e)&&og(o,e,t[e]);return o};class ig extends Xh{constructor(t,e={}){super(e),this._editor=null,this._lifecyclePromise=null,this._initUsingData=!0,this._editables={},this._throttledSave=ji(this._save.bind(this),typeof e.saveInterval=="number"?e.saveInterval:5e3),t&&(this._creator=(n,i)=>t.create(n,i)),this._destructor=n=>n.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(t=>{console.error("An error happened during the editor destroying.",t)}).then(()=>{const t={},e=[],n=this._config.rootsAttributes||{},i={};for(const[c,l]of Object.entries(this._data.roots))l.isLoaded?(t[c]="",i[c]=n[c]||{}):e.push(c);const r=(s=Ks({},this._config),a={extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:i,_watchdogInitialData:this._data},f1(s,k1(a)));var s,a;return delete r.initialData,r.extraPlugins.push(b1),this._initUsingData?this.create(t,r,r.context):Xe(this._elementOrData)?this.create(this._elementOrData,r,r.context):this.create(this._editables,r,r.context)}).then(()=>{this._fire("restart")})}create(t=this._elementOrData,e=this._config,n){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData=typeof t=="string"||Object.keys(t).length>0&&typeof Object.values(t)[0]=="string",this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config))).then(i=>{this._editor=i,i.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=i.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)})}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter(a=>a.isAttached()&&a.rootName!="$graveyard"),{plugins:n}=t,i=n.has("CommentsRepository")&&n.get("CommentsRepository"),r=n.has("TrackChanges")&&n.get("TrackChanges"),s={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach(a=>{s.roots[a.rootName]={content:JSON.stringify(Array.from(a.getChildren())),attributes:JSON.stringify(Array.from(a.getAttributes())),isLoaded:a._isLoaded}});for(const a of t.model.markers)a._affectsData&&(s.markers[a.name]={rangeJSON:a.getRange().toJSON(),usingOperation:a._managedUsingOperations,affectsData:a._affectsData});return i&&(s.commentThreads=JSON.stringify(i.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),r&&(s.suggestions=JSON.stringify(r.getSuggestions({toJSON:!0,skipNotAttached:!0}))),s}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return tg(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return zr(t,(e,n)=>Xe(e)||n==="context"?e:void 0)}}class b1{constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire("ready")},{priority:999})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const i of e.children)n._appendChild(this._createNode(t,i));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;
8221Object.entries(this._data.roots).forEach(([n,{content:i,attributes:r}])=>{const s=JSON.parse(i),a=JSON.parse(r),c=e.model.document.getRoot(n);for(const[l,d]of a)t.setAttribute(l,d,c);for(const l of s){const d=this._createNode(t,l);t.insert(d,c,"end")}}),Object.entries(this._data.markers).forEach(([n,i])=>{const{document:r}=e.model,s=i,{rangeJSON:{start:a,end:c}}=s,l=((m,k)=>{var b={};for(var A in m)eg.call(m,A)&&k.indexOf(A)<0&&(b[A]=m[A]);if(m!=null&&Hi)for(var A of Hi(m))k.indexOf(A)<0&&ng.call(m,A)&&(b[A]=m[A]);return b})(s,["rangeJSON"]),d=r.getRoot(a.root),u=t.createPositionFromPath(d,a.path,a.stickiness),h=t.createPositionFromPath(d,c.path,c.stickiness),g=t.createRange(u,h);t.addMarker(n,Ks({range:g},l))})}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach(n=>{const i=this.editor.config.get("collaboration.channelId"),r=this.editor.plugins.get("CommentsRepository");r.hasCommentThread(n.threadId)&&r.getCommentThread(n.threadId).remove(),r.addCommentThread(Ks({channelId:i},n))}),e.forEach(n=>{const i=this.editor.plugins.get("TrackChangesEditing");i.hasSuggestion(n.id)?i.getSuggestion(n.id).attributes=n.attributes:i.addSuggestionData(n)})}}const To=Symbol("MainQueueId");class w1{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===To;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const i=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(To),this._queues.get(t)])).then(e),r=i.catch(()=>{});return this._queues.set(t,r),i.finally(()=>{this._activeActions--,this._queues.get(t)===r&&this._activeActions===0&&this._onEmptyCallbacks.forEach(s=>s())})}}function rg(o){return Array.isArray(o)?o:[o]}class Ui extends Ts(eC){constructor(t,e={}){if(!qi(t)&&e.initialData!==void 0)throw new _("editor-create-initial-data",null);super(e),this.config.define("menuBar.isVisible",!1),this.config.get("initialData")===void 0&&this.config.set("initialData",function(s){return qi(s)?(a=s,a instanceof HTMLTextAreaElement?a.value:a.innerHTML):s;var a}(t)),qi(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=this.config.get("menuBar"),r=new g1(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n,useMenuBar:i.isVisible});this.ui=new u1(this,r),function(s){if(!Ye(s.updateSourceElement))throw new _("attachtoform-missing-elementapi-interface",s);const a=s.sourceElement;if(function(c){return!!c&&c.tagName.toLowerCase()==="textarea"}(a)&&a.form){let c;const l=a.form,d=()=>s.updateSourceElement();Ye(l.submit)&&(c=l.submit,l.submit=()=>{d(),c.apply(l)}),l.addEventListener("submit",d),s.on("destroy",()=>{l.removeEventListener("submit",d),c&&(l.submit=c)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise(n=>{const i=new this(t,e);n(i.initPlugins().then(()=>i.ui.init(qi(t)?t:null)).then(()=>i.data.init(i.config.get("initialData"))).then(()=>i.fire("ready")).then(()=>i))})}}function qi(o){return Xe(o)}Ui.Context=bl,Ui.EditorWatchdog=ig,Ui.ContextWatchdog=class extends Xh{constructor(o,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new w1,this._watchdogConfig=t,this._creator=e=>o.create(e),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty(()=>{this.state==="initializing"&&(this.state="ready",this._fire("stateChange"))})}setCreator(o){this._creator=o}setDestructor(o){this._destructor=o}get context(){return this._context}create(o={}){return this._actionQueues.enqueue(To,()=>(this._contextConfig=o,this._create()))}getItem(o){return this._getWatchdog(o)._item}getItemState(o){return this._getWatchdog(o).state}add(o){const t=rg(o);return Promise.all(t.map(e=>this._actionQueues.enqueue(e.id,()=>{if(this.state==="destroyed")throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `
8221ContextWatchdog#create()` method first.");let n;if(this._watchdogs.has(e.id))throw new Error(`Item with the given id is already added: '${e.id}'.`);if(e.type==="editor")return n=new ig(null,this._watchdogConfig),n.setCreator(e.creator),n._setExcludedProperties(this._contextProps),e.destructor&&n.setDestructor(e.destructor),this._watchdogs.set(e.id,n),n.on("error",(i,{error:r,causesRestart:s})=>{this._fire("itemError",{itemId:e.id,error:r}),s&&this._actionQueues.enqueue(e.id,()=>new Promise(a=>{const c=()=>{n.off("restart",c),this._fire("itemRestart",{itemId:e.id}),a()};n.on("restart",c)}))}),n.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))}remove(o){const t=rg(o);return Promise.all(t.map(e=>this._actionQueues.enqueue(e,()=>{const n=this._getWatchdog(e);return this._watchdogs.delete(e),n.destroy()})))}destroy(){return this._actionQueues.enqueue(To,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(To,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(o=>{console.error("An error happened during destroying the context or items.",o)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(o=>(this._context=o,this._contextProps=Ws(this._context),Promise.all(Array.from(this._watchdogs.values()).map(t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const o=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(t=>t.destroy())).then(()=>this._destructor(o))})}_getWatchdog(o){const t=this._watchdogs.get(o);if(!t)throw new Error(`Item with the given id was not registered: ${o}.`);return t}_isErrorComingFromThisItem(o){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(o))return!1;return tg(this._context,o.context)}};class Mo extends He{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;function n(i){return(r,s)=>{s.preventDefault();const a=s.dropRange?[s.dropRange]:null,c=new P(e,i);e.fire(c,{dataTransfer:s.dataTransfer,method:r.name,targetRanges:a,target:s.target,domEvent:s.domEvent}),c.stop.called&&s.stopPropagation()}}this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const e="clipboardData"in t?t.clipboardData:t.dataTransfer,n=t.type=="drop"||t.type=="paste",i={dataTransfer:new nd(e,{cacheFiles:n})};t.type!="drop"&&t.type!="dragover"||(i.dropRange=function(r,s){const a=s.target.ownerDocument,c=s.clientX,l=s.clientY;let d;return a.caretRangeFromPoint&&a.caretRangeFromPoint(c,l)?d=a.caretRangeFromPoint(c,l):s.rangeParent&&(d=a.createRange(),d.setStart(s.rangeParent,s.rangeOffset),d.collapse(!0)),d?r.domConverter.domRangeToView(d):null}(this.view,t)),this.fire(t.type,t,i)}}const sg=["figcaption","li"],ag=["ol","ul"];function cg(o){if(o.is("$text")||o.is("$textProxy"))return o.data;if(o.is("element","img")&&o.hasAttribute("alt"))return o.getAttribute("alt");if(o.is("element","br"))return` 8222`;let t="",e=null;for(const n of o.getChildren())t+=A1(n,e)+cg(n),e=n;return t}function A1(o,t){return t?o.is("element","li")&&!o.isEmpty&&o.getChild(0).is("containerElement")||ag.includes(o.name)&&ag.includes(t.name)?` 8223 8224`:o.is("containerElement")||t.is("containerElement")?sg.includes(o.name)||sg.includes(t.name)?` 8225`:` 8226 8227`:"":""}const _1=function(o,t){return o&&Qc(o,t,ro)},C1=function(o,t,e,n){var i=e.length,r=i;if(o==null)return!r;for(o=Object(o);i--;){var s=e[i];if(s[2]?s[1]!==o[s[0]]:!(s[0]in o))return!1}for(;++i<r;){var a=(s=e[i])[0],c=o[a],l=s[1];if(s[2]){if(c===void 0&&!(a in o))return!1}else{var d=new vn,u;if(!(u===void 0?vi(l,c,3,n,d):u))return!1}}return!0},lg=function(o){return o==o&&!pt(o)},v1=function(o){for(var t=ro(o),e=t.length;e--;){var n=t[e],i=o[n];t[e]=[n,i,lg(i)]}return t}
8227,dg=function(o,t){return function(e){return e!=null&&e[o]===t&&(t!==void 0||o in Object(e))}},y1=function(o){var t=v1(o);return t.length==1&&t[0][2]?dg(t[0][0],t[0][1]):function(e){return e===o||C1(e,o,t)}},x1=function(o,t){return o!=null&&t in Object(o)},E1=function(o,t,e){for(var n=-1,i=(t=mi(t,o)).length,r=!1;++n<i;){var s=Mn(t[n]);if(!(r=o!=null&&e(o,s)))break;o=o[s]}return r||++n!=i?r:!!(i=o==null?0:o.length)&&yr(i)&&Xo(s,i)&&(Wt(o)||Jo(o))},D1=function(o,t){return o!=null&&E1(o,t,x1)},I1=function(o,t){return Zr(o)&&lg(t)?dg(Mn(o),t):function(e){var n=go(e,o);return n===void 0&&n===t?D1(e,o):vi(t,n,3)}},T1=function(o){return function(t){return t==null?void 0:t[o]}},M1=function(o){return function(t){return ts(t,o)}},S1=function(o){return Zr(o)?T1(Mn(o)):M1(o)},B1=function(o){return typeof o=="function"?o:o==null?Ve:typeof o=="object"?Wt(o)?I1(o[0],o[1]):y1(o):S1(o)},N1=function(o,t){var e={};return t=B1(t),_1(o,function(n,i,r){Zo(e,i,t(n,i,r))}),e};var P1=Object.defineProperty,O1=Object.defineProperties,L1=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable,hg=(o,t,e)=>t in o?P1(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class So extends L{constructor(){super(...arguments),this._markersToCopy=new Map}static get pluginName(){return"ClipboardMarkersUtils"}_registerMarkerToCopy(t,e){this._markersToCopy.set(t,e)}_copySelectedFragmentWithMarkers(t,e,n=i=>i.model.getSelectedContent(i.model.document.selection)){return this.editor.model.change(i=>{const r=i.model.document.selection;i.setSelection(e);const s=this._insertFakeMarkersIntoSelection(i,i.model.document.selection,t),a=n(i),c=this._removeFakeMarkersInsideElement(i,a);for(const[l,d]of Object.entries(s)){c[l]||(c[l]=i.createRangeIn(a));for(const u of d)i.remove(u)}a.markers.clear();for(const[l,d]of Object.entries(c))a.markers.set(l,d);return i.setSelection(r),a})}_pasteMarkersIntoTransformedElement(t,e){const n=this._getPasteMarkersFromRangeMap(t);return this.editor.model.change(i=>{const r=this._insertFakeMarkersElements(i,n),s=e(i),a=this._removeFakeMarkersInsideElement(i,s);for(const c of Object.values(r).flat())i.remove(c);for(const[c,l]of Object.entries(a))i.model.markers.has(c)||i.addMarker(c,{usingOperation:!0,affectsData:!0,range:l});return s})}_pasteFragmentWithMarkers(t){const e=this._getPasteMarkersFromRangeMap(t.markers);t.markers.clear();for(const n of e)t.markers.set(n.name,n.range);return this.editor.model.insertContent(t)}_forceMarkersCopy(t,e,n={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const i=this._markersToCopy.get(t);this._markersToCopy.set(t,n),e(),i?this._markersToCopy.set(t,i):this._markersToCopy.delete(t)}_isMarkerCopyable(t,e){const n=this._getMarkerClipboardConfig(t);if(!n)return!1;if(!e)return!0;const{allowedActions:i}=n;return i==="all"||i.includes(e)}_hasMarkerConfiguration(t){return!!this._getMarkerClipboardConfig(t)}_getMarkerClipboardConfig(t){const[e]=t.split(":");return this._markersToCopy.get(e)||null}_insertFakeMarkersIntoSelection(t,e,n){const i=this._getCopyableMarkersFromSelection(t,e,n);return this._insertFakeMarkersElements(t,i)}_getCopyableMarkersFromSelection(t,e,n){const i=Array.from(e.getRanges()),r=new Set(i.flatMap(s=>Array.from(t.model.markers.getMarkersIntersectingRange(s))));return Array.from(r).filter(s=>{if(!this._isMarkerCopyable(s.name,n))return!1;const{copyPartiallySelected:a}=this._getMarkerClipboardConfig(s.name);if(!a){const c=s.getRange();return i.some(l=>l.containsRange(c,!0))}return!0}).map(s=>({name:n==="dragstart"?this._getUniqueMarkerName(s.name):s.name,range:s.getRange()}))}_getPasteMarkersFromRangeMap(t,e=null){const{model:n}=this.editor;return(t instanceof Map?Array.from(t.entries()):Object.entries(t)).flatMap(([i,r])=>{if(!this._hasMarkerConfiguration(i))return[{name:i,range:r}];if(this._isMarkerCopyable(i,e)){const s=this._getMarkerClipboardConfig(i),a=n.markers.has(i)&&n.markers.get(i).getRange().root.rootName==="$graveyard";return(s.duplicateOnPaste||a)&&(i=this._getUniqueMarkerName(i)),[{name:i,range:r}]}return[]})}_insertFakeMarkersElements(t,e){const n={},i=e.flatMap(r=>{const{start:s,end:a}=r.range;return[{position:s,marker:r,type:"start"},{position:a,marker:r,type:"end"}]}).sort(({position:r},{position:s})=>r.isBefore(s)?1:-1);for(const{position:r,marker:s,type:a}of i){const c=t.createElement("$marker",{"data-name":s.name,"data-type":a});n[s.name]||(n[s.name]=[]),n[s.name].push(c),t.insert(c,r)}return n}_removeFakeMarkersInsideElement(t,e){const n=this._getAllFakeMarkersFromElement(t,e).reduce((i,r)=>{const s=r.markerElement&&t.createPositionBefore(r.markerElement);let a=i[r.name],c=!1;a&&a.start&&a.end&&(this._getMarkerClipboardConfig(r.name).duplicateOnPaste?i[this._getUniqueMarkerName(r.name)]=i[r.name]:c=!0,a=null);var l,d;return c||(i[r.name]=(l=((u,h)=>{for(var g in h||(h={}
8227))z1.call(h,g)&&hg(u,g,h[g]);if(ug)for(var g of ug(h))R1.call(h,g)&&hg(u,g,h[g]);return u})({},a),d={[r.type]:s},O1(l,L1(d)))),r.markerElement&&t.remove(r.markerElement),i},{});return N1(n,i=>new B(i.start||t.createPositionFromPath(e,[0]),i.end||t.createPositionAt(e,"end")))}_getAllFakeMarkersFromElement(t,e){const n=Array.from(t.createRangeIn(e)).flatMap(({item:s})=>{if(!s.is("element","$marker"))return[];const a=s.getAttribute("data-name"),c=s.getAttribute("data-type");return[{markerElement:s,name:a,type:c}]}),i=[],r=[];for(const s of n)s.type==="end"&&(n.some(a=>a.name===s.name&&a.type==="start")||i.push({markerElement:null,name:s.name,type:"start"})),s.type==="start"&&(n.some(a=>a.name===s.name&&a.type==="end")||r.unshift({markerElement:null,name:s.name,type:"end"}));return[...i,...n,...r]}_getUniqueMarkerName(t){const e=t.split(":"),n=V().substring(1,6);return e.length===3?`${e.slice(0,2).join(":")}:${n}`:`${e.join(":")}:${n}`}}class se extends L{static get pluginName(){return"ClipboardPipeline"}static get requires(){return[So]}init(){this.editor.editing.view.addObserver(Mo),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const i=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:n==="cut"},()=>{const r=i._copySelectedFragmentWithMarkers(n,e);this.fire("outputTransformation",{dataTransfer:t,content:r,method:n})})}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(i,"clipboardInput",(s,a)=>{a.method!="paste"||t.model.canEditAt(t.model.document.selection)||s.stop()},{priority:"highest"}),this.listenTo(i,"clipboardInput",(s,a)=>{const c=a.dataTransfer;let l;if(a.content)l=a.content;else{let h="";c.getData("text/html")?h=function(g){return g.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(m,k)=>k.length==1?" ":k).replace(/<!--[\s\S]*?-->/g,"")}(c.getData("text/html")):c.getData("text/plain")&&(((d=(d=c.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>")||d.includes("<br>"))&&(d=`<p>${d}</p>`),h=d),l=this.editor.data.htmlProcessor.toView(h)}var d;const u=new P(this,"inputTransformation");this.fire(u,{content:l,dataTransfer:c,targetRanges:a.targetRanges,method:a.method}),u.stop.called&&s.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(s,a)=>{if(a.content.isEmpty)return;const c=this.editor.data.toModel(a.content,"$clipboardHolder");c.childCount!=0&&(s.stop(),e.change(()=>{this.fire("contentInsertion",{content:c,method:a.method,dataTransfer:a.dataTransfer,targetRanges:a.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(s,a)=>{a.resultRange=r._pasteFragmentWithMarkers(a.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,i=(r,s)=>{const a=s.dataTransfer;s.preventDefault(),this._fireOutputTransformationEvent(a,e.selection,r.name)};this.listenTo(n,"copy",i,{priority:"low"}),this.listenTo(n,"cut",(r,s)=>{t.model.canEditAt(t.model.document.selection)?i(r,s):s.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(r,s)=>{const a=t.data.toView(s.content);n.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:a,method:s.method})},{priority:"low"}),this.listenTo(n,"clipboardOutput",(r,s)=>{s.content.isEmpty||(s.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(s.content)),s.dataTransfer.setData("text/plain",cg(s.content))),s.method=="cut"&&t.model.deleteContent(e.selection)},{priority:"low"})}}class gg{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(n,i)=>{i.isLocal&&i.isUndoable&&i!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("
8227change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class j1 extends Z{constructor(t,e){super(t),this._buffer=new gg(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,i=t.text||"",r=i.length;let s=n.selection;if(t.selection?s=t.selection:t.range&&(s=e.createSelection(t.range)),!e.canEditAt(s))return;const a=t.resultRange;e.enqueueChange(this._buffer.batch,c=>{this._buffer.lock();const l=Array.from(n.selection.getAttributes());e.deleteContent(s),i&&e.insertContent(c.createText(i,l),s),a?c.setSelection(a):s.is("documentSelection")||c.setSelection(s),this._buffer.unlock(),this._buffer.input(r)})}}const mg=["insertText","insertReplacementText"];class F1 extends xe{constructor(t){super(t),this.focusObserver=t.getObserver(yi),y.isAndroid&&mg.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,i)=>{if(!this.isEnabled)return;const{data:r,targetRanges:s,inputType:a,domEvent:c}=i;if(!mg.includes(a))return;this.focusObserver.flush();const l=new P(e,"insertText");e.fire(l,new Pn(t,c,{text:r,selection:t.createSelection(s)})),l.stop.called&&n.stop()}),e.on("compositionend",(n,{data:i,domEvent:r})=>{this.isEnabled&&!y.isAndroid&&i&&e.fire("insertText",new Pn(t,r,{text:i,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class pg extends L{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,i=e.document.selection;n.addObserver(F1);const r=new j1(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",r),t.commands.add("input",r),this.listenTo(n.document,"insertText",(s,a)=>{n.document.isComposing||a.preventDefault();const{text:c,selection:l,resultRange:d}=a,u=Array.from(l.getRanges()).map(m=>t.editing.mapper.toModelRange(m));let h=c;if(y.isAndroid){const m=Array.from(u[0].getItems()).reduce((k,b)=>k+(b.is("$textProxy")?b.data:""),"");m&&(m.length<=h.length?h.startsWith(m)&&(h=h.substring(m.length),u[0].start=u[0].start.getShiftedBy(m.length)):m.startsWith(h)&&(u[0].start=u[0].start.getShiftedBy(h.length),h=""))}const g={text:h,selection:e.createSelection(u)};d&&(g.resultRange=t.editing.mapper.toModelRange(d)),t.execute("insertText",g),n.scrollToTheSelection()}),y.isAndroid?this.listenTo(n.document,"keydown",(s,a)=>{!i.isCollapsed&&a.keyCode==229&&n.document.isComposing&&fg(e,r)}):this.listenTo(n.document,"compositionstart",()=>{i.isCollapsed||fg(e,r)})}}function fg(o,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),o.enqueueChange(e.batch,()=>{o.deleteContent(o.document.selection)}),e.unlock()}class kg extends Z{constructor(t,e){super(t),this.direction=e,this._buffer=new gg(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,i=>{this._buffer.lock();const r=i.createSelection(t.selection||n.selection);if(!e.canEditAt(r))return;const s=t.sequence||1,a=r.isCollapsed;if(r.isCollapsed&&e.modifySelection(r,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(s))return void this._replaceEntireContentWithParagraph(i);if(this._shouldReplaceFirstBlockWithParagraph(r,s))return void this.editor.execute("paragraph",{selection:r});if(r.isCollapsed)return;let c=0;
8227r.getFirstRange().getMinimalFlatRanges().forEach(l=>{c+=Ar(l.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(r,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),i.setSelection(r),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(i))||!e.schema.checkChild(i,"paragraph"))return!1;const r=i.getChild(0);return!r||!r.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n),r=t.createElement("paragraph");t.remove(t.createRangeIn(i)),t.insert(r,i),t.setSelection(r,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||this.direction!="backward"||!t.isCollapsed)return!1;const i=t.getFirstPosition(),r=n.schema.getLimitElement(i),s=r.getChild(0);return i.parent==s&&!!t.containsEntireContent(s)&&!!n.schema.checkChild(r,"paragraph")&&s.name!="paragraph"}}const bg="word",qe="selection",Un="backward",Bo="forward",wg={deleteContent:{unit:qe,direction:Un},deleteContentBackward:{unit:"codePoint",direction:Un},deleteWordBackward:{unit:bg,direction:Un},deleteHardLineBackward:{unit:qe,direction:Un},deleteSoftLineBackward:{unit:qe,direction:Un},deleteContentForward:{unit:"character",direction:Bo},deleteWordForward:{unit:bg,direction:Bo},deleteHardLineForward:{unit:qe,direction:Bo},deleteSoftLineForward:{unit:qe,direction:Bo}};class V1 extends xe{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",()=>{n++}),e.on("keyup",()=>{n=0}),e.on("beforeinput",(i,r)=>{if(!this.isEnabled)return;const{targetRanges:s,domEvent:a,inputType:c}=r,l=wg[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==qe&&(d.selectionToRemove=t.createSelection(s[0])),c==="deleteContentBackward"&&(y.isAndroid&&(d.sequence=1),function(h){if(h.length!=1||h[0].isCollapsed)return!1;const g=h[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let m=0;for(const{nextPosition:k,item:b}of g){if(k.parent.is("$text")){const A=k.parent.data,x=k.offset;if(qr(A,x)||Gr(A,x)||el(A,x))continue;m++}else(b.is("containerElement")||b.is("emptyElement"))&&m++;if(m>1)return!0}return!1}(s)&&(d.unit=qe,d.selectionToRemove=t.createSelection(s)));const u=new Sn(e,"delete",s[0]);e.fire(u,new Pn(t,a,d)),u.stop.called&&i.stop()}),y.isBlink&&function(i){const r=i.view,s=r.document;let a=null,c=!1;function l(u){return u==X.backspace||u==X.delete}function d(u){return u==X.backspace?Un:Bo}s.on("keydown",(u,{keyCode:h})=>{a=h,c=!1}),s.on("keyup",(u,{keyCode:h,domEvent:g})=>{const m=s.selection,k=i.isEnabled&&h==a&&l(h)&&!m.isCollapsed&&!c;if(a=null,k){const b=m.getFirstRange(),A=new Sn(s,"delete",b),x={unit:qe,direction:d(h),selectionToRemove:m};s.fire(A,new Pn(r,g,x))}}),s.on("beforeinput",(u,{inputType:h})=>{const g=wg[h];l(a)&&g&&g.direction==d(a)&&(c=!0)},{priority:"high"}),s.on("beforeinput",(u,{inputType:h,data:g})=>{a==X.delete&&h=="insertText"&&g=="�"&&u.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class Le extends L{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.model.document;e.addObserver(V1),this._undoOnBackspace=!1;const r=new kg(t,"forward");t.commands.add("deleteForward",r),t.commands.add("forwardDelete",r),t.commands.add("delete",new kg(t,"backward")),this.listenTo(n,"delete",(s,a)=>{n.isComposing||a.preventDefault();const{direction:c,sequence:l,selectionToRemove:d,unit:u}=a,h=c==="forward"?"deleteForward":"delete",g={sequence:l};if(u=="selection"){const m=Array.from(d.getRanges()).map(k=>t.editing.mapper.toModelRange(k));g.selection=t.model.createSelection(m)}else g.unit=u;t.execute(h,g),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(s,a)=>{this._undoOnBackspace&&a.direction=="backward"&&a.sequence==1&&a.unit=="codePoint"&&(this._undoOnBackspace=!1,t.execute("undo"),a.preventDefault(),s.stop())},{context:"$capture"}),this.listenTo(i,"change",()=>
8227{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class H1 extends L{static get requires(){return[pg,Le]}static get pluginName(){return"Typing"}}function Ag(o,t){let e=o.start;return{text:Array.from(o.getWalker({ignoreElementEnd:!1})).reduce((n,{item:i})=>i.is("$text")||i.is("$textProxy")?n+i.data:(e=t.createPositionAfter(i),""),""),range:t.createRange(e,o.end)}}class _g extends lt(){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(t,"change:data",(e,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,i=n.document.selection,r=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),{text:s,range:a}=Ag(r,n),c=this.testCallback(s);if(!c&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!c,c){const l=Object.assign(e,{text:s,range:a});typeof c=="object"&&Object.assign(l,c),this.fire(`matched:${t}`,l)}}}class Cg extends L{constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.locale,r=e.document.selection;this.listenTo(n.document,"arrowKey",(s,a)=>{if(!r.isCollapsed||a.shiftKey||a.altKey||a.ctrlKey)return;const c=a.keyCode==X.arrowright,l=a.keyCode==X.arrowleft;if(!c&&!l)return;const d=i.contentLanguageDirection;let u=!1;u=d==="ltr"&&c||d==="rtl"&&l?this._handleForwardMovement(a):this._handleBackwardMovement(a),u===!0&&s.stop()},{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",(s,a)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!a.directChange&&ae(r.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!ze(i,e))&&!!ae(r,e)&&(Po(t),ze(i,e)&&ae(r,e,!0)?No(n,e):this._overrideGravity(),!0)}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(Po(t),this._restoreGravity(),ae(r,e,!0)?No(n,e):Gi(n,e,r),!0):r.isAtStart?!!ze(i,e)&&(Po(t),Gi(n,e,r),!0):!ze(i,e)&&ae(r,e,!0)?(Po(t),Gi(n,e,r),!0):!!vg(r,e)&&(r.isAtEnd&&!ze(i,e)&&ae(r,e)?(Po(t),Gi(n,e,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view.document;t.editing.view.addObserver(Ds);let r=!1;this.listenTo(i,"mousedown",()=>{r=!0}),this.listenTo(i,"selectionChange",()=>{const s=this.attributes;if(!r||(r=!1,!n.isCollapsed)||!ze(n,s))return;const a=n.getFirstPosition();ae(a,s)&&(a.isAtStart||ae(a,s,!0)?No(e,s):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",()=>{const i=e.getFirstPosition();ze(e,n)&&ae(i,n)&&No(t,n)},{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view;let r=!1,s=!1;this.listenTo(i.document,"delete",(a,c)=>{r=c.direction==="backward"},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{if(!r)return;const a=n.getFirstPosition();s=ze(n,this.attributes)&&!vg(a,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{r&&(r=!1,s||t.model.enqueueChange(()=>{const a=n.getFirstPosition();ze(n,this.attributes)&&ae(a,this.attributes)&&(a.isAtStart||ae(a,this.attributes,!0)?No(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}
8227function ze(o,t){for(const e of t)if(o.hasAttribute(e))return!0;return!1}function Gi(o,t,e){const n=e.nodeBefore;o.change(i=>{if(n){const r=[],s=o.schema.isObject(n)&&o.schema.isInline(n);for(const[a,c]of n.getAttributes())!o.schema.checkAttribute("$text",a)||s&&o.schema.getAttributeProperties(a).copyFromObject===!1||r.push([a,c]);i.setSelectionAttribute(r)}else i.removeSelectionAttribute(t)})}function No(o,t){o.change(e=>{e.removeSelectionAttribute(t)})}function Po(o){o.preventDefault()}function vg(o,t){return ae(o.getShiftedBy(-1),t)}function ae(o,t,e=!1){const{nodeBefore:n,nodeAfter:i}=o;for(const r of t){const s=n?n.getAttribute(r):void 0,a=i?i.getAttribute(r):void 0;if((!e||s!==void 0&&a!==void 0)&&a!==s)return!0}return!1}const yg={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"â¢"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"â
",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"â
",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"â¤"},greaterThanOrEqual:{from:">=",to:"â¥"},notEqual:{from:"!=",to:"â "},arrowLeft:{from:"<-",to:"â"},arrowRight:{from:"->",to:"â"},horizontalEllipsis:{from:"...",to:"â¦"},enDash:{from:/(^| )(--)( )$/,to:[null,"â",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"â",null]},quotesPrimary:{from:qn('"'),to:[null,"â",null,"â"]},quotesSecondary:{from:qn("'"),to:[null,"â",null,"â"]},quotesPrimaryEnGb:{from:qn("'"),to:[null,"â",null,"â"]},quotesSecondaryEnGb:{from:qn('"'),to:[null,"â",null,"â"]},quotesPrimaryPl:{from:qn('"'),to:[null,"â",null,"â"]},quotesSecondaryPl:{from:qn("'"),to:[null,"â",null,"â"]}},xg={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},U1=["symbols","mathematical","typography","quotes"];function q1(o){return typeof o=="string"?new RegExp(`(${Dh(o)})$`):o}function G1(o){return typeof o=="string"?()=>[o]:o instanceof Array?()=>o:o}function W1(o){return(o.textNode?o.textNode:o.nodeAfter).getAttributes()}function qn(o){return new RegExp(`(^|\\s)(${o})([^${o}]*)(${o})$`)}function Wi(o,t,e,n){return n.createRange(Eg(o,t,e,!0,n),Eg(o,t,e,!1,n))}function Eg(o,t,e,n,i){let r=o.textNode||(n?o.nodeBefore:o.nodeAfter),s=null;for(;r&&r.getAttribute(t)==e;)s=r,r=n?r.previousSibling:r.nextSibling;return s?i.createPositionAt(s,n?"before":"after"):o}function*Dg(o,t){for(const e of t)e&&o.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class K1 extends Z{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,i=e.schema,r=n.isCollapsed,s=n.getFirstRange(),a=s.start.parent,c=s.end.parent;if(i.isLimit(a)||i.isLimit(c))return r||a!=c||e.deleteContent(n),!1;if(r){const l=Dg(t.model.schema,n.getAttributes());return Ig(t,s.start),t.setSelectionAttribute(l),!0}{const l=!(s.start.isAtStart&&s.end.isAtEnd),d=a==c;if(e.deleteContent(n,{leaveUnmerged:l}),l){if(d)return Ig(t,n.focus),!0;t.setSelection(c,0)}}return!1}}function Ig(o,t){o.split(t),o.setSelection(t.parent.nextSibling,0)}const $1={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Tg extends xe{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",(i,r)=>{n=r.shiftKey}),e.on("beforeinput",(i,r)=>{if(!this.isEnabled)return;let s=r.inputType;y.isSafari&&n&&s=="insertParagraph"&&(s="insertLineBreak");const a=r.domEvent,c=$1[s];if(!c)return;const l=new Sn(e,"enter",r.targetRanges[0]);e.fire(l,new Pn(t,a,{isSoft:c.isSoft})),l.stop.called&&i.stop()})}observe(){}stopObserving(){}}class Ki extends L{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=this.editor.t;e.addObserver(Tg),t.commands.add("enter",new K1(t)),this.listenTo(n,"enter",(r,s)=>{n.isComposing||s.preventDefault(),s.isSoft||(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:i("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class Y1 extends Z{execute(){const t=this.editor.model,e=t.document;t.change(n=>{(function(i,r,s){const a=s.isCollapsed,c=s.getFirstRange(),l=c.start.parent,d=c.end.parent,u=l==d;if(a){const h=Dg(i.schema,s.getAttributes());Mg(i,r,c.end),r.removeSelectionAttribute(s.getAttributeKeys()),r.setSelectionAttribute(h)}else{const h=!(c.start.isAtStart&&c.end.isAtEnd);i.deleteContent(s,{leaveUnmerged:h}),u?Mg(i,r,s.focus):h&&r.setSelection(d,0)}}
8227)(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(n,i){if(i.rangeCount>1)return!1;const r=i.anchor;if(!r||!n.checkChild(r,"softBreak"))return!1;const s=i.getFirstRange(),a=s.start.parent,c=s.end.parent;return!(($s(a,n)||$s(c,n))&&a!==c)}(t.schema,e.selection)}}function Mg(o,t,e){const n=t.createElement("softBreak");o.insertContent(n,e),t.setSelection(n,"after")}function $s(o,t){return!o.is("rootElement")&&(t.isLimit(o)||$s(o.parent,t))}class Q1 extends L{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,r=i.document,s=this.editor.t;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(a,{writer:c})=>c.createEmptyElement("br")}),i.addObserver(Tg),t.commands.add("shiftEnter",new Y1(t)),this.listenTo(r,"enter",(a,c)=>{r.isComposing||c.preventDefault(),c.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())},{priority:"low"}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:s("Insert a soft break (a <code><br></code> element)"),keystroke:"Shift+Enter"}]})}}class Z1 extends rt(){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,i=n[0];this._insertDescriptor(t);const r=n[0];i===r||Ys(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}remove(t,e){const n=this._stack,i=n[0];this._removeDescriptor(t);const r=n[0];i===r||Ys(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(r=>
8227r.id===t.id);if(Ys(t,e[n]))return;n>-1&&e.splice(n,1);let i=0;for(;e[i]&&J1(e[i],t);)i++;e.splice(i,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(i=>i.id===t);n>-1&&e.splice(n,1)}}function Ys(o,t){return o&&t&&o.priority==t.priority&&$i(o.classes)==$i(t.classes)}function J1(o,t){return o.priority>t.priority||!(o.priority<t.priority)&&$i(o.classes)>$i(t.classes)}function $i(o){return Array.isArray(o)?o.sort().join(","):o}const X1='<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>',ty="ck-widget",Sg="ck-widget_selected";function Et(o){return!!o.is("element")&&!!o.getCustomProperty("widget")}function Qs(o,t,e={}){if(!o.is("containerElement"))throw new _("widget-to-widget-wrong-element-type",null,{element:o});return t.setAttribute("contenteditable","false",o),t.addClass(ty,o),t.setCustomProperty("widget",!0,o),o.getFillerOffset=oy,t.setCustomProperty("widgetLabel",[],o),e.label&&function(n,i){n.getCustomProperty("widgetLabel").push(i)}(o,e.label),e.hasSelectionHandle&&function(n,i){const r=i.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(s){const a=this.toDomElement(s),c=new Ne;return c.set("content",X1),c.render(),a.appendChild(c.element),a});i.insert(i.createPositionAt(n,0),r),i.addClass(["ck-widget_with-selection-handle"],n)}(o,t),Bg(o,t),o}function ey(o,t,e){if(t.classes&&e.addClass(gt(t.classes),o),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],o)}function ny(o,t,e){if(t.classes&&e.removeClass(gt(t.classes),o),t.attributes)for(const n in t.attributes)e.removeAttribute(n,o)}function Bg(o,t,e=ey,n=ny){const i=new Z1;i.on("change:top",(r,s)=>{s.oldDescriptor&&n(o,s.oldDescriptor,s.writer),s.newDescriptor&&e(o,s.newDescriptor,s.writer)}),t.setCustomProperty("addHighlight",(r,s,a)=>i.add(s,a),o),t.setCustomProperty("removeHighlight",(r,s,a)=>i.remove(s,a),o)}function Ng(o,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],o),t.setAttribute("role","textbox",o),t.setAttribute("tabindex","-1",o),e.label&&t.setAttribute("aria-label",e.label,o),t.setAttribute("contenteditable",o.isReadOnly?"false":"true",o),o.on("change:isReadOnly",(n,i,r)=>{t.setAttribute("contenteditable",r?"false":"true",o)}),o.on("change:isFocused",(n,i,r)=>{r?t.addClass("ck-editor__nested-editable_focused",o):t.removeClass("ck-editor__nested-editable_focused",o)}),Bg(o,t),o}function Pg(o,t){const e=o.getSelectedElement();if(e){const n=Ge(o);if(n)return t.createRange(t.createPositionAt(e,n))}return t.schema.findOptimalInsertionRange(o)}function oy(){return null}const Re="widget-type-around";function hn(o,t,e){return!!o&&Et(o)&&!e.isInline(t)}function Ge(o){return o.getAttribute(Re)}var Og=R(8508),iy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Og.A,iy),Og.A.locals;const Lg=["before","after"],ry=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,zg="ck-widget__type-around_disabled";class sy extends L{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Ki,Le]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",(n,i,r)=>{e.change(s=>{for(const a of e.document.roots)r?s.removeClass(zg,a):s.addClass(zg,a)}),r||t.model.change(s=>{s.removeSelectionAttribute(Re)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,i=n.editing.view,r=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:r}),i.focus(),i.scrollToTheSelection()}_listenToIfEnabled(t,e,n,i){this.listenTo(t,e,(...r)=>{this.isEnabled&&n(...r)},i)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=Ge(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(r,s,a)=>{const c=a.mapper.toViewElement(s.item);c&&hn(c,s.item,e)&&(function(l,d,u){const h=l.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(g){const m=this.toDomElement(g);return function(k,b){for(const A of Lg){const x=new he({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${A}`],title:b[A],"aria-hidden":"true"},children:[k.ownerDocument.importNode(ry,!0)]});k.appendChild(x.render())}}(m,d),function(k){const b=new he({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});k.appendChild(b.render())}(m),m});l.insert(l.createPositionAt(u,"end"),h)}(a.writer,i,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,i=e.sc
8227hema,r=t.editing.view;function s(a){return`ck-widget_type-around_show-fake-caret_${a}`}this._listenToIfEnabled(r.document,"arrowKey",(a,c)=>{this._handleArrowKeyPress(a,c)},{context:[Et,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(a,c)=>{c.directChange&&t.model.change(l=>{l.removeSelectionAttribute(Re)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const a=n.getSelectedElement();a&&hn(t.editing.mapper.toViewElement(a),a,i)||t.model.change(c=>{c.removeSelectionAttribute(Re)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(a,c,l)=>{const d=l.writer;if(this._currentFakeCaretModelElement){const m=l.mapper.toViewElement(this._currentFakeCaretModelElement);m&&(d.removeClass(Lg.map(s),m),this._currentFakeCaretModelElement=null)}const u=c.selection.getSelectedElement();if(!u)return;const h=l.mapper.toViewElement(u);if(!hn(h,u,i))return;const g=Ge(c.selection);g&&(d.addClass(s(g),h),this._currentFakeCaretModelElement=u)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(a,c,l)=>{l||t.model.change(d=>{d.removeSelectionAttribute(Re)})})}_handleArrowKeyPress(t,e){const n=this.editor,i=n.model,r=i.document.selection,s=i.schema,a=n.editing.view,c=function(u,h){const g=Fr(u,h);return g==="down"||g==="right"}(e.keyCode,n.locale.contentLanguageDirection),l=a.document.selection.getSelectedElement();let d;hn(l,n.editing.mapper.toModelElement(l),s)?d=this._handleArrowKeyPressOnSelectedWidget(c):r.isCollapsed?d=this._handleArrowKeyPressWhenSelectionNextToAWidget(c):e.shiftKey||(d=this._handleArrowKeyPressWhenNonCollapsedSelection(c)),d&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=Ge(e.document.selection);return e.change(i=>n?n!==(t?"after":"before")?(i.removeSelectionAttribute(Re),!0):!1:(i.setSelectionAttribute(Re,t?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,i=n.schema,r=e.plugins.get("Widget"),s=r._getObjectElementNextToSelection(t);return!!hn(e.editing.mapper.toViewElement(s),s,i)&&(n.change(a=>{r._setSelectionOverElement(s),a.setSelectionAttribute(Re,t?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,i=n.schema,r=e.editing.mapper,s=n.document.selection,a=t?s.getLastPosition().nodeBefore:s.getFirstPosition().nodeAfter;return!!hn(r.toViewElement(a),a,i)&&(n.change(c=>{c.setSelection(a,"on"),c.setSelectionAttribute(Re,t?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,i)=>{const r=i.domTarget.closest(".ck-widget__type-around__button");if(!r)return;const s=function(l){return l.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(r),a=function(l,d){const u=l.closest(".ck-widget");return d.mapDomToView(u)}(r,e.domConverter),c=t.editing.mapper.toModelElement(a);this._insertParagraph(c,s),i.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(i,r)=>{if(i.eventPhase!="atTarget")return;const s=e.getSelectedElement(),a=t.editing.mapper.toViewElement(s),c=t.model.schema;let l;this._insertParagraphAccordingToFakeCaretPosition()?l=!0:hn(a,s,c)&&(this._insertParagraph(s,r.isSoft?"before":"after"),l=!0),l&&(r.preventDefault(),i.stop())},{context:Et})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)},{priority:"high"}),y.isAndroid?this._listenToIfEnabled(t,"keydown",(e,n)=>{n.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,i=n.schema;this._listenToIfEnabled(e.document,"delete",(r,s)=>{if(r.eventPhase!="atTarget")return;const a=Ge(n.document.selection);if(!a)return;const c=s.direction,l=n.document.selection.getSelectedElement(),d=c=="forward";if(a==="before"===d)t.execute("delete",{selection:n.createSelection(l,"on")});else{const u=i.getNearestSelectionRange(n.createPositionAt(l,a),c);if(u)if(u.isCollapsed){const h=n.createSelection(u.start);if(n.modifySelection(h,{direction:c}),h.focus.isEqual(u.start)){const g=function(m,k){let b=k;for(const A of k.getAncestors({parentFirst:!0})){if(A.childCount>1||m.isLimit(A))break;b=A}return b}(i,u.start.parent);n.deleteContent(n.createSelection(g,"on"),{doNotAutoparagraph:!0})}else n.change(g=>{g.setSelection(u),t.execute(d?"deleteForward":"delete")})}else n.change(h=>{h.setSelection(u),t.execute(d?"deleteForward":"delete")})}s.preventDefault(),r.stop()},{context:Et})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",(i,[r,s])=>{if(s&&!s.is("documentSelection"))return;const a=Ge(n);return a?(i.stop(),e.change(c=>{const l=n.getSelectedElement(),d=e.createPositionAt(l,a),u=c.createSelection(d),h=e.insertContent(r,u);return c.setSelection(u),h})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",(n,i)=>{const[,r,s={}]=i;
8227if(r&&!r.is("documentSelection"))return;const a=Ge(e);a&&(s.findOptimalPosition=a,i[3]=s)},{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",(n,[i])=>{i&&!i.is("documentSelection")||Ge(e)&&n.stop()},{priority:"high"})}}function ay(o){const t=o.model;return(e,n)=>{const i=n.keyCode==X.arrowup,r=n.keyCode==X.arrowdown,s=n.shiftKey,a=t.document.selection;if(!i&&!r)return;const c=r;if(s&&function(d,u){return!d.isCollapsed&&d.isBackward==u}(a,c))return;const l=function(d,u,h){const g=d.model;if(h){const m=u.isCollapsed?u.focus:u.getLastPosition(),k=Rg(g,m,"forward");if(!k)return null;const b=g.createRange(m,k),A=jg(g.schema,b,"backward");return A?g.createRange(m,A):null}{const m=u.isCollapsed?u.focus:u.getFirstPosition(),k=Rg(g,m,"backward");if(!k)return null;const b=g.createRange(k,m),A=jg(g.schema,b,"forward");return A?g.createRange(A,m):null}}(o,a,c);if(l){if(l.isCollapsed&&(a.isCollapsed||s))return;(l.isCollapsed||function(d,u,h){const g=d.model,m=d.view.domConverter;if(h){const M=g.createSelection(u.start);g.modifySelection(M),M.focus.isAtEnd||u.start.isEqual(M.focus)||(u=g.createRange(M.focus,u.end))}const k=d.mapper.toViewRange(u),b=m.viewRangeToDom(k),A=J.getDomRangeRects(b);let x;for(const M of A)if(x!==void 0){if(Math.round(M.top)>=x)return!1;x=Math.max(x,Math.round(M.bottom))}else x=Math.round(M.bottom);return!0}(o,l,c))&&(t.change(d=>{const u=c?l.end:l.start;if(s){const h=t.createSelection(a.anchor);h.setFocus(u),d.setSelection(h)}else d.setSelection(u)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}function Rg(o,t,e){const n=o.schema,i=o.createRangeIn(t.root),r=e=="forward"?"elementStart":"elementEnd";for(const{previousPosition:s,item:a,type:c}of i.getWalker({startPosition:t,direction:e})){if(n.isLimit(a)&&!n.isInline(a))return s;if(c==r&&n.isBlock(a))return null}return null}function jg(o,t,e){const n=e=="backward"?t.end:t.start;if(o.checkChild(n,"$text"))return n;for(const{nextPosition:i}of t.getWalker({direction:e}))if(o.checkChild(i,"$text"))return i;return null}var Fg=R(695),cy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Fg.A,cy),Fg.A.locals;class Oo extends L{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[sy,Le]}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.t;this.editor.editing.downcastDispatcher.on("selection",(r,s,a)=>{const c=a.writer,l=s.selection;if(l.isCollapsed)return;const d=l.getSelectedElement();if(!d)return;const u=t.editing.mapper.toViewElement(d);var h;Et(u)&&a.consumable.consume(l,"selection")&&c.setSelection(c.createRangeOn(u),{fake:!0,label:(h=u,h.getCustomProperty("widgetLabel").reduce((g,m)=>typeof m=="function"?g?g+". "+m():m():g?g+". "+m:m,""))})}),this.editor.editing.downcastDispatcher.on("selection",(r,s,a)=>{this._clearPreviouslySelectedWidgets(a.writer);const c=a.writer,l=c.document.selection;let d=null;for(const u of l.getRanges())for(const h of u){const g=h.item;Et(g)&&!ly(g,d)&&(c.addClass(Sg,g),this._previouslySelected.add(g),d=g)}},{priority:"low"}),e.addObserver(Ds),this.listenTo(n,"mousedown",(...r)=>this._onMousedown(...r)),this.listenTo(n,"arrowKey",(...r)=>{this._handleSelectionChangeOnArrowKeyPress(...r)},{context:[Et,"$text"]}),this.listenTo(n,"arrowKey",(...r)=>{this._preventDefaultOnArrowKeyPress(...r)},{context:"$root"}),this.listenTo(n,"arrowKey",ay(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(r,s)=>{this._handleDelete(s.direction=="forward")&&(s.preventDefault(),r.stop())},{context:"$root"}),this.listenTo(n,"tab",(r,s)=>{r.eventPhase=="atTarget"&&(s.shiftKey||this._selectFirstNestedEditable()&&(s.preventDefault(),r.stop()))},{context:Et,priority:"low"}),this.listenTo(n,"tab",(r,s)=>{s.shiftKey&&this._selectAncestorWidget()&&(s.preventDefault(),r.stop())},{priority:"low"}),this.listenTo(n,"keydown",(r,s)=>{s.keystroke==X.esc&&this._selectAncestorWidget()&&(s.preventDefault(),r.stop())},{priority:"low"}),t.accessibility.addKeystrokeInfoGroup({id:"widget",label:i("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{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(t,e){const n=this.editor,i=n.editing.view,r=i.document;let s=e.target;if(e.domEvent.detail>=3)return void(this._selectBlockContent(s)&&e.preventDefault());if(function(c){let l=c;for(;l;){if(l.is("editableElement")&&!l.is("rootElement"))return!0;
8227if(Et(l))return!1;l=l.parent}return!1}(s)||!Et(s)&&(s=s.findAncestor(Et),!s))return;y.isAndroid&&e.preventDefault(),r.isFocused||i.focus();const a=n.editing.mapper.toModelElement(s);this._setSelectionOverElement(a)}_selectBlockContent(t){const e=this.editor,n=e.model,i=e.editing.mapper,r=n.schema,s=i.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),a=function(c,l){for(const d of c.getAncestors({includeSelf:!0,parentFirst:!0})){if(l.checkChild(d,"$text"))return d;if(l.isLimit(d)&&!l.isObject(d))break}return null}(i.toModelElement(s),n.schema);return!!a&&(n.change(c=>{const l=r.isLimit(a)?null:function(h,g){const m=new Te({startPosition:h});for(const{item:k}of m){if(g.isLimit(k)||!k.is("element"))return null;if(g.checkChild(k,"$text"))return k}return null}(c.createPositionAfter(a),r),d=c.createPositionAt(a,0),u=l?c.createPositionAt(l,0):c.createPositionAt(a,"end");c.setSelection(c.createRange(d,u))}),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,i=this.editor.model,r=i.schema,s=i.document.selection,a=s.getSelectedElement(),c=Fr(n,this.editor.locale.contentLanguageDirection),l=c=="down"||c=="right",d=c=="up"||c=="down";if(a&&r.isObject(a)){const h=l?s.getLastPosition():s.getFirstPosition(),g=r.getNearestSelectionRange(h,l?"forward":"backward");return void(g&&(i.change(m=>{m.setSelection(g)}),e.preventDefault(),t.stop()))}if(!s.isCollapsed&&!e.shiftKey){const h=s.getFirstPosition(),g=s.getLastPosition(),m=h.nodeAfter,k=g.nodeBefore;return void((m&&r.isObject(m)||k&&r.isObject(k))&&(i.change(b=>{b.setSelection(l?g:h)}),e.preventDefault(),t.stop()))}if(!s.isCollapsed)return;const u=this._getObjectElementNextToSelection(l);if(u&&r.isObject(u)){if(r.isInline(u)&&d)return;this._setSelectionOverElement(u),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e)||!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(i=>{let r=e.anchor.parent;for(;r.isEmpty;){const s=r;r=s.parent,i.remove(s)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,i=e.document.selection,r=e.createSelection(i);if(e.modifySelection(r,{direction:t?"forward":"backward"}),r.isEqual(i))return null;const s=t?r.focus.nodeBefore:r.focus.nodeAfter;return s&&n.isObject(s)?s:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Sg,e);this._previouslySelected.clear()}_selectFirstNestedEditable(){const t=this.editor,e=this.editor.editing.view.document;for(const n of e.selection.getFirstRange().getItems())if(n.is("editableElement")){const i=t.editing.mapper.toModelElement(n);if(!i)continue;const r=t.model.createPositionAt(i,0),s=t.model.schema.getNearestSelectionRange(r,"forward");return t.model.change(a=>{a.setSelection(s)}),!0}return!1}_selectAncestorWidget(){const t=this.editor,e=t.editing.mapper,n=t.editing.view.document.selection.getFirstPosition().parent,i=(n.is("$text")?n.parent:n).findAncestor(Et);if(!i)return!1;const r=e.toModelElement(i);return!!r&&(t.model.change(s=>{s.setSelection(r,"on")}),!0)}}function ly(o,t){return!!t&&Array.from(o.getAncestors()).includes(t)}class Yi extends L{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Vi]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{(function(i){const r=i.getSelectedElement();return!(!r||!Et(r))})(t.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:i,balloonClassName:r="ck-toolbar-container"}){if(!n.length)return void U("widget-toolbar-no-items",{toolbarId:t});const s=this.editor,a=s.t,c=new Ns(s.locale);if(c.ariaLabel=e||a("Widget toolbar"),this._toolbarDefinitions.has(t))throw new _("widget-toolbar-duplicated",this,{toolbarId:t});const l={view:c,getRelatedElement:i,balloonClassName:r,itemsConfig:n,initialized:!1};s.ui.addToolbar(c,{isContextual:!0,beforeFocus:()=>{const d=i(s.editing.view.document.selection);d&&this._showToolbar(l,d)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(t,l)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const i of this._toolbarDefinitions.values()){const r=i.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&r)if(this.editor.ui.focusTracker.isFocused){const s=r.getAncestors().length;s>t&&(t=s,e=r,n=i)}else this._isToolbarVisible(i)&&this._hideToolbar(i);else this._isToolbarInBalloon(i)&&this._hideToolbar(i)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Vg(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)
8227),this._balloon.add({view:t.view,position:Hg(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const i=n.getRelatedElement(this.editor.editing.view.document.selection);Vg(this.editor,i)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Vg(o,t){const e=o.plugins.get("ContextualBalloon"),n=Hg(o,t);e.updatePosition(n)}function Hg(o,t){const e=o.editing.view,n=Ft.defaultPositions;return{target:e.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}var Ug=R(4095),dy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ug.A,dy),Ug.A.locals;const Zs=Dn("px");class uy extends G{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>Zs(e)),top:t.to("top",e=>Zs(e)),width:t.to("width",e=>Zs(e))}}})}}class Qi extends L{constructor(){super(...arguments),this.removeDropMarkerDelayed=Ur(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=ji(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=ji(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new uy,this._domEmitter=new(ne()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,i,r,s){this.removeDropMarkerDelayed.cancel();const a=qg(this.editor,t,e,n,i,r,s);if(a)return s&&s.containsRange(a)?this.removeDropMarker():void this._updateDropMarkerThrottled(a)}getFinalDropRange(t,e,n,i,r,s){const a=qg(this.editor,t,e,n,i,r,s);return this.removeDropMarker(),a}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change(i=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||i.updateMarker("drop-target",{range:t}):i.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const n=this.toDomElement(e);return n.append("â ",e.createElement("span"),"â "),n})}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,i=t.start.nodeAfter,r=t.start.parent,s=n?e.mapper.toViewElement(n):null,a=s?e.view.domConverter.mapViewToDom(s):null,c=i?e.mapper.toViewElement(i):null,l=c?e.view.domConverter.mapViewToDom(c):null,d=e.mapper.toViewElement(r);if(!d)return;const u=e.view.domConverter.mapViewToDom(d),h=this._getScrollableRect(d),{scrollX:g,scrollY:m}=v.window,k=a?new J(a):null,b=l?new J(l):null,A=new J(u).excludeScrollbarsAndBorders(),x=k?k.bottom:A.top,M=b?b.top:A.bottom,N=v.window.getComputedStyle(u),H=x<=M?(x+M)/2:M;if(h.top<H&&H<h.bottom){const W=A.left+parseFloat(N.paddingLeft),Y=A.right-parseFloat(N.paddingRight),mt=Math.max(W+g,h.left),Mt=Math.min(Y+g,h.right);this._dropTargetLineView.set({isVisible:!0,left:mt,top:H+m,width:Mt-mt})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(t){const e=t.root.rootName;let n;if(this._scrollables.has(e))n=this._scrollables.get(e).domElement;else{n=function(r){let s=r;do{s=s.parentElement;const a=v.window.getComputedStyle(s).overflowY;if(a=="auto"||a=="scroll")break}while(s.tagName!="BODY");return s}(this.editor.editing.view.domConverter.mapViewToDom(t)),this._domEmitter.listenTo(n,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const i=new ao(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:i})}
8227return new J(n).excludeScrollbarsAndBorders()}}function qg(o,t,e,n,i,r,s){const a=o.model,c=o.editing.mapper;let l=Wg(o,t);for(;l;){if(!r){if(a.schema.checkChild(l,"$text")){if(e){const d=e[0].start,u=c.toModelPosition(d);if(!s||Array.from(s.getItems()).every(h=>a.schema.checkChild(u,h))){if(a.schema.checkChild(u,"$text"))return a.createRange(u);if(d)return Zi(o,Wg(o,d.parent),n,i)}}}else if(a.schema.isInline(l))return Zi(o,l,n,i)}if(a.schema.isBlock(l))return Zi(o,l,n,i);if(a.schema.checkChild(l,"$block")){const d=Array.from(l.getChildren()).filter(g=>g.is("element")&&!hy(o,g));let u=0,h=d.length;if(h==0)return a.createRange(a.createPositionAt(l,"end"));for(;u<h-1;){const g=Math.floor((u+h)/2);Gg(o,d[g],n,i)=="before"?h=g:u=g}return Zi(o,d[u],n,i)}l=l.parent}return null}function hy(o,t){const e=o.editing.mapper,n=o.editing.view.domConverter,i=e.toViewElement(t);if(!i)return!0;const r=n.mapViewToDom(i);return v.window.getComputedStyle(r).float!="none"}function Zi(o,t,e,n){const i=o.model;return i.createRange(i.createPositionAt(t,Gg(o,t,e,n)))}function Gg(o,t,e,n){const i=o.editing.mapper,r=o.editing.view.domConverter,s=i.toViewElement(t),a=r.mapViewToDom(s),c=new J(a);return o.model.schema.isInline(t)?e<(c.left+c.right)/2?"before":"after":n<(c.top+c.bottom)/2?"before":"after"}function Wg(o,t){const e=o.editing.mapper,n=o.editing.view,i=e.toModelElement(t);if(i)return i;const r=n.createPositionBefore(t),s=e.findMappedViewAncestor(r);return e.toModelElement(s)}var gy=Object.defineProperty,my=Object.defineProperties,py=Object.getOwnPropertyDescriptors,Kg=Object.getOwnPropertySymbols,fy=Object.prototype.hasOwnProperty,ky=Object.prototype.propertyIsEnumerable,$g=(o,t,e)=>t in o?gy(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class by extends L{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(ne())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,i)=>{i?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),y.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",(n,i)=>this._handleBlockDragStart(i)),this._domEmitter.listenTo(v.document,"dragover",(n,i)=>this._handleBlockDragging(i)),this._domEmitter.listenTo(v.document,"drop",(n,i)=>this._handleBlockDragging(i)),this._domEmitter.listenTo(v.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",(n,i,r)=>{e.setAttribute("draggable",r?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,n=e.document.selection,i=this.editor.editing.view,r=Array.from(n.getSelectedBlocks()),s=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));e.change(a=>a.setSelection(s)),this._isBlockDragging=!0,i.focus(),i.getObserver(Mo).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+(this.editor.locale.contentLanguageDirection=="ltr"?100:-100),n=t.clientY,i=document.elementFromPoint(e,n),r=this.editor.editing.view;var s,a;i&&i.closest(".ck-editor__editable")&&r.getObserver(Mo).onDomEvent((s=((c,l)=>{for(var d in l||(l={}))fy.call(l,d)&&$g(c,d,l[d]);if(Kg)for(var d of Kg(l))ky.call(l,d)&&$g(c,d,l[d]);return c})({},t),a={type:t.type,dataTransfer:t.dataTransfer,target:i,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()},my(s,py(a))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var Yg=R(7793),wy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Yg.A,wy),Yg.A.locals;class Ay extends L{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Ur(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(ne())}static get pluginName(){return"DragDrop"}static get requires(){return[se,Oo,Qi,by]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Mo),e.addObserver(Ds),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(n,i,r)=>
8227{r?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,i,r)=>{r||this._finalizeDragging(!1)}),y.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=t.plugins.get(Qi);this.listenTo(i,"dragstart",(s,a)=>{if(a.target&&a.target.is("editableElement")||(this._prepareDraggedRange(a.target),!this._draggedRange))return void a.preventDefault();this._draggingUid=V(),a.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(a.dataTransfer,c,"dragstart");const{dataTransfer:l,domTarget:d,domEvent:u}=a,{clientX:h}=u;this._updatePreview({dataTransfer:l,domTarget:d,clientX:h}),a.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(i,"dragend",(s,a)=>{this._finalizeDragging(!a.dataTransfer.isCanceled&&a.dataTransfer.dropEffect=="move")},{priority:"low"}),this._domEmitter.listenTo(v.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",(s,a)=>{if(!this.isEnabled)return void(a.dataTransfer.dropEffect="none");const{clientX:c,clientY:l}=a.domEvent;r.updateDropMarker(a.target,a.targetRanges,c,l,this._blockMode,this._draggedRange),this._draggedRange||(a.dataTransfer.dropEffect="copy"),y.isGecko||(a.dataTransfer.effectAllowed=="copy"?a.dataTransfer.dropEffect="copy":["all","copyMove"].includes(a.dataTransfer.effectAllowed)&&(a.dataTransfer.dropEffect="move")),s.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(Qi);this.listenTo(e,"clipboardInput",(i,r)=>{if(r.method!="drop")return;const{clientX:s,clientY:a}=r.domEvent,c=n.getFinalDropRange(r.target,r.targetRanges,s,a,this._blockMode,this._draggedRange);if(!c)return this._finalizeDragging(!1),void i.stop();if(this._draggedRange&&this._draggingUid!=r.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),Qg(r.dataTransfer)=="move"&&this._draggedRange&&this._draggedRange.containsRange(c,!0))return this._finalizeDragging(!1),void i.stop();r.targetRanges=[t.editing.mapper.toViewRange(c)]},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(se);t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||n.method!=="drop")return;const i=n.targetRanges.map(r=>this.editor.editing.mapper.toModelRange(r));this.editor.model.change(r=>r.setSelection(i))},{priority:"high"}),t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||n.method!=="drop")return;const i=Qg(n.dataTransfer)=="move",r=!n.resultRange||!n.resultRange.isCollapsed;this._finalizeDragging(r&&i)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",(i,r)=>{if(y.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let s=Zg(r.target);if(y.isBlink&&!t.isReadOnly&&!s&&!n.selection.isCollapsed){const a=n.selection.getSelectedElement();a&&Et(a)||(s=n.selection.editableElement)}s&&(e.change(a=>{a.setAttribute("draggable","true",s)}),this._draggableElement=t.editing.mapper.toModelElement(s))}),this.listenTo(n,"mouseup",()=>{y.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change(e=>{this._draggableElement&&this._draggableElement.root.rootName!="$graveyard"&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(t){const e=this.editor,n=e.model;e.plugins.get(Qi).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change(i=>{const r=n.createSelection(this._draggedRange);n.deleteContent(r,{doNotAutoparagraph:!0});const s=r.getFirstPosition().parent;s.isEmpty&&!n.schema.checkChild(s,"$text")&&n.schema.checkChild(s,"paragraph")&&i.insertElement("paragraph",s,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,i=n.document.selection,r=t?Zg(t):null;if(r){const l=e.editing.mapper.toModelElement(r);this._draggedRange=Zt.fromRange(n.createRangeOn(l)),this._blockMode=n.schema.isBlock(l),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;const s=Array.from(i.getSelectedBlocks()),a=i.getFirstRange();if(s.length==0)return void(this._draggedRange=Zt.fromRange(a));const c=Jg(n,s);if(s.length>1)this._draggedRange=Zt.fromRange(c),this._blockMode=!0;else if(s.length==1){const l=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=Zt.fromRange(l?c:a),this._blockMode=l}n.change(l=>l.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const i=this.editor.editing.view,r=i.document.selection.editableElement,s=i.domConverter.mapViewToDom(r),a=v.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=ee(v.document,"div",{style:"position: fixed; left: -999999px;"}),v.document.body.appendChild(this._previewContainer));const c=new J(s);if(s.contains(e))return;const l=parseFloat(a.paddingLeft),d=ee(v.document,"div");
8227d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-n+l}px`,y.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=t.getData("text/html"),t.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function Qg(o){return y.isGecko?o.dropEffect:["all","copyMove"].includes(o.effectAllowed)?"move":"copy"}function Zg(o){if(o.is("editableElement"))return null;if(o.hasClass("ck-widget__selection-handle"))return o.findAncestor(Et);if(Et(o))return o;const t=o.findAncestor(e=>Et(e)||e.is("editableElement"));return Et(t)?t:null}function Jg(o,t){const e=t[0],n=t[t.length-1],i=e.getCommonAncestor(n),r=o.createPositionBefore(e),s=o.createPositionAfter(n);if(i&&i.is("element")&&!o.schema.isLimit(i)){const a=o.createRangeOn(i),c=r.isTouching(a.start),l=s.isTouching(a.end);if(c&&l)return Jg(o,[i])}return o.createRange(r,s)}class _y extends L{static get pluginName(){return"PastePlainText"}static get requires(){return[se]}init(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=e.document.selection;let s=!1;n.addObserver(Mo),this.listenTo(i,"keydown",(a,c)=>{s=c.shiftKey}),t.plugins.get(se).on("contentInsertion",(a,c)=>{(s||function(l,d){if(l.childCount>1)return!1;const u=l.getChild(0);return d.isObject(u)?!1:Array.from(u.getAttributeKeys()).length==0}(c.content,e.schema))&&e.change(l=>{const d=Array.from(r.getAttributes()).filter(([h])=>e.schema.getAttributeProperties(h).isFormatting);r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0}),d.push(...r.getAttributes());const u=l.createRangeIn(c.content);for(const h of u.getItems())h.is("$textProxy")&&l.setAttributes(d,h)})})}}class Xg extends L{static get pluginName(){return"Clipboard"}static get requires(){return[So,se,Ay,_y]}init(){const t=this.editor,e=this.editor.t;t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Copy selected content"),keystroke:"CTRL+C"},{label:e("Paste content"),keystroke:"CTRL+V"},{label:e("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}class Cy extends Z{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!tm(t.schema,n))do if(n=n.parent,!n)return;while(!tm(t.schema,n));t.change(i=>{i.setSelection(n,"in")})}}function tm(o,t){return o.isLimit(t)&&(o.checkChild(t,"$text")||o.checkChild(t,"paragraph"))}const vy=uo("Ctrl+A");class yy extends L{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.t,n=t.editing.view.document;t.commands.add("selectAll",new Cy(t)),this.listenTo(n,"keydown",(i,r)=>{In(r)===vy&&(t.execute("selectAll"),r.preventDefault())}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Select all"),keystroke:"CTRL+A"}]})}}class xy extends L{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",()=>{const e=this._createButton(ot);return e.set({tooltip:!0}),e}),t.ui.componentFactory.add("menuBar:selectAll",()=>this._createButton(Xt))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("selectAll"),r=new t(e.locale),s=n.t;return r.set({label:s("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"}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",()=>{e.execute("selectAll"),e.editing.view.focus()}),r}}class Ey extends L{static get requires(){return[yy,xy]}static get pluginName(){return"SelectAll"}}var Dy=Object.defineProperty,em=Object.getOwnPropertySymbols,Iy=Object.prototype.hasOwnProperty,Ty=Object.prototype.propertyIsEnumerable,nm=(o,t,e)=>t in o?Dy(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class om extends Z{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,n)=>{n[1]=((r,s)=>{for(var a in s||(s={}))Iy.call(s,a)&&nm(r,a,s[a]);if(em)for(var a of em(s))Ty.call(s,a)&&nm(r,a,s[a]);return r})({},n[1]);const i=n[1];i.batchType||(i.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const i=this.editor.model,r=i.document,s=[],a=t.map(l=>l.getTransformedByOperations(n)),c=a.flat();for(const l of a){const d=l.filter(u=>u.root!=r.graveyard).filter(u=>!Sy(u,c));d.length&&(My(d),s.push(d[0]))}s.length&&i.change(l=>{l.setSelection(s,{backward:e})})}_undo(t,e){const n=this.editor.model,i=n.document;this._createdBatches.add(e);const r=t.operations.slice().filter(s=>s.isDocumentOperation);r.reverse();for(const s of r){const a=s.baseVersion+1,c=Array.from(i.history.getOperations(a)),l=d_([s.getReversed()],c,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let d of l){const u=d.affectedSelectable;u&&!n.canEditAt(u)&&(d=new It(d.baseVersion)),e.addOperation(d),n.applyOperation(d),i.history.setOperationAsUndone(s,d)}}}}function My(o){o.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<o.length;t++){const e=o[t-1].getJoined(o[t],!0);e&&(t--,o.splice(t,2,e))}}function Sy(o,t){return t.some(e=>e!==o&&e.containsRange(o,!0))}class By extends om{execute(t=null){const e=t?this._stack.findIndex(r=>r.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],i=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(i,()=>
8227{this._undo(n.batch,i);const r=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,r)}),this.fire("revert",n.batch,i),this.refresh()}}class Ny extends om{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.refresh()}}class Py extends L{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor,e=t.t;this._undoCommand=new By(t),this._redoCommand=new Ny(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(n,i)=>{const r=i[0];if(!r.isDocumentOperation)return;const s=r.batch,a=this._redoCommand.createdBatches.has(s),c=this._undoCommand.createdBatches.has(s);this._batchRegistry.has(s)||(this._batchRegistry.add(s),s.isUndoable&&(a?this._undoCommand.addBatch(s):c||(this._undoCommand.addBatch(s),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(n,i,r)=>{this._redoCommand.addBatch(r)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class Oy extends L{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?$.undo:$.redo,r=e.uiLanguageDirection=="ltr"?$.redo:$.undo;this._addButtonsToFactory("undo",n("Undo"),"CTRL+Z",i),this._addButtonsToFactory("redo",n("Redo"),"CTRL+Y",r)}_addButtonsToFactory(t,e,n,i){const r=this.editor;r.ui.componentFactory.add(t,()=>{const s=this._createButton(ot,t,e,n,i);return s.set({tooltip:!0}),s}),r.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(Xt,t,e,n,i))}_createButton(t,e,n,i,r){const s=this.editor,a=s.locale,c=s.commands.get(e),l=new t(a);return l.set({label:n,icon:r,keystroke:i}),l.bind("isEnabled").to(c,"isEnabled"),this.listenTo(l,"execute",()=>{s.execute(e),s.editing.view.focus()}),l}}class im extends L{static get requires(){return[Py,Oy]}static get pluginName(){return"Undo"}}class Ly extends lt(){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise((n,i)=>{e.onload=()=>{const r=e.result;this._data=r,n(r)},e.onerror=()=>{i("error")},e.onabort=()=>{i("aborted")},this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}class be extends L{constructor(){super(...arguments),this.loaders=new ue,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[wu]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return U("filerepository-no-upload-adapter"),null;const e=new rm(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(n=>{this._loadersMap.set(n,e)}).catch(()=>{}),e.on("change:uploaded",()=>{let n=0;for(const i of this.loaders)n+=i.uploaded;this.uploaded=n}),e.on("change:uploadTotal",()=>{let n=0;for(const i of this.loaders)i.uploadTotal&&(n+=i.uploadTotal);this.uploadTotal=n}),e}destroyLoader(t){const e=t instanceof rm?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((n,i)=>{n===e&&this._loadersMap.delete(i)})}_updatePendingAction(){const t=this.editor.plugins.get(wu);
8227if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=i=>`${e("Upload in progress")} ${parseInt(i)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class rm extends lt(){constructor(t,e){super(),this.id=V(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new Ly,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,i)=>i?n/i*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new _("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(t=>this._reader.read(t)).then(t=>{if(this.status!=="reading")throw this.status;return this.status="idle",t}).catch(t=>{throw t==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:t)})}upload(){if(this.status!="idle")throw new _("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw this.status==="aborted"?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?t=="reading"?this._reader.abort():t=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,i)=>{e.rejecter=i,e.isFulfilled=!1,t.then(r=>{e.isFulfilled=!0,n(r)}).catch(r=>{e.isFulfilled=!0,i(r)})}),e}}const sm="ckCsrfToken",am="abcdefghijklmnopqrstuvwxyz0123456789";function zy(){let o=function(n){n=n.toLowerCase();const i=document.cookie.split(";");for(const r of i){const s=r.split("=");if(decodeURIComponent(s[0].trim().toLowerCase())===n)return decodeURIComponent(s[1])}return null}(sm);var t,e;return o&&o.length==40||(o=function(n){let i="";const r=new Uint8Array(n);window.crypto.getRandomValues(r);for(let s=0;s<r.length;s++){const a=am.charAt(r[s]%am.length);i+=Math.random()>.5?a.toUpperCase():a}return i}(40),t=sm,e=o,document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"),o}class Ry{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then(t=>new Promise((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const i=this.xhr,r=this.loader,s=(0,this.t)("Cannot upload file:")+` ${n.name}.`;i.addEventListener("error",()=>e(s)),i.addEventListener("abort",()=>e()),i.addEventListener("load",()=>{const a=i.response;if(!a||!a.uploaded)return e(a&&a.error&&a.error.message?a.error.message:s);t({default:a.url})}),i.upload&&i.upload.addEventListener("progress",a=>{a.lengthComputable&&(r.uploadTotal=a.total,r.uploaded=a.loaded)})}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",zy()),this.xhr.send(e)}}function We(o,t,e,n){let i,r=null;typeof n=="function"?i=n:(r=o.commands.get(n),i=()=>{o.execute(n)}),o.model.document.on("change:data",(s,a)=>{if(r&&!r.isEnabled||!t.isEnabled)return;const c=St(o.model.document.selection.getRanges());if(!c.isCollapsed||a.isUndo||!a.isLocal)return;const l=Array.from(o.model.document.differ.getChanges()),d=l[0];if(l.length!=1||d.type!=="insert"||d.name!="$text"||d.length!=1)return;const u=d.position.parent;if(u.is("element","codeBlock")||u.is("element","listItem")&&typeof n!="function"&&!["numberedList","bulletedList","todoList"].includes(n)||r&&r.value===!0)return;const h=u.getChild(0),g=o.model.createRangeOn(h);if(!g.containsRange(c)&&!c.end.isEqual(g.end))return;const m=e.exec(h.data.substr(0,c.end.offset));m&&o.model.enqueueChange(k=>{const b=k.createPositionAt(u,0),A=k.createPositionAt(u,m[0].length),x=new Zt(b,A);if(i({match:m})!==!1){k.remove(x);const M=o.model.document.selection.getFirstRange(),N=k.createRangeIn(u);!u.isEmpty||N.isEqual(M)||N.containsRange(M,!0)||k.remove(u)}x.detach(),o.model.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})})})}function Gn(o,t,e,n){let i,r;e instanceof RegExp?i=e:r=e,r=r||(s=>{let a;const c=[],l=[];for(;(a=i.exec(s))!==null&&!(a&&a.length<4);){let{index:d,1:u,2:h,3:g}=a;const m=u+h+g;d+=a[0].length-m.length;const k=[d,d+u.length],b=[d+u.length+h.length,d+u.length+h.length+g.length];c.push(k),c.push(b),l.push([d+u.length,d+u.length+h.length])}return{remove:c,format:l}}),o.model.document.on("change:data",(s,a)=>
8227{if(a.isUndo||!a.isLocal||!t.isEnabled)return;const c=o.model,l=c.document.selection;if(!l.isCollapsed)return;const d=Array.from(c.document.differ.getChanges()),u=d[0];if(d.length!=1||u.type!=="insert"||u.name!="$text"||u.length!=1)return;const h=l.focus,g=h.parent,{text:m,range:k}=function(M,N){let H=M.start;return{text:Array.from(M.getItems()).reduce((Y,mt)=>!mt.is("$text")&&!mt.is("$textProxy")||mt.getAttribute("code")?(H=N.createPositionAfter(mt),""):Y+mt.data,""),range:N.createRange(H,M.end)}}(c.createRange(c.createPositionAt(g,0),h),c),b=r(m),A=cm(k.start,b.format,c),x=cm(k.start,b.remove,c);A.length&&x.length&&c.enqueueChange(M=>{if(n(M,A)!==!1){for(const N of x.reverse())M.remove(N);c.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})}})})}function cm(o,t,e){return t.filter(n=>n[0]!==void 0&&n[1]!==void 0).map(n=>e.createRange(o.getShiftedBy(n[0]),o.getShiftedBy(n[1])))}function Ji(o,t){return(e,n)=>{if(!o.commands.get(t).isEnabled)return!1;const i=o.model.schema.getValidRanges(n,t);for(const r of i)e.setAttribute(t,!0,r);e.removeSelectionAttribute(t)}}class lm extends Z{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,i=t.forceValue===void 0?!this.value:t.forceValue;e.change(r=>{if(n.isCollapsed)i?r.setSelectionAttribute(this.attributeKey,!0):r.removeSelectionAttribute(this.attributeKey);else{const s=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const a of s)i?r.setAttribute(this.attributeKey,i,a):r.removeAttribute(this.attributeKey,a)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const i of n.getRanges())for(const r of i.getItems())if(e.checkAttribute(r,this.attributeKey))return r.hasAttribute(this.attributeKey);return!1}}const Wn="bold";class jy extends L{static get pluginName(){return"BoldEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Wn}),t.model.schema.setAttributeProperties(Wn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Wn,view:"strong",upcastAlso:["b",n=>{const i=n.getStyle("font-weight");return i&&(i=="bold"||Number(i)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Wn,new lm(t,Wn)),t.keystrokes.set("CTRL+B",Wn),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function dm({editor:o,commandName:t,plugin:e,icon:n,label:i,keystroke:r}){return s=>{const a=o.commands.get(t),c=new s(o.locale);return c.set({label:i,icon:n,keystroke:r,isToggleable:!0}),c.bind("isEnabled").to(a,"isEnabled"),e.listenTo(c,"execute",()=>{o.execute(t),o.editing.view.focus()}),c}}const Xi="bold";class Fy extends L{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.locale.t,n=t.commands.get(Xi),i=dm({editor:t,commandName:Xi,plugin:this,icon:$.bold,label:e("Bold"),keystroke:"CTRL+B"});
8227t.ui.componentFactory.add(Xi,()=>{const r=i(ot);return r.set({tooltip:!0}),r.bind("isOn").to(n,"value"),r}),t.ui.componentFactory.add("menuBar:"+Xi,()=>i(Xt))}}var um=R(4199),Vy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(um.A,Vy),um.A.locals;const Kn="italic";class Hy extends L{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Kn}),t.model.schema.setAttributeProperties(Kn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Kn,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Kn,new lm(t,Kn)),t.keystrokes.set("CTRL+I",Kn),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const tr="italic";class Uy extends L{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.commands.get(tr),n=t.locale.t,i=dm({editor:t,commandName:tr,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",label:n("Italic")});t.ui.componentFactory.add(tr,()=>{const r=i(ot);return r.set({tooltip:!0}),r.bind("isOn").to(e,"value"),r}),t.ui.componentFactory.add("menuBar:"+tr,()=>i(Xt))}}class qy extends Z{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,i=e.document.selection,r=Array.from(i.getSelectedBlocks()),s=t.forceValue===void 0?!this.value:t.forceValue;e.change(a=>{if(s){const c=r.filter(l=>er(l)||gm(n,l));this._applyQuote(a,c)}else this._removeQuote(a,r.filter(er))})}_getValue(){const t=St(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!er(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=St(t.getSelectedBlocks());return!!n&&gm(e,n)}_removeQuote(t,e){hm(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void t.unwrap(n.start.parent);if(n.start.isAtStart){const r=t.createPositionBefore(n.start.parent);return void t.move(n,r)}n.end.isAtEnd||t.split(n.end);const i=t.createPositionAfter(n.end.parent);t.move(n,i)})}_applyQuote(t,e){const n=[];hm(t,e).reverse().forEach(i=>{let r=er(i.start);r||(r=t.createElement("blockQuote"),t.wrap(i,r)),n.push(r)}),n.reverse().reduce((i,r)=>i.nextSibling==r?(t.merge(t.createPositionAfter(i)),i):r)}}function er(o){return o.parent.name=="blockQuote"?o.parent:null}function hm(o,t){let e,n=0;const i=[];for(;n<t.length;){const r=t[n],s=t[n+1];e||(e=o.createPositionBefore(r)),s&&r.nextSibling==s||(i.push(o.createRange(e,o.createPositionAfter(r))),e=null),n++}return i}function gm(o,t){const e=o.checkChild(t.parent,"blockQuote"),n=o.checkChild(["$root","blockQuote"],t);return e&&n}class Gy extends L{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[Ki,Le]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new qy(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer(s=>{const a=t.model.document.differ.getChanges();for(const c of a)if(c.type=="insert"){const l=c.position.nodeAfter;if(!l)continue;if(l.is("element","blockQuote")&&l.isEmpty)return s.remove(l),!0;if(l.is("element","blockQuote")&&!e.checkChild(c.position,l))return s.unwrap(l),!0;if(l.is("element")){const d=s.createRangeIn(l);for(const u of d.getItems())if(u.is("element","blockQuote")&&!e.checkChild(s.createPositionBefore(u),u))return s.unwrap(u),!0}}else if(c.type=="remove"){const l=c.position.parent;if(l.is("element","blockQuote")&&l.isEmpty)return s.remove(l),!0}return!1});const n=this.editor.editing.view.document,i=t.model.document.selection,r=t.commands.get("blockQuote");this.listenTo(n,"enter",(s,a)=>{!i.isCollapsed||!r.value||i.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),a.preventDefault(),s.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(s,a)=>
8227{if(a.direction!="backward"||!i.isCollapsed||!r.value)return;const c=i.getLastPosition().parent;c.isEmpty&&!c.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),a.preventDefault(),s.stop())},{context:"blockquote"})}}var mm=R(8708),Wy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(mm.A,Wy),mm.A.locals;class Ky extends L{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.commands.get("blockQuote");t.ui.componentFactory.add("blockQuote",()=>{const n=this._createButton(ot);return n.set({tooltip:!0}),n.bind("isOn").to(e,"value"),n}),t.ui.componentFactory.add("menuBar:blockQuote",()=>this._createButton(Xt))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("blockQuote"),r=new t(e.locale),s=n.t;return r.set({label:s("Block quote"),icon:$.quote,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",()=>{e.execute("blockQuote"),e.editing.view.focus()}),r}}class $y extends L{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor;if(!t.commands.get("ckbox"))return;const e=t.t,n=t.ui.componentFactory;if(n.add("ckbox",()=>{const i=this._createButton(ot);return i.tooltip=!0,i}),n.add("menuBar:ckbox",()=>this._createButton(Xt)),t.plugins.has("ImageInsertUI")){const i=t.plugins.get("ImageInsertUI");i.registerIntegration({name:"assetManager",observable:()=>t.commands.get("ckbox"),buttonViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckbox");return r.icon=$.imageAssetManager,r.bind("label").to(i,"isImageSelected",s=>e(s?"Replace image with file manager":"Insert image with file manager")),r},formViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckbox");return r.icon=$.imageAssetManager,r.withText=!0,r.bind("label").to(i,"isImageSelected",s=>e(s?"Replace with file manager":"Insert with file manager")),r.on("execute",()=>{i.dropdownView.isOpen=!1}),r}})}}_createButton(t){const e=this.editor,n=e.locale,i=new t(n),r=e.commands.get("ckbox"),s=n.t;return i.set({label:s("Open file manager"),icon:$.browseFiles}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.on("execute",()=>{e.execute("ckbox")}),i}}var Yy=["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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Lo=o=>{let t=0;for(let e=0;e<o.length;e++){let n=o[e];t=83*t+Yy.indexOf(n)}return t},Js=o=>
8227{let t=o/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Xs=o=>{let t=Math.max(0,Math.min(1,o));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},ta=(o,t)=>(e=>e<0?-1:1)(o)*Math.pow(Math.abs(o),t),pm=class extends Error{constructor(o){super(o),this.name="ValidationError",this.message=o}},Qy=o=>{if(!o||o.length<6)throw new pm("The blurhash string must be at least 6 characters");let t=Lo(o[0]),e=Math.floor(t/9)+1,n=t%9+1;if(o.length!==4+2*n*e)throw new pm(`blurhash length mismatch: length is ${o.length} but it should be ${4+2*n*e}`)},Zy=o=>{let t=o>>8&255,e=255&o;return[Js(o>>16),Js(t),Js(e)]},Jy=(o,t)=>{let e=Math.floor(o/361),n=Math.floor(o/19)%19,i=o%19;return[ta((e-9)/9,2)*t,ta((n-9)/9,2)*t,ta((i-9)/9,2)*t]},Xy=(o,t,e,n)=>{Qy(o),n|=1;let i=Lo(o[0]),r=Math.floor(i/9)+1,s=i%9+1,a=(Lo(o[1])+1)/166,c=new Array(s*r);for(let u=0;u<c.length;u++)if(u===0){let h=Lo(o.substring(2,6));c[u]=Zy(h)}else{let h=Lo(o.substring(4+2*u,6+2*u));c[u]=Jy(h,a*n)}let l=4*t,d=new Uint8ClampedArray(l*e);for(let u=0;u<e;u++)for(let h=0;h<t;h++){let g=0,m=0,k=0;for(let M=0;M<r;M++)for(let N=0;N<s;N++){let H=Math.cos(Math.PI*h*N/t)*Math.cos(Math.PI*u*M/e),W=c[N+M*s];g+=W[0]*H,m+=W[1]*H,k+=W[2]*H}let b=Xs(g),A=Xs(m),x=Xs(k);d[4*h+0+u*l]=b,d[4*h+1+u*l]=A,d[4*h+2+u*l]=x,d[4*h+3+u*l]=255}return d},tx=Object.defineProperty,fm=Object.getOwnPropertySymbols,ex=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,km=(o,t,e)=>t in o?tx(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;function bm(o){const t=[];let e=0;for(const i in o){const r=parseInt(i,10);isNaN(r)||(r>e&&(e=r),t.push(`${o[i]} ${i}w`))}const n=[{srcset:t.join(","),sizes:`(max-width: ${e}px) 100vw, ${e}px`,type:"image/webp"}];return{imageFallbackUrl:o.default,imageSources:n}}const zo=32;function wm({url:o,method:t="GET",data:e,onUploadProgress:n,signal:i,authorization:r}){const s=new XMLHttpRequest;s.open(t,o.toString()),s.setRequestHeader("Authorization",r),s.setRequestHeader("CKBox-Version","CKEditor 5"),s.responseType="json";const a=()=>{s.abort()};return new Promise((c,l)=>{i.throwIfAborted(),i.addEventListener("abort",a),s.addEventListener("loadstart",()=>{i.addEventListener("abort",a)}),s.addEventListener("loadend",()=>{i.removeEventListener("abort",a)}),s.addEventListener("error",()=>{l()}),s.addEventListener("abort",()=>{l()}),s.addEventListener("load",()=>{const d=s.response;if(!d||d.statusCode>=400)return l(d&&d.message);c(d)}),n&&s.upload.addEventListener("progress",d=>{n(d)}),s.send(e)})}const ox={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};function ix(o,t){return e=this,n=null,i=function*(){try{const r=yield fetch(o,((s,a)=>{for(var c in a||(a={}))ex.call(a,c)&&km(s,c,a[c]);if(fm)for(var c of fm(a))nx.call(a,c)&&km(s,c,a[c]);return s})({method:"HEAD",cache:"force-cache"},t));return r.ok&&r.headers.get("content-type")||""}catch{return""}},new Promise((r,s)=>{var a=d=>{try{l(i.next(d))}catch(u){s(u)}},c=d=>{try{l(i.throw(d))}catch(u){s(u)}},l=d=>d.done?r(d.value):Promise.resolve(d.value).then(a,c);l((i=i.apply(e,n)).next())});var e,n,i}var rx=Object.defineProperty,Am=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,ax=Object.prototype.propertyIsEnumerable,_m=(o,t,e)=>t in o?rx(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Cm=(o,t)=>{for(var e in t||(t={}))sx.call(t,e)&&_m(o,e,t[e]);if(Am)for(var e of Am(t))ax.call(t,e)&&_m(o,e,t[e]);return o};class cx extends Z{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return this._wrapper!==null}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=ee(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,t.editing.view.focus())}),this.on("ckbox:choose",(i,r)=>{if(!this.isEnabled)return;
8227const s=t.commands.get("insertImage"),a=t.commands.get("link"),c=function({assets:d,isImageAllowed:u,isLinkAllowed:h}){return d.map(g=>function(m){const k=m.data.metadata;return k?k.width&&k.height:!1}(g)?{id:g.data.id,type:"image",attributes:lx(g)}:{id:g.data.id,type:"link",attributes:dx(g)}).filter(g=>g.type==="image"?u:h)}({assets:r,isImageAllowed:s.isEnabled,isLinkAllowed:a.isEnabled}),l=c.length;l!==0&&(e.change(d=>{for(const u of c){const h=u===c[l-1],g=l===1;this._insertAsset(u,h,d,g),n&&(setTimeout(()=>this._chosenAssets.delete(u),1e3),this._chosenAssets.add(u))}}),t.editing.view.focus())}),this.listenTo(t,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(t,e,n,i){const r=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),t.type==="image"?this._insertImage(t):this._insertLink(t,n,i),e||n.setSelection(r.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:i,imageTextAlternative:r,imageWidth:s,imageHeight:a,imagePlaceholder:c}=t.attributes;e.execute("insertImage",{source:Cm({src:n,sources:i,alt:r,width:s,height:a},c?{placeholder:c}:null)})}_insertLink(t,e,n){const i=this.editor,r=i.model,s=r.document.selection,{linkName:a,linkHref:c}=t.attributes;if(s.isCollapsed){const l=Ce(s.getAttributes()),d=e.createText(a,l);if(!n){const h=s.getLastPosition(),g=h.parent;g.name==="paragraph"&&g.isEmpty||i.execute("insertParagraph",{position:h});const m=r.insertContent(d);return e.setSelection(m),void i.execute("link",c)}const u=r.insertContent(d);e.setSelection(u)}i.execute("link",c)}}function lx(o){const{imageFallbackUrl:t,imageSources:e}=bm(o.data.imageUrls),{description:n,width:i,height:r,blurHash:s}=o.data.metadata,a=function(c){if(c)try{const l=`${zo}px`,d=document.createElement("canvas");d.setAttribute("width",l),d.setAttribute("height",l);const u=d.getContext("2d");if(!u)return;const h=u.createImageData(zo,zo),g=Xy(c,zo,zo);return h.data.set(g),u.putImageData(h,0,0),d.toDataURL()}catch{return}}(s);return Cm({imageFallbackUrl:t,imageSources:e,imageTextAlternative:n||"",imageWidth:i,imageHeight:r},a?{imagePlaceholder:a}:null)}function dx(o){return{linkName:o.data.name,linkHref:ux(o)}}function ux(o){const t=new URL(o.data.url);return t.searchParams.set("download","true"),t.toString()}var ea=(o,t,e)=>new Promise((n,i)=>{var r=c=>{try{a(e.next(c))}catch(l){i(l)}},s=c=>{try{a(e.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,s);a((e=e.apply(o,t)).next())});class vm extends L{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}init(){return ea(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const i=t.plugins.get("CloudServices"),r=t.config.get("cloudServices.tokenUrl"),s=t.config.get("ckbox.tokenUrl");if(!s)throw new _("ckbox-plugin-missing-token-url",this);this._token=s==r?i.token:yield i.registerTokenUrl(s)})}getToken(){return this._token}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(i,r){const[,s]=i.value.split("."),a=JSON.parse(atob(s)),c=a.auth&&a.auth.ckbox&&a.auth.ckbox.workspaces||[a.aud];return r?(a.auth&&a.auth.ckbox&&a.auth.ckbox.role)=="superadmin"||c.includes(r)?r:null:c[0]}(this._token,e);if(n==null)throw Q("ckbox-access-default-workspace-error"),t;return n}getCategoryIdForFile(t,e){return ea(this,null,function*(){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),i=this.editor.config.get("ckbox.defaultUploadCategories"),r=this._getAvailableCategories(e),s=typeof t=="string"?(a=yield ix(t,e),ox[a]):function(d){const u=d.name,h=new RegExp("\\.(?<ext>[^.]+)$");return u.match(h).groups.ext.toLowerCase()}(t);var a;const c=yield r;if(!c)throw n;if(i){const d=Object.keys(i).find(u=>i[u].find(h=>h.toLowerCase()==s));if(d){const u=c.find(h=>h.id===d||h.name===d);if(!u)throw n;return u.id}}const l=c.find(d=>d.extensions.find(u=>u.toLowerCase()==s));if(!l)throw n;return l.id})}_getAvailableCategories(t){return ea(this,null,function*(){const e=this.editor,n=this._token,{signal:i}=t,r=e.config.get("ckbox.serviceOrigin"),s=this.getWorkspaceId();try{const c=[];let l,d=0;do{const u=yield a(d);c.push(...u.items),l=u.totalCount-(d+50),d+=50}while(l>0);return c}catch{return i.throwIfAborted(),void Q("ckbox-fetch-category-http-error")}function a(c){const l=new URL("categories",r);return l.searchParams.set("limit","50"),l.searchParams.set("offset",c.toString()),l.searchParams.set("workspaceId",s),wm({url:l,signal:i,authorization:n.value})}})}}var na=(o,t,e)=>new Promise((n,i)=>{var r=c=>{try{a(e.next(c))}catch(l){i(l)}},s=c=>{try{a(e.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,s);a((e=e.apply(o,t)).next())});class hx extends L{static get requires(){return["ImageUploadEditing","ImageUploadProgress",be,ym]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return na(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const i=t.plugins.get(be),r=t.plugins.get(vm);i.createUploadAdapter=c=>new gx(c,t,r);const s=!t.config.get("ckbox.ignoreDataId"),a=t.plugins.get("ImageUploadEditing");s&&a.on("uploadComplete",(c,{imageElement:l,data:d})=>{t.model.change(u=>{u.setAttribute("ckboxImageId",d.ckboxImageId,l)})})})}}class gx{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}upload(){return na(this,null,function*(){const t=this.ckboxUtils,e=this.editor.t,n=yield this.loader.file,i=yield t.getCategoryIdForFile(n,{signal:this.controller.signal}
8227),r=new URL("assets",this.serviceOrigin),s=new FormData;return r.searchParams.set("workspaceId",t.getWorkspaceId()),s.append("categoryId",i),s.append("file",n),wm({method:"POST",url:r,data:s,onUploadProgress:a=>{a.lengthComputable&&(this.loader.uploadTotal=a.total,this.loader.uploaded=a.loaded)},signal:this.controller.signal,authorization:this.token.value}).then(a=>na(this,null,function*(){const c=bm(a.imageUrls);return{ckboxImageId:a.id,default:c.imageFallbackUrl,sources:c.imageSources}})).catch(()=>{const a=e("Cannot upload file:")+` ${n.name}.`;return Promise.reject(a)})})}abort(){this.controller.abort()}}class ym extends L{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",hx,vm]}init(){const t=this.editor;this._shouldBeInitialised()&&(this._checkImagePlugins(),Em()&&t.commands.add("ckbox",new cx(t)))}afterInit(){const t=this.editor;this._shouldBeInitialised()&&(t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()))}_shouldBeInitialised(){return!!this.editor.config.get("ckbox")||Em()}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||Q("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck((e,n)=>{if(!e.last.getAttribute("linkHref")&&n==="ckboxLinkId")return!1})}_initConversion(){const t=this.editor;t.conversion.for("downcast").add(n=>{n.on("attribute:ckboxLinkId:imageBlock",(i,r,s)=>{const{writer:a,mapper:c,consumable:l}=s;if(!l.consume(r.item,i.name))return;const d=[...c.toViewElement(r.item).getChildren()].find(u=>u.name==="a");d&&(r.item.hasAttribute("ckboxLinkId")?a.setAttribute("data-ckbox-resource-id",r.item.getAttribute("ckboxLinkId"),d):a.removeAttribute("data-ckbox-resource-id",d))},{priority:"low"}),n.on("attribute:ckboxLinkId",(i,r,s)=>{const{writer:a,mapper:c,consumable:l}=s;if(l.consume(r.item,i.name)){if(r.attributeOldValue){const d=xm(a,r.attributeOldValue);a.unwrap(c.toViewRange(r.range),d)}if(r.attributeNewValue){const d=xm(a,r.attributeNewValue);if(r.item.is("selection")){const u=a.document.selection;a.wrap(u.getFirstRange(),d)}else a.wrap(c.toViewRange(r.range),d)}}},{priority:"low"})}),t.conversion.for("upcast").add(n=>{n.on("element:a",(i,r,s)=>{const{writer:a,consumable:c}=s;if(!r.viewItem.getAttribute("href")||!c.consume(r.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const l=r.viewItem.getAttribute("data-ckbox-resource-id");if(l)if(r.modelRange)for(let d of r.modelRange.getItems())d.is("$textProxy")&&(d=d.textNode),px(d)&&a.setAttribute("ckboxLinkId",l,d);else{const d=r.modelCursor.nodeBefore||r.modelCursor.parent;a.setAttribute("ckboxLinkId",l,d)}},{priority:"low"})}),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:n=>n.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const e=t.commands.get("replaceImageSource");e&&this.listenTo(e,"cleanupImage",(n,[i,r])=>{i.removeAttribute("ckboxImageId",r)})}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;e.document.registerPostFixer(function(i){return r=>{let s=!1;const a=i.model,c=i.commands.get("ckbox");if(!c)return s;for(const l of a.document.differ.getChanges()){if(l.type!=="insert"&&l.type!=="attribute")continue;const d=l.type==="insert"?new B(l.position,l.position.getShiftedBy(l.length)):l.range,u=l.type==="attribute"&&l.attributeKey==="linkHref"&&l.attributeNewValue===null;for(const h of d.getItems()){if(u&&h.hasAttribute("ckboxLinkId")){r.removeAttribute("ckboxLinkId",h),s=!0;continue}const g=mx(h,c._chosenAssets);for(const m of g){const k=m.type==="image"?"ckboxImageId":"ckboxLinkId";m.id!==h.getAttribute(k)&&(r.setAttribute(k,m.id,h),s=!0)}}}return s}}(t)),e.document.registerPostFixer(function(i){return r=>!(i.hasAttribute("linkHref")||!i.hasAttribute("ckboxLinkId"))&&(r.removeSelectionAttribute("ckboxLinkId"),!0)}(n))}}function mx(o,t){const e=o.is("element","imageInline")||o.is("element","imageBlock"),n=o.hasAttribute("linkHref");return[...t].filter(i=>i.type==="image"&&e?i.attributes.imageFallbackUrl===o.getAttribute("src"):i.type==="link"&&n?i.attributes.linkHref===o.getAttribute("linkHref"):void 0)}function xm(o,t){const e=o.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return o.setCustomProperty("link",!0,e),e}function px(o){return!!o.is("$text")||!(!o.is("element","imageInline")&&!o.is("element","imageBlock"))}function Em(){return!!window.CKBox}var Dm=R(1866),fx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Dm.A,fx),Dm.A.locals;class kx extends L{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t;if(e.add("ckfinder",i=>{const r=this._createButton(ot),s=i.t;return r.set({label:s("Insert image or file"),tooltip:!0}),r}),e.add("menuBar:ckfinder",i=>{const r=this._createButton(Xt),s=i.t;return r.label=s("Image or file"),r}),t.plugins.has("ImageInsertUI")){const i=t.plugins.get("ImageInsertUI");i.registerIntegration({name:"assetManager",observable:()=>t.commands.get("ckfinder"),buttonViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckfinder");return r.icon=$.imageAssetManager,r.bind("label").to(i,"isImageSelected",s=>n(s?"Replace image with file manager":"Insert image with file manager")),r},formViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckfinder");return r.icon=$.imageAssetManager,r.withText=!0,r.bind("label").to(i,"isImageSelected",s=>n(s?"Replace with file manager":"Insert with file manager")),r.on("execute",()=>{i.dropdownView.isOpen=!1}),r}})}}_createButton(t){const e=this.editor,n=new t(e.locale),i=e.commands.get("ckfinder");return n.icon=$.browseFiles,n.bind("isEnabled").to(i),n.on("execute",()=>{e.execute("ckfinder"),e.editing.view.focus()}),n}}class bx extends Z{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if(e!="popup"&&e!="modal")throw new _("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const i=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=r=>{i&&i(r),r.on("files:choose",s=>{const a=s.data.files.toArray(),c=a.filter(u=>!u.isImage()),l=a.filter(u=>u.isImage());for(const u of c)t.execute("link",u.getUrl());const d=[];for(const u of l){const h=u.getUrl();d.push(h||r.request("file:getProxyUrl",{file:u}))}d.length&&Im(t,d)}),r.on("file:choose:resizedImage",s=>{const a=s.data.resizedUrl;if(a)Im(t,[a]);else{const c=t.plugins.get("Notification"),l=t.locale.t;c.showWarning(l("Could not obtain resized image URL."),{title:l("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[e](n)}}function Im(o,t){if(o.commands.get("insertImage").isEnabled)o.execute("insertImage",{source:t});else{const e=o.plugins.get("Notification"),n=o.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class wx extends L{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Vs,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new _("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new bx(t))}}class Ax extends L{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",be]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,i=e.uploadUrl;if(!n)return;const r=t.plugins.get("CloudServicesCore");this._uploadGateway=r.createUploadGateway(n,i),t.plugins.get(be).createUploadAdapter=s=>new _x(this._uploadGateway,s)}}class _x{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then(t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",(e,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class Cx extends Z{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=St(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Tm(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document,i=t.selection||n.selection;e.canEditAt(i)&&e.change(r=>{const s=i.getSelectedBlocks();for(const a of s)!a.is("element","paragraph")&&Tm(a,e.schema)&&r.rename(a,"paragraph")})}}function Tm(o,t){return t.checkChild(o.parent,"paragraph")&&!t.isObject(o)}class vx extends Z{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let i=t.position;e.canEditAt(i)&&e.change(r=>{if(i=this._findPositionToInsertParagraph(i,r),!i)return;const s=r.createElement("paragraph");n&&e.schema.setAllowedAttributes(s,n,r),e.insertContent(s,i),r.setSelection(s,"in")})}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const i=n.schema.findAllowedParent(t,"paragraph");if(!i)return null;const r=t.parent,s=n.schema.checkChild(r,"$text");return r.isEmpty||s&&t.isAtEnd?n.createPositionAfter(r):!r.isEmpty&&s&&t.isAtStart?n.createPositionBefore(r):e.split(t,i).position}}const Mm=class extends L{static get pluginName(){return"Paragraph"}init(){const o=this.editor,t=o.model;
8227o.commands.add("paragraph",new Cx(o)),o.commands.add("insertParagraph",new vx(o)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),o.conversion.elementToElement({model:"paragraph",view:"p"}),o.conversion.for("upcast").elementToElement({model:(e,{writer:n})=>Mm.paragraphLikeElements.has(e.name)?e.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let oa=Mm;oa.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class yx extends Z{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=St(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>Sm(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,i=t.value;e.change(r=>{const s=Array.from(n.selection.getSelectedBlocks()).filter(a=>Sm(a,i,e.schema));for(const a of s)a.is("element",i)||r.rename(a,i)})}}function Sm(o,t,e){return e.checkChild(o.parent,t)&&!e.isObject(o)}const Bm="paragraph";class xx extends L{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[oa]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const i of e)i.model!=="paragraph"&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new yx(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(i,r)=>{const s=t.model.document.selection.getFirstPosition().parent;n.some(a=>s.is("element",a.model))&&!s.is("element",Bm)&&s.childCount===0&&r.writer.rename(s,Bm)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:q.low+1})}}var Nm=R(6269),Ex={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Nm.A,Ex),Nm.A.locals;class Dx extends L{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(s){const a=s.t,c={Paragraph:a("Paragraph"),"Heading 1":a("Heading 1"),"Heading 2":a("Heading 2"),"Heading 3":a("Heading 3"),"Heading 4":a("Heading 4"),"Heading 5":a("Heading 5"),"Heading 6":a("Heading 6")};return s.config.get("heading.options").map(l=>{const d=c[l.title];return d&&d!=l.title&&(l.title=d),l})}(t),i=e("Choose heading"),r=e("Heading");t.ui.componentFactory.add("heading",s=>{const a={},c=new ue,l=t.commands.get("heading"),d=t.commands.get("paragraph"),u=[l];for(const g of n){const m={type:"button",model:new Ch({label:g.title,class:g.class,role:"menuitemradio",withText:!0})};g.model==="paragraph"?(m.model.bind("isOn").to(d,"value"),m.model.set("commandName","paragraph"),u.push(d)):(m.model.bind("isOn").to(l,"value",k=>k===g.model),m.model.set({commandName:"heading",commandValue:g.model})),c.add(m),a[g.model]=g.title}const h=Pe(s);return Gu(h,c,{ariaLabel:r,role:"menu"}),h.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),h.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),h.bind("isEnabled").toMany(u,"isEnabled",(...g)=>g.some(m=>m)),h.buttonView.bind("label").to(l,"value",d,"value",(g,m)=>{const k=m?"paragraph":g;return typeof k=="boolean"?i:a[k]?a[k]:i}),h.buttonView.bind("ariaLabel").to(l,"value",d,"value",(g,m)=>{const k=m?"paragraph":g;return typeof k=="boolean"?r:a[k]?`${a[k]}, ${r}`:r}),this.listenTo(h,"execute",g=>{const{commandName:m,commandValue:k}=g.source;t.execute(m,k?{value:k}:void 0),t.editing.view.focus()}),h}),t.ui.componentFactory.add("menuBar:heading",s=>{const a=new Hn(s),c=t.commands.get("heading"),l=t.commands.get("paragraph"),d=[c],u=new Gs(s);a.set({class:"ck-heading-dropdown"}),u.set({ariaLabel:e("Heading"),role:"menu"}),a.buttonView.set({label:e("Heading")}),a.panelView.children.add(u);for(const h of n){const g=new Us(s,a),m=new Xt(s);
8227g.children.add(m),u.items.add(g),m.set({label:h.title,role:"menuitemradio",class:h.class}),m.bind("ariaChecked").to(m,"isOn"),m.delegate("execute").to(a),m.on("execute",()=>{const k=h.model==="paragraph"?"paragraph":"heading";t.execute(k,{value:h.model}),t.editing.view.focus()}),h.model==="paragraph"?(m.bind("isOn").to(l,"value"),d.push(l)):m.bind("isOn").to(c,"value",k=>k===h.model)}return a.bind("isEnabled").toMany(d,"isEnabled",(...h)=>h.some(g=>g)),a})}}function Pm(o){return o.createContainerElement("figure",{class:"image"},[o.createEmptyElement("img"),o.createSlot("children")])}function Om(o,t){const e=o.plugins.get("ImageUtils"),n=o.plugins.has("ImageInlineEditing")&&o.plugins.has("ImageBlockEditing");return r=>e.isInlineImageView(r)?n&&(r.getStyle("display")=="block"||r.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==t?null:i(r):null;function i(r){const s={name:!0};return r.hasAttribute("src")&&(s.attributes=["src"]),s}}function ia(o,t){const e=St(t.getSelectedBlocks());return!e||o.isObject(e)||e.isEmpty&&e.name!="listItem"?"imageBlock":"imageInline"}function nr(o){return o&&o.endsWith("px")?parseInt(o):null}function Lm(o){const t=nr(o.getStyle("width")),e=nr(o.getStyle("height"));return!(!t||!e)}var Ix=Object.defineProperty,zm=Object.getOwnPropertySymbols,Tx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,Rm=(o,t,e)=>t in o?Ix(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,jm=(o,t)=>{for(var e in t||(t={}))Tx.call(t,e)&&Rm(o,e,t[e]);if(zm)for(var e of zm(t))Mx.call(t,e)&&Rm(o,e,t[e]);return o};const Sx=/^(image|image-inline)$/;class Ht extends L{constructor(){super(...arguments),this._domEmitter=new(ne())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,i={}){const r=this.editor,s=r.model,a=s.document.selection,c=Fm(r,e||a,n);t=jm(jm({},Object.fromEntries(a.getAttributes())),t);for(const l in t)s.schema.checkAttribute(c,l)||delete t[l];return s.change(l=>{const{setImageSizes:d=!0}=i,u=l.createElement(c,t);return s.insertObject(u,e,null,{setSelection:"on",findOptimalPosition:e||c=="imageInline"?void 0:"auto"}),u.parent?(d&&this.setImageNaturalSizeAttributes(u),u):null})}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change(n=>{const i=new v.window.Image;this._domEmitter.listenTo(i,"load",()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,r=>{r.setAttribute("width",i.naturalWidth,t),r.setAttribute("height",i.naturalHeight,t)}),this._domEmitter.stopListening(i,"load")}),i.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let i=e.parent;for(;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:Sx})}isImageAllowed(){const t=this.editor.model.document.selection;return function(e,n){if(Fm(e,n,null)=="imageBlock"){const r=function(s,a){const c=Pg(s,a),l=c.start.parent;return l.isEmpty&&!l.is("element","$root")?l.parent:l}(n,e.model);if(e.model.schema.checkChild(r,"imageBlock"))return!0}else if(e.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(e){return[...e.focus.getAncestors()].every(n=>!n.is("element","imageBlock"))}(t)}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),Qs(t,e,{label:()=>{const i=this.findViewImgElement(t).getAttribute("alt");return i?`${i} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&Et(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function Fm(o,t,e){const n=o.model.schema,i=o.config.get("image.insert.type");return o.plugins.has("ImageBlockEditing")?o.plugins.has("ImageInlineEditing")?e||(i==="inline"?"imageInline":i!=="auto"?"imageBlock":t.is("selection")?ia(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Bx extends Z{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i=e.model,r=n.getClosestSelectedImageElement(i.document.selection);i.change(s=>{s.setAttribute("alt",t.newValue,r)}
8227)}}class Nx extends L{static get requires(){return[Ht]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Bx(this.editor))}}var Vm=R(4062),Px={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Vm.A,Px),Vm.A.locals;var Hm=R(2722),Ox={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Hm.A,Ox),Hm.A.locals;class Lx extends G{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Bt,this.keystrokes=new zt,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),$.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),$.cancel,"ck-button-cancel","cancel"),this._focusables=new oe,this._focusCycler=new re({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),di({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,i){const r=new ot(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createLabeledInputView(){const t=this.locale.t,e=new Bi(this.locale,Oi);return e.label=t("Text alternative"),e}}function Um(o){const t=o.editing.view,e=Ft.defaultPositions,n=o.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class zx extends L{static get requires(){return[Vi]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const i=t.commands.get("imageTextAlternative"),r=new ot(n);return r.set({label:e("Change image text alternative"),icon:$.textAlternative,tooltip:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",s=>!!s),this.listenTo(r,"execute",()=>{this._showForm()}),r})}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new($r(Lx))(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(i,r)=>{this._hideForm(!0),r()}),this.listenTo(t.ui,"update",()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(i){const r=i.plugins.get("ContextualBalloon");if(i.plugins.get("ImageUtils").getClosestSelectedImageWidget(i.editing.view.document.selection)){const s=Um(i);r.updatePosition(s)}}(t):this._hideForm(!0)}),li({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Um(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class qm extends L{static get requires(){return[Nx,zx]}static get pluginName(){return"ImageTextAlternative"}}function Gm(o,t){const e=(n,i,r)=>{if(!r.consumable.consume(i.item,n.name))return;const s=r.writer,a=r.mapper.toViewElement(i.item),c=o.findViewImgElement(a);i.attributeNewValue===null?(s.removeAttribute("srcset",c),s.removeAttribute("sizes",c)):i.attributeNewValue&&(s.setAttribute("srcset",i.attributeNewValue,c),s.setAttribute("sizes","100vw",c))};return n=>{n.on(`attribute:srcset:${t}`,e)}}function or(o,t,e){const n=(i,r,s)=>{if(!s.consumable.consume(r.item,i.name))return;const a=s.writer,c=s.mapper.toViewElement(r.item),l=o.findViewImgElement(c);a.setAttribute(r.attributeKey,r.attributeNewValue||"",l)};return i=>{i.on(`attribute:${e}:${t}`,n)}}class Wm extends xe{observe(t){this.listenTo(t,"load",(e,n)=>{const i=n.target;this.checkShouldIgnoreEventFromTarget(i)||i.tagName=="IMG"&&this._fireEvents(n)},{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}var Rx=Object.defineProperty,Km=Object.getOwnPropertySymbols,jx=Object.prototype.hasOwnProperty,Fx=Object.prototype.propertyIsEnumerable,$m=(o,t,e)=>t in o?Rx(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,ir=(o,t)=>{for(var e in t||(t={}))jx.call(t,e)&&$m(o,e,t[e]);if(Km)for(var e of Km(t))Fx.call(t,e)&&$m(o,e,t[e]);return o};
8227class Vx extends Z{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||e==="block"&&U("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||e==="inline"&&U("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=gt(t.source),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());e.forEach((s,a)=>{const c=n.getSelectedElement();if(typeof s=="string"&&(s={src:s}),a&&c&&i.isImage(c)){const l=this.editor.model.createPositionAfter(c);i.insertImage(ir(ir({},s),r),l)}else i.insertImage(ir(ir({},s),r))})}}class Hx extends Z{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(i=>{i.setAttribute("src",t.source,e),this.cleanupImage(i,e),n.setImageNaturalSizeAttributes(e)})}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class ra extends L{static get requires(){return[Ht]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Wm),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new Vx(t),i=new Hx(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",i),t.commands.add("imageInsert",n)}}class Ym extends L{static get requires(){return[Ht]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i=t==="imageBlock"?"figure":"img";function r(s,a,c,l){s.on(`attribute:${a}:${t}`,(d,u,h)=>{if(!h.consumable.consume(u.item,d.name))return;const g=h.writer,m=h.mapper.toViewElement(u.item),k=n.findViewImgElement(m);if(u.attributeNewValue!==null?g.setAttribute(c,u.attributeNewValue,k):g.removeAttribute(c,k),u.item.hasAttribute("sources"))return;const b=u.item.hasAttribute("resizedWidth");if(t==="imageInline"&&!b&&!l)return;const A=u.item.getAttribute("width"),x=u.item.getAttribute("height");A&&x&&g.setStyle("aspect-ratio",`${A}/${x}`,k)})}e.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:s=>Lm(s)?nr(s.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:s=>Lm(s)?nr(s.getStyle("height")):null}}).attributeToAttribute({view:{name:i,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(s=>{r(s,"width","width",!0),r(s,"height","height",!0)}),e.conversion.for("dataDowncast").add(s=>{r(s,"width","width",!1),r(s,"height","height",!1)})}}class Qm extends Z{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);this._modelElementName==="imageBlock"?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e)}execute(t={}){const e=this.editor,n=this.editor.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection),s=Object.fromEntries(r.getAttributes());return s.src||s.uploadId?n.change(a=>{const{setImageSizes:c=!0}=t,l=Array.from(n.markers).filter(h=>h.getRange().containsItem(r)),d=i.insertImage(s,n.createSelection(r,"on"),this._modelElementName,{setImageSizes:c});if(!d)return null;const u=a.createRangeOn(d);for(const h of l){const g=h.getRange(),m=g.root.rootName!="$graveyard"?g.getJoined(u,!0):u;a.updateMarker(h,{range:m})}return{oldElement:r,newElement:d}}):null}}var Zm=R(7378),Ux={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Zm.A,Ux),Zm.A.locals;class Jm extends L{static get requires(){return[Ht]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(i=>{i.on("attribute:placeholder",(r,s,a)=>
8227{if(!a.consumable.test(s.item,r.name)||!s.item.is("element","imageBlock")&&!s.item.is("element","imageInline"))return;a.consumable.consume(s.item,r.name);const c=a.writer,l=a.mapper.toViewElement(s.item),d=n.findViewImgElement(l);s.attributeNewValue?(c.addClass("image_placeholder",d),c.setStyle("background-image",`url(${s.attributeNewValue})`,d),c.setCustomProperty("editingPipeline:doNotReuseOnce",!0,d)):(c.removeClass("image_placeholder",d),c.removeStyle("background-image",d))})})}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,i=n.view,r=t.plugins.get("ImageUtils");i.addObserver(Wm),this.listenTo(i.document,"imageLoaded",(s,a)=>{const c=i.domConverter.mapDomToView(a.target);if(!c)return;const l=r.getImageWidgetFromImageView(c);if(!l)return;const d=n.mapper.toModelElement(l);d&&d.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},u=>{u.removeAttribute("placeholder",d)})})}}class Xm extends L{static get requires(){return[ra,Ym,Ht,Jm,se]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new Qm(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>Pm(s)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>i.toImageWidget(Pm(s),s,e("image widget"))}),n.for("downcast").add(or(i,"imageBlock","src")).add(or(i,"imageBlock","alt")).add(Gm(i,"imageBlock")),n.for("upcast").elementToElement({view:Om(t,"imageBlock"),model:(r,{writer:s})=>s.createElement("imageBlock",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)}).add(function(r){const s=(a,c,l)=>{if(!l.consumable.test(c.viewItem,{name:!0,classes:"image"}))return;const d=r.findViewImgElement(c.viewItem);if(!d||!l.consumable.test(d,{name:!0}))return;l.consumable.consume(c.viewItem,{name:!0,classes:"image"});const u=St(l.convertItem(d,c.modelCursor).modelRange.getItems());u?(l.convertChildren(c.viewItem,u),l.updateConversionResult(u,c)):l.consumable.revert(c.viewItem,{name:!0,classes:"image"})};return a=>{a.on("element:figure",s)}}(i))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",(s,a)=>{const c=Array.from(a.content.getChildren());let l;if(!c.every(i.isInlineImageView))return;l=a.targetRanges?t.editing.mapper.toModelRange(a.targetRanges[0]):e.document.selection.getFirstRange();const d=e.createSelection(l);if(ia(e.schema,d)==="imageBlock"){const u=new Be(n.document),h=c.map(g=>u.createElement("figure",{class:"image"},g));a.content=u.createDocumentFragment(h)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&e.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageBlock")&&i.setImageNaturalSizeAttributes(d)})})}}var tp=R(3350),qx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(tp.A,qx),tp.A.locals;class Gx extends G{constructor(t,e=[]){super(t),this.focusTracker=new Bt,this.keystrokes=new zt,this._focusables=new oe,this.children=this.createCollection(),this._focusCycler=new re({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of e)this.children.add(n),this._focusables.add(n),n instanceof mC&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)Wx(n)&&(n.focusCycler.on("forwardCycle",i=>{this._focusCycler.focusNext(),i.stop()}),n.focusCycler.on("backwardCycle",i=>{this._focusCycler.focusPrevious(),i.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),di({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function Wx(o){return"focusCycler"in o}class ep extends L{constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ht]}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const i=r=>this._createToolbarComponent(r);t.ui.componentFactory.add("insertImage",i),t.ui.componentFactory.add("imageInsert",i)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:r}){this._integrations.has(t)&&U("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:!!r})}_createToolbarComponent(t){const e=this.editor,n=t.t,i=this._prepareIntegrations();if(!i.length)return null;let r;const s=i[0];if(i.length==1){if(!s.requiresForm)return s.buttonViewCreator(!0);r=s.buttonViewCreator(!0)}else{const l=s.buttonViewCreator(!1);r=new Pi(t,l),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",d=>n(d?"Replace image":"Insert image"))}const a=this.dropdownView=Pe(t,r),c=i.map(({observable:l})=>typeof l=="function"?l():l);return a.bind("isEnabled").toMany(c,"isEnabled",(...l)=>l.some(d=>d)),a.once("change:isOpen",()=>{const l=i.map(({formViewCreator:u})=>u(i.length==1)),d=new Gx(e.locale,l);a.panelView.children.add(d)}),a}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];
8227if(!t.length)return U("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||U("image-insert-unknown-integration",{item:n});return e.length||U("image-insert-integrations-not-registered"),e}}var np=R(265),Kx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(np.A,Kx),np.A.locals;class $x extends L{static get requires(){return[Xm,Oo,qm,ep]}static get pluginName(){return"ImageBlock"}}class Yx extends L{static get requires(){return[ra,Ym,Ht,Jm,se]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,i)=>{if(n.endsWith("caption")&&i.name==="imageInline")return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new Qm(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(r,{writer:s})=>s.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(r,{writer:s})=>i.toImageWidget(function(a){return a.createContainerElement("span",{class:"image-inline"},a.createEmptyElement("img"))}(s),s,e("image widget"))}),n.for("downcast").add(or(i,"imageInline","src")).add(or(i,"imageInline","alt")).add(Gm(i,"imageInline")),n.for("upcast").elementToElement({view:Om(t,"imageInline"),model:(r,{writer:s})=>s.createElement("imageInline",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",(s,a)=>{const c=Array.from(a.content.getChildren());let l;if(!c.every(i.isBlockImageView))return;l=a.targetRanges?t.editing.mapper.toModelRange(a.targetRanges[0]):e.document.selection.getFirstRange();const d=e.createSelection(l);if(ia(e.schema,d)==="imageInline"){const u=new Be(n.document),h=c.map(g=>g.childCount===1?(Array.from(g.getAttributes()).forEach(m=>u.setAttribute(...m,i.findViewImgElement(g))),g.getChild(0)):g);a.content=u.createDocumentFragment(h)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&e.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageInline")&&i.setImageNaturalSizeAttributes(d)})})}}class Qx extends L{static get requires(){return[Yx,Oo,qm,ep]}static get pluginName(){return"ImageInline"}}class op extends L{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ht]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return t.name=="figcaption"&&e.isBlockImageView(t.parent)?{name:!0}:null}}class Zx extends Z{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(Xm))return this.isEnabled=!1,void(this.value=!1);const i=t.model.document.selection,r=i.getSelectedElement();if(!r){const s=e.getCaptionFromModelSelection(i);return this.isEnabled=!!s,void(this.value=!!s)}this.isEnabled=n.isImage(r),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(r):this.value=!1}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,e)})}_showImageCaption(t,e){const n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageCaptionEditing"),r=this.editor.plugins.get("ImageUtils");let s=n.getSelectedElement();const a=i._getSavedCaption(s);r.isInlineImage(s)&&(this.editor.execute("imageTypeBlock"),s=n.getSelectedElement());const c=a||t.createElement("caption");t.append(c,s),e&&t.setSelection(c,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,i=e.plugins.get("ImageCaptionEditing"),r=e.plugins.get("ImageCaptionUtils");
8227let s,a=n.getSelectedElement();a?s=r.getCaptionFromImageModelElement(a):(s=r.getCaptionFromModelSelection(n),a=s.parent),i._saveCaption(a,s),t.setSelection(a,"on"),t.remove(s)}}class Jx extends L{constructor(t){super(t),this._savedCaptionsMap=new WeakMap}static get requires(){return[Ht,op]}static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new Zx(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils"),r=t.t;t.conversion.for("upcast").elementToElement({view:s=>i.matchImageCaptionViewElement(s),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(s,{writer:a})=>n.isBlockImage(s.parent)?a.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(s,{writer:a})=>{if(!n.isBlockImage(s.parent))return null;const c=a.createEditableElement("figcaption");a.setCustomProperty("imageCaption",!0,c),c.placeholder=r("Enter image caption"),_l({view:e,element:c,keepOnFocus:!0});const l=s.parent.getAttribute("alt");return Ng(c,a,{label:l?r("Caption for image: %0",[l]):r("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),i=t.commands.get("imageTypeInline"),r=t.commands.get("imageTypeBlock"),s=a=>{if(!a.return)return;const{oldElement:c,newElement:l}=a.return;if(!c)return;if(e.isBlockImage(c)){const u=n.getCaptionFromImageModelElement(c);if(u)return void this._saveCaption(l,u)}const d=this._getSavedCaption(c);d&&this._saveCaption(l,d)};i&&this.listenTo(i,"execute",s,{priority:"low"}),r&&this.listenTo(r,"execute",s,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?st.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",()=>{const r=e.document.differ.getChanges();for(const s of r){if(s.attributeKey!=="alt")continue;const a=s.range.start.nodeAfter;if(n.isBlockImage(a)){const c=i.getCaptionFromImageModelElement(a);if(!c)return;t.editing.reconvertItem(c)}}})}}class Xx extends L{static get requires(){return[op]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),i=t.t;t.ui.componentFactory.add("toggleImageCaption",r=>{const s=t.commands.get("toggleImageCaption"),a=new ot(r);return a.set({icon:$.caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),a.bind("label").to(s,"value",c=>i(c?"Toggle caption off":"Toggle caption on")),this.listenTo(a,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const c=n.getCaptionFromModelSelection(t.model.document.selection);if(c){const l=t.editing.mapper.toViewElement(c);e.scrollToTheSelection(),e.change(d=>{d.addClass("image__caption_highlighted",l)})}t.editing.view.focus()}),a})}}var ip=R(5247),t2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(ip.A,t2),ip.A.locals;function rp(o){const t=o.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function e2(o){return new Promise((t,e)=>{const n=o.getAttribute("src");fetch(n).then(i=>i.blob()).then(i=>{const r=sp(i,n),s=r.replace("image/",""),a=new File([i],`image.${s}`,{type:r});t(a)}).catch(i=>i&&i.name==="TypeError"?function(r){return function(s){return new Promise((a,c)=>{const l=v.document.createElement("img");l.addEventListener("load",()=>{const d=v.document.createElement("canvas");d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0),d.toBlob(u=>u?a(u):c())}),l.addEventListener("error",()=>c()),l.src=s})}(r).then(s=>{const a=sp(s,r),c=a.replace("image/","");return new File([s],`image.${c}`,{type:a})})}
8227(n).then(t).catch(e):e(i))})}function sp(o,t){return o.type?o.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class n2 extends L{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=()=>{const i=this._createButton(Du);return i.set({label:e("Upload image from computer"),tooltip:!0}),i};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.ui.componentFactory.add("menuBar:uploadImage",()=>{const i=this._createButton(Yh);return i.label=e("Image from computer"),i}),t.plugins.has("ImageInsertUI")){const i=t.plugins.get("ImageInsertUI");i.registerIntegration({name:"upload",observable:()=>t.commands.get("uploadImage"),buttonViewCreator:()=>{const r=t.ui.componentFactory.create("uploadImage");return r.bind("label").to(i,"isImageSelected",s=>e(s?"Replace image from computer":"Upload image from computer")),r},formViewCreator:()=>{const r=t.ui.componentFactory.create("uploadImage");return r.withText=!0,r.bind("label").to(i,"isImageSelected",s=>e(s?"Replace from computer":"Upload from computer")),r.on("execute",()=>{i.dropdownView.isOpen=!1}),r}})}}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("uploadImage"),r=e.config.get("image.upload.types"),s=rp(r),a=new t(e.locale),c=n.t;return a.set({acceptedType:r.map(l=>`image/${l}`).join(","),allowMultipleFiles:!0,label:c("Upload image from computer"),icon:$.imageUpload}),a.bind("isEnabled").to(i),a.on("done",(l,d)=>{const u=Array.from(d).filter(h=>s.test(h.type));u.length&&(e.execute("uploadImage",{file:u}),e.editing.view.focus())}),a}}var ap=R(2267),o2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(ap.A,o2),ap.A.locals;var cp=R(7693),i2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(cp.A,i2),cp.A.locals;var lp=R(1559),r2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(lp.A,r2),lp.A.locals;class s2 extends L{constructor(t){super(t),this.uploadStatusChange=(e,n,i)=>{const r=this.editor,s=n.item,a=s.getAttribute("uploadId");if(!i.consumable.consume(n.item,e.name))return;const c=r.plugins.get("ImageUtils"),l=r.plugins.get(be),d=a?n.attributeNewValue:null,u=this.placeholder,h=r.editing.mapper.toViewElement(s),g=i.writer;if(d=="reading")return dp(h,g),void up(c,u,h,g);if(d=="uploading"){const m=l.loaders.get(a);return dp(h,g),void(m?(hp(h,g),function(k,b,A,x){const M=function(N){const H=N.createUIElement("div",{class:"ck-progress-bar"});return N.setCustomProperty("progressBar",!0,H),H}(b);b.insert(b.createPositionAt(k,"end"),M),A.on("change:uploadedPercent",(N,H,W)=>{x.change(Y=>{Y.setStyle("width",W+"%",M)})})}(h,g,m,r.editing.view),function(k,b,A,x){if(x.data){const M=k.findViewImgElement(b);A.setAttribute("src",x.data,M)}}(c,h,g,m)):up(c,u,h,g))}d=="complete"&&l.loaders.get(a)&&function(m,k,b){const A=k.createUIElement("div",{class:"ck-image-upload-complete-icon"});k.insert(k.createPositionAt(m,"end"),A),setTimeout(()=>{b.change(x=>x.remove(x.createRangeOn(A)))},3e3)}(h,g,r.editing.view),function(m,k){mp(m,k,"progressBar")}(h,g),hp(h,g),function(m,k){k.removeClass("ck-appear",m)}(h,g)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function dp(o,t){o.hasClass("ck-appear")||t.addClass("ck-appear",o)}function up(o,t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const i=o.findViewImgElement(e);i.getAttribute("src")!==t&&n.setAttribute("src",t,i),gp(e,"placeholder")||n.insert(n.createPositionAfter(i),function(r){const s=r.createUIElement("div",{class:"ck-upload-placeholder-loader"});return r.setCustomProperty("placeholder",!0,s),s}(n))}function hp(o,t){o.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",o),mp(o,t,"placeholder")}function gp(o,t){for(const e of o.getChildren())if(e.getCustomProperty(t))return e}function mp(o,t,e){const n=gp(o,e);n&&t.remove(t.createRangeOn(n))}var a2=Object.defineProperty,c2=Object.defineProperties,l2=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,d2=Object.prototype.hasOwnProperty,u2=Object.prototype.propertyIsEnumerable,fp=(o,t,e)=>t in o?a2(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;class h2 extends Z{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=gt(t.file),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());e.forEach((s,a)=>{const c=n.getSelectedElement();if(a&&c&&i.isImage(c)){const l=this.editor.model.createPositionAfter(c);this._uploadImage(s,r,l)}else this._uploadImage(s,r)})}_uploadImage(t,e,n){const i=this.editor,r=i.plugins.get(be).createLoader(t),s=i.plugins.get("ImageUtils");var a,c;r&&s.insertImage((a=((l,d)=>{for(var u in d||(d={}))d2.call(d,u)&&fp(l,u,d[u]);if(pp)for(var u of pp(d))u2.call(d,u)&&fp(l,u,d[u]);return l})({}
8227,e),c={uploadId:r.id},c2(a,l2(c))),n)}}class g2 extends L{constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[be,Vs,se,Ht]}static get pluginName(){return"ImageUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,i=t.plugins.get(be),r=t.plugins.get("ImageUtils"),s=t.plugins.get("ClipboardPipeline"),a=rp(t.config.get("image.upload.types")),c=new h2(t);t.commands.add("uploadImage",c),t.commands.add("imageUpload",c),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(l,d)=>{if(u=d.dataTransfer,Array.from(u.types).includes("text/html")&&u.getData("text/html")!=="")return;var u;const h=Array.from(d.dataTransfer.files).filter(g=>!!g&&a.test(g.type));h.length&&(l.stop(),t.model.change(g=>{d.targetRanges&&g.setSelection(d.targetRanges.map(m=>t.editing.mapper.toModelRange(m))),t.execute("uploadImage",{file:h})}))}),this.listenTo(s,"inputTransformation",(l,d)=>{const u=Array.from(t.editing.view.createRangeIn(d.content)).map(g=>g.item).filter(g=>function(m,k){return!(!m.isInlineImageView(k)||!k.getAttribute("src")||!k.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!k.getAttribute("src").match(/^blob:/g))}(r,g)&&!g.getAttribute("uploadProcessed")).map(g=>({promise:e2(g),imageElement:g}));if(!u.length)return;const h=new Be(t.editing.view.document);for(const g of u){h.setAttribute("uploadProcessed",!0,g.imageElement);const m=i.createLoader(g.promise);m&&(h.setAttribute("src","",g.imageElement),h.setAttribute("uploadId",m.id,g.imageElement))}}),t.editing.view.document.on("dragover",(l,d)=>{d.preventDefault()}),e.on("change",()=>{const l=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),d=new Set;for(const u of l)if(u.type=="insert"&&u.name!="$text"){const h=u.position.nodeAfter,g=u.position.root.rootName=="$graveyard";for(const m of m2(t,h)){const k=m.getAttribute("uploadId");if(!k)continue;const b=i.loaders.get(k);b&&(g?d.has(k)||b.abort():(d.add(k),this._uploadImageElements.set(k,m),b.status=="idle"&&this._readAndUpload(b)))}}}),this.on("uploadComplete",(l,{imageElement:d,data:u})=>{const h=u.urls?u.urls:u;this.editor.model.change(g=>{g.setAttribute("src",h.default,d),this._parseAndSetSrcsetAttributeOnImage(h,d,g),r.setImageNaturalSizeAttributes(d)})},{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,i=e.locale.t,r=e.plugins.get(be),s=e.plugins.get(Vs),a=e.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},d=>{d.setAttribute("uploadStatus","reading",c.get(t.id))}),t.read().then(()=>{const d=t.upload(),u=c.get(t.id);if(y.isSafari){const h=e.editing.mapper.toViewElement(u),g=a.findViewImgElement(h);e.editing.view.once("render",()=>{if(!g.parent)return;const m=e.editing.view.domConverter.mapViewToDom(g.parent);if(!m)return;const k=m.style.display;m.style.display="none",m._ckHack=m.offsetHeight,m.style.display=k})}return e.ui&&e.ui.ariaLiveAnnouncer.announce(i("Uploading image")),n.enqueueChange({isUndoable:!1},h=>{h.setAttribute("uploadStatus","uploading",u)}),d}).then(d=>{n.enqueueChange({isUndoable:!1},u=>{const h=c.get(t.id);u.setAttribute("uploadStatus","complete",h),e.ui&&e.ui.ariaLiveAnnouncer.announce(i("Image upload complete")),this.fire("uploadComplete",{data:d,imageElement:h})}),l()}).catch(d=>{if(e.ui&&e.ui.ariaLiveAnnouncer.announce(i("Error during image upload")),t.status!=="error"&&t.status!=="aborted")throw d;t.status=="error"&&d&&s.showWarning(d,{title:i("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},u=>{u.remove(c.get(t.id))}),l()});function l(){n.enqueueChange({isUndoable:!1},d=>{const u=c.get(t.id);d.removeAttribute("uploadId",u),d.removeAttribute("uploadStatus",u),c.delete(t.id)}),r.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let i=0;const r=Object.keys(t).filter(s=>{const a=parseInt(s,10);if(!isNaN(a))return i=Math.max(i,a),!0}).map(s=>`${t[s]} ${s}w`).join(", ");
8227if(r!=""){const s={srcset:r};e.hasAttribute("width")||e.hasAttribute("height")||(s.width=i),n.setAttributes(s,e)}}}function m2(o,t){const e=o.plugins.get("ImageUtils");return Array.from(o.model.createRangeOn(t)).filter(n=>e.isImage(n.item)).map(n=>n.item)}var kp=R(4642),p2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(kp.A,p2),kp.A.locals;var bp=R(3469),f2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(bp.A,f2),bp.A.locals;class k2 extends Z{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map(n=>{if(n.isDefault)for(const i of n.modelElements)this._defaultStyles[i]=n.name;return[n.name,n]}))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("ImageUtils");n.change(r=>{const s=t.value,{setImageSizes:a=!0}=t;let c=i.getClosestSelectedImageElement(n.document.selection);s&&this.shouldConvertImageType(s,c)&&(this.editor.execute(i.isBlockImage(c)?"imageTypeInline":"imageTypeBlock",{setImageSizes:a}),c=i.getClosestSelectedImageElement(n.document.selection)),!s||this._styles.get(s).isDefault?r.removeAttribute("imageStyle",c):r.setAttribute("imageStyle",s,c),a&&i.setImageNaturalSizeAttributes(c)})}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}var b2=Object.defineProperty,wp=Object.getOwnPropertySymbols,w2=Object.prototype.hasOwnProperty,A2=Object.prototype.propertyIsEnumerable,Ap=(o,t,e)=>t in o?b2(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,_p=(o,t)=>{for(var e in t||(t={}))w2.call(t,e)&&Ap(o,e,t[e]);if(wp)for(var e of wp(t))A2.call(t,e)&&Ap(o,e,t[e]);return o};const{objectFullWidth:_2,objectInline:Cp,objectLeft:vp,objectRight:sa,objectCenter:aa,objectBlockLeft:yp,objectBlockRight:xp}=$,rr={get inline(){return{name:"inline",title:"In line",icon:Cp,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:vp,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:yp,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:aa,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:sa,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:xp,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:aa,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:sa,modelElements:["imageBlock"],className:"image-style-side"}}},Ep={full:_2,left:yp,right:xp,center:aa,inlineLeft:vp,inlineRight:sa,inline:Cp},Dp=[{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 Ip(o){U("image-style-configuration-definition-invalid",o)}const ca={normalizeStyles:function(o){return(o.configuredStyles.options||[]).map(t=>function(e){return e=typeof e=="string"?rr[e]?_p({},rr[e]):{name:e}:function(n,i){const r=_p({},i);for(const s in n)Object.prototype.hasOwnProperty.call(i,s)||(r[s]=n[s]);return r}(rr[e.name],e),typeof e.icon=="string"&&(e.icon=Ep[e.icon]||e.icon),e}(t)).filter(t=>function(e,{isBlockPluginLoaded:n,isInlinePluginLoaded:i}){const{modelElements:r,name:s}=e;if(!(r&&r.length&&s))return Ip({style:e}),!1;{const a=[n?"imageBlock":null,i?"imageInline":null];if(!r.some(c=>
8227a.includes(c)))return U("image-style-missing-dependency",{style:e,missingPlugins:r.map(c=>c==="imageBlock"?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(t,o))},getDefaultStylesConfiguration:function(o,t){return o&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:o?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(o){return o.has("ImageBlockEditing")&&o.has("ImageInlineEditing")?[...Dp]:[]},warnInvalidStyle:Ip,DEFAULT_OPTIONS:rr,DEFAULT_ICONS:Ep,DEFAULT_DROPDOWN_DEFINITIONS:Dp};function Tp(o,t){for(const e of t)if(e.name===o)return e}class Mp extends L{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ht]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=ca,n=this.editor,i=n.plugins.has("ImageBlockEditing"),r=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(i,r)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:r}),this._setupConversion(i,r),this._setupPostFixer(),n.commands.add("imageStyle",new k2(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,i=n.model.schema,r=(s=this.normalizedStyles,(c,l,d)=>{if(!d.consumable.consume(l.item,c.name))return;const u=Tp(l.attributeNewValue,s),h=Tp(l.attributeOldValue,s),g=d.mapper.toViewElement(l.item),m=d.writer;h&&m.removeClass(h.className,g),u&&m.addClass(u.className,g)});var s;const a=function(c){const l={imageInline:c.filter(d=>!d.isDefault&&d.modelElements.includes("imageInline")),imageBlock:c.filter(d=>!d.isDefault&&d.modelElements.includes("imageBlock"))};return(d,u,h)=>{if(!u.modelRange)return;const g=u.viewItem,m=St(u.modelRange.getItems());if(m&&h.schema.checkAttribute(m,"imageStyle"))for(const k of l[m.name])h.consumable.consume(g,{classes:k.className})&&h.writer.setAttribute("imageStyle",k.name,m)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",r),n.data.downcastDispatcher.on("attribute:imageStyle",r),t&&(i.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),e&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ht),i=new Map(this.normalizedStyles.map(r=>[r.name,r]));e.registerPostFixer(r=>{let s=!1;for(const a of e.differ.getChanges())if(a.type=="insert"||a.type=="attribute"&&a.attributeKey=="imageStyle"){let c=a.type=="insert"?a.position.nodeAfter:a.range.start.nodeAfter;if(c&&c.is("element","paragraph")&&c.childCount>0&&(c=c.getChild(0)),!n.isImage(c))continue;const l=c.getAttribute("imageStyle");if(!l)continue;const d=i.get(l);d&&d.modelElements.includes(c.name)||(r.removeAttribute("imageStyle",c),s=!0)}return s})}}var Sp=R(6386),C2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Sp.A,C2),Sp.A.locals;class v2 extends L{static get requires(){return[Mp]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Bp(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const r of n)this._createButton(r);const i=Bp([...e.filter(pt),...ca.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const r of i)this._createDropdown(r,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,i=>{let r;const{defaultItem:s,items:a,title:c}=t,l=a.filter(g=>e.find(({name:m})=>Np(m)===g)).map(g=>{const m=n.create(g);return g===s&&(r=m),m});
8227a.length!==l.length&&ca.warnInvalidStyle({dropdown:t});const d=Pe(i,Pi),u=d.buttonView,h=u.arrowView;return Ls(d,l,{enableActiveItemFocusOnDropdownOpen:!0}),u.set({label:Pp(c,r.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:c}),u.bind("icon").toMany(l,"isOn",(...g)=>{const m=g.findIndex(Ve);return m<0?r.icon:l[m].icon}),u.bind("label").toMany(l,"isOn",(...g)=>{const m=g.findIndex(Ve);return Pp(c,m<0?r.label:l[m].label)}),u.bind("isOn").toMany(l,"isOn",(...g)=>g.some(Ve)),u.bind("class").toMany(l,"isOn",(...g)=>g.some(Ve)?"ck-splitbutton_flatten":void 0),u.on("execute",()=>{l.some(({isOn:g})=>g)?d.isOpen=!d.isOpen:r.fire("execute")}),d.bind("isEnabled").toMany(l,"isEnabled",(...g)=>g.some(Ve)),this.listenTo(d,"execute",()=>{this.editor.editing.view.focus()}),d})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Np(e),n=>{const i=this.editor.commands.get("imageStyle"),r=new ot(n);return r.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",s=>s===e),r.on("execute",this._executeCommand.bind(this,e)),r})}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function Bp(o,t){for(const e of o)t[e.title]&&(e.title=t[e.title]);return o}function Np(o){return`imageStyle:${o}`}function Pp(o,t){return(o?o+": ":"")+t}class y2 extends L{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new pl(t)),t.commands.add("outdent",new pl(t))}}class x2 extends L{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?$.indent:$.outdent,r=e.uiLanguageDirection=="ltr"?$.outdent:$.indent;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}_defineButton(t,e,n){const i=this.editor;i.ui.componentFactory.add(t,()=>{const r=this._createButton(ot,t,e,n);return r.set({tooltip:!0}),r}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(Xt,t,e,n))}_createButton(t,e,n,i){const r=this.editor,s=r.commands.get(e),a=new t(r.locale);return a.set({label:n,icon:i}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>{r.execute(e),r.editing.view.focus()}),a}}class E2{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,i)=>{if(!i.consumable.test(n.item,"attribute:linkHref")||!n.item.is("selection")&&!i.schema.isInline(n.item))return;const r=i.writer,s=r.document.selection;for(const a of this._definitions){const c=r.createAttributeElement("a",a.attributes,{priority:5});a.classes&&r.addClass(a.classes,c);for(const l in a.styles)r.setStyle(l,a.styles[l],c);r.setCustomProperty("link",!0,c),a.callback(n.attributeNewValue)?n.item.is("selection")?r.wrap(s.getFirstRange(),c):r.wrap(i.mapper.toViewRange(n.range),c):r.unwrap(i.mapper.toViewRange(n.range),c)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:i,mapper:r})=>{const s=r.toViewElement(n.item),a=Array.from(s.getChildren()).find(c=>c.is("element","a"));for(const c of this._definitions){const l=Ce(c.attributes);if(c.callback(n.attributeNewValue)){for(const[d,u]of l)d==="class"?i.addClass(u,a):i.setAttribute(d,u,a);c.classes&&i.addClass(c.classes,a);for(const d in c.styles)i.setStyle(d,c.styles[d],a)}else{for(const[d,u]of l)d==="class"?i.removeClass(u,a):i.removeAttribute(d,a);c.classes&&i.removeClass(c.classes,a);for(const d in c.styles)i.removeStyle(d,a)}}})}}}const D2=function(o,t,e){var n=o.length;return e=e===void 0?n:e,!t&&e>=n?o:Dl(o,t,e)};var I2=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Op=function(o){return I2.test(o)},T2=function(o){return o.split("")};var Lp="\\ud800-\\udfff",M2="["+Lp+"]",la="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",da="\\ud83c[\\udffb-\\udfff]",zp="[^"+Lp+"]",Rp="(?:\\ud83c[\\udde6-\\uddff]){2}",jp="[\\ud800-\\udbff][\\udc00-\\udfff]",Fp="(?:"+la+"|"+da+")?",Vp="[\\ufe0e\\ufe0f]?",S2=Vp+Fp+("(?:\\u200d(?:"+[zp,Rp,jp].join("|")+")"+Vp+Fp+")*"),B2="(?:"+[zp+la+"?",la,Rp,jp,M2].join("|")+")",N2=RegExp(da+"(?="+da+")|"+B2+S2,"g");const P2=function(o){return o.match(N2)||[]}
8227,O2=function(o){return Op(o)?P2(o):T2(o)},L2=function(o){return function(t){t=Xr(t);var e=Op(t)?O2(t):void 0,n=e?e[0]:t.charAt(0),i=e?D2(e,1).join(""):t.slice(1);return n[o]()+i}}("toUpperCase"),z2=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,R2=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,j2=/^((\w+:(\/{2,})?)|(\W))/i,F2=["https?","ftps?","mailto"],sr="Ctrl+K";function Hp(o,{writer:t}){const e=t.createAttributeElement("a",{href:o},{priority:5});return t.setCustomProperty("link",!0,e),e}function Up(o,t=F2){const e=String(o),n=t.join("|");return function(i,r){return!!i.replace(z2,"").match(r)}(e,new RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",n)}`,"i"))?e:"#"}function ua(o,t){return!!o&&t.checkAttribute(o.name,"linkHref")}function ha(o,t){const e=(n=o,R2.test(n)?"mailto:":t);var n;const i=!!e&&!qp(o);return o&&i?e+o:o}function qp(o){return j2.test(o)}function Gp(o){window.open(o,"_blank","noopener")}class V2 extends Z{constructor(){super(...arguments),this.manualDecorators=new ue,this.automaticDecorators=new E2}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||St(e.getSelectedBlocks());ua(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const i of this.manualDecorators)i.value=this._getDecoratorStateFromModel(i.id)}execute(t,e={}){const n=this.editor.model,i=n.document.selection,r=[],s=[];for(const a in e)e[a]?r.push(a):s.push(a);n.change(a=>{if(i.isCollapsed){const c=i.getFirstPosition();if(i.hasAttribute("linkHref")){const l=Wp(i);let d=Wi(c,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===l&&(d=this._updateLinkContent(n,a,d,t)),a.setAttribute("linkHref",t,d),r.forEach(u=>{a.setAttribute(u,!0,d)}),s.forEach(u=>{a.removeAttribute(u,d)}),a.setSelection(a.createPositionAfter(d.end.nodeBefore))}else if(t!==""){const l=Ce(i.getAttributes());l.set("linkHref",t),r.forEach(u=>{l.set(u,!0)});const{end:d}=n.insertContent(a.createText(t,l),c);a.setSelection(d)}["linkHref",...r,...s].forEach(l=>{a.removeSelectionAttribute(l)})}else{const c=n.schema.getValidRanges(i.getRanges(),"linkHref"),l=[];for(const u of i.getSelectedBlocks())n.schema.checkAttribute(u,"linkHref")&&l.push(a.createRangeOn(u));const d=l.slice();for(const u of c)this._isRangeToUpdate(u,l)&&d.push(u);for(const u of d){let h=u;if(d.length===1){const g=Wp(i);i.getAttribute("linkHref")===g&&(h=this._updateLinkContent(n,a,u,t),a.setSelection(a.createSelection(h)))}a.setAttribute("linkHref",t,h),r.forEach(g=>{a.setAttribute(g,!0,h)}),s.forEach(g=>{a.removeAttribute(g,h)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return ua(i,e.schema)?i.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,i){const r=e.createText(i,{linkHref:i});return t.insertContent(r,n)}}function Wp(o){if(o.isCollapsed){const t=o.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(o.getFirstRange().getItems());if(t.length>1)return null;const e=t[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class H2 extends Z{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();ua(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,i=t.commands.get("link");e.change(r=>{const s=n.isCollapsed?[Wi(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const a of s)if(r.removeAttribute("linkHref",a),i)for(const c of i.manualDecorators)r.removeAttribute(c.id,a)})}}class U2 extends lt(){constructor({id:t,label:e,attributes:n,classes:i,styles:r,defaultValue:s}){super(),this.id=t,this.set("value",void 0),this.defaultValue=s,this.label=e,this.attributes=n,this.classes=i,this.styles=r}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Kp=R(7719),q2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Kp.A,q2),Kp.A.locals;var G2=Object.defineProperty,$p=Object.getOwnPropertySymbols,W2=Object.prototype.hasOwnProperty,K2=Object.prototype.propertyIsEnumerable,Yp=(o,t,e)=>t in o?G2(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,$2=(o,t)=>{for(var e in t||(t={}))W2.call(t,e)&&Yp(o,e,t[e]);if($p)for(var e of $p(t))K2.call(t,e)&&Yp(o,e,t[e]);return o};const Qp="automatic",Y2=/^(https?:)?\/\//;class Zp extends L{static get pluginName(){return"LinkEditing"}static get requires(){return[Cg,pg,se]}constructor(t){super(t),t.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const t=this.editor,e=this.editor.config.get("link.allowedProtocols");t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Hp}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(i,r)=>Hp(Up(i,e),r)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:i=>i.getAttribute("href")}}),t.commands.add("link",new V2(t)),t.commands.add("unlink",new H2(t));const n=function(i,r){const s={"Open in a new tab":i("Open in a new tab"),Downloadable:i("Downloadable")};return r.forEach(a=>("label"in a&&s[a.label]&&(a.label=s[a.label]),a)),r}(t.t,function(i){const r=[];if(i)for(const[s,a]of Object.entries(i)){const c=Object.assign({},a,{id:`link${L2(s)}`});
8227r.push(c)}return r}(t.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter(i=>i.mode===Qp)),this._enableManualDecorators(n.filter(i=>i.mode==="manual")),t.plugins.get(Cg).registerAttribute("linkHref"),function(i,r,s,a){const c=i.editing.view,l=new Set;c.document.registerPostFixer(d=>{const u=i.model.document.selection;let h=!1;if(u.hasAttribute(r)){const g=Wi(u.getFirstPosition(),r,u.getAttribute(r),i.model),m=i.editing.mapper.toViewRange(g);for(const k of m.getItems())k.is("element",s)&&!k.hasClass(a)&&(d.addClass(a,k),l.add(k),h=!0)}return h}),i.conversion.for("editingDowncast").add(d=>{function u(){c.change(h=>{for(const g of l.values())h.removeClass(a,g),l.delete(g)})}d.on("insert",u,{priority:"highest"}),d.on("remove",u,{priority:"highest"}),d.on("attribute",u,{priority:"highest"}),d.on("selection",u,{priority:"highest"})})}(t,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Qp,callback:i=>!!i&&Y2.test(i),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(i=>{e.model.schema.extend("$text",{allowAttributes:i.id});const r=new U2(i);n.add(r),e.conversion.for("downcast").attributeToElement({model:r.id,view:(s,{writer:a,schema:c},{item:l})=>{if((l.is("selection")||c.isInline(l))&&s){const d=a.createAttributeElement("a",r.attributes,{priority:5});r.classes&&a.addClass(r.classes,d);for(const u in r.styles)a.setStyle(u,r.styles[u],d);return a.setCustomProperty("link",!0,d),d}}}),e.conversion.for("upcast").elementToAttribute({view:$2({name:"a"},r._createPattern()),model:{key:r.id}})})}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(n,i)=>{if(!(y.isMac?i.domEvent.metaKey:i.domEvent.ctrlKey))return;let r=i.domTarget;if(r.tagName.toLowerCase()!="a"&&(r=r.closest("a")),!r)return;const s=r.getAttribute("href");s&&(n.stop(),i.preventDefault(),Gp(s))},{context:"$capture"}),this.listenTo(e,"keydown",(n,i)=>{const r=t.commands.get("link").value;r&&i.keyCode===X.enter&&i.altKey&&(n.stop(),Gp(r))})}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",(n,{attributeKeys:i})=>{i.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change(r=>{var s;(function(a,c){a.removeSelectionAttribute("linkHref");for(const l of c)a.removeSelectionAttribute(l)})(r,(s=t.schema,s.getDefinition("$text").allowAttributes.filter(a=>a.startsWith("link"))))})})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",(i,r)=>{e.change(s=>{const a=s.createRangeIn(r.content);for(const c of a.getItems())if(c.hasAttribute("linkHref")){const l=ha(c.getAttribute("linkHref"),n);s.setAttribute("linkHref",l,c)}})})}}var Jp=R(3817),Q2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Jp.A,Q2),Jp.A.locals;class Z2 extends G{constructor(t,e,n){super(t),this.focusTracker=new Bt,this.keystrokes=new zt,this._focusables=new oe;const i=t.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),$.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),$.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new re({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const r=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&r.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:r,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),di({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEac
8227h(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){const t=this.locale.t,e=new Bi(this.locale,Oi);return e.label=t("Link URL"),e}_createButton(t,e,n,i){const r=new ot(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const i=new Mi(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,t],"value",(r,s)=>s===void 0&&r===void 0?!!n.defaultValue:!!r),i.on("execute",()=>{n.set("value",!i.isOn)}),e.add(i)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new G;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(i=>({tag:"li",children:[i],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}get url(){const{element:t}=this.urlInputView.fieldView;return t?t.value.trim():null}}var Xp=R(8762),J2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Xp.A,J2),Xp.A.locals;class X2 extends G{constructor(t,e={}){super(t),this.focusTracker=new Bt,this.keystrokes=new zt,this._focusables=new oe;const n=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(n("Edit link"),$.pencil,"edit"),this.set("href",void 0),this._linkConfig=e,this._focusCycler=new re({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const i=new ot(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const t=new ot(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",i=>i&&Up(i,this._linkConfig.allowedProtocols)),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",i=>i||n("This link has no URL")),t.bind("isEnabled").to(this,"href",i=>!!i),t.template.tag="a",t.template.eventListeners={},t}}const De="link-ui";class tE extends L{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Vi]}static get pluginName(){return"LinkUI"}init(){const t=this.editor,e=this.editor.t;t.editing.view.addObserver(K_),this._balloon=t.plugins.get(Vi),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:De,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:De,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Create link"),keystroke:sr},{label:e("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new X2(t.locale,t.config.get("link")),n=t.commands.get("link"),i=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(r,s)=>{this._hideUI(),s()}),e.keystrokes.set(sr,(r,s)=>{this._addFormView(),s()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),i=new($r(Z2))(t.locale,e,function(r){const s=r.t,a=r.config.get("link.allowCreatingEmptyLinks");return[c=>{if(!a&&!c.url.length)return s("Link URL must not be empty.")}]}(t));return i.urlInputView.fieldView.bind("value").to(e,"value"),i.urlInputView.bind("isEnabled").to(e,"isEnabled"),i.saveButtonView.bind("isEnabled").to(e,"isEnabled"),this.listenTo(i,"submit",()=>{if(i.isValid()){const{value:r}=i.urlInputView.fieldView.element,s=ha(r,n);t.execute("link",s,i.getDecoratorSwitchesState()),this._closeFormView()}}),this.listenTo(i.urlInputView,"change:errorText",()=>{t.ui.update()}),this.listenTo(i,"cancel",()=>{this._closeFormView()}),i.keystrokes.set("Esc",(r,s)=>{this._closeFormView(),s()}),i}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link");t.ui.componentFactory.add("link",()=>{const n=this._createButton(ot);return n.set({tooltip:!0,isToggleable:!0}),n.bind("isOn").to(e,"value",i=>!!i),n}),t.ui.componentFactory.add("menuBar:link",()=>this._createButton(Xt))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("link"),r=new t(e.locale),s=n.t;return r.set({label:s("Link"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
8227<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:sr}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",()=>this._showUI(!0)),r}_enableBalloonActivators(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),t.keystrokes.set(sr,(n,i)=>{i(),t.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),li({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=t.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),t.value!==void 0?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),i=s();const r=()=>{const a=this._getSelectedLinkElement(),c=s();n&&!a||!n&&c!==i?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=a,i=c};function s(){return e.selection.focus.getAncestors().reverse().find(a=>a.is("element"))}this.listenTo(t.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const t=this._balloon.visibleView;return!!this.formView&&t==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let i;if(e.markers.has(De)){const r=Array.from(this.editor.editing.mapper.markerNameToElements(De)),s=t.createRange(t.createPositionBefore(r[0]),t.createPositionAfter(r[r.length-1]));i=t.domConverter.viewRangeToDom(s)}else i=()=>{const r=this._getSelectedLinkElement();return r?t.domConverter.mapViewToDom(r):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:i}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&Et(n))return ga(e.getFirstPosition());{const i=e.getFirstRange().getTrimmed(),r=ga(i.start),s=ga(i.end);return r&&r==s&&t.createRangeIn(r).getTrimmed().isEqual(i)?r:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change(e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(De))e.updateMarker(De,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition(({item:r})=>!t.schema.isContent(r),{boundaries:n});e.addMarker(De,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(De,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(De)&&t.change(e=>{e.removeMarker(De)})}}function ga(o){return o.getAncestors().find(t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e})||null}const tf=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class eE extends L{static get requires(){return[Le,Zp]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?Wi(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,i=n.document.selection,r=i.getFirstPosition(),s=i.getLastPosition();let a=e.getJoined(this._expandLinkRange(n,r)||e);a&&(a=a.getJoined(this._expandLinkRange(n,s)||e)),a&&(a.start.isBefore(r)||a.end.isAfter(s))&&t.setSelection(a)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,i=t.plugins.get("ClipboardPipeline"),r=t.commands.get("link");i.on("inputTransformation",(s,a)=>
8227{if(!this.isEnabled||!r.isEnabled||n.isCollapsed||a.method!=="paste"||n.rangeCount>1)return;const c=n.getFirstRange(),l=a.dataTransfer.getData("text/plain");if(!l)return;const d=l.match(tf);d&&d[2]===l&&(e.change(u=>{this._selectEntireLinks(u,c),r.execute(l)}),s.stop())},{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new _g(t.model,n=>{if(!function(r){return r.length>4&&r[r.length-1]===" "&&r[r.length-2]!==" "}(n))return;const i=ef(n.substr(0,n.length-1));return i?{url:i}:void 0});e.on("matched:data",(n,i)=>{const{batch:r,range:s,url:a}=i;if(!r.isTyping)return;const c=s.end.getShiftedBy(-1),l=c.getShiftedBy(-a.length),d=t.model.createRange(l,c);this._applyAutoLink(a,d)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",()=>{const i=e.document.selection.getFirstPosition();if(!i.parent.previousSibling)return;const r=e.createRangeIn(i.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(r)})}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",()=>{const i=e.document.selection.getFirstPosition(),r=e.createRange(e.createPositionAt(i.parent,0),i.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(r)})}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:i}=Ag(t,e),r=ef(n);if(r){const s=e.createRange(i.end.getShiftedBy(-r.length),i.end);this._applyAutoLink(r,s)}}_applyAutoLink(t,e){const n=this.editor.model,i=ha(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(r,s){return s.schema.checkAttributeInSelection(s.createSelection(r),"linkHref")}(e,n)&&qp(i)&&!function(r){const s=r.start.nodeAfter;return!!s&&s.hasAttribute("linkHref")}(e)&&this._persistAutoLink(i,e)}_persistAutoLink(t,e){const n=this.editor.model,i=this.editor.plugins.get("Delete");n.enqueueChange(r=>{r.setAttribute("linkHref",t,e),n.enqueueChange(()=>{i.requestUndoOnBackspace()})})}}function ef(o){const t=tf.exec(o);return t?t[2]:null}var nf=R(4808),nE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(nf.A,nE),nf.A.locals;class ce{constructor(t,e){this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward=e.direction=="forward",this._includeSelf=!!e.includeSelf,this._sameAttributes=gt(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(t,e){return St(new this(t,e)[Symbol.iterator]())}*[Symbol.iterator](){const t=[];for(const{node:e}of Ro(this._getStartNode(),this._isForward?"forward":"backward")){const n=e.getAttribute("listIndent");if(n<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=n}else if(n>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){t.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){t.length&&(yield*t,t.length=0);break}continue}if(this._sameAttributes.some(i=>e.getAttribute(i)!==this._startElement.getAttribute(i)))break}t.length&&(yield*t,t.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*Ro(o,t="forward"){const e=t=="forward",n=[];let i=null;for(;Tt(o);){let r=null;if(i){const s=o.getAttribute("listIndent"),a=i.getAttribute("listIndent");s>a?n[a]=i:s<a?(r=n[s],n.length=s):r=i}yield{node:o,previous:i,previousNodeInList:r},i=o,o=e?o.nextSibling:o.previousSibling}}class oE{constructor(t){this._listHead=t}[Symbol.iterator](){return Ro(this._listHead,"forward")}}var iE=Object.defineProperty,rE=Object.defineProperties,sE=Object.getOwnPropertyDescriptors,of=Object.getOwnPropertySymbols,aE=Object.prototype.hasOwnProperty,cE=Object.prototype.propertyIsEnumerable,rf=(o,t,e)=>t in o?iE(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,jo=(o,t)=>{for(var e in t||(t={}))aE.call(t,e)&&rf(o,e,t[e]);if(of)for(var e of of(t))cE.call(t,e)&&rf(o,e,t[e]);return o},ma=(o,t)=>rE(o,sE(t));class $n{static next(){return V()}}function Tt(o){return!!o&&o.is("element")&&o.hasAttribute("listItemId")}function pa(o,t={}){return[...Ke(o,ma(jo({},t),{direction:"backward"})),...Ke(o,ma(jo({},t),{direction:"forward"}))]}function Ke(o,t={}){const e=t.direction=="forward",n=Array.from(new ce(o,ma(jo({},t),{includeSelf:e,sameIndent:!0,sameAttributes:"listItemId"})));return e?n:n.reverse()}function sf(o,t){const e=new ce(o,jo({sameIndent:!0,sameAttributes:"listType"},t)),n=new ce(o,jo({sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward"},t));return[...Array.from(e).reverse(),...n]}function gn(o){return!ce.first(o,{sameIndent:!0,sameAttributes:"listItemId"})}function af(o){return!ce.first(o,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function Fo(o,t={}){o=gt(o);const e=t.withNested!==!1,n=new Set;for(const i of o)for(const r of pa(i,{higherIndent:e}))n.add(r);return mn(n)}function lE(o){o=gt(o);const t=new Set;for(const e of o)for(const n of sf(e))t.add(n);return mn(t)}function fa(o,t){const e=Ke(o,{direction:"forward"}),n=$n.next();for(const i of e)t.setAttribute("listItemId",n,i);return e}function ka(o,t,e){const n={};for(const[r,s]of t.getAttributes())r.startsWith("list")&&(n[r]=s);const i=Ke(o,{direction:"forward"});for(const r of i)e.setAttributes(n,r);return i}function ba(o,t,{expand:e,indentBy:n=1}={}){o=gt(o);const i=e?Fo(o):o;for(const r of i){const s=r.getAttribute("listIndent")+n;s<0?ar(r,t):t.setAttribute("listIndent",s,r)}return i}function ar(o,t){o=gt(o);for(const e of o)e.is("element","listItem")&&t.rename(e,"paragraph");for(const e of o)for(const n of e.getAttributeKeys())n.startsWith("list")&&t.removeAttribute(n,e);return o}function Vo(o){if(!o.length)return!1;const t=o[0].getAttribute("listItemId");return!!t&&!o.some(e=>e.getAttribute("listItemId")!=t)}function mn(o){return Array.from(o).filter(t=>t.root.rootName!=="$graveyard").sort((t,e)=>t.index-e.index)}function Ho(o){const t=o.document.selection.getSelectedElement();return t&&o.schema.isObject(t)&&o.schema.isBlock(t)?t:null}function wa(o,t){return t.checkChild(o.parent,"listItem")&&t.checkChild(o,"$text")&&!t.isObject(o)}function dE(o){return o=="numbered"||o=="customNumbered"}function uE(o,t,e){return Ke(t,{direction:"forward"}).pop().index>o.index?ka(o,t,e):[]}class cf extends Z{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=lf(t.document.selection);t.change(n=>{const i=[];Vo(e)&&!gn(e[0])?(this._direction=="forward"&&i.push(...ba(e,n)),i.push(...fa(e[0],n))):this._direction=="forward"?i.push(...ba(e,n,{expand:!0})):i.push(...function(r,s){const a=Fo(r=gt(r)),c=new Set,l=Math.min(...a.map(u=>u.getAttribute("listIndent"))),d=new Map;for(const u of a)d.set(u,ce.first(u,{lowerIndent:!0}));for(const u of a){if(c.has(u))continue;c.add(u);const h=u.getAttribute("listIndent")-1;if(h<0)ar(u,s);else{if(u.getAttribute("listIndent")==l){const g=uE(u,d.get(u),s);for(const m of g)c.add(m);if(g.length)continue}s.setAttribute("listIndent",h,u)}}return mn(c)}(e,n));for(const r of i){if(!r.hasAttribute("listType"))continue;const s=ce.first(r,{sameIndent:!0});s&&n.setAttribute("listType",s.getAttribute("listType"),r)}this._fireAfterExecute(i)})}_fireAfterExecute(t){this.fire("afterExecute",mn(new Set(t)))}_checkEnabled(){let t=lf(this.editor.model.document.selection),e=t[0];if(!e)return!1;if(this._direction=="backward"||Vo(t)&&!gn(t[0]))return!0;t=Fo(t),e=t[0];const n=ce.first(e,{sameIndent:!0});return!!n&&n.getAttribute("listType")==e.getAttribute("listType")}}function lf(o){const t=Array.from(o.getSelectedBlocks()),e=t.findIndex(n=>!Tt(n));return e!=-1&&(t.length=e),t}var hE=Object.defineProperty,gE=Object.defineProperties,mE=Object.getOwnPropertyDescriptors,df=Object.getOwnPropertySymbols,pE=Object.prototype.hasOwnProperty,fE=Object.prototype.propertyIsEnumerable,uf=(o,t,e)=>t in o?hE(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Aa=(o,t)=>{for(var e in t||(t={}))pE.call(t,e)&&uf(o,e,t[e]);if(df)for(var e of df(t))fE.call(t,e)&&uf(o,e,t[e]);return o},_a=(o,t)=>gE(o,mE(t));class cr extends Z{constructor(t,e,n={}){super(t),this.type=e,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}
8227){const e=this.editor.model,n=e.document,i=Ho(e),r=Array.from(n.selection.getSelectedBlocks()).filter(a=>e.schema.checkAttribute(a,"listType")||wa(a,e.schema)),s=t.forceValue!==void 0?!t.forceValue:this.value;e.change(a=>{if(s){const c=r[r.length-1],l=Ke(c,{direction:"forward"}),d=[];l.length>1&&d.push(...fa(l[1],a)),d.push(...ar(r,a)),d.push(...function(u,h){const g=[];let m=Number.POSITIVE_INFINITY;for(const{node:k}of Ro(u.nextSibling,"forward")){const b=k.getAttribute("listIndent");if(b==0)break;b<m&&(m=b);const A=b-m;h.setAttribute("listIndent",A,k),g.push(k)}return g}(c,a)),this._fireAfterExecute(d)}else if((i||n.selection.isCollapsed)&&Tt(r[0])){const c=sf(i||r[0],this._listWalkerOptions);for(const l of c)a.setAttributes(_a(Aa({},t.additionalAttributes),{listType:this.type}),l);this._fireAfterExecute(c)}else{const c=[];for(const l of r)if(l.hasAttribute("listType"))for(const d of Fo(l,{withNested:!1}))d.getAttribute("listType")!=this.type&&(a.setAttributes(_a(Aa({},t.additionalAttributes),{listType:this.type}),d),c.push(d));else!l.is("element","listItem")&&wa(l,e.schema)&&a.rename(l,"listItem"),a.setAttributes(_a(Aa({},t.additionalAttributes),{listIndent:0,listItemId:$n.next(),listType:this.type}),l),c.push(l);this._fireAfterExecute(c)}})}_fireAfterExecute(t){this.fire("afterExecute",mn(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const n of e)if(n.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,n=t.document.selection,i=Array.from(n.getSelectedBlocks());if(!i.length)return!1;if(this.value)return!0;for(const r of i)if(e.checkAttribute(r,"listType")||wa(r,e))return!0;return!1}}class hf extends Z{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,n=e.document.selection,i=[];e.change(r=>{const{firstElement:s,lastElement:a}=this._getMergeSubjectElements(n,t),c=s.getAttribute("listIndent")||0,l=a.getAttribute("listIndent"),d=a.getAttribute("listItemId");if(c!=l){const h=(u=a,Array.from(new ce(u,{direction:"forward",higherIndent:!0})));i.push(...ba([a,...h],r,{indentBy:c-l,expand:c<l}))}var u;if(t){let h=n;n.isCollapsed&&(h=r.createSelection(r.createRange(r.createPositionAt(s,"end"),r.createPositionAt(a,0)))),e.deleteContent(h,{doNotResetEntireContent:n.isCollapsed});const g=h.getLastPosition().parent,m=g.nextSibling;i.push(g),m&&m!==a&&m.getAttribute("listItemId")==d&&i.push(...ka(m,g,r))}else i.push(...ka(a,s,r));this._fireAfterExecute(i)})}_fireAfterExecute(t){this.fire("afterExecute",mn(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,n=Ho(t);if(e.isCollapsed||n){const i=n||e.getFirstPosition().parent;if(!Tt(i))return!1;const r=this._direction=="backward"?i.previousSibling:i.nextSibling;if(!r||Vo([i,r]))return!1}else{const i=e.getLastPosition(),r=e.getFirstPosition();if(i.parent===r.parent||!Tt(i.parent))return!1}return!0}_getMergeSubjectElements(t,e){const n=Ho(this.editor.model);let i,r;if(t.isCollapsed||n){const s=n||t.getFirstPosition().parent,a=gn(s);this._direction=="backward"?(r=s,i=a&&!e?ce.first(s,{sameIndent:!0,lowerIndent:!0}):s.previousSibling):(i=s,r=s.nextSibling)}else i=t.getFirstPosition().parent,r=t.getLastPosition().parent;return{firstElement:i,lastElement:r}}}class gf extends Z{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(t=>{const e=fa(this._getStartBlock(),t);this._fireAfterExecute(e)})}_fireAfterExecute(t){this.fire("afterExecute",mn(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&Tt(e)&&!gn(e)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?t:t.nextSibling}}class kE extends L{static get pluginName(){return"ListUtils"}expandListBlocksToCompleteList(t){return lE(t)}isFirstBlockOfListItem(t){return gn(t)}isListItemBlock(t){return Tt(t)}expandListBlocksToCompleteItems(t,e={}){return Fo(t,e)}isNumberedListType(t){return dE(t)}}function mf(o){return o.is("element","ol")||o.is("element","ul")}function lr(o){return o.is("element","li")}function bE(o,t,e,n=ff(e,t)){return o.createAttributeElement(pf(e),null,{priority:2*t/100-100,id:n})}function wE(o,t,e){return o.createAttributeElement("li",null,{priority:(2*t+1)/100-100,id:e})}function pf(o){return o=="numbered"||o=="customNumbered"?"ol":"ul"}function ff(o,t){return`list-${o}-${t}`}function we(o,t){const e=o.nodeBefore;if(Tt(e)){let n=e;for(const{node:i}of Ro(n,"backward"))if(n=i,t.has(n))return;t.set(e,n)}else{const n=o.nodeAfter;Tt(n)&&t.set(n,n)}}function AE(){return(o,t,e)=>{const{writer:n,schema:i}=e;if(!t.modelRange)return;const r=Array.from(t.modelRange.getItems({shallow:!0})).filter(u=>i.checkAttribute(u,"listItemId"));if(!r.length)return;const s=$n.next(),a=function(u){let h=0,g=u.parent;for(;g;){if(lr(g))h++;else{const m=g.previousSibling;m&&lr(m)&&h++}g=g.parent}return h}(t.viewItem);let c=t.viewItem.parent&&t.viewItem.parent.is("element","ol")?"numbered":"bulleted";const l=r[0].getAttribute("listType");l&&(c=l);const d={listItemId:s,listIndent:a,listType:c};for(const u of r)u.hasAttribute("listItemId")||n.setAttributes(d,u);r.length>1&&r[1].getAttribute("listItemId")!=d.listItemId&&e.keepEmptyElement(r[0])}}function kf(){return(o,t,e)=>{if(!e.consumable.test(t.viewItem,{name:!0}))return;const n=new Be(t.viewItem.document);for(const i of Array.from(t.viewItem.getChildren()))lr(i)||mf(i)||n.remove(i)}}function bf(o,t,e,{dataPipeline:n}={}){const i=function(r){return(s,a)=>{const c=[];for(const l of r)s.hasAttribute(l)&&c.push(`attribute:${l}`);return!!c.every(l=>a.test(s,l)!==!1)&&(c.forEach(l=>a.consume(s,l)),!0)}}(o);return(r,s,a)=>{const{writer:c,mapper:l,consumable:d}=a,u=s.item;if(!o.includes(s.attributeKey)||!i(u,d))return;const h=function(m,k,b){const A=b.createRangeOn(m);return k.toViewRange(A).getTrimmed().end.nodeBefore}(u,l,e);Af(h,c,l),function(m,k){let b=m.parent;for(;b.is("attributeElement")&&["ul","ol","li"].includes(b.name);){const A=b.parent;k.unwrap(k.createRangeOn(m),b),b=A}}(h,c);const g=function(m,k,b,A,{dataPipeline:x}){let M=A.createRangeOn(k);if(!gn(m))return M;for(const N of b){if(N.scope!="itemMarker")continue;const H=N.createElement(A,m,{dataPipeline:x});if(!H||(A.setCustomProperty("listItemMarker",!0,H),N.canInjectMarkerIntoElement&&N.canInjectMarkerIntoElement(m)?A.insert(A.createPositionAt(k,0),H):(A.insert(M.start,H),M=A.createRange(A.createPositionBefore(H),A.createPositionAfter(k))),!N.createWrapperElement||!N.canWrapElement))continue;const W=N.createWrapperElement(A,m,{dataPipeline:x});A.setCustomProperty("listItemWrapper",!0,W),N.canWrapElement(m)?M=A.wrap(M,W):(M=A.wrap(A.createRangeOn(H),W),M=A.createRange(M.start,A.createPositionAfter(k)))}return M}(u,h,t,c,{dataPipeline:n});(function(m,k,b,A){if(!m.hasAttribute("listIndent"))return;const x=m.getAttribute("listIndent");let M=m;for(let N=x;N>=0;N--){const H=wE(A,N,M.getAttribute("listItemId")),W=bE(A,N,M.getAttribute("listType"));for(const Y of b)Y.scope!="list"&&Y.scope!="item"||!M.hasAttribute(Y.attributeName)||Y.setAttributeOnDowncast(A,M.getAttribute(Y.attributeName),Y.scope=="list"?W:H);
8227if(k=A.wrap(k,H),k=A.wrap(k,W),N==0||(M=ce.first(M,{lowerIndent:!0}),!M))break}})(u,g,t,c)}}function wf(o,{dataPipeline:t}={}){return(e,{writer:n})=>{if(!_f(e,o))return null;if(!t)return n.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const i=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,i),i}}function Af(o,t,e){for(;o.parent.is("attributeElement")&&o.parent.getCustomProperty("listItemWrapper");)t.unwrap(t.createRangeOn(o),o.parent);const n=[];i(t.createPositionBefore(o).getWalker({direction:"backward"})),i(t.createRangeIn(o).getWalker());for(const r of n)t.remove(r);function i(r){for(const{item:s}of r){if(s.is("element")&&e.toModelElement(s))break;s.is("element")&&s.getCustomProperty("listItemMarker")&&n.push(s)}}}function _f(o,t,e=pa(o)){if(!Tt(o))return!1;for(const n of o.getAttributeKeys())if(!n.startsWith("selection:")&&!t.includes(n))return!1;return e.length<2}var Cf=R(1232),_E={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Cf.A,_E),Cf.A.locals;var vf=R(6903),CE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(vf.A,CE),vf.A.locals;const dr=["listType","listIndent","listItemId"];class vE extends L{constructor(t){super(t),this._downcastStrategies=[],t.config.define("list.multiBlock",!0)}static get pluginName(){return"ListEditing"}static get requires(){return[Ki,Le,kE,se]}init(){const t=this.editor,e=t.model,n=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new _("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});e.schema.register("$listItem",{allowAttributes:dr}),n?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const i of dr)e.schema.setAttributeProperties(i,{copyOnReplace:!0});t.commands.add("numberedList",new cr(t,"numbered")),t.commands.add("bulletedList",new cr(t,"bulleted")),t.commands.add("customNumberedList",new cr(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new cr(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new cf(t,"forward")),t.commands.add("outdentList",new cf(t,"backward")),t.commands.add("splitListItemBefore",new gf(t,"before")),t.commands.add("splitListItemAfter",new gf(t,"after")),n&&(t.commands.add("mergeListItemBackward",new hf(t,"backward")),t.commands.add("mergeListItemForward",new hf(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList"),{priority:"high"}),n&&n.registerChildCommand(t.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...dr,...this._downcastStrategies.map(t=>t.attributeName)]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),n=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",(i,r)=>{const s=t.model.document.selection;Ho(t.model)||t.model.change(()=>{const a=s.getFirstPosition();if(s.isCollapsed&&r.direction=="backward"){if(!a.isAtStart)return;const c=a.parent;if(!Tt(c))return;if(ce.first(c,{sameAttributes:"listType",sameIndent:!0})||c.getAttribute("listIndent")!==0){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:yf(t.model,"backward")})}else af(c)||t.execute("splitListItemAfter"),t.execute("outdentList");r.preventDefault(),i.stop()}else{if(s.isCollapsed&&!s.getLastPosition().isAtEnd||!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:yf(t.model,"forward")}),r.preventDefault(),i.stop()}})},{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,n=t.commands,i=n.get("enter");this.listenTo(t.editing.view.document,"enter",(r,s)=>{const a=e.document,c=a.selection.getFirstPosition().parent;if(a.selection.isCollapsed&&Tt(c)&&c.isEmpty&&!s.isSoft){const l=gn(c),d=af(c);l&&d?(t.execute("outdentList"),s.preventDefault(),r.stop()):l&&!d?(t.execute("splitListItemAfter"),s.preventDefault(),r.stop()):d&&(t.execute("splitListItemBefore"),s.preventDefault(),r.stop())}},{context:"li"}),this.listenTo(i,"afterExecute",()=>{const r=n.get("splitListItemBefore");r.refresh(),r.isEnabled&&pa(t.model.document.selection.getLastPosition().parent).length===2&&r.execute()})}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",(e,n)=>{const i=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(i).isEnabled&&(t.execute(i),n.stopPropagation(),n.preventDefault(),e.stop())},{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,n=this.getListAttributeNames(),i=t.config.get("list.multiBlock"),r=i?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(l,{writer
8227:d})=>d.createElement(r,{listType:""})}).elementToElement({view:"p",model:(l,{writer:d})=>l.parent&&l.parent.is("element","li")?d.createElement(r,{listType:""}):null,converterPriority:"high"}).add(l=>{l.on("element:li",AE()),l.on("element:ul",kf(),{priority:"high"}),l.on("element:ol",kf(),{priority:"high"})}),i||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:r,view:wf(n),converterPriority:"high"}).add(l=>{var d;l.on("attribute",bf(n,this._downcastStrategies,e)),l.on("remove",(d=e.schema,(u,h,g)=>{const{writer:m,mapper:k}=g,b=u.name.split(":")[1];if(!d.checkAttribute(b,"listItemId"))return;const A=k.toViewPosition(h.position),x=h.position.getShiftedBy(h.length),M=k.toViewPosition(x,{isPhantom:!0}),N=m.createRange(A,M).getTrimmed().end.nodeBefore;N&&Af(N,m,k)}))}),t.conversion.for("dataDowncast").elementToElement({model:r,view:wf(n,{dataPipeline:!0}),converterPriority:"high"}).add(l=>{l.on("attribute",bf(n,this._downcastStrategies,e,{dataPipeline:!0}))});const s=(a=this._downcastStrategies,c=t.editing.view,(l,d)=>{if(d.modelPosition.offset>0)return;const u=d.modelPosition.parent;if(!Tt(u)||!a.some(b=>b.scope=="itemMarker"&&b.canInjectMarkerIntoElement&&b.canInjectMarkerIntoElement(u)))return;const h=d.mapper.toViewElement(u),g=c.createRangeIn(h),m=g.getWalker();let k=g.start;for(const{item:b}of m){if(b.is("element")&&d.mapper.toModelElement(b)||b.is("$textProxy"))break;b.is("element")&&b.getCustomProperty("listItemMarker")&&(k=c.createPositionAfter(b),m.skip(({previousPosition:A})=>!A.isEqual(k)))}d.viewPosition=k});var a,c;t.editing.mapper.on("modelToViewPosition",s),t.data.mapper.on("modelToViewPosition",s),this.listenTo(e.document,"change:data",function(l,d,u,h){return()=>{const b=l.document.differ.getChanges(),A=[],x=new Map,M=new Set;for(const N of b)if(N.type=="insert"&&N.name!="$text")we(N.position,x),N.attributes.has("listItemId")?M.add(N.position.nodeAfter):we(N.position.getShiftedBy(N.length),x);else if(N.type=="remove"&&N.attributes.has("listItemId"))we(N.position,x);else if(N.type=="attribute"){const H=N.range.start.nodeAfter;u.includes(N.attributeKey)?(we(N.range.start,x),N.attributeNewValue===null?(we(N.range.start.getShiftedBy(1),x),m(H)&&A.push(H)):M.add(H)):Tt(H)&&m(H)&&A.push(H)}for(const N of x.values())A.push(...g(N,M));for(const N of new Set(A))d.reconvertItem(N)};function g(b,A){const x=[],M=new Set,N=[];for(const{node:H,previous:W}of Ro(b,"forward")){if(M.has(H))continue;const Y=H.getAttribute("listIndent");W&&Y<W.getAttribute("listIndent")&&(N.length=Y+1),N[Y]=Object.fromEntries(Array.from(H.getAttributes()).filter(([Mt])=>u.includes(Mt)));const mt=Ke(H,{direction:"forward"});for(const Mt of mt)M.add(Mt),(m(Mt,mt)||k(Mt,N,A))&&x.push(Mt)}return x}function m(b,A){const x=d.mapper.toViewElement(b);if(!x)return!1;if(h.fire("checkElement",{modelElement:b,viewElement:x}
8227))return!0;if(!b.is("element","paragraph")&&!b.is("element","listItem"))return!1;const M=_f(b,u,A);return!(!M||!x.is("element","p"))||!(M||!x.is("element","span"))}function k(b,A,x){if(x.has(b))return!1;const M=d.mapper.toViewElement(b);let N=A.length-1;for(let H=M.parent;!H.is("editableElement");H=H.parent){const W=lr(H),Y=mf(H);if(!Y&&!W)continue;const mt="checkAttributes:"+(W?"item":"list");if(h.fire(mt,{viewElement:H,modelAttributes:A[N]}))break;if(Y&&(N--,N<0))return!1}return!0}}(e,t.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",(l,{viewElement:d,modelAttributes:u})=>{d.id!=u.listItemId&&(l.return=!0,l.stop())}),this.on("checkAttributes:list",(l,{viewElement:d,modelAttributes:u})=>{d.name==pf(u.listType)&&d.id==ff(u.listType,u.listIndent)||(l.return=!0,l.stop())})}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer(n=>function(i,r,s,a){const c=i.document.differ.getChanges(),l=new Map,d=a.editor.config.get("list.multiBlock");let u=!1;for(const g of c){if(g.type=="insert"&&g.name!="$text"){const m=g.position.nodeAfter;if(!i.schema.checkAttribute(m,"listItemId"))for(const k of Array.from(m.getAttributeKeys()))s.includes(k)&&(r.removeAttribute(k,m),u=!0);we(g.position,l),g.attributes.has("listItemId")||we(g.position.getShiftedBy(g.length),l);for(const{item:k,previousPosition:b}of i.createRangeIn(m))Tt(k)&&we(b,l)}else g.type=="remove"?we(g.position,l):g.type=="attribute"&&s.includes(g.attributeKey)&&
8227(we(g.range.start,l),g.attributeNewValue===null&&we(g.range.start.getShiftedBy(1),l));if(!d&&g.type=="attribute"&&dr.includes(g.attributeKey)){const m=g.range.start.nodeAfter;g.attributeNewValue===null&&m&&m.is("element","listItem")?(r.rename(m,"paragraph"),u=!0):g.attributeOldValue===null&&m&&m.is("element")&&m.name!="listItem"&&(r.rename(m,"listItem"),u=!0)}}const h=new Set;for(const g of l.values())u=a.fire("postFixer",{listNodes:new oE(g),listHead:g,writer:r,seenIds:h})||u;return u}(t,n,e,this)),this.on("postFixer",(n,{listNodes:i,writer:r})=>{n.return=function(s,a){let c=0,l=-1,d=null,u=!1;for(const{node:h}of s){const g=h.getAttribute("listIndent");if(g>c){let m;d===null?(d=g-c,m=c):(d>g&&(d=g),m=g-d),m>l+1&&(m=l+1),a.setAttribute("listIndent",m,h),u=!0,l=m}else d=null,c=g+1,l=g}return u}(i,r)||n.return},{priority:"high"}),this.on("postFixer",(n,{listNodes:i,writer:r,seenIds:s})=>{n.return=function(a,c,l){const d=new Set;let u=!1;for(const{node:h}of a){if(d.has(h))continue;let g=h.getAttribute("listType"),m=h.getAttribute("listItemId");if(c.has(m)&&(m=$n.next()),c.add(m),h.is("element","listItem"))h.getAttribute("listItemId")!=m&&(l.setAttribute("listItemId",m,h),u=!0);else for(const k of Ke(h,{direction:"forward"}))d.add(k),k.getAttribute("listType")!=g&&(m=$n.next(),g=k.getAttribute("listType")),k.getAttribute("listItemId")!=m&&(l.setAttribute("listItemId",m,k),u=!0)}return u}(i,s,r)||n.return},{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",function(n){return(i,[r,s])=>{const a=r.is("documentFragment")?Array.from(r.getChildren()):[r];if(!a.length)return;const c=(s?n.createSelection(s):n.document.selection).getFirstPosition();let l;if(Tt(c.parent))l=c.parent;else{if(!Tt(c.nodeBefore))return;l=c.nodeBefore}n.change(d=>{const u=l.getAttribute("listType"),h=l.getAttribute("listIndent"),g=a[0].getAttribute("listIndent")||0,m=Math.max(h-g,0);for(const k of a){const b=Tt(k);l.is("element","listItem")&&k.is("element","paragraph")&&d.rename(k,"listItem"),d.setAttributes({listIndent:(b?k.getAttribute("listIndent"):0)+m,listItemId:b?k.getAttribute("listItemId"):$n.next(),listType:u},k)}})}}(t),{priority:"high"}),this.listenTo(e,"outputTransformation",(n,i)=>{t.change(r=>{const s=Array.from(i.content.getChildren()),a=s[s.length-1];if(s.length>1&&a.is("element")&&a.isEmpty&&s.slice(0,-1).every(Tt)&&r.remove(a),i.method=="copy"||i.method=="cut"){const c=Array.from(i.content.getChildren());Vo(c)&&ar(c,r)}})})}_setupAccessibilityIntegration(){const t=this.editor,e=t.t;t.accessibility.addKeystrokeInfoGroup({id:"list",label:e("Keystrokes that can be used in a list"),keystrokes:[{label:e("Increase list item indent"),keystroke:"Tab"},{label:e("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function yf(o,t){const e=o.document.selection;if(!e.isCollapsed)return!Ho(o);if(t==="forward")return!0;const n=e.getFirstPosition().parent,i=n.previousSibling;return!o.schema.isObject(i)&&(!!i.isEmpty||Vo([n,i]))}function xf(o,t,e,n){o.ui.componentFactory.add(t,()=>{const i=Ef(ot,o,t,e,n);return i.set({tooltip:!0,isToggleable:!0}),i}),o.ui.componentFactory.add(`menuBar:${t}`,()=>Ef(Xt,o,t,e,n))}function Ef(o,t,e,n,i){const r=t.commands.get(e),s=new o(t.locale);return s.set({label:n,icon:i}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",()=>{t.execute(e),t.editing.view.focus()}),s}class yE extends L{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||xf(this.editor,"numberedList",t("Numbered List"),$.numberedList),this.editor.ui.componentFactory.has("bulletedList")||xf(this.editor,"bulletedList",t("Bulleted List"),$.bulletedList)}}class xE extends L{static get requires(){return[vE,yE]}static get pluginName(){return"List"}}const EE=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:o,typeAttribute:t,listType:e}of EE);var Df=R(9968),DE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Df.A,DE),Df.A.locals;var If=R(7141),IE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(If.A,IE),If.A.locals,uo("Ctrl+Enter");var Tf=R(8991),TE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Tf.A,TE),Tf.A.locals,uo("Ctrl+Enter");function Mf(o,t){const e=(n,i,r)=>{if(!r.consumable.consume(i.item,n.name))return;const s=i.attributeNewValue,a=r.writer,c=r.mapper.toViewElement(i.item),l=[...c.getChildren()].find(u=>u.getCustomProperty("media-content"));a.remove(l);const d=o.getMediaViewElement(a,s,t);a.insert(a.createPositionAt(c,0),d)};return n=>{n.on("attribute:url:media",e)}}function Sf(o,t,e,n){return o.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(o,e,n),o.createSlot()])}function Bf(o){const t=o.getSelectedElement();return t&&t.is("element","media")?t:null}function Nf(o,t,e,n){o.change(i=>{const r=i.createElement("media",{url:t});o.insertObject(r,e,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}class ME extends Z{refresh(){const t=this.editor.model,e=t.document.selection,n=Bf(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(i){const r=i.getSelectedElement();return!!r&&r.name==="media"}(e)||function(i,r){let a=Pg(i,r).start.parent;return a.isEmpty&&!r.schema.isLimit(a)&&(a=a.parent),r.schema.checkChild(a,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,i=Bf(n);i?e.change(r=>{r.setAttribute("url",t,i)}):Nf(e,t,n,!0)}}class SE{constructor(t,e){const n=e.providers,i=e.extraProviders||[],r=new Set(e.removeProviders),s=n.concat(i).filter(a=>{const c=a.name;return c?!r.has(c):(U("media-embed-no-provider-name",{provider:a}),!1)});this.locale=t,this.providerDefinitions=s}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Pf(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,i=gt(e.url);for(const r of i){const s=this._getUrlMatches(t,r);if(s)return new Pf(this.locale,t,s,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let i=t.replace(/^https?:\/\//,"");return n=i.match(e),n||(i=i.replace(/^www\./,""),n=i.match(e),n||null)}}class Pf{constructor(t,e,n,i){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=i}getViewElement(t,e){const n={};let i;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const r=this._getPreviewHtml(e);i=t.createRawElement("div",n,(s,a)=>{a.setContentOf(s,r)})}else this.url&&(n.url=this.url),i=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,i),i}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Ne,e=this._locale.t;return t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.
8227637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new he({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Of=R(7048),BE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Of.A,BE),Of.A.locals;class ur extends L{constructor(t){super(t),t.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\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const n=e[1],i=e[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${n}${i?`?start=${i}`:""}" 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+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new SE(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion,r=t.config.get("mediaEmbed.previewsInData"),s=t.config.get("mediaEmbed.elementName"),a=this.registry;t.commands.add("mediaEmbed",new ME(t)),e.register("media",{inheritAllFrom
8227:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return Sf(l,a,d,{elementName:s,renderMediaPreview:!!d&&r})}}),i.for("dataDowncast").add(Mf(a,{elementName:s,renderMediaPreview:r})),i.for("editingDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return function(u,h,g){return h.setCustomProperty("media",!0,u),Qs(u,h,{label:g})}(Sf(l,a,d,{elementName:s,renderForEditingView:!0}),l,n("media widget"))}}),i.for("editingDowncast").add(Mf(a,{elementName:s,renderForEditingView:!0})),i.for("upcast").elementToElement({view:c=>["oembed",s].includes(c.name)&&c.getAttribute("url")?{name:!0}:null,model:(c,{writer:l})=>{const d=c.getAttribute("url");return a.hasMedia(d)?l.createElement("media",{url:d}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(c,{writer:l})=>{const d=c.getAttribute("data-oembed-url");return a.hasMedia(d)?l.createElement("media",{url:d}):null}}).add(c=>{c.on("element:figure",(l,d,u)=>{if(!u.consumable.consume(d.viewItem,{name:!0,classes:"media"}))return;const{modelRange:h,modelCursor:g}=u.convertChildren(d.viewItem,d.modelCursor);d.modelRange=h,d.modelCursor=g,St(h.getItems())||u.consumable.revert(d.viewItem,{name:!0,classes:"media"})})})}}const NE=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class PE extends L{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[Xg,Le,im]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const i=e.selection.getFirstRange(),r=Pt.fromPosition(i.start);r.stickiness="toPrevious";const s=Pt.fromPosition(i.end);s.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(r,s),r.detach(),s.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(v.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,i=n.plugins.get(ur).registry,r=new Zt(t,e),s=r.getWalker({ignoreElementEnd:!0});let a="";for(const c of s)c.item.is("$textProxy")&&(a+=c.item.data);if(a=a.trim(),!a.match(NE)||!i.hasMedia(a))return void r.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Pt.fromPosition(t),this._timeoutId=v.window.setTimeout(()=>{n.model.change(c=>{this._timeoutId=null,c.remove(r),r.detach();let l=null;this._positionToInsert.root.rootName!=="$graveyard"&&(l=this._positionToInsert),Nf(n.model,a,l,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Le).requestUndoOnBackspace()},100)):r.detach()}}var Lf=R(5651),OE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Lf.A,OE),Lf.A.locals;class LE extends G{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Bt,this.keystrokes=new zt,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),$.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),$.cancel,"ck-button-cancel","cancel"),this._focusables=new oe,this._focusCycler=new re({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),di({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();
8227for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Bi(this.locale,Oi),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,i){const r=new ot(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}}class zE extends L{static get requires(){return[ur]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const i=Pe(n);return this._setUpDropdown(i,e),i})}_setUpDropdown(t,e){const n=this.editor,i=n.t,r=t.buttonView,s=n.plugins.get(ur).registry;t.once("change:isOpen",()=>{const a=new($r(LE))(function(c,l){return[d=>{if(!d.url.length)return c("The URL must not be empty.")},d=>{if(!l.hasMedia(d.url))return c("This media URL is not supported.")}]}(n.t,s),n.locale);t.panelView.children.add(a),r.on("open",()=>{a.disableCssTransitions(),a.url=e.value||"",a.urlInputView.fieldView.select(),a.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{a.isValid()&&(n.execute("mediaEmbed",a.url),n.editing.view.focus())}),t.on("change:isOpen",()=>a.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),a.delegate("submit","cancel").to(t),a.urlInputView.fieldView.bind("value").to(e,"value"),a.urlInputView.on("change:errorText",()=>{n.ui.update()}),a.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),r.set({label:i("Insert media"),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 1h1.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>',tooltip:!0})}}var zf=R(70),RE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(zf.A,RE),zf.A.locals;function Rf(o){return o!==void 0&&o.endsWith("px")}function Yn(o){return o.toFixed(2).replace(/\.?0+$/,"")+"px"}var jE=Object.defineProperty,FE=Object.defineProperties,VE=Object.getOwnPropertyDescriptors,jf=Object.getOwnPropertySymbols,HE=Object.prototype.hasOwnProperty,UE=Object.prototype.propertyIsEnumerable,Ff=(o,t,e)=>t in o?jE(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,qE=(o,t)=>{for(var e in t||(t={}))HE.call(t,e)&&Ff(o,e,t[e]);if(jf)for(var e of jf(t))UE.call(t,e)&&Ff(o,e,t[e]);return o};function GE(o,t,e){if(!o.childCount)return;const n=new Be(o.document),i=function(c,l){const d=l.createRangeIn(c),u=[],h=new Set;for(const g of d.getItems()){if(!g.is("element")||!g.name.match(/^(p|h\d+|li|div)$/))continue;let m=XE(g);if(m===void 0||parseFloat(m)!=0||Array.from(g.getClassNames()).find(k=>k.startsWith("MsoList"))||(m=void 0),g.hasStyle("mso-list")||m!==void 0&&h.has(m)){const k=ZE(g);u.push({element:g,id:k.id,order:k.order,indent:k.indent,marginLeft:m}),m!==void 0&&h.add(m)}else h.clear()}return u}(o,n);if(!i.length)return;const r={},s=[];for(const c of i)if(c.indent!==void 0){WE(c)||(s.length=0);const l=`${c.id}:${c.indent}`,d=Math.min(c.indent-1,s.length);if(d<s.length&&s[d].id!==c.id&&(s.length=d),d<s.length-1)s.length=d+1;else{const h=$E(c,t);if(d>s.length-1||s[d].listElement.name!=h.type){d==0&&h.type=="ol"&&c.id!==void 0&&r[l]&&(h.startIndex=r[l]);const g=QE(h,n,e);if(Rf(c.marginLeft)&&(d==0||Rf(s[d-1].marginLeft))){let m=c.marginLeft;d>0&&(m=Yn(parseFloat(m)-parseFloat(s[d-1].marginLeft))),n.setStyle("padding-left",m,g)}if(s.length==0){const m=c.element.parent,k=m.getChildIndex(c.element)+1;n.insertChild(k,g,m)}else{const m=s[d-1].listItemElements;n.appendChild(g,m[m.length-1])}s[d]=(a=qE({},c),FE(a,VE({listElement:g,listItemElements:[]}))),d==0&&c.id!==void 0&&(r[l]=h.startIndex||1)}}const u=c.element.name=="li"?c.element:n.createElement("li");n.appendChild(u,s[d].listElement),s[d].listItemElements.push(u),d==0&&c.id!==void 0&&r[l]++,c.element!=u&&n.appendChild(c.element,u),JE(c.element,n),n.removeStyle("text-indent",c.element),n.removeStyle("margin-left",c.element)}else{const l=s.find(d=>d.marginLeft==c.marginLeft);if(l){const d=l.listItemElements;n.appendChild(c.element,d[d.length-1]),n.removeStyle("margin-left",c.element)}else s.length=0}var a}function WE(o){const t=o.element.previousSibling;return KE(t||o.element.parent)}function KE(o){return o.is("element","ol")||o.is("element","ul")}function $E(o,t){const e=new RegExp(`@list l${o.id}:level${o.indent}\\s*({[^}]*)`,"gi"),n=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=new RegExp(`@list\\s+l${o.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),s=new RegExp(`@list l${o.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),a=r.exec(t),c=s.exec(t),l=a&&!c,d=e.exec(t);let u="decimal",h="ol",g=null;if(d&&d[1]){const m=n.exec(d[1]);if(m&&m[1]&&(u=m[1].trim(),h=u!=="bullet"&&u!=="image"?"ol":"ul"),u==="bullet"){const k=function(b){if(b.name=="li"&&b.parent.name=="ul"&&b.parent.hasAttribute("type"))return b.parent.getAttribute("type");const A=function(M){if(M.getChild(0).is("$text"))return null;for(const N of M.getChildren()){if(!N.is("element","span"))continue;const H=N.getChild(0);if(H)return H.is("$text")?H:H.getChild(0)}return null}(b);if(!A)return null;const x=A._data;return x==="o"?"circle":x==="·"?"disc":x==="§"?"square":null}(o.element);k&&(u=k)}
8227else{const k=i.exec(d[1]);k&&k[1]&&(g=parseInt(k[1]))}l&&(h="ol")}return{type:h,startIndex:g,style:YE(u),isLegalStyleList:l}}function YE(o){if(o.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(o){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 o;default:return null}}function QE(o,t,e){const n=t.createElement(o.type);return o.style&&t.setStyle("list-style-type",o.style,n),o.startIndex&&o.startIndex>1&&t.setAttribute("start",o.startIndex,n),o.isLegalStyleList&&e&&t.addClass("legal-list",n),n}function ZE(o){const t=o.getStyle("mso-list");if(t===void 0)return{};const e=t.match(/(^|\s{1,100})l(\d+)/i),n=t.match(/\s{0,100}lfo(\d+)/i),i=t.match(/\s{0,100}level(\d+)/i);return e&&n&&i?{id:e[2],order:n[1],indent:parseInt(i[1])}:{indent:1}}function JE(o,t){const e=new ye({name:"span",styles:{"mso-list":"Ignore"}}),n=t.createRangeIn(o);for(const i of n)i.type==="elementStart"&&e.match(i.item)&&t.remove(i.item)}function XE(o){const t=o.getStyle("margin-left");return t===void 0||t.endsWith("px")?t:function(e){const n=parseFloat(e);return e.endsWith("pt")?Yn(96*n/72):e.endsWith("pc")?Yn(12*n*96/72):e.endsWith("in")?Yn(96*n):e.endsWith("cm")?Yn(96*n/2.54):e.endsWith("mm")?Yn(n/10*96/2.54):e}(t)}function t5(o,t){if(!o.childCount)return;const e=new Be(o.document),n=function(r,s){const a=s.createRangeIn(r),c=new ye({name:/v:(.+)/}),l=[];for(const d of a){if(d.type!="elementStart")continue;const u=d.item,h=u.previousSibling,g=h&&h.is("element")?h.name:null,m=["Chart"],k=c.match(u),b=u.getAttribute("o:gfxdata"),A=g==="v:shapetype",x=b&&m.some(M=>u.getAttribute("id").includes(M));k&&b&&!A&&!x&&l.push(d.item.getAttribute("id"))}return l}(o,e);(function(r,s,a){const c=a.createRangeIn(s),l=new ye({name:"img"}),d=[];for(const u of c)if(u.item.is("element")&&l.match(u.item)){const h=u.item,g=h.getAttribute("v:shapes")?h.getAttribute("v:shapes").split(" "):[];g.length&&g.every(m=>r.indexOf(m)>-1)?d.push(h):h.getAttribute("src")||d.push(h)}for(const u of d)a.remove(u)})(n,o,e),function(r,s,a){const c=a.createRangeIn(s),l=[];for(const h of c)if(h.type=="elementStart"&&h.item.is("element","v:shape")){const g=h.item.getAttribute("id");if(r.includes(g))continue;d(h.item.parent.getChildren(),g)||l.push(h.item)}for(const h of l){const g={src:u(h)};h.hasAttribute("alt")&&(g.alt=h.getAttribute("alt"));const m=a.createElement("img",g);a.insertChild(h.index+1,m,h.parent)}function d(h,g){for(const m of h)if(m.is("element")&&(m.name=="img"&&m.getAttribute("v:shapes")==g||d(m.getChildren(),g)))return!0;return!1}function u(h){for(const g of h.getChildren())if(g.is("element")&&g.getAttribute("src"))return g.getAttribute("src")}}(n,o,e),function(r,s){const a=s.createRangeIn(r),c=new ye({name:/v:(.+)/}),l=[];for(const d of a)d.type=="elementStart"&&c.match(d.item)&&l.push(d.item);for(const d of l)s.remove(d)}(o,e);const i=function(r,s){const a=s.createRangeIn(r),c=new ye({name:"img"}),l=[];for(const d of a)d.item.is("element")&&c.match(d.item)&&d.item.getAttribute("src").startsWith("file://")&&l.push(d.item);return l}(o,e);i.length&&function(r,s,a){if(r.length===s.length)for(let c=0;c<r.length;c++){const l=`data:${s[c].type};base64,${e5(s[c].hex)}`;a.setAttribute("src",l,r[c])}}(i,function(r){if(!r)return[];const s=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,a=new RegExp("(?:("+s.source+"))([\\da-fA-F\\s]+)\\}","g"),c=r.match(a),l=[];if(c)for(const d of c){let u=!1;d.includes("\\pngblip")?u="image/png":d.includes("\\jpegblip")&&(u="image/jpeg"),u&&l.push({hex:d.replace(s,"").replace(/[^\da-fA-F]/g,""),type:u})}return l}(t),e)}function e5(o){return btoa(o.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}const n5=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,o5=/xmlns:o="urn:schemas-microsoft-com/i;class i5{constructor(t,e=!1){this.document=t,this.hasMultiLevelListPlugin=e}isActive(t){return n5.test(t)||o5.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;GE(e,n,this.hasMultiLevelListPlugin),t5(e,t.dataTransfer.getData("text/rtf")),function(i){const r=[],s=new Be(i.document);for(const{item:a}of s.createRangeIn(i))if(a.is("element")){for(const c of a.getClassNames())/\bmso/gi.exec(c)&&s.removeClass(c,a);for(const c of a.getStyleNames())/\bmso/gi.exec(c)&&s.removeStyle(c,a);(a.is("element","w:sdt")||a.is("element","w:sdtpr")&&a.isEmpty||a.is("element","o:p")&&a.isEmpty)&&r.push(a)}for(const a of r){const c=a.parent,l=c.getChildIndex(a);s.insertChild(l,a.getChildren(),c),s.remove(a)}}(e),t.content=e}}function Vf(o,t,e,{blockElements:n,inlineObjectElements:i}){let r=e.createPositionAt(o,t=="forward"?"after":"before");return r=r.getLastMatchingPosition(({item:s})=>s.is("element")&&!n.includes(s.name)&&!i.includes(s.name),{direction:t}),t=="forward"?r.nodeAfter:r.nodeBefore}function Hf(o,t){return!!o&&o.is("element")&&t.includes(o.name)}const r5=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class s5{constructor(t){this.document=t}isActive(t){return r5.test(t)}execute(t){const e=new Be(this.document),{body:n}=t._parsedData;(function(i,r){for(const s of i.getChildren())if(s.is("element","b")&&s.getStyle("font-weight")==="normal"){const a=i.getChildIndex(s);r.remove(s),r.insertChild(a,s.getChildren(),i)}})(n,e),function(i,r){for(const s of r.createRangeIn(i)){const a=s.item;if(a.is("element","li")){const c=a.getChild(0);c&&c.is("element","p")&&r.unwrapElement(c)}}}(n,e),function(i,r){const s=new ki(r.document.stylesProcessor),a=new Ai(s,{renderingMode:"data"}),c=a.blockElements,l=a.inlineObjectElements,d=[];for(const u of r.createRangeIn(i)){const h=u.item;if(h.is("element","br")){const g=Vf(h,"forward",r,{blockElements:c,inlineObjectElements:l}),m=Vf(h,"backward",r,{blockElements:c,inlineObjectElements:l}),k=Hf(g,c);
8227(Hf(m,c)||k)&&d.push(h)}}for(const u of d)u.hasClass("Apple-interchange-newline")?r.remove(u):r.replace(u,r.createElement("p"))}(n,e),t.content=n}}const a5=/<google-sheets-html-origin/i;class c5{constructor(t){this.document=t}isActive(t){return a5.test(t)}execute(t){const e=new Be(this.document),{body:n}=t._parsedData;(function(i,r){for(const s of i.getChildren())if(s.is("element","google-sheets-html-origin")){const a=i.getChildIndex(s);r.remove(s),r.insertChild(a,s.getChildren(),i)}})(n,e),function(i,r){for(const s of i.getChildren())s.is("element","table")&&s.hasAttribute("xmlns")&&r.removeAttribute("xmlns",s)}(n,e),function(i,r){for(const s of i.getChildren())s.is("element","table")&&s.getStyle("width")==="0px"&&r.removeStyle("width",s)}(n,e),function(i,r){for(const s of Array.from(i.getChildren()))s.is("element","style")&&r.remove(s)}(n,e),t.content=n}}function Uf(o){return o.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>e.length===1?" ":Array(e.length+1).join("Â ").substr(0,e.length))}function l5(o,t){const e=new DOMParser,n=function(c){return Uf(Uf(c)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/(<span\s+style=['"]letter-spacing:[^'"]+?['"]>)[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g,"Â </").replace(/ <o:p><\/o:p>/g,"Â <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(c){const l="</body>",d="</html>",u=c.indexOf(l);if(u<0)return c;const h=c.indexOf(d,u+l.length);return c.substring(0,u+l.length)+(h>=0?c.substring(h):"")}(o=(o=o.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),i=e.parseFromString(n,"text/html");(function(c){c.querySelectorAll("span[style*=spacerun]").forEach(l=>{const d=l,u=d.innerText.length||0;d.innerText=Array(u+1).join("Â ").substr(0,u)})})(i);const r=i.body.innerHTML,s=function(c,l){const d=new ki(l),u=new Ai(d,{renderingMode:"data"}),h=c.createDocumentFragment(),g=c.body.childNodes;for(;g.length>0;)h.appendChild(g[0]);return u.domToView(h,{skipComments:!0})}(i,t),a=function(c){const l=[],d=[],u=Array.from(c.getElementsByTagName("style"));for(const h of u)h.sheet&&h.sheet.cssRules&&h.sheet.cssRules.length&&(l.push(h.sheet),d.push(h.innerHTML));return{styles:l,stylesString:d.join(" ")}}(i);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}function _t(o,t,e,n,i=1){t!=null&&i!=null&&t>i?n.setAttribute(o,t,e):n.removeAttribute(o,e)}function pn(o,t,e={}){const n=o.createElement("tableCell",e);return o.insertElement("paragraph",n),o.insert(n,t),n}function Ca(o,t){const e=t.parent.parent,n=parseInt(e.getAttribute("headingColumns")||"0"),{column:i}=o.getCellLocation(t);return!!n&&i<n}function d5(){return o=>{o.on("element:table",(t,e,n)=>{const i=e.viewItem;if(!n.consumable.test(i,{name:!0}))return;const{rows:r,headingRows:s,headingColumns:a}=function(d){let u,h=0;const g=[],m=[];let k;for(const b of Array.from(d.getChildren())){if(b.name!=="tbody"&&b.name!=="thead"&&b.name!=="tfoot")continue;b.name!=="thead"||k||(k=b);const A=Array.from(b.getChildren()).filter(x=>x.is("element","tr"));for(const x of A)if(k&&b===k||b.name==="tbody"&&Array.from(x.getChildren()).length&&Array.from(x.getChildren()).every(M=>M.is("element","th")))h++,g.push(x);else{m.push(x);const M=u5(x);(!u||M<u)&&(u=M)}}return{headingRows:h,headingColumns:u||0,rows:[...g,...m]}}(i),c={};a&&(c.headingColumns=a),s&&(c.headingRows=s);const l=n.writer.createElement("table",c);if(n.safeInsert(l,e.modelCursor)){if(n.consumable.consume(i,{name:!0}),r.forEach(d=>n.convertItem(d,n.writer.createPositionAt(l,"end"))),n.convertChildren(i,n.writer.createPositionAt(l,"end")),l.isEmpty){const d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(l,"end")),pn(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(l,e)}})}}function qf(o){return t=>{t.on(`element:${o}`,(e,n,{writer:i})=>{if(!n.modelRange)return;const r=n.modelRange.start.nodeAfter,s=i.createPositionAt(r,0);if(n.viewItem.isEmpty)return void i.insertElement("paragraph",s);const a=Array.from(r.getChildren());if(a.every(c=>c.is("element","$marker"))){const c=i.createElement("paragraph");i.insert(c,i.createPositionAt(r,0));for(const l of a)i.move(i.createRangeOn(l),i.createPositionAt(c,"end"))}},{priority:"low"})}}function u5(o){let t=0,e=0;const n=Array.from(o.getChildren()).filter(i=>i.name==="th"||i.name==="td");for(;e<n.length&&n[e].name==="th";){const i=n[e];t+=parseInt(i.getAttribute("colspan")||"1"),e++}return t}class at{constructor(t,e={}){this._jumpedToStartRow=!1,this._table=t,this._startRow=e.row!==void 0?e.row:e.startRow||0,this._endRow=e.row!==void 0?e.row:e.endRow,this._startColumn=e.column!==void 0?e.column:e.startColumn||0,this._endColumn=e.column!==void 0?e.column:e.endColumn,this._includeAllSlots=!!e.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0,value:void 0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let e=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{const i=t.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();const r=parseInt(i.getAttribute("colspan")||"1"),s=parseInt(i.getAttribute("rowspan")||"1");(r>1||s>1)&&this._recordSpans(i,s,r),this._shouldSkipSlot()||(e=this._formatOutValue(i)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}
8227skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return this._endRow!==void 0&&this._row>this._endRow}_isOverEndColumn(){return this._endColumn!==void 0&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new h5(this,t,e,n)}}_shouldSkipSlot(){const t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,i=this._endColumn!==void 0&&this._column>this._endColumn;return t||e||n||i}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const i={cell:t,row:this._row,column:this._column};for(let r=this._row;r<this._row+e;r++)for(let s=this._column;s<this._column+n;s++)r==this._row&&s==this._column||this._markSpannedCell(r,s,i)}_markSpannedCell(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map),this._spannedCells.get(t).set(e,n)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}}class h5{constructor(t,e,n,i){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Gf(o,t){return(e,{writer:n})=>{const i=e.getAttribute("headingRows")||0,r=n.createContainerElement("table",null,[]),s=n.createContainerElement("figure",{class:"table"},r);i>0&&n.insert(n.createPositionAt(r,"end"),n.createContainerElement("thead",null,n.createSlot(a=>a.is("element","tableRow")&&a.index<i))),i<o.getRows(e)&&n.insert(n.createPositionAt(r,"end"),n.createContainerElement("tbody",null,n.createSlot(a=>a.is("element","tableRow")&&a.index>=i)));for(const{positionOffset:a,filter:c}of t.additionalSlots)n.insert(n.createPositionAt(r,a),n.createSlot(c));return n.insert(n.createPositionAt(r,"after"),n.createSlot(a=>!a.is("element","tableRow")&&!t.additionalSlots.some(({filter:c})=>c(a)))),t.asWidget?function(a,c){return c.setCustomProperty("table",!0,a),Qs(a,c,{hasSelectionHandle:!0})}(s,n):s}}function Wf(o={}){return(t,{writer:e})=>{const n=t.parent,i=n.parent,r=i.getChildIndex(n),s=new at(i,{row:r}),a=i.getAttribute("headingRows")||0,c=i.getAttribute("headingColumns")||0;let l=null;for(const d of s)if(d.cell==t){const u=d.row<a||d.column<c?"th":"td";l=o.asWidget?Ng(e.createEditableElement(u),e):e.createContainerElement(u);break}return l}}function Kf(o={}){return(t,{writer:e})=>{if(!t.parent.is("element","tableCell")||!$f(t))return null;if(o.asWidget)return e.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function $f(o){return o.parent.childCount==1&&!!o.getAttributeKeys().next().done}class g5 extends Z{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(i,r){const s=i.getFirstPosition().parent,a=s===s.root?s:s.parent;return r.checkChild(a,"table")}(e,n)}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("TableUtils"),r=e.config.get("table.defaultHeadings.rows"),s=e.config.get("table.defaultHeadings.columns");t.headingRows===void 0&&r&&(t.headingRows=r),t.headingColumns===void 0&&s&&(t.headingColumns=s),n.change(a=>{const c=i.createTable(a,t);n.insertObject(c,null,null,{findOptimalPosition:"auto"}),a.setSelection(a.createPositionAt(c.getNodeByPath([0,0,0]),0))})}}class Yf extends Z{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i=this.order==="above",r=n.getSelectionAffectedTableCells(e),s=n.getRowIndexes(r),a=i?s.first:s.last,c=r[0].findAnce
8227stor("table");n.insertRows(c,{at:i?a:a+1,copyStructureFromAbove:!i})}}class Qf extends Z{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i=this.order==="left",r=n.getSelectionAffectedTableCells(e),s=n.getColumnIndexes(r),a=i?s.first:s.last,c=r[0].findAncestor("table");n.insertColumns(c,{columns:1,at:i?a:a+1})}}class Zf extends Z{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length===1}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];this.direction==="horizontally"?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function Jf(o,t,e){const{startRow:n,startColumn:i,endRow:r,endColumn:s}=t,a=e.createElement("table"),c=r-n+1;for(let d=0;d<c;d++)e.insertElement("tableRow",a,"end");const l=[...new at(o,{startRow:n,endRow:r,startColumn:i,endColumn:s,includeAllSlots:!0})];for(const{row:d,column:u,cell:h,isAnchor:g,cellAnchorRow:m,cellAnchorColumn:k}of l){const b=d-n,A=a.getChild(b);if(g){const x=e.cloneElement(h);e.append(x,A),ok(x,d,u,r,s,e)}else(m<n||k<i)&&pn(e,e.createPositionAt(A,"end"))}return function(d,u,h,g,m){const k=parseInt(u.getAttribute("headingRows")||"0");k>0&&_t("headingRows",k-h,d,m,0);const b=parseInt(u.getAttribute("headingColumns")||"0");b>0&&_t("headingColumns",b-g,d,m,0)}(a,o,n,i,e),a}function Xf(o,t,e=0){const n=[],i=new at(o,{startRow:e,endRow:t-1});for(const r of i){const{row:s,cellHeight:a}=r;s<t&&t<=s+a-1&&n.push(r)}return n}function tk(o,t,e){const n=o.parent,i=n.parent,r=n.index,s=t-r,a={},c=parseInt(o.getAttribute("rowspan"))-s;c>1&&(a.rowspan=c);const l=parseInt(o.getAttribute("colspan")||"1");l>1&&(a.colspan=l);const d=r+s,u=[...new at(i,{startRow:r,endRow:d,includeAllSlots:!0})];let h,g=null;for(const m of u){const{row:k,column:b,cell:A}=m;A===o&&h===void 0&&(h=b),h!==void 0&&h===b&&k===d&&(g=pn(e,m.getPositionBefore(),a))}return _t("rowspan",s,o,e),g}function ek(o,t){const e=[],n=new at(o);for(const i of n){const{column:r,cellWidth:s}=i;r<t&&t<=r+s-1&&e.push(i)}return e}function nk(o,t,e,n){const i=e-t,r={},s=parseInt(o.getAttribute("colspan"))-i;s>1&&(r.colspan=s);const a=parseInt(o.getAttribute("rowspan")||"1");a>1&&(r.rowspan=a);const c=pn(n,n.createPositionAfter(o),r);return _t("colspan",i,o,n),c}function ok(o,t,e,n,i,r){const s=parseInt(o.getAttribute("colspan")||"1"),a=parseInt(o.getAttribute("rowspan")||"1");e+s-1>i&&_t("colspan",i-e+1,o,r,1),t+a-1>n&&_t("rowspan",n-t+1,o,r,1)}function va(o,t){const e=t.getColumns(o),n=new Array(e).fill(0);for(const{column:r}of new at(o))n[r]++;const i=n.reduce((r,s,a)=>s?r:[...r,a],[]);if(i.length>0){const r=i[i.length-1];return t.removeColumns(o,{at:r}),!0}return!1}function ya(o,t){const e=[],n=t.getRows(o);for(let i=0;i<n;i++)o.getChild(i).isEmpty&&e.push(i);if(e.length>0){const i=e[e.length-1];return t.removeRows(o,{at:i}),!0}return!1}function xa(o,t){va(o,t)||ya(o,t)}function ik(o,t){const e=Array.from(new at(o,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(e.every(({cellHeight:i})=>i===1))return t.lastRow;const n=e[0].cellHeight-1;return t.lastRow+n}function rk(o,t){const e=Array.from(new at(o,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(e.every(({cellWidth:i})=>i===1))return t.lastColumn;const n=e[0].cellWidth-1;return t.lastColumn+n}class hr extends Z{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal=this.direction=="right"||this.direction=="left"}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],i=this.value,r=this.direction;t.change(s=>{const a=r=="right"||r=="down",c=a?n:i,l=a?i:n,d=l.parent;(function(k,b,A){sk(k)||(sk(b)&&A.remove(A.createRangeIn(b)),A.move(A.createRangeIn(k),A.createPositionAt(b,"end"))),A.remove(k)})(l,c,s);const u=this.isHorizontal?"colspan":"rowspan",h=parseInt(n.getAttribute(u)||"1"),g=parseInt(i.getAttribute(u)||"1");s.setAttribute(u,h+g,c),s.setSelection(s.createRangeIn(c));const m=this.editor.plugins.get("TableUtils");
8227xa(d.findAncestor("table"),m)})}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const i=this.isHorizontal?function(a,c,l){const d=a.parent,u=d.parent,h=c=="right"?a.nextSibling:a.previousSibling,g=(u.getAttribute("headingColumns")||0)>0;if(!h)return;const m=c=="right"?a:h,k=c=="right"?h:a,{column:b}=l.getCellLocation(m),{column:A}=l.getCellLocation(k),x=parseInt(m.getAttribute("colspan")||"1"),M=Ca(l,m),N=Ca(l,k);if(!(g&&M!=N))return b+x===A?h:void 0}(n,this.direction,e):function(a,c,l){const d=a.parent,u=d.parent,h=u.getChildIndex(d);if(c=="down"&&h===l.getRows(u)-1||c=="up"&&h===0)return null;const g=parseInt(a.getAttribute("rowspan")||"1"),m=u.getAttribute("headingRows")||0,k=c=="down"&&h+g===m,b=c=="up"&&h===m;if(m&&(k||b))return null;const A=parseInt(a.getAttribute("rowspan")||"1"),x=c=="down"?h+A:h,M=[...new at(u,{endRow:x})],N=M.find(Y=>Y.cell===a),H=N.column,W=M.find(({row:Y,cellHeight:mt,column:Mt})=>Mt===H&&(c=="down"?Y===x:x===Y+mt));return W&&W.cell?W.cell:null}(n,this.direction,e);if(!i)return;const r=this.isHorizontal?"rowspan":"colspan",s=parseInt(n.getAttribute(r)||"1");return parseInt(i.getAttribute(r)||"1")===s?i:void 0}}function sk(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}class m5 extends Z{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),r=t.getRows(i)-1,s=t.getRowIndexes(e),a=s.first===0&&s.last===r;this.isEnabled=!a}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0],s=r.findAncestor("table"),a=e.getCellLocation(r).column;t.change(c=>{const l=i.last-i.first+1;e.removeRows(s,{at:i.first,rows:l});const d=function(u,h,g,m){const k=u.getChild(Math.min(h,m-1));let b=k.getChild(0),A=0;for(const x of k.getChildren()){if(A>g)return b;b=x,A+=parseInt(x.getAttribute("colspan")||"1")}return b}(s,i.first,a,e.getRows(s));c.setSelection(c.createPositionAt(d,0))})}}class p5 extends Z{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),r=t.getColumns(i),{first:s,last:a}=t.getColumnIndexes(e);this.isEnabled=a-s<r-1}else this.isEnabled=!1}execute(){const t=this.editor.plugins.get("TableUtils"),[e,n]=function(c,l){const d=l.getSelectionAffectedTableCells(c),u=d[0],h=d.pop(),g=[u,h];return u.isBefore(h)?g:g.reverse()}(this.editor.model.document.selection,t),i=e.parent.parent,r=[...new at(i)],s={first:r.find(c=>c.cell===e).column,last:r.find(c=>c.cell===n).column},a=function(c,l,d,u){return parseInt(d.getAttribute("colspan")||"1")>1?d:l.previousSibling||d.nextSibling?d.nextSibling||l.previousSibling:u.first?c.reverse().find(({column:g})=>g<u.first).cell:c.reverse().find(({column:g})=>g>u.last).cell}(r,e,n,s);this.editor.model.change(c=>{const l=s.last-s.first+1;t.removeColumns(i,{at:s.first,columns:l}),c.setSelection(c.createPositionAt(a,0))})}}class f5 extends Z{refresh(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every(r=>this._isInHeading(r,r.parent.parent))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0].findAncestor("table"),{first:s,last:a}=e.getRowIndexes(i),c=this.value?s:a+1,l=r.getAttribute("headingRows")||0;n.change(d=>{if(c){const u=Xf(r,c,c>l?l:0);for(const{cell:h}of u)tk(h,c,d)}_t("headingRows",c,r,d,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n}}class k5 extends Z{refresh(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every(r=>Ca(e,r))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0].findAnce
8227stor("table"),{first:s,last:a}=e.getColumnIndexes(i),c=this.value?s:a+1;n.change(l=>{if(c){const d=ek(r,c);for(const{cell:u,column:h}of d)nk(u,h,c,l)}_t("headingColumns",c,r,l,0)})}}function b5(o){if(o.is("element","tableColumnGroup"))return o;const t=o.getChildren();return Array.from(t).find(e=>e.is("element","tableColumnGroup"))}function w5(o){const t=b5(o);return t?Array.from(t.getChildren()):[]}class Ot extends L{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,i=n.getChildIndex(e),r=new at(n,{row:i});for(const{cell:s,row:a,column:c}of r)if(s===t)return{row:a,column:c}}createTable(t,e){const n=t.createElement("table"),i=e.rows||2,r=e.columns||2;return Ea(t,n,0,i,r),e.headingRows&&_t("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&_t("headingColumns",Math.min(e.headingColumns,r),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,i=e.at||0,r=e.rows||1,s=e.copyStructureFromAbove!==void 0,a=e.copyStructureFromAbove?i-1:i,c=this.getRows(t),l=this.getColumns(t);if(i>c)throw new _("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(d=>{const u=t.getAttribute("headingRows")||0;if(u>i&&_t("headingRows",u+r,t,d,0),!s&&(i===0||i===c))return void Ea(d,t,i,r,l);const h=s?Math.max(i,a):i,g=new at(t,{endRow:h}),m=new Array(l).fill(1);for(const{row:k,column:b,cellHeight:A,cellWidth:x,cell:M}of g){const N=k+A-1,H=k<=a&&a<=N;k<i&&i<=N?(d.setAttribute("rowspan",A+r,M),m[b]=-x):s&&H&&(m[b]=x)}for(let k=0;k<r;k++){const b=d.createElement("tableRow");d.insert(b,t,i);for(let A=0;A<m.length;A++){const x=m[A],M=d.createPositionAt(b,"end");x>0&&pn(d,M,x>1?{colspan:x}:void 0),A+=Math.abs(x)-1}}})}insertColumns(t,e={}){const n=this.editor.model,i=e.at||0,r=e.columns||1;n.change(s=>{const a=t.getAttribute("headingColumns");i<a&&s.setAttribute("headingColumns",a+r,t);const c=this.getColumns(t);if(i===0||c===i){for(const d of t.getChildren())d.is("element","tableRow")&&Qn(r,s,s.createPositionAt(d,i?"end":0));return}const l=new at(t,{column:i,includeAllSlots:!0});for(const d of l){const{row:u,cell:h,cellAnchorColumn:g,cellAnchorRow:m,cellWidth:k,cellHeight:b}=d;if(g<i){s.setAttribute("colspan",k+r,h);const A=m+b-1;for(let x=u;x<=A;x++)l.skipRow(x)}else Qn(r,s,d.getPositionBefore())}})}removeRows(t,e){const n=this.editor.model,i=e.rows||1,r=this.getRows(t),s=e.at,a=s+i-1;if(a>r-1)throw new _("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(c=>{const l={first:s,last:a},{cellsToMove:d,cellsToTrim:u}=function(h,{first:g,last:m}){const k=new Map,b=[];for(const{row:A,column:x,cellHeight:M,cell:N}of new at(h,{endRow:m})){const H=A+M-1;if(A>=g&&A<=m&&H>m){const W=M-(m-A+1);k.set(x,{cell:N,rowspan:W})}if(A<g&&H>=g){let W;W=H>=m?m-g+1:H-g+1,b.push({cell:N,rowspan:M-W})}}return{cellsToMove:k,cellsToTrim:b}}(t,l);d.size&&function(h,g,m,k){const b=new at(h,{includeAllSlots:!0,row:g}),A=[...b],x=h.getChild(g);let M;for(const{column:N,cell:H,isAnchor:W}of A)if(m.has(N)){const{cell:Y,rowspan:mt}=m.get(N),Mt=M?k.createPositionAfter(M):k.createPositionAt(x,0);k.move(k.createRangeOn(Y),Mt),_t("rowspan",mt,Y,k),M=Y}else W&&(M=H)}(t,a+1,d,c);for(let h=a;h>=s;h--)c.remove(t.getChild(h));for(const{rowspan:h,cell:g}of u)_t("rowspan",h,g,c);(function(h,{first:g,last:m},k){const b=h.getAttribute("headingRows")||0;g<b&&_t("headingRows",m<b?b-(m-g+1):g,h,k,0)})(t,l,c),va(t,this)||ya(t,this)})}removeColumns(t,e){const n=this.editor.model,i=e.at,r=e.columns||1,s=e.at+r-1;n.change(a=>{(function(l,d,u){const h=l.getAttribute("headingColumns")||0;if(h&&d.first<h){const g=Math.min(h-1,d.last)-d.first+1;u.setAttribute("headingColumns",h-g,l)}})(t,{first:i,last:s},a);const c=w5(t);for(let l=s;l>=i;l--){for(const{cell:d,column:u,cellWidth:h}of[...new at(t)])u<=l&&h>1&&u+h>l?_t("colspan",h-1,d,a):u===l&&a.remove(d);if(c[l]){const d=l===0?c[1]:c[l-1],u=parseFloat(c[l].getAttribute("columnWidth")),h=parseFloat(d.getAttribute("columnWidth"));a.remove(c[l]),a.setAttribute("columnWidth",u+h+"%",d)}}ya(t,this)||va(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,i=t.parent.parent,r=parseInt(t.getAttribute("rowspan")||"1"),s=parseInt(t.getAttribute("colspan")||"1");n.change(a=>{if(s>1){const{newCellsSpan:c,updatedSpan:l}=ak(s,e);
8227_t("colspan",l,t,a);const d={};c>1&&(d.colspan=c),r>1&&(d.rowspan=r),Qn(s>e?e-1:s-1,a,a.createPositionAfter(t),d)}if(s<e){const c=e-s,l=[...new at(i)],{column:d}=l.find(({cell:m})=>m===t),u=l.filter(({cell:m,cellWidth:k,column:b})=>m!==t&&b===d||b<d&&b+k>d);for(const{cell:m,cellWidth:k}of u)a.setAttribute("colspan",k+c,m);const h={};r>1&&(h.rowspan=r),Qn(c,a,a.createPositionAfter(t),h);const g=i.getAttribute("headingColumns")||0;g>d&&_t("headingColumns",g+c,i,a)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,i=t.parent,r=i.parent,s=r.getChildIndex(i),a=parseInt(t.getAttribute("rowspan")||"1"),c=parseInt(t.getAttribute("colspan")||"1");n.change(l=>{if(a>1){const d=[...new at(r,{startRow:s,endRow:s+a-1,includeAllSlots:!0})],{newCellsSpan:u,updatedSpan:h}=ak(a,e);_t("rowspan",h,t,l);const{column:g}=d.find(({cell:k})=>k===t),m={};u>1&&(m.rowspan=u),c>1&&(m.colspan=c);for(const k of d){const{column:b,row:A}=k;A>=s+h&&b===g&&(A+s+h)%u==0&&Qn(1,l,k.getPositionBefore(),m)}}if(a<e){const d=e-a,u=[...new at(r,{startRow:0,endRow:s})];for(const{cell:m,cellHeight:k,row:b}of u)if(m!==t&&b+k>s){const A=k+d;l.setAttribute("rowspan",A,m)}const h={};c>1&&(h.colspan=c),Ea(l,r,s+1,d,1,h);const g=r.getAttribute("headingRows")||0;g>s&&_t("headingRows",g+d,r,l)}})}getColumns(t){return[...t.getChild(0).getChildren()].filter(e=>e.is("element","tableCell")).reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new at(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const i=n.getContainedElement();i&&i.is("element","tableCell")&&e.push(i)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const i=n.start.findAncestor("tableCell");i&&e.push(i)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}
8227getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new at(e)].filter(i=>t.includes(i.cell)).map(i=>i.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let i=0;for(const s of t){const{row:a,column:c}=this.getCellLocation(s),l=parseInt(s.getAttribute("rowspan"))||1,d=parseInt(s.getAttribute("colspan"))||1;e.add(a),n.add(c),l>1&&e.add(a+l-1),d>1&&n.add(c+d-1),i+=l*d}return function(s,a){const c=Array.from(s.values()),l=Array.from(a.values()),d=Math.max(...c),u=Math.min(...c),h=Math.max(...l),g=Math.min(...l);return(d-u+1)*(h-g+1)}(e,n)==i}sortRanges(t){return Array.from(t).sort(A5)}_getFirstLastIndexesObject(t){const e=t.sort((n,i)=>n-i);return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),i=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,i))return!1;const r=this.getColumnIndexes(t),s=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(r,s)}_areIndexesInSameSection({first:t,last:e},n){return t<n==e<n}}function Ea(o,t,e,n,i,r={}){for(let s=0;s<n;s++){const a=o.createElement("tableRow");o.insert(a,t,e),Qn(i,o,o.createPositionAt(a,"end"),r)}}function Qn(o,t,e,n={}){for(let i=0;i<o;i++)pn(t,e,n)}function ak(o,t){if(o<t)return{newCellsSpan:1,updatedSpan:1};const e=Math.floor(o/t);return{newCellsSpan:e,updatedSpan:o-e*t+e}}function A5(o,t){const e=o.start,n=t.start;return e.isBefore(n)?-1:1}class _5 extends Z{refresh(){const t=this.editor.plugins.get(Ot),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(Ot);t.change(n=>{const i=e.getSelectedTableCells(t.document.selection),r=i.shift(),{mergeWidth:s,mergeHeight:a}=function(c,l,d){let u=0,h=0;for(const A of l){const{row:x,column:M}=d.getCellLocation(A);u=lk(A,M,u,"colspan"),h=lk(A,x,h,"rowspan")}const{row:g,column:m}=d.getCellLocation(c),k=u-m,b=h-g;return{mergeWidth:k,mergeHeight:b}}(r,i,e);_t("colspan",s,r,n),_t("rowspan",a,r,n);for(const c of i)C5(c,r,n);xa(r.findAncestor("table"),e),n.setSelection(r,"in")})}}function C5(o,t,e){ck(o)||(ck(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(o),e.createPositionAt(t,"end"))),e.remove(o)}function ck(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}function lk(o,t,e,n){const i=parseInt(o.getAttribute(n)||"1");return Math.max(e,t+i)}class v5 extends Z{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0].findAncestor("table"),s=[];for(let a=i.first;a<=i.last;a++)for(const c of r.getChild(a).getChildren())s.push(t.createRangeOn(c));t.change(a=>{a.setSelection(s)})}}class y5 extends Z{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0],r=n.pop(),s=i.findAncestor("table"),a=t.getCellLocation(i),c=t.getCellLocation(r),l=Math.min(a.column,c.column),d=Math.max(a.column,c.column),u=[];for(const h of new at(s,{startColumn:l,endColumn:d}))u.push(e.createRangeOn(h.cell));e.change(h=>{h.setSelection(u)})}}function x5(o){o.document.registerPostFixer(t=>function(e,n){const i=n.document.differ.getChanges();let r=!1;const s=new Set;for(const a of i){let c=null;a.type=="insert"&&a.name=="table"&&(c=a.position.nodeAfter),a.type!="insert"&&a.type!="remove"||a.name!="tableRow"&&a.name!="tableCell"||(c=a.position.findAncestor("table")),I5(a)&&(c=a.range.start.findAnce
8227stor("table")),c&&!s.has(c)&&(r=E5(c,e)||r,r=D5(c,e)||r,s.add(c))}return r}(t,o))}function E5(o,t){let e=!1;const n=function(i){const r=parseInt(i.getAttribute("headingRows")||"0"),s=Array.from(i.getChildren()).reduce((c,l)=>l.is("element","tableRow")?c+1:c,0),a=[];for(const{row:c,cell:l,cellHeight:d}of new at(i)){if(d<2)continue;const u=c<r?r:s;if(c+d>u){const h=u-c;a.push({cell:l,rowspan:h})}}return a}(o);if(n.length){e=!0;for(const i of n)_t("rowspan",i.rowspan,i.cell,t,1)}return e}function D5(o,t){let e=!1;const n=function(a){const c=new Array(a.childCount).fill(0);for(const{rowIndex:l}of new at(a,{includeAllSlots:!0}))c[l]++;return c}(o),i=[];for(const[a,c]of n.entries())!c&&o.getChild(a).is("element","tableRow")&&i.push(a);if(i.length){e=!0;for(const a of i.reverse())t.remove(o.getChild(a)),n.splice(a,1)}const r=n.filter((a,c)=>o.getChild(c).is("element","tableRow")),s=r[0];if(!r.every(a=>a===s)){const a=r.reduce((c,l)=>l>c?l:c,0);for(const[c,l]of r.entries()){const d=a-l;if(d){for(let u=0;u<d;u++)pn(t,t.createPositionAt(o.getChild(c),"end"));e=!0}}}return e}function I5(o){if(o.type!=="attribute")return!1;const t=o.attributeKey;return t==="headingRows"||t==="colspan"||t==="rowspan"}function T5(o){o.document.registerPostFixer(t=>function(e,n){const i=n.document.differ.getChanges();let r=!1;for(const s of i)s.type=="insert"&&s.name=="table"&&(r=M5(s.position.nodeAfter,e)||r),s.type=="insert"&&s.name=="tableRow"&&(r=dk(s.position.nodeAfter,e)||r),s.type=="insert"&&s.name=="tableCell"&&(r=Da(s.position.nodeAfter,e)||r),s.type!="remove"&&s.type!="insert"||!S5(s)||(r=Da(s.position.parent,e)||r);return r}(t,o))}function M5(o,t){let e=!1;for(const n of o.getChildren())n.is("element","tableRow")&&(e=dk(n,t)||e);return e}function dk(o,t){let e=!1;for(const n of o.getChildren())e=Da(n,t)||e;return e}function Da(o,t){if(o.childCount==0)return t.insertElement("paragraph",o),!0;const e=Array.from(o.getChildren()).filter(n=>n.is("$text"));for(const n of e)t.wrap(t.createRangeOn(n),"paragraph");return!!e.length}function S5(o){return!!o.position.parent.is("element","tableCell")&&(o.type=="insert"&&o.name=="$text"||o.type=="remove")}function B5(o,t){if(!o.is("element","paragraph"))return!1;const e=t.toViewElement(o);return!!e&&$f(o)!==e.is("element","span")}var uk=R(8137),N5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(uk.A,N5),uk.A.locals;class P5 extends L{constructor(t){super(t),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[Ot]}init(){const t=this.editor,e=t.model,n=e.schema,i=t.conversion,r=t.plugins.get(Ot);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),i.for("upcast").add(s=>{s.on("element:figure",(a,c,l)=>{if(!l.consumable.test(c.viewItem,{name:!0,classes:"table"}))return;const d=function(h){for(const g of h.getChildren())if(g.is("element","table"))return g}(c.viewItem);if(!d||!l.consumable.test(d,{name:!0}))return;l.consumable.consume(c.viewItem,{name:!0,classes:"table"});const u=St(l.convertItem(d,c.modelCursor).modelRange.getItems());u?(l.convertChildren(c.viewItem,l.writer.createPositionAt(u,"end")),l.updateConversionResult(u,c)):l.consumable.revert(c.viewItem,{name:!0,classes:"table"})})}),i.for("upcast").add(d5()),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Gf(r,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Gf(r,{additionalSlots:this._additionalSlots})}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add(s=>{s.on("element:tr",(a,c)=>{c.viewItem.isEmpty&&c.modelCursor.index==0&&a.stop()},{priority:"high"})}),i.for("downcast").elementToElement({model:"tableRow",view:(s,{writer:a})=>s.isEmpty?a.createEmptyElement("tr"):a.createContainerElement("tr")}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(qf("td")),i.for("upcast").add(qf("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:Wf({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:Wf()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:Kf({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:Kf(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:hk("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:hk("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new g5(t)),t.commands.add("insertTableRowAbove",new Yf(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Yf(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new Qf(t,{order:"left"})),t.commands.add("insertTableColumnRight",new Qf(t,{order:"right"}
8227)),t.commands.add("removeTableRow",new m5(t)),t.commands.add("removeTableColumn",new p5(t)),t.commands.add("splitTableCellVertically",new Zf(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Zf(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new _5(t)),t.commands.add("mergeTableCellRight",new hr(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new hr(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new hr(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new hr(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new k5(t)),t.commands.add("setTableRowHeader",new f5(t)),t.commands.add("selectTableRow",new v5(t)),t.commands.add("selectTableColumn",new y5(t)),x5(e),T5(e),this.listenTo(e.document,"change:data",()=>{(function(s,a){const c=s.document.differ;for(const l of c.getChanges()){let d,u=!1;if(l.type=="attribute"){const k=l.range.start.nodeAfter;if(!k||!k.is("element","table")||l.attributeKey!="headingRows"&&l.attributeKey!="headingColumns")continue;d=k,u=l.attributeKey=="headingRows"}else l.name!="tableRow"&&l.name!="tableCell"||(d=l.position.findAncestor("table"),u=l.name=="tableRow");if(!d)continue;const h=d.getAttribute("headingRows")||0,g=d.getAttribute("headingColumns")||0,m=new at(d);for(const k of m){const b=k.row<h||k.column<g?"th":"td",A=a.mapper.toViewElement(k.cell);A&&A.is("element")&&A.name!=b&&a.reconvertItem(u?k.cell.parent:k.cell)}}})(e,t.editing),function(s,a){const c=s.document.differ,l=new Set;for(const d of c.getChanges()){const u=d.type=="attribute"?d.range.start.parent:d.position.parent;u.is("element","tableCell")&&l.add(u)}for(const d of l.values()){const u=Array.from(d.getChildren()).filter(h=>B5(h,a.mapper));for(const h of u)a.reconvertItem(h)}}(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function hk(o){return t=>{const e=parseInt(t.getAttribute(o));return Number.isNaN(e)||e<=0?null:e}}var gk=R(5032),O5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(gk.A,O5),gk.A.locals;class mk extends G{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new zt,this.focusTracker=new Bt,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,i)=>`${i} Ã ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"[email protected]":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(n=>{n.preventDefault()}),click:e.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,i)=>{const{row:r,column:s}=i.target.dataset;this.items.get(10*(parseInt(r,10)-1)+(parseInt(s,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,i,r)=>{if(!r)return;const{row:s,column:a}=r.dataset;this.set({rows:parseInt(s),columns:parseInt(a)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),Gw({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,i)=>{const r=Math.floor(i/10)<t&&i%10<e;n.set("isOn",r)})}_createGridButton(t,e,n,i){const r=new ot(t);return r.set({label:i,class:"ck-insert-table-dropdown-grid-box"}),r.extendTemplate({attributes:{"data-row":e,"data-column":n}}),r}_createGridCollection(){const t=[];for(let e=0;e<100;e++){const n=Math.floor(e/10),i=e%10,r=`${n+1} Ã ${i+1}`;t.push(this._createGridButton(this.locale,n+1,i+1,r))}return this.createCollection(t)}}class L5 extends L{static get pluginName(){return"TableUI"}init(){const t=this.editor,e=this.editor.t,n=t.locale.contentLanguageDirection==="ltr";t.ui.componentFactory.add("insertTable",i=>{const r=t.commands.get("insertTable"),s=Pe(i);let a;return s.bind("isEnabled").to(r),s.buttonView.set({icon:$.table,label:e("Insert table"),tooltip:!0}),s.on("change:isOpen",()=>{a||(a=new mk(i),s.panelView.children.add(a),a.delegate("execute").to(s),s.on("execute",()=>{t.execute("insertTable",{rows:a.rows,columns:a.columns}),t.editing.view.focus()}))}),s}),t.ui.componentFactory.add("menuBar:insertTable",i=>{const r=t.commands.get("insertTable"),s=new Hn(i),a=new mk(i);return a.delegate("execute").to(s),s.on("change:isOpen",(c,l,d)=>{d||a.reset()}),a.on("execute",()=>{t.execute("insertTable",{rows:a.rows,columns:a.columns}),t.editing.view.focus()}),s.buttonView.set({label:e("Table"),icon:$.table}),s.panelView.children.add(a),s.bind("isEnabled").to(r),s}),t.ui.componentFactory.add("tableColumn",i=>{const r=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',r,i)}),t.ui.componentFactory.add("tableRow",i=>{const r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,i)}),t.ui.componentFactory.add("mergeTableCells",i=>{const r=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',r,i)})}_prepareDropdown(t,e,n,i){const r=this.editor,s=Pe(i),a=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:t,icon:e,tooltip:!0}),s.bind("isEnabled").toMany(a,"isEnabled",(...c)=>c.some(l=>l)),this.listenTo(s,"execute",c=>{r.execute(c.source.commandName),c.source instanceof Mi||r.editing.view.focus()}),s}_prepareMergeSplitButtonDropdown(t,e,n,i){const r=this.editor,s=Pe(i,Pi),a="mergeTableCells",c=r.commands.get(a),l=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),s.bind("isEnabled").toMany([c,...l],"isEnabled",(...d)=>d.some(u=>u)),this.listenTo(s.buttonView,"execute",()=>{r.execute(a),r.editing.view.focus()}),this.listenTo(s,"execute",d=>{r.execute(d.source.commandName),r.editing.view.focus()}),s}_fillDropdownWithListOptions(t,e){const n=this.editor,i=[],r=new ue;for(const s of e)z5(s,n,i,r);return Gu(t,r),i}}function z5(o,t,e,n){if(o.type==="button"||o.type==="switchbutton"){const i=o.model=new Ch(o.model),{commandName:r,bindIsOn:s}=o.model,a=t.commands.get(r);e.push(a),i.set({commandName:r}),i.bind("isEnabled").to(a),s&&i.bind("isOn").to(a,"value"),i.set({withText:!0})}n.add(o)}var pk=R(8423),R5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(pk.A,R5),pk.A.locals;class fn extends L{static get pluginName(){return"TableSelection"}static get requires(){return[Ot,Ot]}init(){const t=this.editor,e=t.model,n=t.editing.view;this.listenTo(e,"deleteContent",(i,r)=>this._handleDeleteContent(i,r),{priority:"high"}),this.listenTo(n.document,"insertText",(i,r)=>this._handleInsertTextEvent(i,r),{priority:"high"}
8227),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const t=this.editor.plugins.get(Ot),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return n.length==0?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(Ot),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const i=n.createDocumentFragment(),{first:r,last:s}=t.getColumnIndexes(e),{first:a,last:c}=t.getRowIndexes(e),l=e[0].findAncestor("table");let d=c,u=s;if(t.isSelectionRectangular(e)){const g={firstColumn:r,lastColumn:s,firstRow:a,lastRow:c};d=ik(l,g),u=rk(l,g)}const h=Jf(l,{startRow:a,startColumn:r,endRow:d,endColumn:u},n);return n.insert(h,i,0),i}):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change(i=>{i.setSelection(n.cells.map(r=>i.createRangeOn(r)),{backward:n.backward})})}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=St(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(n=>n.on("selection",(i,r,s)=>{const a=s.writer;(function(d){for(const u of e)d.removeClass("ck-editor__editable_selected",u);e.clear()})(a);const c=this.getSelectedTableCells();if(!c)return;for(const d of c){const u=s.mapper.toViewElement(d);a.addClass("ck-editor__editable_selected",u),e.add(u)}const l=s.mapper.toViewElement(c[c.length-1]);a.setSelection(l,0)},{priority:"lowest"}))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change(n=>{const i=n.createPositionAt(e[0],0),r=t.model.schema.getNearestSelectionRange(i);n.setSelection(r)})}})}_handleDeleteContent(t,e){const n=this.editor.plugins.get(Ot),i=e[0],r=e[1],s=this.editor.model,a=!r||r.direction=="backward",c=n.getSelectedTableCells(i);c.length&&(t.stop(),s.change(l=>{const d=c[a?c.length-1:0];s.change(h=>{for(const g of c)s.deleteContent(h.createSelection(g,"in"))});const u=s.schema.getNearestSelectionRange(l.createPositionAt(d,0));i.is("documentSelection")?l.setSelection(u):i.setTo(u)}))}_handleInsertTextEvent(t,e){const n=this.editor,i=this.getSelectedTableCells();if(!i)return;const r=n.editing.view,s=n.editing.mapper,a=i.map(c=>r.createRangeOn(s.toViewElement(c)));e.selection=r.createSelection(a)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(t),r=n.getCellLocation(e),s=Math.min(i.row,r.row),a=Math.max(i.row,r.row),c=Math.min(i.column,r.column),l=Math.max(i.column,r.column),d=new Array(a-s+1).fill(null).map(()=>[]),u={startRow:s,endRow:a,startColumn:c,endColumn:l};for(const{row:m,cell:k}of new at(t.findAncestor("table"),u))d[m-s].push(k);const h=r.row<i.row,g=r.column<i.column;return h&&d.reverse(),g&&d.forEach(m=>m.reverse()),{cells:d.flat(),backward:h||g}}}class j5 extends L{static get pluginName(){return"TableClipboard"}static get requires(){return[So,se,fn,Ot]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",(n,i)=>this._onCopyCut(n,i)),this.listenTo(e,"cut",(n,i)=>this._onCopyCut(n,i)),this.listenTo(t.model,"insertContent",(n,[i,r])=>this._onInsertContent(n,i,r),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.editing.view,i=this.editor.plugins.get(fn),r=this.editor.plugins.get(So);i.getSelectedTableCells()&&(t.name!="cut"||this.editor.model.canEditAt(this.editor.model.document.selection))&&(e.preventDefault(),t.stop(),this.editor.model.enqueueChange({isUndoable:t.name==="cut"},()=>{const s=r._copySelectedFragmentWithMarkers(t.name,this.editor.model.document.selection,()=>i.getSelectionAsFragment());n.document.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:this.editor.data.toView(s),method:t.name})}))}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,r=this.editor.plugins.get(Ot),s=this.editor.plugins.get(So),a=this.getTableIfOnlyTableInContent(e,i);if(!a)return;const c=r.getSelectionAffectedTableCells(i.document.selection);c.length?(t.stop(),e.is("documentFragment")?s._pasteMarkersIntoTransformedElement(e.markers,l=>this._replaceSelectedCells(a,c,l)):this.editor.model.change(l=>{this._replaceSelectedCells(a,c,l)})):xa(a,r)}_replaceSelectedCells(t,e,n){const i=this.editor.plugins.get(Ot),r={width:i.getColumns(t),height:i.getRows(t)}
8227,s=function(u,h,g,m){const k=u[0].findAncestor("table"),b=m.getColumnIndexes(u),A=m.getRowIndexes(u),x={firstColumn:b.first,lastColumn:b.last,firstRow:A.first,lastRow:A.last},M=u.length===1;return M&&(x.lastRow+=h.height-1,x.lastColumn+=h.width-1,function(N,H,W,Y){const mt=Y.getColumns(N),Mt=Y.getRows(N);W>mt&&Y.insertColumns(N,{at:mt,columns:W-mt}),H>Mt&&Y.insertRows(N,{at:Mt,rows:H-Mt})}(k,x.lastRow+1,x.lastColumn+1,m)),M||!m.isSelectionRectangular(u)?function(N,H,W){const{firstRow:Y,lastRow:mt,firstColumn:Mt,lastColumn:Nk}=H,Pk={first:Y,last:mt},Ok={first:Mt,last:Nk};Ta(N,Mt,Pk,W),Ta(N,Nk+1,Pk,W),Ia(N,Y,Ok,W),Ia(N,mt+1,Ok,W,Y)}(k,x,g):(x.lastRow=ik(k,x),x.lastColumn=rk(k,x)),x}(e,r,n,i),a=s.lastRow-s.firstRow+1,c=s.lastColumn-s.firstColumn+1;t=Jf(t,{startRow:0,startColumn:0,endRow:Math.min(a,r.height)-1,endColumn:Math.min(c,r.width)-1},n);const l=e[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(t,r,l,s,n);if(this.editor.plugins.get("TableSelection").isEnabled){const u=i.sortRanges(d.map(h=>n.createRangeOn(h)));n.setSelection(u)}else n.setSelection(d[0],0);return l}_replaceSelectedCellsWithPasted(t,e,n,i,r){const{width:s,height:a}=e,c=function(b,A,x){const M=new Array(x).fill(null).map(()=>new Array(A).fill(null));for(const{column:N,row:H,cell:W}of new at(b))M[H][N]=W;return M}(t,s,a),l=[...new at(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],d=[];let u;for(const b of l){const{row:A,column:x}=b;x===i.firstColumn&&(u=b.getPositionBefore());const M=A-i.firstRow,N=x-i.firstColumn,H=c[M%a][N%s],W=H?r.cloneElement(H):null,Y=this._replaceTableSlotCell(b,W,u,r);Y&&(ok(Y,A,x,i.lastRow,i.lastColumn,r),d.push(Y),u=r.createPositionAfter(Y))}const h=parseInt(n.getAttribute("headingRows")||"0"),g=parseInt(n.getAttribute("headingColumns")||"0"),m=i.firstRow<h&&h<=i.lastRow,k=i.firstColumn<g&&g<=i.lastColumn;if(m){const b=Ia(n,h,{first:i.firstColumn,last:i.lastColumn},r,i.firstRow);d.push(...b)}if(k){const b=Ta(n,g,{first:i.firstRow,last:i.lastRow},r);d.push(...b)}return d}_replaceTableSlotCell(t,e,n,i){const{cell:r,isAnchor:s}=t;return s&&i.remove(r),e?(i.insert(e,n),e):null}getTableIfOnlyTableInContent(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(t.childCount==1&&t.getChild(0).is("element","table"))return t.getChild(0);const n=e.createRangeIn(t);for(const i of n.getItems())if(i.is("element","table")){const r=e.createRange(n.start,e.createPositionBefore(i));if(e.hasContent(r,{ignoreWhitespaces:!0}))return null;const s=e.createRange(e.createPositionAfter(i),n.end);return e.hasContent(s,{ignoreWhitespaces:!0})?null:i}return null}}function Ia(o,t,e,n,i=0){if(!(t<1))return Xf(o,t,i).filter(({column:r,cellWidth:s})=>fk(r,s,e)).map(({cell:r})=>tk(r,t,n))}function Ta(o,t,e,n){if(!(t<1))return ek(o,t).filter(({row:i,cellHeight:r})=>fk(i,r,e)).map(({cell:i,column:r})=>nk(i,r,t,n))}function fk(o,t,e){const n=o+t-1,{first:i,last:r}=e;return o>=i&&o<=r||o<i&&n>=i}class F5 extends L{static get pluginName(){return"TableKeyboard"}static get requires(){return[fn,Ot]}init(){const t=this.editor,e=t.editing.view.document,n=t.t;this.listenTo(e,"arrowKey",(...i)=>this._onArrowKey(...i),{context:"table"}),this.listenTo(e,"tab",(...i)=>this._handleTabOnSelectedTable(...i),{context:"figure"}),this.listenTo(e,"tab",(...i)=>this._handleTab(...i),{context:["th","td"]}),t.accessibility.addKeystrokeInfoGroup({id:"table",label:n("Keystrokes that can be used in a table cell"),keystrokes:[{label:n("Move the selection to the next cell"),keystroke:"Tab"},{label:n("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:n("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:n("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(t,e){const n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(r=>{r.setSelection(r.createRangeIn(i.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,i=this.editor.plugins.get(Ot),r=this.editor.plugins.get("TableSelection"),s=n.model.document.selection,a=!e.shiftKey;let c=i.getTableCellsContainingSelection(s)[0];if(c||(c=r.getFocusCell()),!c)return;e.preventDefault(),e.stopPropagation(),t.stop();const l=c.parent,d=l.parent,u=d.getChildIndex(l),h=l.getChildIndex(c),g=h===0;if(!a&&g&&u===0)return void n.model.change(A=>{A.setSelection(A.createRangeOn(d))});const m=h===l.childCount-1,k=u===i.getRows(d)-1;if(a&&k&&m&&(n.execute("insertTableRowBelow"),u===i.getRows(d)-1))return void n.model.change(A=>{A.setSelection(A.createRangeOn(d))});let b;if(a&&m)b=d.getChild(u+1).getChild(0);else if(!a&&g){const A=d.getChild(u-1);b=A.getChild(A.childCount-1)}else b=l.getChild(h+(a?1:-1));n.model.change(A=>{A.setSelection(A.createRangeIn(b))})}_onArrowKey(t,e){const n=this.editor,i=Fr(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(i,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(Ot),i=this.editor.plugins.get("TableSelection"),r=this.editor.model,s=r.document.selection,a=["right","down"].includes(t),c=n.getSelectedTableCells(s);if(c.length){let d;return d=e?i.getFocusCell():a?c[c.length-1]:c[0],this._navigateFromCellInDirection(d,t,e),!0}
8227const l=s.focus.findAncestor("tableCell");if(!l)return!1;if(!s.isCollapsed)if(e){if(s.isBackward==a&&!s.containsEntireContent(l))return!1}else{const d=s.getSelectedElement();if(!d||!r.schema.isObject(d))return!1}return!!this._isSelectionAtCellEdge(s,l,a)&&(this._navigateFromCellInDirection(l,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const i=this.editor.model,r=this.editor.model.schema,s=n?t.getLastPosition():t.getFirstPosition();if(!r.getLimitElement(s).is("element","tableCell"))return i.createPositionAt(e,n?"end":0).isTouching(s);const a=i.createSelection(s);return i.modifySelection(a,{direction:n?"forward":"backward"}),s.isEqual(a.focus)}_navigateFromCellInDirection(t,e,n=!1){const i=this.editor.model,r=t.findAncestor("table"),s=[...new at(r,{includeAllSlots:!0})],{row:a,column:c}=s[s.length-1],l=s.find(({cell:k})=>k==t);let{row:d,column:u}=l;switch(e){case"left":u--;break;case"up":d--;break;case"right":u+=l.cellWidth;break;case"down":d+=l.cellHeight}if(d<0||d>a||u<0&&d<=0||u>c&&d>=a)return void i.change(k=>{k.setSelection(k.createRangeOn(r))});u<0?(u=n?0:c,d--):u>c&&(u=n?c:0,d++);const h=s.find(k=>k.row==d&&k.column==u).cell,g=["right","down"].includes(e),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){const k=m.getAnchorCell()||t;m.setCellSelection(k,h)}else{const k=i.createPositionAt(h,g?0:"end");i.change(b=>{b.setSelection(k)})}}}class V5 extends He{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class H5 extends L{static get pluginName(){return"TableMouse"}static get requires(){return[fn,Ot]}init(){this.editor.editing.view.addObserver(V5),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(Ot);let n=!1;const i=t.plugins.get(fn);this.listenTo(t.editing.view.document,"mousedown",(r,s)=>{const a=t.model.document.selection;if(!this.isEnabled||!i.isEnabled||!s.domEvent.shiftKey)return;const c=i.getAnchorCell()||e.getTableCellsContainingSelection(a)[0];if(!c)return;const l=this._getModelTableCellFromDomEvent(s);l&&kk(c,l)&&(n=!0,i.setCellSelection(c,l),s.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(t.editing.view.document,"selectionChange",r=>{n&&r.stop()},{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,i=!1,r=!1;const s=t.plugins.get(fn);this.listenTo(t.editing.view.document,"mousedown",(a,c)=>{this.isEnabled&&s.isEnabled&&(c.domEvent.shiftKey||c.domEvent.ctrlKey||c.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(c)))}),this.listenTo(t.editing.view.document,"mousemove",(a,c)=>{if(!c.domEvent.buttons||!e)return;const l=this._getModelTableCellFromDomEvent(c);l&&kk(e,l)&&(n=l,i||n==e||(i=!0)),i&&(r=!0,s.setCellSelection(e,n),c.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{i=!1,r=!1,e=null,n=null}),this.listenTo(t.editing.view.document,"selectionChange",a=>{r&&a.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(t){const e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function kk(o,t){return o.parent.parent==t.parent.parent}var bk=R(2329),U5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(bk.A,U5),bk.A.locals;function q5(o){const t=o.getSelectedElement();return t&&wk(t)?t:null}function G5(o){const t=o.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&wk(e))return e;e=e.parent}return null}function wk(o){return!!o.getCustomProperty("table")&&Et(o)}var Ak=R(5506),W5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ak.A,W5),Ak.A.locals;var _k=R(2655),K5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(_k.A,K5),_k.A.locals;var Ck=R(4043),$5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ck.A,$5),Ck.A.locals;var vk=R(1623),Y5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(vk.A,Y5),vk.A.locals;var yk=R(8986),Q5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(yk.A,Q5),yk.A.locals;const kn=Ft.defaultPositions;kn.northArrowSouth,kn.northArrowSouthWest,kn.northArrowSouthEast,kn.southArrowNorth,kn.southArrowNorthWest,kn.southArrowNorthEast,kn.viewportStickyNorth;var xk=R(5562),Z5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(xk.A,Z5),xk.A.locals;var Ek=R(4143),J5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Ek.A,J5),Ek.A.locals;var Dk=R(8795),X5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(Dk.A,X5),Dk.A.locals;var tD=Object.defineProperty,Ik=Object.getOwnPropertySymbols,eD=Object.prototype.hasOwnProperty,nD=Object.prototype.propertyIsEnumerable,Tk=(o,t,e)=>t in o?tD(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Mk=(o,t)=>{for(var e in t||(t={}))eD.call(t,e)&&Tk(o,e,t[e]);if(Ik)for(var e of Ik(t))nD.call(t,e)&&Tk(o,e,t[e]);return o};const oD={autoRefresh:!0},Sk=36e5;class Ma extends lt(){constructor(t,e={}){if(super(),!t)throw new _("token-missing-token-url",this);
8227e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),this._refresh=typeof t=="function"?t:()=>{return n=t,new Promise((i,r)=>{const s=new XMLHttpRequest;s.open("GET",n),s.addEventListener("load",()=>{const a=s.status,c=s.response;return a<200||a>299?r(new _("token-cannot-download-new-token",null)):i(c)}),s.addEventListener("error",()=>r(new Error("Network Error"))),s.addEventListener("abort",()=>r(new Error("Abort"))),s.send()});var n},this._options=Mk(Mk({},oD),e)}init(){return new Promise((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e=typeof t=="string",n=!/^".*"$/.test(t),i=e&&t.split(".").length===3;if(!n||!i)throw new _("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((1e3*e-Date.now())/2):Sk}catch{return Sk}}static create(t,e={}){return new Ma(t,e).init()}}const Sa=/^data:(\S*?);base64,/;class iD extends rt(){constructor(t,e,n){if(super(),!t)throw new _("fileuploader-missing-file",null);if(!e)throw new _("fileuploader-missing-token",null);if(!n)throw new _("fileuploader-missing-api-address",null);this.file=function(i){if(typeof i!="string")return!1;const r=i.match(Sa);return!(!r||!r.length)}(t)?function(i,r=512){try{const s=i.match(Sa)[1],a=atob(i.replace(Sa,"")),c=[];for(let l=0;l<a.length;l+=r){const d=a.slice(l,l+r),u=new Array(d.length);for(let h=0;h<d.length;h++)u[h]=d.charCodeAt(h);c.push(new Uint8Array(u))}return new Blob(c,{type:s})}catch{throw new _("fileuploader-decoding-image-data-error",null)}}(t):t,this._token=e,this._apiAddress=n}onProgress(t){return this.on("progress",(e,n)=>t(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=n=>()=>this.fire("error",n);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),t.addEventListener("load",()=>{const n=t.status,i=t.response;if(n<200||n>299)return this.fire("error",i.message||i.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,i)=>{e.addEventListener("load",()=>{const r=e.status,s=e.response;return r<200||r>299?s.message?i(new _("fileuploader-uploading-data-failed",this,{message:s.message})):i(s.error):n(s)}),e.addEventListener("error",()=>i(new Error("Network Error"))),e.addEventListener("abort",()=>i(new Error("Abort"))),e.send(t)})}}class rD{constructor(t,e){if(!t)throw new _("uploadgateway-missing-token",null);if(!e)throw new _("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new iD(t,this._token,this._apiAddress)}}class sD extends ui{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new Ma(t,e)}createUploadGateway(t,e){return new rD(t,e)}}var Bk=(o,t,e)=>new Promise((n,i)=>{var r=c=>{try{a(e.next(c))}catch(l){i(l)}},s=c=>{try{a(e.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,s);a((e=e.apply(o,t)).next())});class Ba extends Ui{}Ba.builtinPlugins=[class extends L{static get requires(){return[sC,Xg,Ki,Ey,Q1,H1,im]}static get pluginName(){return"Essentials"}},class extends L{static get requires(){return[be]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const o=this.editor.config.get("ckfinder.uploadUrl");o&&(this.editor.plugins.get(be).createUploadAdapter=t=>new Ry(t,o,this.editor.t))}},class extends L{static get requires(){return[Le]}static get pluginName(){return"Autoformat"}afterInit(){const o=this.editor,t=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),o.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){const o=this.editor.commands;o.get("bulletedList")&&We(this.editor,this,/^[*-]\s$/,"bulletedList"),o.get("numberedList")&&We(this.editor,this,/^1[.|)]\s$/,"numberedList"),o.get("todoList")&&We(this.editor,this,/^\[\s?\]\s$/,"todoList"),o.get("checkTodoList")&&We(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const o=this.editor.commands;if(o.get("bold")){const t=Ji(this.editor,"bold");Gn(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),Gn(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(o.get("italic")){const t=Ji(this.editor,"italic");Gn(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),Gn(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(o.get("code")){const t=Ji(this.editor,"code");Gn(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(o.get("strikethrough")){const t=Ji(this.editor,"strikethrough");Gn(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const o=this.editor.commands.get("heading");o&&o.modelElements.filter(t=>
8227t.match(/^heading[1-6]$/)).forEach(t=>{const e=t[7],n=new RegExp(`^(#{${e}})\\s$`);We(this.editor,this,n,()=>{if(!o.isEnabled||o.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&We(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const o=this.editor,t=o.model.document.selection;o.commands.get("codeBlock")&&We(o,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&We(this.editor,this,/^---$/,"horizontalLine")}},class extends L{static get requires(){return[jy,Fy]}static get pluginName(){return"Bold"}},class extends L{static get requires(){return[Hy,Uy]}static get pluginName(){return"Italic"}},class extends L{static get requires(){return[Gy,Ky]}static get pluginName(){return"BlockQuote"}},class extends L{static get pluginName(){return"CKBox"}static get requires(){return[ym,$y]}},class extends L{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",wx,kx]}},class extends ui{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[sD]}init(){return Bk(this,null,function*(){const o=this.context.config.get("cloudServices")||{};for(const[e,n]of Object.entries(o))this[e]=n;if(!this.tokenUrl)return void(this.token=null);const t=this.context.plugins.get("CloudServicesCore");this.token=yield t.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(o){return Bk(this,null,function*(){if(this._tokens.has(o))return this.getTokenFor(o);const t=this.context.plugins.get("CloudServicesCore"),e=yield t.createToken(o).init();return this._tokens.set(o,e),e})}getTokenFor(o){const t=this._tokens.get(o);if(!t)throw new _("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const o of this._tokens.values())o.destroy()}},class extends L{static get pluginName(){return"EasyImage"}static get requires(){return[Ax,"ImageUpload"]}init(){const o=this.editor;o.plugins.has("ImageBlockEditing")||o.plugins.has("ImageInlineEditing")||U("easy-image-image-feature-missing",o)}},class extends L{static get requires(){return[xx,Dx]}static get pluginName(){return"Heading"}},class extends L{static get requires(){return[$x,Qx]}static get pluginName(){return"Image"}},class extends L{static get requires(){return[Jx,Xx]}static get pluginName(){return"ImageCaption"}},class extends L{static get requires(){return[Mp,v2]}static get pluginName(){return"ImageStyle"}},class extends L{static get requires(){return[Yi,Ht]}static get pluginName(){return"ImageToolbar"}afterInit(){const o=this.editor,t=o.t,e=o.plugins.get(Yi),n=o.plugins.get("ImageUtils");var i;e.register("image",{ariaLabel:t("Image toolbar"),items:(i=o.config.get("image.toolbar")||[],i.map(r=>pt(r)?r.name:r)),getRelatedElement:r=>n.getClosestSelectedImageWidget(r)})}},class extends L{static get pluginName(){return"ImageUpload"}static get requires(){return[g2,n2,s2]}},class extends L{static get pluginName(){return"Indent"}static get requires(){return[y2,x2]}},class extends L{static get requires(){return[Zp,tE,eE]}static get pluginName(){return"Link"}},xE,class extends L{static get requires(){return[ur,zE,PE,Oo]}static get pluginName(){return"MediaEmbed"}},oa,class extends L{static get pluginName(){return"PasteFromOffice"}static get requires(){return[se]}init(){const o=this.editor,t=o.plugins.get("ClipboardPipeline"),e=o.editing.view.document,n=[],i=this.editor.plugins.has("MultiLevelList");n.push(new i5(e,i)),n.push(new s5(e)),n.push(new c5(e)),t.on("inputTransformation",(r,s)=>{if(s._isTransformedWithPasteFromOffice||o.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const a=s.dataTransfer.getData("text/html"),c=n.find(l=>l.isActive(a));c&&(s._parsedData||(s._parsedData=l5(a,e.stylesProcessor)),c.execute(s),s._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}},class extends L{static get requires(){return[ra,Ht]}static get pluginName(){return"PictureEditing"}afterInit(){const o=this.editor;o.plugins.has("ImageBlockEditing")&&o.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),o.plugins.has("ImageInlineEditing")&&o.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const o=this.editor,t=o.conversion,e=o.plugins.get("ImageUtils");t.for("upcast").add(function(n){const i=["srcset","media","type","sizes"],r=(s,a,c)=>{const l=a.viewItem;if(!c.consumable.test(l,{name:!0}))return;const d=new Map;for(const g of l.getChildren())if(g.is("element","source")){const m={};for(const k of i)g.hasAttribute(k)&&c.consumable.test(g,{attributes:k})&&(m[k]=g.getAttribute(k));Object.keys(m).length&&d.set(g,m)}const u=n.findViewImgElement(l);
8227if(!u)return;let h=a.modelCursor.parent;if(!h.is("element","imageBlock")){const g=c.convertItem(u,a.modelCursor);a.modelRange=g.modelRange,a.modelCursor=g.modelCursor,h=St(g.modelRange.getItems())}c.consumable.consume(l,{name:!0});for(const[g,m]of d)c.consumable.consume(g,{attributes:Object.keys(m)});d.size&&c.writer.setAttribute("sources",Array.from(d.values()),h),c.convertChildren(l,h)};return s=>{s.on("element:picture",r)}}(e)),t.for("downcast").add(function(n){const i=(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const c=a.writer,l=a.mapper.toViewElement(s.item),d=n.findViewImgElement(l),u=s.attributeNewValue;if(u&&u.length){const h=c.createContainerElement("picture",null,u.map(k=>c.createEmptyElement("source",k))),g=[];let m=d.parent;for(;m&&m.is("attributeElement");){const k=m.parent;c.unwrap(c.createRangeOn(d),m),g.unshift(m),m=k}c.insert(c.createPositionBefore(d),h),c.move(c.createRangeOn(d),c.createPositionAt(h,"end"));for(const k of g)c.wrap(c.createRangeOn(h),k)}else if(d.parent.is("element","picture")){const h=d.parent;c.move(c.createRangeOn(d),c.createPositionBefore(h)),c.remove(h)}};return r=>{r.on("attribute:sources:imageBlock",i),r.on("attribute:sources:imageInline",i)}}(e))}_setupImageUploadEditingIntegration(){const o=this.editor;if(!o.plugins.has("ImageUploadEditing"))return;const t=o.plugins.get("ImageUploadEditing");this.listenTo(t,"uploadComplete",(e,{imageElement:n,data:i})=>{const r=i.sources;r&&o.model.change(s=>{s.setAttributes({sources:r},n)})})}},class extends L{static get requires(){return[P5,L5,fn,H5,F5,j5,Oo]}static get pluginName(){return"Table"}},class extends L{static get requires(){return[Yi]}static get pluginName(){return"TableToolbar"}afterInit(){const o=this.editor,t=o.t,e=o.plugins.get(Yi),n=o.config.get("table.contentToolbar"),i=o.config.get("table.tableToolbar");n&&e.register("tableContent",{ariaLabel:t("Table toolbar"),items:n,getRelatedElement:G5}),i&&e.register("table",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:q5})}},class extends L{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(o){super(o),o.config.define("typing",{transformations:{include:U1}})}init(){const o=this.editor.model.document.selection;o.on("change:range",()=>{this.isEnabled=!o.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const o=this.editor,t=o.model,e=o.plugins.get("Delete"),n=function(r){const s=r.extra||[],a=r.remove||[],c=l=>!a.includes(l);return function(l){const d=new Set;for(const u of l)if(typeof u=="string"&&xg[u])for(const h of xg[u])d.add(h);else d.add(u);return Array.from(d)}(r.include.concat(s).filter(c)).filter(c).map(l=>typeof l=="string"&&yg[l]?yg[l]:l).filter(l=>typeof l=="object").map(l=>({from:q1(l.from),to:G1(l.to)}))}(o.config.get("typing.transformations")),i=new _g(o.model,r=>{for(const s of n)if(s.from.test(r))return{normalizedTransformation:s}});i.on("matched:data",(r,s)=>{if(!s.batch.isTyping)return;const{from:a,to:c}=s.normalizedTransformation,l=a.exec(s.text),d=c(l.slice(1)),u=s.range;let h=l.index;t.enqueueChange(g=>{for(let m=1;m<l.length;m++){const k=l[m],b=d[m-1];if(b==null){h+=k.length;continue}const A=u.start.getShiftedBy(h),x=t.createRange(A,A.getShiftedBy(k.length)),M=W1(A);t.insertContent(g.createText(b,M),x),h+=b.length}t.enqueueChange(()=>{e.requestUndoOnBackspace()})})}),i.bind("isEnabled").to(this)}}],Ba.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"}})(),pr=pr.default})())})(mr,mr.exports);var cD=mr.exports;const uD=aD(cD);export{uD as C};
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.